STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228127
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/40430439?noj=FRM40430439-13DC" width="1" height="1"></div>

Ultimate Tactics.swf

This is the info page for
Flash #55571

(Click the ID number above for more basic data on this flash file.)


Text
<p align="center"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">More Games</font></p>

<p align="center"><font face="Trajan Pro Bold" size="13" color="#000000" letterSpacing="0.000000" kerning="1">More Games</font></p>

<p align="center"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">More Games</font></p>

Rain Drop Effect

<p align="center"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">Start Game</font></p>

<p align="center"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">Start Game</font></p>

<p align="center"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">Start Game</font></p>

<p align="left"><font face="Verdana" size="8" color="#ffffff" letterSpacing="0.000000" kerning="1">v 1.5</font></p>

<p align="center"><font face="Trajan Pro Bold" size="11" color="#5c5147" letterSpacing="0.000000" kerning="1">Move</font></p>

<p align="center"><font face="Trajan Pro Bold" size="11" color="#000000" letterSpacing="0.000000" kerning="1">Move</font></p>

<p align="center"><font face="Trajan Pro Bold" size="11" color="#000000" letterSpacing="0.000000" kerning="1">Move</font></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="center"><font face="Trajan Pro Bold" size="16" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>Actions</b></font></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">HP</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">/</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">23</font></p>

<p align="right"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">23</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">MP</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">/</font></p>

<p align="left"></p>

<p align="right"></p>

<p align="left"><font face="Trajan Pro Bold" size="18" color="#000000" letterSpacing="0.000000" kerning="1">Likwid</font></p>

<p align="left"><font face="Trajan Pro Bold" size="12" color="#000000" letterSpacing="1.000000" kerning="1">Lv.</font></p>

<p align="left"><font face="Trajan Pro Bold" size="12" color="#000000" letterSpacing="0.000000" kerning="1">1</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">HP</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">/</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">23</font></p>

<p align="right"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">23</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">MP</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">/</font></p>

<p align="left"></p>

<p align="right"></p>

<p align="left"><font face="Trajan Pro Bold" size="18" color="#660000" letterSpacing="0.000000" kerning="1">Likwid</font></p>

<p align="left"><font face="Trajan Pro Bold" size="12" color="#660000" letterSpacing="1.000000" kerning="1">Lv.</font></p>

<p align="left"><font face="Trajan Pro Bold" size="12" color="#660000" letterSpacing="0.000000" kerning="1">1</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">HP</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">/</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">33</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">23</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">MP</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#4e4735" letterSpacing="0.000000" kerning="1">/</font></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"><font face="Trajan Pro Bold" size="18" color="#000000" letterSpacing="0.000000" kerning="1">Likwid</font></p>

<p align="left"><font face="Trajan Pro Bold" size="12" color="#000000" letterSpacing="1.000000" kerning="1">Lv.</font></p>

<p align="left"><font face="Trajan Pro Bold" size="12" color="#000000" letterSpacing="0.000000" kerning="1">1</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">HP</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">/</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">33</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">23</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">MP</font></p>

<p align="left"><font face="Trajan Pro Bold" size="11" color="#663834" letterSpacing="0.000000" kerning="1">/</font></p>

<p align="left"></p>

<p align="left"></p>

<p align="left"><font face="Trajan Pro Bold" size="18" color="#660000" letterSpacing="0.000000" kerning="1">Likwid</font></p>

<p align="left"><font face="Trajan Pro Bold" size="12" color="#660000" letterSpacing="1.000000" kerning="1">Lv.</font></p>

<p align="left"><font face="Trajan Pro Bold" size="12" color="#660000" letterSpacing="0.000000" kerning="1">1</font></p>

<p align="left"><font face="Trajan Pro Bold" size="14" color="#000000" letterSpacing="0.000000" kerning="1">Lockpick Strength</font></p>

HP

MP

EXP

TREASURES

ITEMS

ITEM INFO

STATS

Strength:

5

Defense:

7

Magic:

5

Luck

6

Speed:

3

WEAPON:

ARMOR:

ACCESSORY:

Range:

3

Level:

Class:

HP:

MP:

EXPERIENCE

STATS

SKILLS

Cur. EXP:

Next Level:

Strength:

Defense:

Magic:

Luck:

Speed:

Lock Picking:

Range:

Time Played:

Gold:

Stats

Stats

Items

Items

Equipment

Equipment

Sound

Sound

Treasures

Treasures

Exit

Exit

Save

Save

Cannot save
in battle

<p align="left"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">STATUS</font></p>

<p align="left"><font face="Trajan Pro Bold" size="13" color="#000000" letterSpacing="0.000000" kerning="1">STATUS</font></p>

<p align="left"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">STATUS</font></p>

<p align="left"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">Save Game</font></p>

<p align="left"><font face="Trajan Pro Bold" size="13" color="#000000" letterSpacing="0.000000" kerning="1">Save Game</font></p>

<p align="left"><font face="Trajan Pro Bold" size="13" color="#ffffff" letterSpacing="0.000000" kerning="1">Save Game</font></p>

<p align="center"><font face="Trajan Pro Bold" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Leave</font></p>

<p align="center"><font face="Trajan Pro Bold" size="12" color="#000000" letterSpacing="0.000000" kerning="1">Leave</font></p>

<p align="center"><font face="Trajan Pro Bold" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Leave</font></p>

<p align="center"><font face="Trajan Pro Bold" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Next Character</font></p>

<p align="center"><font face="Trajan Pro Bold" size="12" color="#000000" letterSpacing="0.000000" kerning="1">Next Character</font></p>

<p align="center"><font face="Trajan Pro Bold" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">Next Character</font></p>

ActionScript [AS1/AS2]

Frame 1
fscommand ("showmenu", "false"); Stage.showMenu = false; var CPMStarPoolID = 2035; var CPMStarSubPoolID = 100; System.security.allowDomain("server.cpmstar.com"); adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID); function fadePreloader() { preloaderBar.onEnterFrame = function () { if (this._alpha > 0) { this._alpha = this._alpha - 4; } else { this.removeMovieClip(); delete this.onEnterFrame; if (_root.checkFlashVersion() == true) { trace("CORRECT VERSION"); _root.fadeStartButton(); } else { trace("WRONG VERSION"); _root.versionMC._visible = true; } } }; } function checkFlashVersion() { requiredVersion = 9; version = $version; var majorVersion; osArray = version.split(" "); versionArray = osArray[1].split(","); majorVersion = versionArray[0]; if (majorVersion < requiredVersion) { return(false); } return(true); } function fadeStartButton() { startGameButt._visible = true; startGameButt._alpha = 0; _root.onEnterFrame = function () { if (startGameButt._alpha < 100) { startGameButt._alpha = startGameButt._alpha + 4; } else { delete _root.onEnterFrame; } }; startGameButt.onRelease = function () { _root.gotoAndStop(3); }; } stopAllSounds(); var domainName = _url.substring(7); domainName = domainName.toLowerCase(); if (domainName.substring(0, 3) == "www") { domainName = domainName.substring(4); } var end = domainName.indexOf("/"); domainName = domainName.substring(0, end); startGameButt._visible = false; versionMC._visible = false; this.onEnterFrame = function () { totalBytes = this.getBytesTotal(); loadedBytes = this.getBytesLoaded(); remainingBytes = totalBytes - loadedBytes; percentDone = int((loadedBytes / totalBytes) * 100); myText.text = Math.round(percentDone) + "%"; preloaderBar.loaderBar._width = 284 * (percentDone * 0.01); if (percentDone >= 100) { delete this.onEnterFrame; setTimeout(fadePreloader, 800); } }; stop();
Instance of Symbol 35 MovieClip [titleLikwidGames] in Frame 1
on (release) { getURL ("http://www.likwidgames.com", "_blank"); }
Frame 2
stopAllSounds();
Frame 3
_root.createEmptyMovieClip("firstMusicMc", 9999999); levelMusic = new Sound(firstMusicMc); levelMusic.attachSound("levelSnd"); worldMapMusic = new Sound(firstMusicMc); worldMapMusic.attachSound("worldMapMusic"); themeMusicSnd = new Sound(firstMusicMc); themeMusicSnd.attachSound("themeMusicSnd"); gameoverSnd = new Sound(firstSoundMc); gameoverSnd.attachSound("gameoverSnd"); likwidIntroSnd = new Sound(firstSoundMc); likwidIntroSnd.attachSound("likwidIntroSnd"); _root.createEmptyMovieClip("firstSoundMc", 999999); startLevelSnd = new Sound(firstSoundMc); startLevelSnd.attachSound("startLevelSnd"); swordSnd = new Sound(firstSoundMc); swordSnd.attachSound("swordSnd"); archerSnd = new Sound(firstSoundMc); archerSnd.attachSound("archerSnd"); damageSnd = new Sound(firstSoundMc); damageSnd.attachSound("damageSnd"); missSnd = new Sound(firstSoundMc); missSnd.attachSound("missSnd"); deathSnd = new Sound(firstSoundMc); deathSnd.attachSound("deathSnd"); fireSnd = new Sound(firstSoundMc); fireSnd.attachSound("fireSnd"); lightningSnd = new Sound(firstSoundMc); lightningSnd.attachSound("lightningSnd"); healSnd = new Sound(firstSoundMc); healSnd.attachSound("healSnd"); poisonSnd = new Sound(firstSoundMc); poisonSnd.attachSound("poisonSnd"); freezeSnd = new Sound(firstSoundMc); freezeSnd.attachSound("freezeSnd"); foundItemSnd = new Sound(firstSoundMc); foundItemSnd.attachSound("foundItemSnd"); levelupSnd = new Sound(firstSoundMc); levelupSnd.attachSound("levelupSnd"); endLevelSnd = new Sound(firstSoundMc); endLevelSnd.attachSound("endLevelSnd"); chooseTileSnd = new Sound(firstSoundMc); chooseTileSnd.attachSound("chooseTileSnd"); buttonSnd = new Sound(firstSoundMc); buttonSnd.attachSound("buttonSnd"); treasureDropSnd = new Sound(firstSoundMc); treasureDropSnd.attachSound("treasureDropSnd"); expSnd = new Sound(firstSoundMc); expSnd.attachSound("expSnd"); lockpickBreakSnd = new Sound(firstSoundMc); lockpickBreakSnd.attachSound("lockpickBreakSnd"); lockUnlockedSnd = new Sound(firstSoundMc); lockUnlockedSnd.attachSound("lockUnlockedSnd"); lockpickingSnd = new Sound(firstSoundMc); lockpickingSnd.attachSound("lockpickingSnd"); treasureOpenSnd = new Sound(firstSoundMc); treasureOpenSnd.attachSound("treasureOpenSnd"); stopAllSounds(); stop();
Frame 4
MovieClip.prototype.fluxTint = function ($colObj, $amountStart, $amountEnd, $pace, $loop, $limit) { this.$colour = new Color(this); var $loops = 0; var $unlimited = (($limit == undefined) ? true : false); var $way = (($amountStart <= $amountEnd) ? "up" : "down"); var $top = (($amountStart <= $amountEnd) ? ($amountEnd) : ($amountStart)); var $bottom = (($amountStart <= $amountEnd) ? ($amountStart) : ($amountEnd)); var $a_curr = $amountStart; this.onEnterFrame = function () { this.$colour.setTint($colObj.r, $colObj.g, $colObj.b, $a_curr); if ($way == "up") { if ($a_curr >= $top) { $loops = $loops + 0.5; var _local2 = (!$loop) || (((!$unlimited) && ($loop)) && ($loops >= $limit)); if (_local2) { delete this.onEnterFrame; } $way = "down"; } $a_curr = $a_curr + $pace; } else if ($way == "down") { if ($a_curr <= $bottom) { $loops = $loops + 0.5; var _local2 = (!$loop) || (((!$unlimited) && ($loop)) && ($loops >= $limit)); if (_local2) { delete this.onEnterFrame; } $way = "up"; } $a_curr = $a_curr - $pace; } }; }; Color.prototype.setTint = function (r, g, b, amount) { var _local4 = 100 - amount; var _local2 = new Object(); _local2.ra = (_local2.ga = (_local2.ba = _local4)); var _local3 = amount / 100; _local2.rb = r * _local3; _local2.gb = g * _local3; _local2.bb = b * _local3; this.setTransform(_local2); }; function initVars() { gold = 0; enemiesKilledCount = 0; timePlayed = 0; lockpicking = 1; inventory = new Array(); treasures = new Array(); treasuresUnlocked = 0; showTreasureTutorial = true; equipment = new Array(); enemyArr = new Array(); defenderArr = new Array(); tutorialNum = 0; tutorialCompleted = false; grandpaCount = 0; warriorGuildCount = 0; thiefGuildCount = 0; levelsUnlocked = 0; curMission = null; missionsArr = new Array(); missionsArr = [[["tutorial", 1, true]], [["Mutant Pond", 3, false], ["The Athelas Leaf", 4, false], ["Venom Snakes!", 5, false], ["Mutant Leader", 7, false], ["The Desert Sting", 7, false]], [["Ancient Pyramids", 7, false], ["Super Venom", 8, false], ["Oasis", 8, false], ["Eye Guys", 9, false]], [["Lava Monsters", 10, false], ["Death Rock Cave", 10, false], ["Ring of Fire", 11, false], ["Lava River", 12, false], ["Cave Ogres", 13, false], ["Ogre Lord", 15, false]]]; addDefender("Kronus"); } function initGame() { createEmptyMovieClip("interfaceMC", 99); interfaceMC.attachMovie("frame-MC", "frameMC", 99); initItems(); } function initItems() { itemNameListArr = ["Lockpicking Guide", "Healing Herb", "HP Potion", "sm. HP Potion", "lg. HP Potion", "Mana Root", "sm. Mana Potion", "Mana Potion", "Elixer", "Mega Elixer", "Antidote", "Resurrection", "Magic Tonic", "HP Booster", "Power Bar", "Iron Tusk", "Rusty Lockpick", "Iron Lockpick", "Ultra Lockpick", "Poison Scroll", "Shock Scroll", "Freeze Scroll"]; equipmentNameListArr = ["Rusty Sword", "Iron Sword", "Broad Sword", "Falchion", "Flame Sword", "Wood Staff", "Wand", "Element Staff", "Lava Wand", "Wooden Bow", "Long Bow", "Marksman Bow", "Rusty Armor", "Iron Armor", "Chain Mail", "Plate Armor", "Cloth Robe", "Cloak", "Silk Robe", "Amber Robe", "Iron Vest", "Iron Doublet", "Rose Gilet", "Amulet of Warding", "Iron Ring", "Lucky Ribbon", "Magic Ring", "Power Glove", "Ruby Pin", "Silver Necklace", "Speed Boots", "Thief Gloves"]; itemListArr = new Array(); i = 0; while (i < itemNameListArr.length) { assignItem(itemNameListArr[i], true); i++; } e = 0; while (e < equipmentNameListArr.length) { assignEquipment(equipmentNameListArr[e], true); e++; } } function initMap(levelName) { if (_root.soundOn == true) { _root.startLevelSnd.start(); } worldMapMC.markers._visible = false; worldMapMC.mapMenu._visible = false; worldMapMC.mapSave._visible = false; worldMapMC.mapGames._visible = false; mapInfoArr = getMap(levelName); _root.levelName = levelName; _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); var _local2 = new mx.transitions.Tween(worldMapMC, "blur", mx.transitions.easing.Regular.easeIn, 0, 200, 2, true); var _local3 = new mx.transitions.Tween(worldMapMC, "_alpha", mx.transitions.easing.Regular.easeIn, 100, 0, 2, true); _local2.onMotionChanged = function () { worldMapMC.filters = [new flash.filters.BlurFilter(worldMapMC.blur, worldMapMC.blur, 1)]; }; _local2.onMotionFinished = function () { worldMapMC.removeMovieClip(); buildMap(mapInfoArr[0], mapInfoArr[1], mapInfoArr[2], mapInfoArr[3], levelName); }; } function buildMap(tileMap, heightMap, charMap, levelItems, levelName) { if (_root.soundOn == true) { _root.worldMapMusic.stop(); _root.levelMusic.start(0, 999); } BG.removeMovieClip(); display.removeMovieClip(); screenMoverMC.removeMovieClip(); charStats.removeMovieClip(); createEmptyMovieClip("BG", 1); BG.attachMovie("BG-MC", "BG", 1); if ((((((levelName.toString() == "Death Rock Cave") || (levelName.toString() == "Ring of Fire")) || (levelName.toString() == "Death Rock")) || (levelName.toString() == "Lava River")) || (levelName.toString() == "Cave Ogres")) || (levelName.toString() == "Ogre Lord")) { BG.BG.gotoAndStop(2); } createEmptyMovieClip("display", 2); display.createEmptyMovieClip("tiles", 2); createEmptyMovieClip("charStats", 10); turnArr = new Array(); defenderLevelArr = new Array(); enemyArr = new Array(); display._x = 250; display._y = 150; _root.levelItems = levelItems; h = 0; while (h < tileMap.length) { w = 0; while (w < tileMap[0].length) { tileMap[h][w] = int(tileMap[h][w]); heightMap[h][w] = int(heightMap[h][w]); d = (((((w + h) * tileSize) / 2) * 300) + ((w - h) * tileSize)) + 1; var _local4 = _root.display.tiles.attachMovie("tiles", (("tile_" + w) + "_") + h, d); _local4.cacheAsBitmap = true; _local4._x = (w - h) * tileSize; _local4._y = ((w + h) * tileSize) / 2; _local4.range._visible = false; _local4.selected._visible = false; _local4.x = h; _local4.y = w; _local4.inRange = false; _local4.tileHit.useHandCursor = false; _local4.gotoAndStop(tileMap[h][w]); _local4.treasure = null; _local4.walkable = true; if ((((((((((((((((((((((((tileMap[h][w] == 16) || (tileMap[h][w] == 22)) || (tileMap[h][w] == 23)) || (tileMap[h][w] == 24)) || (tileMap[h][w] == 25)) || (tileMap[h][w] == 26)) || (tileMap[h][w] == 33)) || (tileMap[h][w] == 34)) || (tileMap[h][w] == 35)) || (tileMap[h][w] == 36)) || (tileMap[h][w] == 37)) || (tileMap[h][w] == 7)) || (tileMap[h][w] == 8)) || (tileMap[h][w] == 9)) || (tileMap[h][w] == 10)) || (tileMap[h][w] == 11)) || (tileMap[h][w] == 12)) || (tileMap[h][w] == 44)) || (tileMap[h][w] == 45)) || (tileMap[h][w] == 46)) || (tileMap[h][w] == 61)) || (tileMap[h][w] == 62)) || (tileMap[h][w] == 63)) || (tileMap[h][w] == 64)) { _local4.walkable = false; } tileMap[h][w] = _local4; if (heightMap[h][w] != 0) { _local4.hasHeight = true; _local4._y = _local4._y - (30 * heightMap[h][w]); } if (charMap[h][w][1] == "human") { addDefenderToMap(_local4, charMap[h][w][0], charMap[h][w][2]); } else if (charMap[h][w][1] == "enemy") { addEnemy(_local4, charMap[h][w][0], charMap[h][w][2]); } _local4.tileHit.onRollOver = function () { if ((_root.verifyRange(this._parent) == true) && (_root.currentTurn.type == "human")) { makeOutline(this._parent); } }; _local4.tileHit.onRollOut = function () { _root.display.tiles.tileOutline._visible = false; }; _local4.tileHit.onRelease = function () { if (_root.verifyRange(this._parent) == true) { if ((_root.tutorialNum == 2) && (this._parent != _level0.display.tiles.tile_4_11)) { } else { _root.charStats.windowActions.removeMovieClip(); _root.findPath(_root.currentTurn, this._parent.x, this._parent.y, _root.currentTurn.x, _root.currentTurn.y); } } }; w++; } h++; } _root.display.cacheAsBitmap = true; _root.display.tiles.cacheAsBitmap = true; _root.display.tiles._width = _root.display.tiles._width * 0.8; _root.display.tiles._height = _root.display.tiles._height * 0.8; _root.display.tiles.attachMovie("tileOutline", "tileOutline", 99999999); _root.display.tiles.tileOutline._visible = false; _root.display.tiles._x = _root.display.tiles._x + 230; levelGold = 0; levelScore = 0; gameOver = false; charTurn = 0; inBattle = true; turnArr.sort(turnOrder); trace("TURN ARR: " + turnArr); t = 0; while (t < turnArr.length) { trace(turnArr[t][0].turnArrName); t++; } mapIntro(); _root.currentTurn.swapDepths(_root.display.tiles.getNextHighestDepth()); } function mapIntro() { myColor = new Color(_root.display); myColor.setTint(0, 0, 0, 100); BG._alpha = 0; var _local2 = new mx.transitions.Tween(BG, "_alpha", mx.transitions.easing.Regular.easeIn, 0, 100, 2, true); _local2.onMotionFinished = function () { showGameMask(1); }; } function fadeMapIn() { tintNum = 100; _root.display.onEnterFrame = function () { myColor = new Color(_root.display); if (_root.tintNum > 0) { myColor.setTint(0, 0, 0, _root.tintNum); _root.tintNum = _root.tintNum - 4; } else { delete this.onEnterFrame; setTimeout(_root.checkTurn, 1000); } }; } function levelComplete() { if (_root.soundOn == true) { _root.endLevelSnd.start(); } inBattle = false; charStats.removeMovieClip(); showGameMask(2); } function gameOverFunc() { inBattle = false; gameOver = true; charStats.removeMovieClip(); if (_root.soundOn == true) { _root.levelMusic.stop(); _root.gameoverSnd.start(); } showGameMask(3); } function displayGameOverOptions() { BG.removeMovieClip(); display.removeMovieClip(); screenMoverMC.removeMovieClip(); charStats.removeMovieClip(); interfaceMC.removeMovieClip(); var _local2 = new mx.transitions.Tween(gameMask, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 5, true); _local2.onMotionFinished = function () { _root.loadTitleScreen(); gameMask.removeMovieClip(); }; } function displayLevelGold() { if (_root.soundOn == true) { _root.foundItemSnd.start(); } gameMask.mcC.gameMaskMC.gotoAndStop(2); _root.createEmptyMovieClip("levelItemInfo", _root.getNextHighestDepth()); levelItemInfo._alpha = 0; itemInfoBox = levelItemInfo.attachMovie("statusItemAlert", "levelGoldInfo", _root.levelItemInfo.getNextHighestDepth(), {_x:300, _y:210}); addText(itemInfoBox, "titleTxt" + i, 0, 40, 200, 50, "Gold gained:", 16, 0); itemInfoBox.attachMovie("goldIcon", "goldIcon", itemInfoBox.getNextHighestDepth(), {_x:63, _y:65}); addText(itemInfoBox, "itemName" + i, 95, 67, 200, 50, levelGold, 24, 0, false); _root.gold = _root.gold + levelGold; cancelButtonMC = itemInfoBox.createEmptyMovieClip("cancelButtonMC", itemInfoBox.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 0, 105, 200, 20, "Continue", 14, 6050119); cancelButtonMC.MC = itemInfoBox; cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (_root.levelItems.length > 0) { _root.displayLevelItems(); _root.addLevelItems(); } else { _root.endLevelFunc(); } this.MC.removeMovieClip(); }; var _local3 = new mx.transitions.Tween(levelItemInfo, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true); } function addLevelItems() { r1 = 0; while (r1 < _root.levelItems.length) { thisItem = getRewardItemInfo(_root.levelItems[r1]); if (thisItem.ATT == undefined) { assignItem(thisItem.NAME); } else { assignEquipment(thisItem.NAME); } r1++; } } function displayLevelItems() { if (_root.soundOn == true) { _root.foundItemSnd.start(); } _root.createEmptyMovieClip("levelItemInfo", _root.getNextHighestDepth()); i = levelItems.length - 1; while (i > -1) { thisItem = getRewardItemInfo(levelItems[i]); itemInfoBox = levelItemInfo.attachMovie("textBox2MC", "textBox2MC" + i, _root.levelItemInfo.getNextHighestDepth(), {_x:290, _y:190}); addText(itemInfoBox, "titleTxt" + i, 0, 45, 235, 50, "Item Aquired:", 16, 0); itemIcon = itemInfoBox.attachMovie(thisItem.ICON, thisItem.ICON, itemInfoBox.getNextHighestDepth(), {_x:105, _y:90}); addText(itemInfoBox, "itemName" + i, 0, 125, 235, 50, "1 x " + thisItem.NAME, 11, 0); cancelButtonMC = itemInfoBox.createEmptyMovieClip("cancelButtonMC", itemInfoBox.getNextHighestDepth()); addText(cancelButtonMC, "tfield" + i, 0, 170, 235, 20, "Continue", 14, 6050119); cancelButtonMC.MC = itemInfoBox; cancelButtonMC.num = i; cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (this.num == (_root.levelItems.length - 1)) { _root.endLevelFunc(); } this.MC.removeMovieClip(); }; i--; } } function endLevelFunc() { _root.levelItemInfo.removeMovieClip(); _root.gameMask.removeMovieClip(); checkLevelUnlock(levelName); loadWorldMap(levelsUnlocked); if (gameComplete == true) { endGameAlert(); } if (levelName == "tutorial") { mapLevelInfoMC = _root.worldMapMC.createEmptyMovieClip("mapLevelInfoMC", worldMapMC.getNextHighestDepth()); overlayMC = mapLevelInfoMC.attachMovie("overlayGraphic", "overlayGraphic", 1); overlayMC.onRollOver = function () { this.useHandCursor = false; }; mapLevelInfoMC._alpha = 0; var _local3 = new mx.transitions.Tween(mapLevelInfoMC, "_alpha", mx.transitions.easing.Regular.easeIn, 0, 100, 0.5, true); _root.mapGrandpa(); } } function makeOutline(tile) { _root.display.tiles.tileOutline._visible = true; _root.display.tiles.tileOutline._x = tile._x; _root.display.tiles.tileOutline._y = tile._y - 13; } function verifyRange(tile) { if (_root.showingRange == true) { if (tile.inRange == true) { return(true); } } return(false); } function checkForTutorial(customTut) { if (customTut == undefined) { tutTemp = _root.tutorialNum; } else { tutTemp = customTut; } if (tutorialCompleted != true) { switch (tutTemp) { case 0 : tutTxt = "This menu indicates that it is your turn. Here you are able to \"MOVE\" your character, \"ACTION\" (Attack, Use Item), \"WAIT\" to end your turn, or view your \"STATUS\". \n\nNow, move to the enemy and attack it."; var _local2 = {r:255, g:255, b:255}; _root.charStats.windowActions.fluxTint(_local2, 0, 60, 5, true); showTutorialAlert(tutTxt, 220, 210); break; case 1 : tutTxt = "\n\nThe BLUE squares display the tiles you are able to move to. Select the tile in front of the enemy to move to it."; showTutorialAlert(tutTxt, 180, 310); break; case 2 : if (_root.currentTurn.hasMoved == true) { tutTxt = "After you MOVE or WAIT, you will be able to choose the direction you face. \n\nPlan ahead and strategize. An attack from behind or a tile higher than the enemy will do extra damage."; showTutorialAlert(tutTxt, 180, 310); } break; case 3 : tutTxt = "\nNow, select \"ACTION\", and \"ATTACK\" from the menu. \n\nHere you will be able to choose the type of attack you wish to use."; showTutorialAlert(tutTxt, 180, 310); break; case 4 : tutTxt = "These RED tiles show your attack range. If there is an enemy on one of these tiles, they will appear RED and you will be able to click to attack them. \n\nBefore you attack, be sure to mouse over enemies to view their stats."; showTutorialAlert(tutTxt, 180, 310); break; case 5 : tutTxt = "You will gain EXP for attacking an enemy, but defeating them will earn you more. Some enemies will even drop TREASURE CHESTS after being defeated. \n\nYou will learn about these after picking one up later."; showTutorialAlert(tutTxt, 180, 310); break; case 6 : tutTxt = "After your turn has ended, the enemy will get their turn to move. Turn order is determined by the SPEED stat of all characters and enemies. \n\nYou can learn more about this by choosing \"STATUS\" from the game menu."; showTutorialAlert(tutTxt, 220, 210); break; case 7 : tutTxt = "You have now learned the basics of battling. \n\nBe careful out there. If you are defeated, you can only continue from the last time you saved your game. \n\nGood luck!"; showTutorialAlert(tutTxt, 220, 210); break; case "Level Up" : tutTxt = "Congratulations, you have earned enough EXP and have gained a level! \n\nAt every level, you character's stats increase. You can view your stats by selecting \"STATUS\" during your turn."; showTutorialAlert(tutTxt, 220, 210); _root.tutorialCompleted = true; break; case "Treasure" : tutTxt = "\nYou have picked up a treasure chest. Go see Grandpa when you are finished this battle to learn how to unlock them."; showTutorialAlert(tutTxt, 220, 210); } } } function showTutorialAlert(tutTxt, xVal, yVal) { tutScreen.removeMovieClip(); createEmptyMovieClip("tutScreen", 20); tutScreen._alpha = 0; var _local3 = new mx.transitions.Tween(tutScreen, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true); overlayMC = tutScreen.attachMovie("overlayGraphic", "overlayGraphic", 1); overlayMC.onRollOver = function () { this.useHandCursor = false; }; textBoxMC = tutScreen.attachMovie("textBox1GFX", "textBoxMC", tutScreen.getNextHighestDepth(), {_x:xVal, _y:yVal}); addText(textBoxMC, "titleTxt2" + _root.tutorialNum, 35, 37, 410, 200, tutTxt, 12, 6050119, false, true); closeButtonMC = textBoxMC.createEmptyMovieClip("closeButtonMC", textBoxMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 300, 135, 190, 20, "Continue", 12, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (_root.tutorialNum != 4) { _root.tutorialNum++; } if ((_root.tutorialNum == 6) || (_root.tutorialNum == 7)) { _root.checkForTutorial(); } else { _root.charStats.windowActions.fluxTint(colObj, 0, 0, 50, false); _root.tutScreen.removeMovieClip(); } }; textBoxMC.attachMovie("textBoxArrow", "textBoxArrow", textBoxMC.getNextHighestDepth(), {_x:344, _y:136}); } function addDefender(defenderName) { defenderMC = initCharStats(defenderName); defenderArr.push(defenderMC); } function addDefenderToMap(defenderTile, defenderName, defenderDirection) { d = 0; while (d < defenderArr.length) { if (defenderName == defenderArr[d].name) { defender = defenderArr[d]; defender.num = d; } d++; } if (defender.HP > 0) { var _local8 = _root.display.tiles.attachMovie("defenders", defenderName, defenderTile.getDepth() + 1, {_x:defenderTile._x + 40, _y:defenderTile._y - 10}); _local8.gotoAndStop(defenderName); _local8.charMC.gotoAndStop(defenderDirection); defender.MC = _local8; defender.MC.stats = defender; defender.type = "human"; defender.tile = defenderTile; defender.x = defenderTile.x; defender.y = defenderTile.y; defender.turnArrName = defenderName; defender.curDirection = defenderDirection; defender.height = heightMap[defender.x][defender.y]; charMap[defender.x][defender.y] = defender; tileMap[defender.x][defender.y].walkable = false; defender.MC.cacheAsBitmap = true; defender.dead = false; defender.MC._width = defender.MC._width * 1.4; defender.MC._height = defender.MC._height * 1.4; if (defender.ailments.length > 0) { a = 0; while (a < defender.ailments.length) { if (defender.ailments[a] == "poison") { var _local2 = {r:31, g:211, b:0}; defender.MC.charMC.fluxTint(_local2, 0, 60, 5, true); } a++; } } turnArr.push([defender, defender.SPD]); defenderLevelArr.push(defender); } } function checkSurrounded(defender) { surroundNum = 0; if (tileMap[defender.x + 1][defender.y].walkable == false) { surroundNum++; } if (tileMap[defender.x - 1][defender.y].walkable == false) { surroundNum++; } if (tileMap[defender.x][defender.y + 1].walkable == false) { surroundNum++; } if (tileMap[defender.x][defender.y - 1].walkable == false) { surroundNum++; } trace("SURROUND NUM: " + surroundNum); if (surroundNum == 4) { return(true); } return(false); } function showRange(defender) { rangeTiles = new Array(); rangeCount = 1; down = false; i = defender.x - defender.range; while (i < ((defender.x + defender.range) + 1)) { tileMap[i][i2].range._visible = false; i2 = defender.y; while (i2 < (rangeCount + defender.y)) { addTileToRange(tileMap[i][i2], i, i2); i2++; } i3 = defender.y; while (i3 > (defender.y - rangeCount)) { addTileToRange(tileMap[i][i3], i, i3); i3--; } if (rangeCount < (defender.range + 1)) { if (down != true) { rangeCount++; } else { rangeCount--; } } else { down = true; rangeCount--; } i++; } verifyRangeTiles(); showingRange = true; } function addTileToRange(tile, i, i2) { tilesAroundArr = [_root.display.tiles[(("tile_" + (tile.y + 1)) + "_") + tile.x], _root.display.tiles[(("tile_" + (tile.y - 1)) + "_") + tile.x], _root.display.tiles[(("tile_" + tile.y) + "_") + (tile.x + 1)], _root.display.tiles[(("tile_" + tile.y) + "_") + (tile.x - 1)]]; tile.range.fluxTint(colObj, 0, 0, 20, false); rangeTiles.push(tile); if ((tile.walkable != false) && (tile.deadChar != true)) { tile.range._visible = true; _root.tileMap[i][i2].inRange = true; } else if (tile.treasure != null) { tile.range._visible = true; _root.tileMap[i][i2].inRange = true; } else { var colObj = {r:255, g:50, b:50}; } } function verifyRangeTiles() { r = 0; while (r < rangeTiles.length) { tilesAroundArr = [_root.display.tiles[(("tile_" + (rangeTiles[r].y + 1)) + "_") + rangeTiles[r].x], _root.display.tiles[(("tile_" + (rangeTiles[r].y - 1)) + "_") + rangeTiles[r].x], _root.display.tiles[(("tile_" + rangeTiles[r].y) + "_") + (rangeTiles[r].x + 1)], _root.display.tiles[(("tile_" + rangeTiles[r].y) + "_") + (rangeTiles[r].x - 1)]]; badTiles = 0; t = 0; while (t < tilesAroundArr.length) { if ((tilesAroundArr[t].walkable == false) || (tilesAroundArr[t].inRange != true)) { badTiles++; } t++; } if (badTiles == 4) { rangeTiles[r].inRange = false; rangeTiles[r].range._visible = false; rangeTiles[r].fluxTint(colObj, 0, 0, 20, false); } r++; } } function resetRange(tiles) { r = 0; while (r < tiles.length) { tiles[r].inRange = false; tiles[r].range._visible = false; var _local3 = {r:255, g:255, b:255}; tiles[r].fluxTint(_local3, 0, 0, 20, false); r++; } _root.display.tileOutline._visible = false; } function checkLevelUp(char) { if (char.EXP >= expList(char.lvl)) { char.lvl++; _root.charStats.charInfo.charLvl.text = char.lvl; levelUpStats(char); animateEXPPrep("LEVEL UP", char, 2); _root.checkForTutorial("Level Up"); } else { setTimeout(remOverlay, 100); } } function resetDefenderFuncs() { e = 0; while (e < defenderArr.length) { defenderArr[e].MC.enabled = true; defenderArr[e].MC._alpha = 100; defenderArr[e].MC.fluxTint(colObj, 0, 0, 99, false); defenderArr[e].MC.hover.onRollOver = function () { this.useHandCursor = false; if (this._parent.stats.name != _root.currentTurn.name) { if (this._parent.stats.dead != true) { var _local4 = {r:255, g:255, b:255}; this._parent.fluxTint(_local4, 0, 50, 15, false, 1); var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this._parent.stats, _local3); } } }; defenderArr[e].MC.hover.onRollOut = function () { if (this._parent.stats.name != _root.currentTurn.name) { if (this._parent.stats.dead != true) { var _local3 = {r:255, g:255, b:255}; this._parent.fluxTint(_local3, 50, 0, 15, false); _root.charStats.charInfo2.removeMovieClip(); } } }; e++; } } function addDefenderAlert(defenderName) { if (_root.soundOn == true) { _root.foundItemSnd.start(); } addDefender(defenderName); worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); defenderAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("textBox2MC", "textBoxMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:297, _y:197}); addText(defenderAlertMC, "titleTxt" + _root.grandpaCount, 0, 35, 230, 50, defenderName, 18, 0); addText(defenderAlertMC, "titleTxt2" + _root.grandpaCount, 35, 150, 410, 80, "Has joined your party!", 12, 6050119, false, true); var _local3 = defenderAlertMC.attachMovie("defenders", "defender_" + defenderName, defenderAlertMC.getNextHighestDepth(), {_x:115, _y:115}); _local3.gotoAndStop(defenderName); _local3._xscale = _local3._xscale * 1.15; _local3._yscale = _local3._yscale * 1.15; closeButtonMC = defenderAlertMC.createEmptyMovieClip("closeButtonMC", defenderAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 20, 185, 190, 20, "Close", 12, 6050119); closeButtonMC.defenderName = defenderName; closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (this.defenderName == "Kage") { _root.mapAddLevelPopup(2, "Athelas"); } else if (this.defenderName == "Aryana") { _root.mapAddLevelPopup(5, "Sandos"); } }; } function addEnemy(enemyTile, enemyType, enemyDirection) { var _local4 = _root.display.tiles.attachMovie("enemies", "enemy_" + enemyTile.getDepth(), enemyTile.getDepth() + 1, {_x:enemyTile._x + 40, _y:enemyTile._y - 10}); _local4.gotoAndStop(enemyType); _local4.charMC.gotoAndStop(enemyDirection); enemy = getEnemyStats(enemyType); enemy.MC = _local4; enemy.MC.stats = enemy; enemy.type = "enemy"; enemy.tile = enemyTile; enemy.turnArrName = "enemy_" + enemyTile.getDepth(); enemy.x = enemyTile.x; enemy.y = enemyTile.y; enemy.curDirection = enemyDirection; enemy.dead = false; enemy.height = heightMap[enemy.x][enemy.y]; charMap[enemy.x][enemy.y] = enemy; enemyArr.push(enemy); enemy.num = enemyArr.length - 1; tileMap[enemy.x][enemy.y].walkable = false; enemy.MC.cacheAsBitmap = true; enemy.MC._width = enemy.MC._width * 1.4; enemy.MC._height = enemy.MC._height * 1.4; turnArr.push([enemy, enemy.SPD]); enemy.ailments = new Array(); enemy.MC.onRollOver = function () { this.useHandCursor = false; if (this.stats.dead != true) { var _local4 = {r:255, g:255, b:255}; this.fluxTint(_local4, 0, 70, 15, false, 1); var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this.stats, _local3); } }; enemy.MC.onRollOut = function () { if (this.stats.dead != true) { var _local3 = {r:255, g:255, b:255}; this.fluxTint(_local3, 70, 0, 15, false); _root.charStats.charInfo2.removeMovieClip(); } }; } function resetCharFuncs() { resetDefenderFuncs(); resetEnemyFuncs(); } function resetEnemyFuncs() { e = 0; while (e < enemyArr.length) { enemyArr[e].MC.enabled = true; enemyArr[e].MC._alpha = 100; enemyArr[e].MC.fluxTint(colObj, 0, 0, 99, false); enemyArr[e].MC.onRollOver = function () { this.useHandCursor = false; if (this.stats.dead != true) { var _local4 = {r:255, g:255, b:255}; this.fluxTint(_local4, 0, 70, 15, false, 1); var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this.stats, _local3); } }; enemyArr[e].MC.onRollOut = function () { if (this.stats.dead != true) { var _local3 = {r:255, g:255, b:255}; this.fluxTint(_local3, 70, 0, 15, false); _root.charStats.charInfo2.removeMovieClip(); } }; delete enemyArr[e].onRelease; e++; } } function findClosestDefender(enemy) { closestDist = null; closestDefender = null; e = 0; while (e < _root.defenderLevelArr.length) { var _local4 = Math.abs(_root.defenderLevelArr[e].x - enemy.x); var _local3 = Math.abs(_root.defenderLevelArr[e].y - enemy.y); var _local2 = _local4 + _local3; if ((_local2 < closestDist) || (closestDist == null)) { if (defenderLevelArr[e].dead != true) { closestDist = _local2; closestDefender = _root.defenderLevelArr[e]; } } e++; } return(closestDefender); } function resetEnemyRollRelease() { r = 0; while (r < attackArr.length) { attackArr[r].MC.onRollOver = function () { this.useHandCursor = false; if (this.stats.dead != true) { var _local4 = {r:255, g:255, b:255}; this.fluxTint(_local4, 0, 70, 15, false, 1); var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this.stats, _local3); } }; attackArr[r].MC.onRollOut = function () { if (this.stats.dead != true) { var _local3 = {r:255, g:255, b:255}; this.fluxTint(_local3, 70, 0, 15, false); _root.charStats.charInfo2.removeMovieClip(); } }; r++; } } function removeEnemyFromArray(deadChar) { e = 0; while (e < enemyArr.length) { if (enemyArr[e].num == deadChar.num) { enemyArr.splice(e, 1); break; } e++; } } function findPath(char, startx, starty, targetx, targety) { path = {}; path.Unchecked_Neighbours = []; path.done = false; path.name = (("node_" + starty) + "_") + startx; var _local7 = Math.abs(startx - targetx) + Math.abs(starty - targety); path[path.name] = {x:startx, y:starty, parentx:null, parenty:null, cost:_local7}; path.Unchecked_Neighbours[path.Unchecked_Neighbours.length] = path[path.name]; while (path.Unchecked_Neighbours.length > 0) { var _local1 = path.Unchecked_Neighbours.shift(); if ((_local1.x == targetx) and (_local1.y == targety)) { makePath(_local1, char); char.oldDir = null; char.dir = null; if (char.type == "enemy") { setTimeout(moveChar, 500, char, charPath); } else { moveChar(char, charPath); } path.done = true; break; } _local1.visited = true; addNode(char, _local1, _local1.x + 1, _local1.y, targetx, targety); addNode(char, _local1, _local1.x - 1, _local1.y, targetx, targety); addNode(char, _local1, _local1.x, _local1.y + 1, targetx, targety); addNode(char, _local1, _local1.x, _local1.y - 1, targetx, targety); } if (path.done) { return(true); } trace("PATH IS BLOCKED!!"); pathBlocked(char, startx, starty, targetx, targety); return(false); } function addNode(char, ob, x, y, targetx, targety) { path.name = (("node_" + y) + "_") + x; if (_root.tileMap[x][y] != undefined) { if (char.type == "human") { if ((_root.tileMap[x][y].walkable != false) || (char == _root.charMap[x][y])) { if (path[path.name].cost == undefined) { var _local3 = Math.abs(x - targetx) + Math.abs(y - targety); path[path.name] = {x:x, y:y, parentx:ob.x, parenty:ob.y, cost:_local3}; var _local2 = 0; while (_local2 < path.Unchecked_Neighbours.length) { if (_local3 < path.Unchecked_Neighbours[_local2].cost) { path.Unchecked_Neighbours.splice(_local2, 0, path[path.name]); break; } _local2++; } if (_local2 >= path.Unchecked_Neighbours.length) { path.Unchecked_Neighbours[path.Unchecked_Neighbours.length] = path[path.name]; } } } } else if ((_root.tileMap[x][y].walkable != false) || (char == _root.charMap[x][y])) { if (_root.tileMap[x][y].deadChar != true) { if (path[path.name].cost == undefined) { var _local3 = Math.abs(x - targetx) + Math.abs(y - targety); path[path.name] = {x:x, y:y, parentx:ob.x, parenty:ob.y, cost:_local3}; var _local2 = 0; while (_local2 < path.Unchecked_Neighbours.length) { if (_local3 < path.Unchecked_Neighbours[_local2].cost) { path.Unchecked_Neighbours.splice(_local2, 0, path[path.name]); break; } _local2++; } if (_local2 >= path.Unchecked_Neighbours.length) { path.Unchecked_Neighbours[path.Unchecked_Neighbours.length] = path[path.name]; } } } } } } function makePath(ob, char) { if ((char.type == "human") && (_root.soundOn == true)) { _root.chooseTileSnd.start(); } resetRange(rangeTiles); game.path = []; charPath = new Array(); while (ob.parentx != null) { game.path[game.path.length] = ob.x; game.path[game.path.length] = ob.y; ob = path[(("node_" + ob.parenty) + "_") + ob.parentx]; charPath.push(_root.display.tiles[(("tile_" + ob.y) + "_") + ob.x]); } if (char.type == "enemy") { if (charPath.length == 1) { if (charPath[0] == char.targetChar.tile) { char.MC.charMC.viewMC.gotoAndStop(1); resetRange(rangeTiles); faceChar(char); prepAttack(char); } else { setTimeout(checkTurn, 500); } } charPath.pop(); targetTile = checkDeadTile(char, charPath); } else { var _local4 = {r:255, g:255, b:255}; targetTile = charPath[charPath.length - 1]; targetTile.range._visible = true; targetTile.range.fluxTint(_local4, 0, 70, 4, true); } moveCount = 0; } function checkDeadTile(char, charPath) { if (char.range > charPath.length) { targetTile = charPath[charPath.length - 1]; } else { targetTile = charPath[char.range - 1]; } if (targetTile.deadChar == true) { charPath.pop(); if (charPath.length == 0) { targetTile = null; faceChar(char); setTimeout(checkTurn, 500); } else if (char.range > charPath.length) { targetTile = charPath[charPath.length - 1]; } else { targetTile = charPath[char.range - 1]; } } var _local3 = {r:255, g:0, b:0}; targetTile.range._visible = true; targetTile.range.fluxTint(_local3, 20, 70, 4, true); return(targetTile); } function pathBlocked(char, startx, starty, targetx, targety) { foundBlockedPath = false; while (foundBlockedPath == false) { randArrNum = Math.floor(Math.random() * rangeTiles.length); if ((rangeTiles[randArrNum].walkable != false) && (rangeTiles[randArrNum] != undefined)) { foundBlockedPath = true; findPath(char, rangeTiles[randArrNum].x, rangeTiles[randArrNum].y, targetx, targety); } else { foundBlockedPath = false; } } } function moveChar(char, charPath) { char.MC.indicator.playerIndicator.removeMovieClip(); if (charPath[moveCount] != undefined) { tileMap[char.x][char.y].walkable = true; charMap[char.x][char.y] = 0; oldX = char.x; oldY = char.y; moveSpeed = 0.4; char.x = charPath[moveCount].x; char.y = charPath[moveCount].y; char.tile = tileMap[char.x][char.y]; charMap[char.x][char.y] = char; charPath[moveCount].walkable = false; char.height = heightMap[char.x][char.y]; xDif = char.MC._x - (charPath[moveCount]._x + 40); yDif = char.MC._y - (charPath[moveCount]._y - 10); var _local2 = new mx.transitions.Tween(_root.display.tiles, "_x", mx.transitions.easing.None.easeNone, _root.display.tiles._x, _root.display.tiles._x + xDif, moveSpeed, true); var _local4 = new mx.transitions.Tween(_root.display.tiles, "_y", mx.transitions.easing.None.easeNone, _root.display.tiles._y, _root.display.tiles._y + yDif, moveSpeed, true); if (checkDirection(char, char.x, oldX, char.y, oldY) == true) { if (char.oldDir != char.dir) { char.MC.charMC.viewMC.gotoAndPlay(2); } halfX = char.MC._x + (((charPath[moveCount]._x + 40) - char.MC._x) / 1.25); halfY = char.MC._y + (((charPath[moveCount]._y - 10) - char.MC._y) / 1.25); var _local3 = new mx.transitions.Tween(char.MC, "_x", mx.transitions.easing.None.easeNone, char.MC._x, halfX, moveSpeed * 0.8, true); var _local5 = new mx.transitions.Tween(char.MC, "_y", mx.transitions.easing.None.easeNone, char.MC._y, halfY, moveSpeed * 0.8, true); _local3.onMotionFinished = function () { char.MC.swapDepths(charPath[moveCount].getDepth() + 1); var _local1 = new mx.transitions.Tween(char.MC, "_x", mx.transitions.easing.None.easeNone, char.MC._x, charPath[moveCount]._x + 40, moveSpeed * 0.17, true); var _local2 = new mx.transitions.Tween(char.MC, "_y", mx.transitions.easing.None.easeNone, char.MC._y, charPath[moveCount]._y - 10, moveSpeed * 0.17, true); _local1.onMotionFinished = function () { doneMove(char, charPath); }; }; } else { if (char.oldDir != char.dir) { char.MC.charMC.viewMC.gotoAndPlay(2); } var _local3 = new mx.transitions.Tween(char.MC, "_x", mx.transitions.easing.None.easeNone, char.MC._x, charPath[moveCount]._x + 40, moveSpeed, true); var _local5 = new mx.transitions.Tween(char.MC, "_y", mx.transitions.easing.None.easeNone, char.MC._y, charPath[moveCount]._y - 10, moveSpeed, true); _local3.onMotionFinished = function () { doneMove(char, charPath); }; char.MC.swapDepths(charPath[moveCount].getDepth() + 1); } } } function doneMove(char) { if (((char.x == charPath[charPath.length - 1].x) && (char.y == charPath[charPath.length - 1].y)) && (char.type == "enemy")) { if (((char.y - char.targetChar.y) == 0) || ((char.x - char.targetChar.x) == 0)) { if (((((char.x - char.targetChar.x) == -1) || ((char.x - char.targetChar.x) == 1)) || ((char.y - char.targetChar.y) == -1)) || ((char.y - char.targetChar.y) == 1)) { char.MC.charMC.viewMC.gotoAndStop(1); targetTile.fluxTint(colObj, 20, 0, 2, false); targetTile.range._visible = false; faceChar(char); resetRange(rangeTiles); prepAttack(char); } else { endTurn(char); } } else { endTurn(char); } } else if (((moveCount != (charPath.length - 1)) && (char.type == "human")) || ((moveCount < (char.range - 1)) && (char.type == "enemy"))) { moveCount++; moveChar(char, charPath); } else { endTurn(char); } } function endTurn(char) { char.MC.charMC.viewMC.gotoAndStop(1); targetTile.range.fluxTint(colObj, 20, 0, 2, false); targetTile.range._visible = false; resetRange(rangeTiles); if (char.type == "human") { if (char.tile.treasure != null) { addTreasure(char.tile.treasure.difficulty); showFoundTreasureAlert(char.tile.treasure.difficulty); char.tile.treasure.removeMovieClip(); char.tile.treasure = null; char.tile.deadChar = false; } else { faceDirection(char); } } else if ((char.type == "enemy") && (char.spells.length > 0)) { enemySpell = getSpellInfo(char.spells[0][0]); spellRangeArr = enemyCheckSpellRange(char, enemySpell); if ((spellRangeArr.length > 0) && (char.MP >= enemySpell.MPCost)) { char.targetChar = spellRangeArr[0]; faceChar(char); setTimeout(enemyCastSpell, 500, char, enemySpell); } else { setTimeout(checkTurn, 500); } } else { char.curDirection = char.MC.charMC._currentframe; setTimeout(checkTurn, 500); } } function hideNotification(notification) { var _local2 = new mx.transitions.Tween(notification, "_alpha", mx.transitions.easing.Regular.easeIn, 100, 0, 0.5, true); _local2.onMotionFinished = function () { notification.removeMovieClip(); }; faceDirection(_root.currentTurn); } function checkDirection(char, X1, X2, Y1, Y2) { char.oldDir = char.dir; if (X1 == X2) { if (Y1 > Y2) { char.MC.charMC.gotoAndStop(1); char.dir = 1; // unexpected jump } char.MC.charMC.gotoAndStop(3); char.dir = 3; return(true); } if (Y1 == Y2) { if (X1 > X2) { char.MC.charMC.gotoAndStop(2); char.dir = 2; } else { char.MC.charMC.gotoAndStop(4); char.dir = 4; return(true); } } } function faceChar(char) { trace((("CHAR X: " + char.x) + " CHAR Y: ") + char.y); trace((("targetChar X: " + char.targetChar.x) + " targetChar Y: ") + char.targetChar.y); if (char.y < char.targetChar.y) { trace((char.name + " IS ABOVE ") + char.targetChar.name); if (char.x > char.targetChar.x) { char.MC.charMC.gotoAndStop(4); char.curDirection = 4; } else { char.MC.charMC.gotoAndStop(1); char.curDirection = 1; } } else if (char.y > char.targetChar.y) { trace((char.name + " IS BELOW ") + char.targetChar.name); if ((char.x > char.targetChar.x) || (char.x == char.targetChar.x)) { char.MC.charMC.gotoAndStop(3); char.curDirection = 3; } else { char.MC.charMC.gotoAndStop(2); char.curDirection = 2; } } else { trace((char.name + " IS SAME Y AS ") + char.targetChar.name); if (char.x < char.targetChar.x) { char.MC.charMC.gotoAndStop(2); char.curDirection = 2; } else { char.MC.charMC.gotoAndStop(4); char.curDirection = 4; } } } function faceDirection(char, endTurnEarly) { _root.currentTurn.hasMoved = true; _root.endTurnEarly = endTurnEarly; checkForTutorial(); var _local10 = _root.display.tiles.createEmptyMovieClip("windowDirection", _root.display.tiles.getNextHighestDepth()); _local10._x = char.MC._x - 40; _local10._y = char.MC._y - 100; _local10.useHandCursor = false; dirButtonArr = new Array(); dirButtonArr = [["dirArrowDR", 50, 25], ["dirArrowDL", 10, 25], ["dirArrowUL", 10, 5], ["dirArrowUR", 50, 5]]; curDirButton = null; d = 0; while (d < dirButtonArr.length) { var _local3 = _local10.attachMovie(dirButtonArr[d][0], dirButtonArr[d][0], d, {_x:dirButtonArr[d][1], _y:dirButtonArr[d][2]}); _local3._height = _local3._height * 1.4; _local3._width = _local3._width * 1.4; _local3.dirFrame = d + 1; _local3.onRollOver = function () { _root.curDirButton.fluxTint(colObj, 0, 0, 0, false); _root.curDirButton.gotoAndStop(1); this.gotoAndStop(2); _root.curDirButton = this; var colObj = {r:255, g:255, b:0}; this.fluxTint(colObj, 0, 70, 15, true); _root.currentTurn.MC.charMC.gotoAndStop(this.dirFrame); }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.currentTurn.curDirection = this.dirFrame; _root.charStats.windowActions.removeMovieClip(); _root.display.tiles.windowDirection.removeMovieClip(); if (_root.endTurnEarly == true) { trace("END EARLY!!"); _root.checkTurn(); } else { trace("DID NOT END EARLY, SHOW ACTIONS"); trace("TUT NUM: " + _root.tutorialNum); _root.currentTurn.hasMoved = true; _root.charStats.attachMovie("windowActions", "windowActions", _root.charStats.getNextHighestDepth(), {_x:50, _y:500}); var _local3 = new mx.transitions.Tween(_root.charStats.windowActions, "_y", mx.transitions.easing.Strong.easeOut, 400, 125, 1, true); _local3.onMotionFinished = function () { _root.checkForTutorial(); }; _root.displayActions(_root.currentTurn); } }; if (_root.currentTurn.MC.charMC._currentframe == (d + 1)) { var colObj = {r:255, g:255, b:0}; _local3.fluxTint(colObj, 0, 70, 15, true); _local3.gotoAndStop(2); _root.curDirButton = _local3; } d++; } } function initCharStats(defName) { switch (defName) { case "Kronus" : char = new Object(); char.name = defName; char.classType = "Knight"; char.lvl = 1; char.HP = 25; char.HPMax = char.HP; char.MP = 0; char.MPMax = char.MP; char.DEF = 3; char.STR = 4; char.MAG = 0; char.EXP = 0; char.SPD = 4; char.LCK = 5; char.range = 3; char.attacks = new Array(); char.attacks = ["SLICE"]; char.spells = new Array(); char.ailments = new Array(); char.WEAPON = null; char.ARMOR = null; char.ACCESSORY = null; return(char); case "Kage" : _root.kongregateStats.submit("AddMage", 1); char = new Object(); char.name = defName; char.classType = "Mage"; char.lvl = 3; char.HP = 50; char.HPMax = char.HP; char.MP = 50; char.MPMax = char.MP; char.DEF = 3; char.STR = 4; char.MAG = 9; char.EXP = 0; char.SPD = 5; char.LCK = 5; char.range = 3; char.attacks = new Array(); char.attacks = ["CLUB"]; char.spells = new Array(); char.spells = [["HEAL"], ["FLAME"]]; char.ailments = new Array(); char.WEAPON = null; char.ARMOR = null; char.ACCESSORY = null; return(char); case "Aryana" : _root.kongregateStats.submit("AddArcher", 1); char = new Object(); char.name = defName; char.classType = "Archer"; char.lvl = 5; char.HP = 60; char.HPMax = char.HP; char.MP = 0; char.MPMax = char.MP; char.DEF = 6; char.STR = 8; char.MAG = 0; char.EXP = 0; char.SPD = 9; char.LCK = 7; char.range = 4; char.attacks = new Array(); char.attacks = ["SHOOT"]; char.spells = new Array(); char.ailments = new Array(); char.WEAPON = null; char.ARMOR = null; char.ACCESSORY = null; return(char); } } function getAttackFunc(attackName) { switch (attackName) { case "SLICE" : _root.attackMelee(_root.currentTurn); break; case "CLUB" : _root.attackMelee(_root.currentTurn); break; case "SHOOT" : _root.attackShoot(_root.currentTurn); } } function getCharStats(char, defName) { switch (defName) { case "Kronus" : char.name = defName; char.classType = "Knight"; char.lvl = 1; char.HP = 25; char.HPMax = char.HP; char.MP = 0; char.MPMax = char.MP; char.DEF = 3; char.STR = 4; char.MAG = 0; char.EXP = 0; char.SPD = 4; char.LCK = 5; char.range = 3; char.attacks = new Array(); char.attacks = [["SLICE", _root.attackMelee]]; char.spells = new Array(); char.ailments = new Array(); char.WEAPON = null; char.ARMOR = null; char.ACCESSORY = null; break; case "Kage" : char.name = defName; char.classType = "Mage"; char.lvl = 1; char.HP = 20; char.HPMax = char.HP; char.MP = 50; char.MPMax = char.MP; char.DEF = 1; char.STR = 1; char.MAG = 4; char.EXP = 0; char.SPD = 5; char.LCK = 5; char.range = 3; char.attacks = new Array(); char.attacks = [["CLUB", _root.attackMelee]]; char.spells = new Array(); char.spells = [["HEAL"], ["FLAME"], ["POISON"], ["SHOCK"], ["FREEZE"]]; char.ailments = new Array(); char.WEAPON = null; char.ARMOR = null; char.ACCESSORY = null; break; case "Aryana" : char.name = defName; char.classType = "Archer"; char.lvl = 1; char.HP = 20; char.HPMax = char.HP; char.MP = 0; char.MPMax = char.MP; char.DEF = 2; char.STR = 3; char.MAG = 0; char.EXP = 0; char.SPD = 6; char.LCK = 7; char.range = 4; char.attacks = new Array(); char.attacks = [["SHOOT", _root.attackShoot]]; char.spells = new Array(); char.ailments = new Array(); char.WEAPON = null; char.ARMOR = null; char.ACCESSORY = null; } } function expList(level) { switch (level) { case 1 : return(12); case 2 : return(50); case 3 : return(90); case 4 : return(160); case 5 : return(300); case 6 : return(500); case 7 : return(800); case 8 : return(1200); case 9 : return(1600); case 10 : return(2100); case 11 : return(2500); case 12 : return(3000); case 13 : return(3600); case 14 : return(4400); case 15 : return(5200); case 16 : return(6200); case 17 : return(7500); case 18 : return(9000); case 19 : return(11000); } return(20000); } function levelUpStats(char) { if (_root.soundOn == true) { _root.levelupSnd.start(); } switch (char.classType) { case "Knight" : if (char.lvl == 2) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.STR = char.STR + 1; char.LCK = char.LCK + 1; } else if (char.lvl == 3) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.SPD = char.SPD + 1; } else if (char.lvl == 4) { char.HPMax = char.HPMax + 5; char.STR = char.STR + 1; char.SPD = char.SPD + 1; } else if (char.lvl == 5) { char.HPMax = char.HPMax + 5; char.STR = char.STR + 1; char.DEF = char.DEF + 1; } else if (char.lvl == 6) { char.HPMax = char.HPMax + 5; char.STR = char.STR + 1; char.DEF = char.DEF + 1; char.SPD = char.SPD + 1; } else if (char.lvl == 7) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; } else if (char.lvl == 8) { char.HPMax = char.HPMax + 5; char.STR = char.STR + 1; } else if (char.lvl == 9) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.LCK = char.LCK + 1; } else if (char.lvl == 10) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.STR = char.STR + 1; } else { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.STR = char.STR + 1; } break; case "Mage" : if (char.lvl == 4) { char.HPMax = char.HPMax + 5; char.MPMax = char.MPMax + 5; char.MAG = char.MAG + 1; } else if (char.lvl == 4) { char.HPMax = char.HPMax + 5; char.MPMax = char.MPMax + 2; char.STR = char.STR + 1; char.MAG = char.MAG + 1; } else if (char.lvl == 5) { char.HPMax = char.HPMax + 2; char.MPMax = char.MPMax + 2; char.DEF = char.DEF + 1; char.MAG = char.MAG + 1; } else if (char.lvl == 6) { char.HPMax = char.HPMax + 5; char.MPMax = char.MPMax + 5; char.SPD = char.SPD + 1; } else if (char.lvl == 7) { char.HPMax = char.HPMax + 5; char.MPMax = char.MPMax + 2; char.STR = char.STR + 1; char.MAG = char.MAG + 1; } else if (char.lvl == 8) { char.HPMax = char.HPMax + 5; char.MPMax = char.MPMax + 5; char.SPD = char.SPD + 1; } else if (char.lvl == 9) { char.HPMax = char.HPMax + 5; char.MPMax = char.MPMax + 2; char.STR = char.STR + 1; char.MAG = char.MAG + 1; } else if (char.lvl == 10) { char.HPMax = char.HPMax + 2; char.MPMax = char.MPMax + 5; char.DEF = char.DEF + 1; char.MAG = char.MAG + 1; } else { char.HPMax = char.HPMax + 2; char.MPMax = char.MPMax + 2; char.DEF = char.DEF + 1; char.MAG = char.MAG + 1; } break; case "Archer" : if (char.lvl == 2) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.STR = char.STR + 1; char.LCK = char.LCK + 1; } else if (char.lvl == 3) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.SPD = char.SPD + 1; } else if (char.lvl == 4) { char.HPMax = char.HPMax + 5; char.STR = char.STR + 1; char.SPD = char.SPD + 1; } else if (char.lvl == 5) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; } else if (char.lvl == 6) { char.HPMax = char.HPMax + 5; char.STR = char.STR + 1; char.SPD = char.SPD + 1; } else if (char.lvl == 7) { char.HPMax = char.HPMax + 5; char.SPD = char.SPD + 1; } else if (char.lvl == 8) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.STR = char.STR + 1; } else if (char.lvl == 9) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.LCK = char.LCK + 1; } else if (char.lvl == 10) { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.STR = char.STR + 1; } else { char.HPMax = char.HPMax + 5; char.DEF = char.DEF + 1; char.STR = char.STR + 1; } } } function getEnemyStats(type) { enemy = new Object(); switch (type) { case "beetle1" : enemy.name = "Mutant Beetle"; enemy.lvl = 1; enemy.HP = 15; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 1; enemy.STR = 4; enemy.WEP = 0; enemy.EXP = 4; enemy.GOLD = 5; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 1; enemy.ailments = new Array(); return(enemy); case "beetle2" : enemy.name = "Red Beetle"; enemy.lvl = 1; enemy.HP = 30; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 1; enemy.STR = 6; enemy.WEP = 0; enemy.EXP = 8; enemy.GOLD = 12; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 1; enemy.ailments = new Array(); return(enemy); case "beetle3" : enemy.name = "Super Beetle"; enemy.lvl = 1; enemy.HP = 65; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 4; enemy.STR = 4; enemy.WEP = 0; enemy.EXP = 20; enemy.GOLD = 40; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 2; enemy.ailments = new Array(); return(enemy); case "snake1" : enemy.name = "Garden Snake"; enemy.lvl = 1; enemy.HP = 25; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 1.5; enemy.STR = 5; enemy.WEP = 0; enemy.EXP = 6; enemy.GOLD = 10; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 1; enemy.ailments = new Array(); return(enemy); case "snake2" : enemy.name = "Venom Snake"; enemy.lvl = 1; enemy.HP = 25; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 1.5; enemy.STR = 7; enemy.WEP = 0; enemy.EXP = 25; enemy.GOLD = 30; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 2; enemy.ailments = new Array(); enemy.poisonous = true; return(enemy); case "snake3" : enemy.name = "Anaconda"; enemy.lvl = 1; enemy.HP = 80; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 8; enemy.STR = 8; enemy.WEP = 0; enemy.EXP = 60; enemy.GOLD = 50; enemy.SPD = 10; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 2; enemy.ailments = new Array(); return(enemy); case "mutant1" : enemy.name = "Mutant"; enemy.lvl = 1; enemy.HP = 20; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 2; enemy.STR = 5; enemy.WEP = 0; enemy.EXP = 20; enemy.GOLD = 15; enemy.SPD = 6; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 1; enemy.ailments = new Array(); return(enemy); case "mutant3" : enemy.name = "Mutant Leader"; enemy.lvl = 1; enemy.HP = 100; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 5; enemy.STR = 8; enemy.WEP = 0; enemy.EXP = 100; enemy.GOLD = 100; enemy.SPD = 10; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 1; enemy.ailments = new Array(); return(enemy); case "scorpion1" : enemy.name = "Scorpion"; enemy.lvl = 1; enemy.HP = 40; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 6; enemy.STR = 7; enemy.WEP = 0; enemy.EXP = 40; enemy.GOLD = 35; enemy.SPD = 6; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 2; enemy.ailments = new Array(); return(enemy); case "scorpion2" : enemy.name = "Fire Scorpion"; enemy.lvl = 1; enemy.HP = 65; enemy.HPMax = enemy.HP; enemy.MP = 8; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 8; enemy.STR = 5; enemy.MAG = 10; enemy.WEP = 0; enemy.EXP = 60; enemy.GOLD = 40; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 2; enemy.ailments = new Array(); enemy.poisonous = true; enemy.spells = new Array(); enemy.spells = [["FLAME"]]; return(enemy); case "eyeguy1" : enemy.name = "Eye Guy"; enemy.lvl = 1; enemy.HP = 85; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 7; enemy.STR = 8; enemy.WEP = 0; enemy.EXP = 60; enemy.GOLD = 45; enemy.SPD = 15; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 2; enemy.ailments = new Array(); return(enemy); case "skeleton1" : enemy.name = "Skeleton"; enemy.lvl = 1; enemy.HP = 100; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 10; enemy.STR = 10; enemy.WEP = 0; enemy.EXP = 80; enemy.GOLD = 50; enemy.SPD = 8; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 3; enemy.ailments = new Array(); return(enemy); case "skeleton2" : enemy.name = "Skeletal Mage"; enemy.lvl = 1; enemy.HP = 100; enemy.HPMax = enemy.HP; enemy.MP = 20; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.MAG = 12; enemy.DEF = 8; enemy.STR = 5; enemy.WEP = 0; enemy.EXP = 90; enemy.GOLD = 55; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 3; enemy.ailments = new Array(); enemy.spells = new Array(); enemy.spells = [["SHOCK"]]; return(enemy); case "flameskull1" : enemy.name = "Flaming Skull"; enemy.lvl = 1; enemy.HP = 90; enemy.HPMax = enemy.HP; enemy.MP = 14; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 6; enemy.STR = 4; enemy.MAG = 8; enemy.EXP = 65; enemy.GOLD = 50; enemy.SPD = 10; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 4; enemy.ailments = new Array(); enemy.spells = new Array(); enemy.spells = [["FLAME"]]; return(enemy); case "flameskull2" : enemy.name = "Ether Skull"; enemy.lvl = 1; enemy.HP = 120; enemy.HPMax = enemy.HP; enemy.MP = 14; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 8; enemy.STR = 8; enemy.MAG = 10; enemy.EXP = 75; enemy.GOLD = 60; enemy.SPD = 10; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 4; enemy.ailments = new Array(); enemy.spells = new Array(); enemy.spells = [["SHOCK"]]; return(enemy); case "flameskull3" : enemy.name = "Poison Mist"; enemy.lvl = 1; enemy.HP = 140; enemy.HPMax = enemy.HP; enemy.MP = 25; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 8; enemy.STR = 8; enemy.MAG = 12; enemy.EXP = 100; enemy.GOLD = 70; enemy.SPD = 10; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 4; enemy.ailments = new Array(); enemy.spells = new Array(); enemy.spells = [["POISON"]]; enemy.poisonous = true; return(enemy); case "ogre1" : enemy.name = "Ogre"; enemy.lvl = 1; enemy.HP = 150; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 10; enemy.STR = 10; enemy.WEP = 0; enemy.EXP = 100; enemy.GOLD = 70; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 4; enemy.ailments = new Array(); return(enemy); case "ogre3" : enemy.name = "Ogre Lord"; enemy.lvl = 1; enemy.HP = 300; enemy.HPMax = enemy.HP; enemy.MP = 0; enemy.MPMax = enemy.MP; enemy.lvl = 1; enemy.DEF = 16; enemy.STR = 15; enemy.WEP = 0; enemy.EXP = 600; enemy.GOLD = 500; enemy.SPD = 1; enemy.range = 3; enemy.LCK = 5; enemy.difficulty = 4; enemy.ailments = new Array(); return(enemy); } } function attackMelee(char) { checkForTutorial(); char.MC.fluxTint(colObj, 0, 0, 1, false); checkMelee(char); r = 0; while (r < attackArr.length) { if (attackArr.dead != true) { var colObj = {r:255, g:0, b:0}; attackArr[r].MC.fluxTint(colObj, 0, 60, 5, true); attackArr[r].MC.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (_root.tutorialNum == 4) { _root.tutorialNum++; } _root.resetRange(_root.attackRangeArr); this.enabled = false; this.useHandCursor = false; this.fluxTint(colObj, 0, 0, 1, false); _root.currentTurn.targetChar = this.stats; _root.faceChar(_root.currentTurn); prepAttack(_root.currentTurn); _root.currentTurn.MC.enabled = false; this.enabled = false; }; attackArr[r].MC.onRollOver = function () { this.useHandCursor = true; var _local4 = {r:255, g:255, b:255}; this.fluxTint(_local4, 0, 70, 15, false, 1); var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this.stats, _local3); }; attackArr[r].MC.onRollOut = function () { var _local3 = {r:255, g:0, b:0}; this.fluxTint(_local3, 0, 60, 5, true); _root.charStats.charInfo2.removeMovieClip(); }; } r++; } } function checkMelee(char) { attackRangeArr = new Array(); attackRangeArr = [tileMap[char.x][char.y - 1], tileMap[char.x][char.y + 1], tileMap[char.x - 1][char.y], tileMap[char.x + 1][char.y]]; attackArr = new Array(); m = 0; while (m < attackRangeArr.length) { e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == attackRangeArr[m]) { attackArr.push(enemyArr[e]); } e++; } attackRangeArr[m].range._visible = true; var _local1 = {r:255, g:0, b:0}; attackRangeArr[m].range.fluxTint(_local1, 0, 70, 99, false, 1); m++; } } function prepAttack(char) { disableCharRollOvers(); char.MC.indicator.playerIndicator.removeMovieClip(); addOverlay(char, char.targetChar); if ((char.type == "enemy") && (char.spells.length > 0)) { enemySpell = getSpellInfo(char.spells[0][0]); if (char.MP >= enemySpell.MPCost) { var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local4 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(char.targetChar, _local3); spellShowVS(); setTimeout(prepSpell, 1000, enemySpell, char.targetChar); } else { setTimeout(attackTarget, 250, char); } } else { setTimeout(attackTarget, 0, char); } } function attackTarget(char) { _root.charStats.windowActions.removeMovieClip(); target = char.targetChar; char.missed = checkMiss(char, target); if (char.missed == false) { damage = Math.ceil((0.5 * char.STR) * (char.STR / target.DEF)); criticalHit = checkCriticalHit(char); if (criticalHit == true) { damage = Math.ceil(damage * 1.5); } if (charBehindTarget(char.curDirection, target.curDirection) == true) { damage = Math.ceil(damage * 1.25); } if (char.height > target.height) { damage = Math.ceil(damage * 1.25); } else if (char.height < target.height) { damage = Math.floor(damage * 0.75); } if (damage < 1) { damage = 1; } if (char.type == "enemy") { setTimeout(showTargetInfo, 0, damage, char, target); } else { setTimeout(showVS, 0, char, damage, target); } } else { criticalHit = false; damage = "MISS"; if (char.type == "enemy") { setTimeout(showTargetInfo, 0, damage, char, target); } else { setTimeout(showVS, 0, char, damage, target); } } } function showTargetInfo(damage, char, target) { var _local2 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", 2, {_x:850, _y:440}); var _local4 = new mx.transitions.Tween(_local2, "_x", mx.transitions.easing.Strong.easeOut, _local2._x, 490, 1, true); updateCharacterInfo(target, _local2); setTimeout(showVS, 0, char, damage, target); } function showVS(char, damage, target) { _root.charStats.VS.removeMovieClip(); _root.charStats.attachMovie("VS-MC", "VS", _root.charStats.getNextHighestDepth(), {_x:360, _y:470}); setTimeout(attackAnimation, 300, char, damage, target); } function attackAnimation(char, damage, target) { char.MC.charMC.viewMC.gotoAndPlay("attack"); if (_root.soundOn == true) { if (char.missed != true) { if (char.type == "enemy") { _root.damageSnd.start(); } else if (char.classType == "Knight") { _root.swordSnd.start(); } } else { _root.missSnd.start(); } } setTimeout(displayDamage, 200, damage, target, char); } function checkDeath(char) { if (char.HP <= 0) { char.HP = 0; targetDeath(char); } else if ((_root.currentTurn.type == "human") && (_root.currentTurn.missed != true)) { hitEXP = 2; _root.currentTurn.EXP = _root.currentTurn.EXP + hitEXP; expString = hitEXP + " EXP"; animateEXPPrep(expString, _root.currentTurn, 2); } else { remOverlay(); } } function checkLevelComplete() { if (enemyArr.length == 0) { return(true); } return(false); } function endAttack() { if ((_root.currentTurn.type == "enemy") && (checkGameOver(_root.currentTurn.targetChar) == true)) { gameOverFunc(); } else if (checkLevelComplete() == true) { levelComplete(); } else { resetCharFuncs(); if (_root.currentTurn.type == "enemy") { checkTurn(); } else { _root.currentTurn.hasAttacked = true; _root.charStats.charInfo2.removeMovieClip(); _root.charStats.VS.removeMovieClip(); showActions(currentTurn); } } } function checkGameOver(char) { if ((char.classType == "Knight") && (char.HP <= 0)) { return(true); } return(false); } function targetDeath(deadChar, poisonDeath) { deadChar.dead = true; if (deadChar.type == "enemy") { trace("ENEMY DIED"); enemiesKilledCount++; if (enemiesKilledCount == 100) { warriorGuildCount++; } removeEnemyFromArray(deadChar); if (poisonDeath != true) { _root.currentTurn.EXP = _root.currentTurn.EXP + deadChar.EXP; expString = deadChar.EXP + " EXP"; animateEXPPrep(expString, _root.currentTurn, 2); } else { trace("GIVE KAGE EXP"); d = 0; while (d < defenderArr.length) { if (defenderArr[d].name == "Kage") { trace("FOUND KAGE, GIVE EXP"); defenderArr[d].EXP = defenderArr[d].EXP + deadChar.EXP; expString = deadChar.EXP + " EXP"; animateEXPPoison(expString, defenderArr[d], 2); break; } d++; } } levelGold = levelGold + deadChar.GOLD; if (poisonDeath != true) { if (enemyArr.length > 0) { dropTreasure = rollTreasure(); } } a = 0; while (a < deadChar.ailments.length) { if (deadChar.ailments[a] == "frozen") { deadChar.freezeMC.removeMovieClip(); } a++; } } else if (deadChar.type == "human") { if (_root.soundOn == true) { _root.deathSnd.start(); } dropTreasure = false; if (poisonDeath != true) { setTimeout(remOverlay, 750); } } t = 0; while (t < turnArr.length) { trace("LOOPING TO FIND: " + deadChar.turnArrName); if (turnArr[t][0].turnArrName == deadChar.turnArrName) { trace("REMOVE: " + turnArr[t][0].turnArrName); turnArr.splice(t, 1); break; } t++; } tileMap[deadChar.x][deadChar.y].walkable = true; tileMap[deadChar.x][deadChar.y].deadChar = true; deadChar.dead = true; deadChar.enabled = false; deadChar.MC.charMC.gotoAndStop("dead"); } function checkMiss(char, target) { if (charBehindTarget(char.curDirection, target.curDirection) == true) { return(false); } randRoll = Math.floor(Math.random() * 100); evasionRate = (target.SPD - char.SPD) * 5; if (evasionRate < 0) { evasionRate = 5; } if (randRoll < evasionRate) { return(true); } return(false); } function checkCriticalHit(char) { randRoll = Math.floor(Math.random() * 100); if (randRoll <= char.LCK) { return(true); } return(false); } function rollPoison() { randRoll = Math.floor(Math.random() * 100); if (randRoll <= 25) { return(true); } return(false); } function charBehindTarget(charDir, targetDir) { if (charDir == targetDir) { return(true); } return(false); } function displayDamage(damage, target, char) { damageArr = damage.toString().split(""); _root.display.tiles.createEmptyMovieClip("damageTxt", _root.display.tiles.getNextHighestDepth()); wordWidth = 0; if (criticalHit == true) { animateCritPrep("CRITICAL!", target, 1); } if (damage == 0) { _root.display.tiles.damageTxt._visible = false; } d = 0; while (d < damageArr.length) { var _local3 = _root.display.tiles.damageTxt.attachMovie("damageTxt", "damageTxt" + d, _root.display.tiles.damageTxt.getNextHighestDepth(), {_x:wordWidth + (target.MC._x - (damageArr.length * 7)), _y:(target.MC._y - target.MC._height) + 5}); _local3._width = _local3._width * 1.6; _local3._height = _local3._height * 1.6; _local3.num = d + 1; if (char.missed == true) { _local3.gotoAndStop(3); } _local3.txt.text = damageArr[d]; _local3.txt.autoSize = true; wordWidth = wordWidth + (_local3.txt._width + 2); setTimeout(animateDamage, d * 100, _local3, target); d++; } if (char.missed != true) { target.HP = target.HP - damage; if (target.HP < 0) { target.HP = 0; } trace("LOCAL HP: " + defenderArr[0].HP); trace("SAVE HP: " + game.data.defenderArr[0].HP); updateCharacterInfo(target, _root.charStats.charInfo2); if (damage != 0) { var _local9 = {r:255, g:255, b:255}; _root.charStats.charInfo2.meterHP.fluxTint(_local9, 0, 100, 35, true, 1); _local9 = {r:255, g:0, b:0}; target.fluxTint(_local9, 0, 70, 15, true, 1); if (target.type == "human") { shakeCount = 0; var _local8 = new mx.transitions.Tween(_root.display.tiles, "_x", mx.transitions.easing.Bounce.easeIn, _root.display.tiles._x, _root.display.tiles._x + 7, 0.05, true); _local8.onMotionFinished = function () { shakeCount++; if (shakeCount < 5) { this.yoyo(); } }; if (char.poisonous == true) { if (rollPoison() == true) { spellPoisonAnim(target); } } } else { shakeCount = 0; shakeStartX = target.MC._x; var _local8 = new mx.transitions.Tween(target.MC, "_x", mx.transitions.easing.Bounce.easeIn, target.MC._x, target.MC._x + 5, 0.05, true); _local8.onMotionFinished = function () { shakeCount++; if (shakeCount < 5) { this.yoyo(); } else { trace("Stop the SHAKE"); trace((("CUR X: " + target.MC._x) + " ORIG X: ") + shakeStartX); target.MC._x = shakeStartX; } }; } } } } function animateDamage(txt, target) { dmgTxtTween = new mx.transitions.Tween(txt, "_y", mx.transitions.easing.Elastic.easeOut, txt._y, txt._y - 15, 1.5, true); if (txt.num == damageArr.length) { dmgTxtTween.onMotionFinished = function () { _root.display.tiles.damageTxt.removeMovieClip(); setTimeout(checkDeath, 125, target); }; } } function animateEXPPrep(expAmt, target, frame) { if ((_root.soundOn == true) && (expAmt != "LEVEL UP")) { _root.expSnd.start(); } expArr = expAmt.toString().split(""); _root.display.tiles.createEmptyMovieClip("expTxt", _root.display.tiles.getNextHighestDepth()); wordWidth2 = 0; d = 0; while (d < expArr.length) { var _local2 = _root.display.tiles.expTxt.attachMovie("damageTxt", "expTxt" + d, _root.display.tiles.expTxt.getNextHighestDepth(), {_x:wordWidth2 + (target.MC._x - (expArr.length * 6)), _y:target.MC._y - target.MC._height}); _local2.num = d + 1; _local2.gotoAndStop(frame); _local2.txt.text = expArr[d]; _local2.txt.autoSize = true; _local2._width = _local2._width * 1.2; _local2._height = _local2._height * 1.2; wordWidth2 = wordWidth2 + (_local2.txt._width - 2); setTimeout(animateEXPTxt, d * 100, _local2, target); d++; } } function animateEXPTxt(txt, target) { expTxtTween = new mx.transitions.Tween(txt, "_y", mx.transitions.easing.Elastic.easeOut, txt._y, txt._y - 10, 1.5, true); if (txt.num == expArr.length) { expTxtTween.onMotionFinished = function () { _root.display.tiles.expTxt.removeMovieClip(); checkLevelUp(_root.currentTurn); }; } } function animateCritPrep(critTxt, target, frame) { critTxtArr = critTxt.toString().split(""); _root.display.tiles.createEmptyMovieClip("critTxt", _root.display.tiles.getNextHighestDepth()); wordWidth2 = 0; d = 0; while (d < critTxtArr.length) { var _local2 = _root.display.tiles.critTxt.attachMovie("damageTxt", "critTxt" + d, _root.display.tiles.critTxt.getNextHighestDepth(), {_x:wordWidth2 + (target.MC._x - (critTxtArr.length * 4)), _y:(target.MC._y - target.MC._height) - 15}); _local2._width = _local2._width * 1; _local2._height = _local2._height * 1; _local2.num = d + 1; _local2.gotoAndStop(frame); _local2.txt.text = critTxtArr[d]; _local2.txt.autoSize = true; wordWidth2 = wordWidth2 + (_local2.txt._width - 2); setTimeout(animateCritTxt, d * 75, _local2, target); d++; } } function animateCritTxt(txt, target) { critTxtTween = new mx.transitions.Tween(txt, "_y", mx.transitions.easing.Elastic.easeOut, txt._y, txt._y - 10, 1.5, true); if (txt.num == critTxtArr.length) { critTxtTween.onMotionFinished = function () { _root.display.tiles.critTxt.removeMovieClip(); }; } } function animateEXPPoison(expAmt, target, frame) { if ((_root.soundOn == true) && (expAmt != "LEVEL UP")) { _root.expSnd.start(); } expArr = expAmt.toString().split(""); _root.display.tiles.createEmptyMovieClip("expTxt", _root.display.tiles.getNextHighestDepth()); wordWidth2 = 0; d = 0; while (d < expArr.length) { var _local2 = _root.display.tiles.expTxt.attachMovie("damageTxt", "expTxt" + d, _root.display.tiles.expTxt.getNextHighestDepth(), {_x:wordWidth2 + (target.MC._x - (expArr.length * 6)), _y:target.MC._y - target.MC._height}); _local2.num = d + 1; _local2.gotoAndStop(frame); _local2.txt.text = expArr[d]; _local2.txt.autoSize = true; _local2._width = _local2._width * 1.2; _local2._height = _local2._height * 1.2; wordWidth2 = wordWidth2 + (_local2.txt._width - 2); setTimeout(animateEXPPoisonTxt, d * 100, _local2, target); d++; } } function animateEXPPoisonTxt(txt, target) { expTxtTween = new mx.transitions.Tween(txt, "_y", mx.transitions.easing.Elastic.easeOut, txt._y, txt._y - 10, 1.5, true); if (txt.num == expArr.length) { expTxtTween.onMotionFinished = function () { _root.display.tiles.expTxt.removeMovieClip(); }; } } function attackShoot(char) { checkShootRange(char); } function checkShootRange(char) { shootRange = 4; attackRangeArr = new Array(); attackArr = new Array(); rangeCount = 1; down = false; i = char.x - shootRange; while (i < ((char.x + shootRange) + 1)) { var _local2 = {r:255, g:0, b:0}; i2 = char.y; while (i2 < (rangeCount + char.y)) { tileMap[i][i2].range._visible = true; tileMap[i][i2].range.fluxTint(_local2, 0, 70, 99, false, 1); attackRangeArr.push(tileMap[i][i2]); e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == tileMap[i][i2]) { attackArr.push(enemyArr[e]); } e++; } e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i2]) { attackArr.push(defenderLevelArr[e]); } e++; } i2++; } i3 = char.y; while (i3 > (char.y - rangeCount)) { tileMap[i][i3].range._visible = true; tileMap[i][i3].range.fluxTint(_local2, 0, 70, 99, false, 1); attackRangeArr.push(tileMap[i][i3]); e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == tileMap[i][i3]) { attackArr.push(enemyArr[e]); } e++; } e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i3]) { attackArr.push(defenderLevelArr[e]); } e++; } i3--; } if (rangeCount < (shootRange + 1)) { if (down != true) { rangeCount++; } else { rangeCount--; } } else { down = true; rangeCount--; } i++; } shootEnemiesInRange(spell); } function shootEnemiesInRange(spell) { r = 0; while (r < attackArr.length) { if (attackArr[r].type == "human") { attackArr[r].MC.enabled = false; attackArr[r].MC._alpha = 50; } else { var colObj = {r:255, g:0, b:0}; attackArr[r].MC.fluxTint(colObj, 0, 60, 5, true); attackArr[r].MC.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.enabled = false; this.useHandCursor = false; _root.currentTurn._alpha = 100; _root.currentTurn.targetChar = this.stats; trace(_root.currentTurn.targetChar); _root.faceChar(_root.currentTurn); _root.resetRange(_root.attackRangeArr); _root.disableCharRollOvers(); this.fluxTint(colObj, 0, 0, 1, false); _root.spellShowVS(); _root.currentTurn.MC.indicator.playerIndicator.removeMovieClip(); _root.addOverlay(_root.currentTurn, this.stats); setTimeout(archerAnimation, 2000, _root.currentTurn); setTimeout(arrowAnimation, 2250, _root.currentTurn, this.stats); }; attackArr[r].MC.onRollOver = function () { this.useHandCursor = true; var _local4 = {r:255, g:255, b:255}; this.fluxTint(_local4, 0, 70, 15, false, 1); var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this.stats, _local3); }; attackArr[r].MC.onRollOut = function () { var _local3 = {r:255, g:0, b:0}; this.fluxTint(_local3, 0, 60, 5, true); _root.charStats.charInfo2.removeMovieClip(); }; } r++; } } function archerAnimation(char) { if (_root.soundOn == true) { if (char.missed != true) { _root.archerSnd.start(); } } char.MC.charMC.viewMC.gotoAndPlay("attack"); } function arrowAnimation(char, target) { arrowMC = _root.display.tiles.attachMovie("arrowMC", "arrowMC", _root.display.tiles.getNextHighestDepth()); myPath = new Path(char.MC._x, char.MC._y); myPath.moveTo(char.MC._x, char.MC._y); myPath.curveTo((char.MC._x + target.MC._x) / 2, (char.MC._y + target.MC._y) / 5, target.MC._x, target.MC._y); arrowSpeed = 10 / myPath._length; t = 0; arrowMC.onEnterFrame = function () { t = t + arrowSpeed; if (t > 1) { t = 0; } myPath.traverse(this, t, true); }; } function archerArrowAnimEnd() { char = _root.currentTurn; target = _root.currentTurn.targetChar; char.missed = checkMiss(char, target); if (char.missed == false) { damage = Math.ceil((0.5 * char.STR) * (char.STR / target.DEF)); criticalHit = checkCriticalHit(char); if (criticalHit == true) { damage = Math.ceil(damage * 1.5); } if (charBehindTarget(char.curDirection, target.curDirection) == true) { damage = Math.ceil(damage * 1.25); } if (char.height > target.height) { damage = Math.ceil(damage * 1.25); } else if (char.height < target.height) { damage = Math.floor(damage * 0.75); } if (damage < 0) { damage = 0; } } else { criticalHit = false; damage = "MISS"; } setTimeout(displayDamage, 0, damage, target, char); } function getSpellInfo(spellName) { switch (spellName) { case "HEAL" : thisSpell = new Object(); thisSpell.NAME = "HEAL"; thisSpell.FUNC = _root.spellHeal; thisSpell.RANGE = 4; thisSpell.STR = 20; thisSpell.MPCost = 6; return(thisSpell); case "FLAME" : thisSpell = new Object(); thisSpell.NAME = "FLAME"; thisSpell.FUNC = _root.spellFlame; thisSpell.RANGE = 4; thisSpell.STR = 0.5; thisSpell.MPCost = 6; return(thisSpell); case "POISON" : thisSpell = new Object(); thisSpell.NAME = "POISON"; thisSpell.FUNC = _root.spellPoison; thisSpell.RANGE = 5; thisSpell.MPCost = 8; return(thisSpell); case "FREEZE" : thisSpell = new Object(); thisSpell.NAME = "FREEZE"; thisSpell.FUNC = _root.spellFreeze; thisSpell.RANGE = 4; thisSpell.MPCost = 12; return(thisSpell); case "SHOCK" : thisSpell = new Object(); thisSpell.NAME = "SHOCK"; thisSpell.FUNC = _root.spellShock; thisSpell.RANGE = 4; thisSpell.STR = 0.8; thisSpell.MPCost = 12; return(thisSpell); } } function prepSpell(spell, target) { itemTxt = _root.interfaceMC.createEmptyMovieClip("itemTxt", _root.interfaceMC.getNextHighestDepth()); addText(itemTxt, "tfield", 0, 60, 800, 60, spell.NAME, 30, 16777215); itemTxt._alpha = 0; var _local3 = new mx.transitions.Tween(itemTxt, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1.5, true); _local3.onMotionFinished = function () { var _local1 = new mx.transitions.Tween(itemTxt, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 1, true); _local1.onMotionFinished = function () { setTimeout(spell.FUNC, 100, target, spell.STR); setTimeout(removeCharMana, 700, spell.MPCost); }; }; } function removeCharMana(spellCost) { _root.currentTurn.MP = _root.currentTurn.MP - spellCost; updateCharacterInfo(_root.currentTurn, _root.charStats.charInfo); } function checkSpellRange(spell, char) { if (spell.NAME != "HEAL") { checkSpellRangeEnemy(char, spell); } else { checkSpellRangeHuman(char, spell); } } function checkSpellRangeEnemy(char, spell) { attackRangeArr = new Array(); attackArr = new Array(); rangeCount = 1; down = false; i = char.x - spell.RANGE; while (i < ((char.x + spell.RANGE) + 1)) { var _local2 = {r:255, g:0, b:0}; i2 = char.y; while (i2 < (rangeCount + char.y)) { tileMap[i][i2].range._visible = true; tileMap[i][i2].range.fluxTint(_local2, 0, 70, 99, false, 1); attackRangeArr.push(tileMap[i][i2]); e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == tileMap[i][i2]) { attackArr.push(enemyArr[e]); } e++; } e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i2]) { attackArr.push(defenderLevelArr[e]); } e++; } i2++; } i3 = char.y; while (i3 > (char.y - rangeCount)) { tileMap[i][i3].range._visible = true; tileMap[i][i3].range.fluxTint(_local2, 0, 70, 99, false, 1); attackRangeArr.push(tileMap[i][i3]); e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == tileMap[i][i3]) { attackArr.push(enemyArr[e]); } e++; } e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i3]) { attackArr.push(defenderLevelArr[e]); } e++; } i3--; } if (rangeCount < (spell.RANGE + 1)) { if (down != true) { rangeCount++; } else { rangeCount--; } } else { down = true; rangeCount--; } i++; } spellEnemiesInRange(spell); } function spellEnemiesInRange(spell) { r = 0; while (r < attackArr.length) { if ((attackArr[r].type == "human") || (attackArr[r].dead == true)) { attackArr[r].MC.enabled = false; attackArr[r].MC._alpha = 50; } else { var colObj = {r:255, g:0, b:0}; attackArr[r].MC.fluxTint(colObj, 0, 60, 5, true); attackArr[r].MC.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.enabled = false; this.useHandCursor = false; _root.currentTurn._alpha = 100; _root.resetRange(_root.attackRangeArr); _root.currentTurn.targetChar = this.stats; _root.faceChar(_root.currentTurn); _root.disableCharRollOvers(); this.fluxTint(colObj, 0, 0, 1, false); _root.spellShowVS(); _root.addOverlay(_root.currentTurn, this.stats); setTimeout(prepSpell, 750, spell, this.stats); }; attackArr[r].MC.onRollOver = function () { this.useHandCursor = true; var _local4 = {r:255, g:255, b:255}; this.fluxTint(_local4, 0, 70, 15, false, 1); var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this.stats, _local3); }; attackArr[r].MC.onRollOut = function () { var _local3 = {r:255, g:0, b:0}; this.fluxTint(_local3, 0, 60, 5, true); _root.charStats.charInfo2.removeMovieClip(); }; } r++; } } function checkSpellRangeHuman(char, spell) { attackRangeArr = new Array(); attackArr = new Array(); rangeCount = 1; down = false; i = char.x - spell.RANGE; while (i < ((char.x + spell.RANGE) + 1)) { var _local2 = {r:255, g:66, b:239}; i2 = char.y; while (i2 < (rangeCount + char.y)) { tileMap[i][i2].range._visible = true; tileMap[i][i2].range.fluxTint(_local2, 0, 50, 99, false, 1); attackRangeArr.push(tileMap[i][i2]); e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i2]) { attackArr.push(defenderLevelArr[e]); } e++; } e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == tileMap[i][i2]) { attackArr.push(enemyArr[e]); } e++; } i2++; } i3 = char.y; while (i3 > (char.y - rangeCount)) { tileMap[i][i3].range._visible = true; tileMap[i][i3].range.fluxTint(_local2, 0, 50, 99, false, 1); attackRangeArr.push(tileMap[i][i3]); e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i3]) { attackArr.push(defenderLevelArr[e]); } e++; } e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == tileMap[i][i3]) { attackArr.push(enemyArr[e]); } e++; } i3--; } if (rangeCount < (spell.RANGE + 1)) { if (down != true) { rangeCount++; } else { rangeCount--; } } else { down = true; rangeCount--; } i++; } spellHumansInRange(spell); } function spellHumansInRange(spell) { e = 0; while (e < enemyArr.length) { enemyArr[e].MC.enabled = false; e++; } r = 0; while (r < attackArr.length) { if ((attackArr[r].type == "enemy") || (attackArr[r].dead == true)) { attackArr[r].MC._alpha = 50; attackArr[r].MC.enabled = false; } else { var colObj = {r:255, g:255, b:255}; attackArr[r].MC.fluxTint(colObj, 0, 60, 5, true); attackArr[r].MC.hover.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this._parent.enabled = false; this.useHandCursor = false; _root.resetRange(_root.attackRangeArr); _root.currentTurn.targetChar = this._parent.stats; if (_root.currentTurn.targetChar.name == _root.currentTurn.name) { _root.charStats.charInfo2.removeMovieClip(); } else { _root.faceChar(_root.currentTurn); } _root.disableCharRollOvers(); this._parent.fluxTint(colObj, 0, 0, 1, false); _root.addOverlay(_root.currentTurn, this._parent.stats); setTimeout(prepSpell, 2000, spell, this._parent.stats); }; attackArr[r].MC.hover.onRollOver = function () { this.useHandCursor = true; var _local4 = {r:255, g:255, b:255}; this._parent.fluxTint(_local4, 0, 70, 15, false, 1); if (this._parent != _root.currentTurn) { var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this._parent.stats, _local3); } }; attackArr[r].MC.hover.onRollOut = function () { var _local3 = {r:255, g:255, b:255}; this._parent.fluxTint(_local3, 0, 60, 5, true); _root.charStats.charInfo2.removeMovieClip(); }; } r++; } } function disableCharRollOvers() { r = 0; while (r < defenderLevelArr.length) { defenderLevelArr[r].MC._alpha = 100; defenderLevelArr[r].MC.enabled = false; defenderLevelArr[r].MC.fluxTint(colObj, 0, 0, 1, false); defenderLevelArr[r].MC.attackRange = false; delete defenderLevelArr[r].MC.hover.onRelease; delete defenderLevelArr[r].MC.hover.onRollOver; delete defenderLevelArr[r].MC.hover.onRollOut; r++; } r = 0; while (r < enemyArr.length) { enemyArr[r].MC._alpha = 100; enemyArr[r].MC.enabled = false; enemyArr[r].MC.fluxTint(colObj, 0, 0, 1, false); enemyArr[r].MC.attackRange = false; delete enemyArr[r].MC.onRelease; delete enemyArr[r].MC.onRollOver; delete enemyArr[r].MC.onRollOut; r++; } } function spellShowVS() { _root.charStats.VS.removeMovieClip(); _root.charStats.attachMovie("VS-MC", "VS", _root.charStats.getNextHighestDepth(), {_x:360, _y:470}); } function spellAttack(char, target, spellSTR) { damage = Math.ceil((spellSTR * char.MAG) * (char.MAG / target.DEF)); criticalHit = checkCriticalHit(char); if (criticalHit == true) { damage = Math.ceil(damage * 1.5); } if (char.height > target.height) { damage = Math.ceil(damage * 1.25); } else if (char.height < target.height) { damage = Math.floor(damage * 0.75); } if (damage < 0) { damage = 1; } attackAnimation(char, damage, target); } function spellFlame(target, spellSTR) { _root.currentTurn.targetChar = target; setTimeout(spellAttack, 500, _root.currentTurn, target, spellSTR); setTimeout(spellFlameAnim, 750, target); } function spellFlameAnim(target) { if (_root.soundOn == true) { _root.fireSnd.start(); } var _local2 = _root.display.tiles.attachMovie("flameMC", "flameMC", _root.display.tiles.getNextHighestDepth()); _local2._x = target.MC._x - 20; _local2._y = target.MC._y - 20; } function spellHeal(target, spellSTR) { _root.currentTurn.targetChar = target; if (_root.currentTurn.name == target.name) { attackAnimation(_root.currentTurn, 0, target); setTimeout(spellHealAnim, 500, _root.currentTurn, _root.charStats.charInfo, spellSTR); } else { attackAnimation(_root.currentTurn, 0, target, false); setTimeout(spellHealAnim, 500, target, _root.charStats.charInfo2, spellSTR); } } function spellHealAnim(target, infoBox, spellSTR) { if (_root.soundOn == true) { _root.healSnd.start(); } if ((target.HP + spellSTR) > target.HPMax) { target.HP = target.HPMax; } else { target.HP = target.HP + spellSTR; } animateItemTxtPrep(spellSTR + " HP", target, 7); updateCharacterInfo(target, infoBox); var _local3 = {r:255, g:255, b:255}; _root.charStats.charInfo2.meterHP.fluxTint(_local3, 0, 100, 20, true, 1); target.MC.fluxTint(_local3, 0, 100, 20, true, 1); } function spellShock(target, spellSTR) { _root.currentTurn.targetChar = target; setTimeout(spellAttack, 500, _root.currentTurn, target, spellSTR); setTimeout(spellShockAnim, 500, target); } function spellShockAnim(target) { if (_root.soundOn == true) { _root.lightningSnd.start(); } var _local2 = _root.display.tiles.attachMovie("spellLightningMC", "spellLightningMC", _root.display.tiles.getNextHighestDepth()); _local2._x = target.MC._x - 300; _local2._y = target.MC._y - 560; } function spellPoison(target) { _root.currentTurn.targetChar = target; attackAnimation(_root.currentTurn, 0, target); setTimeout(spellPoisonAnim, 500, target); } function spellPoisonAnim(target) { if (_root.soundOn == true) { _root.poisonSnd.start(); } _root.display.tiles.attachMovie("poisonSmokeMC", "poisonSmokeMC", _root.display.tiles.getNextHighestDepth(), {_x:target.MC._x - (target.MC._width / 2), _y:target.MC._y - (target.MC._height / 2)}); if (checkIfPoisoned(target) == false) { target.ailments.push("poison"); } var _local3 = {r:31, g:211, b:0}; target.MC.charMC.fluxTint(_local3, 0, 60, 5, true); } function checkIfPoisoned(target) { a = 0; while (a < target.ailments.length) { if (target.ailments[a] == "poison") { return(true); } a++; } return(false); } function spellFreeze(target) { _root.currentTurn.targetChar = target; attackAnimation(_root.currentTurn, 0, target); setTimeout(spellFreezeAnim, 200, target); } function spellFreezeAnim(target) { if (_root.soundOn == true) { _root.freezeSnd.start(); } target.ailments.push("frozen"); freezeMC = _root.display.tiles.attachMovie("spellFreezeMC", "spellFreezeMC" + target.num, target.MC.getDepth() + 3, {_x:_root.display.tiles[(("tile_" + target.y) + "_") + target.x]._x + 15, _y:_root.display.tiles[(("tile_" + target.y) + "_") + target.x]._y - 55}); target.freezeMC = freezeMC; target.freezeAmt = 2; } function checkFrozen(char) { a = 0; while (a < char.ailments.length) { if (char.ailments[a] == "frozen") { char.freezeAmt--; if (char.freezeAmt == 0) { char.ailments.splice(a, 1); char.freezeMC.removeMovieClip(); } else { charTurn++; } break; } a++; } } function enemyCheckSpellRange(char, spell) { attackRangeArr = new Array(); attackArr = new Array(); rangeCount = 1; down = false; i = char.x - spell.RANGE; while (i < ((char.x + spell.RANGE) + 1)) { i2 = char.y; while (i2 < (rangeCount + char.y)) { attackRangeArr.push(tileMap[i][i2]); e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i2]) { trace(defenderLevelArr[e].name + " IS IN RANGE!!!"); attackArr.push(defenderLevelArr[e]); } e++; } i2++; } i3 = char.y; while (i3 > (char.y - rangeCount)) { attackRangeArr.push(tileMap[i][i3]); e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i3]) { trace(defenderLevelArr[e].name + " IS IN RANGE!!!"); attackArr.push(defenderLevelArr[e]); } e++; } i3--; } if (rangeCount < (spell.RANGE + 1)) { if (down != true) { rangeCount++; } else { rangeCount--; } } else { down = true; rangeCount--; } i++; } return(attackArr); } function enemyCastSpell(char, enemySpell) { disableCharRollOvers(); char.MC.indicator.playerIndicator.removeMovieClip(); addOverlay(char, char.targetChar); var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local4 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(char.targetChar, _local3); spellShowVS(); setTimeout(prepSpell, 700, enemySpell, char.targetChar); } function loadTitleScreen() { if (_root.soundOn == true) { _root.worldMapMusic.stop(); _root.levelMusic.stop(); _root.themeMusicSnd.start(0, 999); } themeMusicOn = true; _root.attachMovie("titleScreenMC", "titleScreen", 1); themeMusicButton = titleScreen.attachMovie("themeMusicButton", "themeMusicButton", titleScreen.getNextHighestDepth(), {_x:697, _y:566}); themeMusicButton.onRelease = function () { if (_root.themeMusicOn == true) { _root.themeMusicSnd.stop(); _root.themeMusicOn = false; _root.soundOn = false; this._alpha = 30; } else { _root.themeMusicSnd.start(0, 999); _root.themeMusicOn = true; _root.soundOn = true; this._alpha = 100; } }; titleLikwidGames = titleScreen.attachMovie("titleLikwidGames", "titleLikwidGames", titleScreen.getNextHighestDepth(), {_x:616, _y:22}); titleLikwidGames.onRelease = function () { getURL ("http://www.likwidgames.com", "_blank"); }; titleScreen._alpha = 0; var _local3 = new mx.transitions.Tween(titleScreen, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 5, true); newButtonMC = titleScreen.createEmptyMovieClip("newButtonMC", titleScreen.getNextHighestDepth()); addText(newButtonMC, "newTxt", 100, 520, 150, 20, "New Game", 24, 16777215, false); newButtonMC.onRollOver = function () { this.newTxt.textColor = 16770048 /* 0xFFE400 */; }; newButtonMC.onRollOut = function () { this.newTxt.textColor = 16777215 /* 0xFFFFFF */; }; newButtonMC.onPress = function () { this.newTxt.textColor = 16777215 /* 0xFFFFFF */; _root.titleScreen.newButtonMC.enabled = false; _root.titleScreen.continueButtonMC.enabled = false; mySave.clear(); initVars(); initGame(); _root.interfaceMC._visible = false; var _local3 = new mx.transitions.Tween(titleScreen, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 5, true); _local3.onMotionFinished = function () { _root.interfaceMC._visible = true; _root.loadWorldMap(levelsUnlocked); }; }; continueButtonMC = titleScreen.createEmptyMovieClip("continueButtonMC", titleScreen.getNextHighestDepth()); addText(continueButtonMC, "contTxt", 330, 520, 150, 20, "Continue", 24, 16777215, false); if (mySave.data.timePlayed != undefined) { continueButtonMC.onRollOver = function () { this.contTxt.textColor = 16770048 /* 0xFFE400 */; }; continueButtonMC.onRollOut = function () { this.contTxt.textColor = 16777215 /* 0xFFFFFF */; }; continueButtonMC.onPress = function () { this.contTxt.textColor = 16777215 /* 0xFFFFFF */; _root.titleScreen.newButtonMC.enabled = false; _root.titleScreen.continueButtonMC.enabled = false; loadSavedVars(); initGame(); _root.interfaceMC._visible = false; var _local3 = new mx.transitions.Tween(titleScreen, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 5, true); _local3.onMotionFinished = function () { _root.interfaceMC._visible = true; _root.loadWorldMap(levelsUnlocked); }; }; } else { continueButtonMC._alpha = 38; } moreGamesButtonMC = titleScreen.createEmptyMovieClip("moreGamesButtonMC", titleScreen.getNextHighestDepth()); addText(moreGamesButtonMC, "newTxt", 550, 520, 300, 20, "More Games", 24, 16777215, false); moreGamesButtonMC.onRollOver = function () { this.newTxt.textColor = 16770048 /* 0xFFE400 */; }; moreGamesButtonMC.onRollOut = function () { this.newTxt.textColor = 16777215 /* 0xFFFFFF */; }; moreGamesButtonMC.onPress = function () { getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1367&subid=titleScreenLink", "_blank"); }; } function turnOrder(rec1, rec2) { var _local2; var _local1; _local2 = rec1[1]; _local1 = rec2[1]; if (_local2 > _local1) { return(-1); } if (_local1 > _local2) { return(1); } return(0); } function checkTurn() { dropTreasure = false; resetEnemyRange(); screenMoverMC._visible = false; checkCharAilments(_root.currentTurn); } function checkCharAilments(char) { if (_root.currentTurn.ailments.length > 0) { a = 0; while (a < char.ailments.length) { if (char.ailments[a] == "poison") { var _local3 = {r:31, g:211, b:0}; char.MC.charMC.fluxTint(_local3, 0, 60, 5, true); char.MC.indicator.playerIndicator.removeMovieClip(); setTimeout(ailmentPoison, 500, char); break; } a++; } } else { nextTurn(); } } function nextTurn() { var _local6 = new mx.transitions.Tween(_root.charStats.charInfo, "_x", mx.transitions.easing.Strong.easeOut, _root.charStats.charInfo._x, -350, 0.75, true); var _local7 = new mx.transitions.Tween(_root.charStats.charInfo2, "_x", mx.transitions.easing.Strong.easeOut, _root.charStats.charInfo2._x, 850, 0.75, true); _root.charStats.VS.removeMovieClip(); checkFrozen(turnArr[charTurn][0]); if (charTurn > (turnArr.length - 1)) { charTurn = 0; } _root.currentTurn.MC.indicator.playerIndicator.removeMovieClip(); char = turnArr[charTurn][0]; _root.currentTurn = char; var _local2 = {x:char.MC._x, y:char.MC._y}; _root.display.tiles.localToGlobal(_local2); moveX = (Stage.width / 2) - _local2.x; moveY = (Stage.height / 2) - _local2.y; var _local4 = new mx.transitions.Tween(_root.display.tiles, "_x", mx.transitions.easing.Strong.easeOut, _root.display.tiles._x, _root.display.tiles._x + moveX, 1.5, true); var _local5 = new mx.transitions.Tween(_root.display.tiles, "_y", mx.transitions.easing.Strong.easeOut, _root.display.tiles._y, (_root.display.tiles._y + moveY) - 50, 1.5, true); _local4.onMotionFinished = function () { _root.charStats.charInfo.removeMovieClip(); _root.charStats.charInfo2.removeMovieClip(); var _local2 = _root.charStats.attachMovie("charInfoL-MC", "charInfo", 1, {_x:-350, _y:440}); var _local3 = new mx.transitions.Tween(_local2, "_x", mx.transitions.easing.Strong.easeOut, _local2._x, 20, 1, true); updateCharacterInfo(char, _local2); if (char.type == "enemy") { addPlayerIndicator(char); defender = findClosestDefender(char); char.targetChar = defender; char.blockCheckNum = 1; showRange(char); setTimeout(findPath, 600, char, defender.x, defender.y, char.x, char.y); } else { char.hasMoved = false; char.hasAttacked = false; showActions(char); } }; charTurn++; } function updateCharacterInfo(char, charInfo) { if (char.type == "enemy") { charInfo.gotoAndStop(2); } charInfo.charName.text = char.name; charInfo.charName.autoSize = true; charInfo.charLvl._x = charInfo.charName._x + (charInfo.charName._width + 30); charInfo.charLvlTxt._x = charInfo.charName._x + (charInfo.charName._width + 10); charInfo.HP.text = checkZero(char.HP); charInfo.HPMax.text = checkZero(char.HPMax); charInfo.MP.text = checkZero(char.MP); charInfo.MPMax.text = checkZero(char.MPMax); charInfo.charLvl.text = char.lvl; meterWidth = 150; var _local4 = new mx.transitions.Tween(charInfo.MPMask, "_x", mx.transitions.easing.Strong.easeOut, charInfo.MPMask._x, -90 + Math.ceil(meterWidth * (char.MP / char.MPMax)), 0.5, true); var _local3 = new mx.transitions.Tween(charInfo.HPMask, "_x", mx.transitions.easing.Strong.easeOut, charInfo.HPMask._x, -90 + Math.ceil(meterWidth * (char.HP / char.HPMax)), 0.5, true); } function checkZero(num) { if (num < 10) { num = "00" + num; } else if ((num > 9) && (num < 100)) { num = "0" + num; } return(num); } function showActions(char) { _root.charStats.windowActions.removeMovieClip(); _root.charStats.attachMovie("windowActions", "windowActions", _root.charStats.getNextHighestDepth(), {_x:50, _y:500}); var _local2 = new mx.transitions.Tween(_root.charStats.windowActions, "_y", mx.transitions.easing.Strong.easeOut, 400, 125, 0.75, true); _local2.onMotionFinished = function () { checkForTutorial(); }; displayActions(char); } function displayActions(char) { char.MC.indicator.playerIndicator.removeMovieClip(); addPlayerIndicator(char); buttons = _root.charStats.windowActions.createEmptyMovieClip("buttons", 1); buttons._y = -5; var _local5 = buttons.attachMovie("actionButton", "moveButton", 1, {_x:13, _y:140}); _local5.name = "MOVE"; _local5.actionName.text = _local5.name; if (char.hasMoved != true) { _local5.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local5.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local5.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (_root.checkSurrounded(_root.currentTurn) == false) { _root.showRange(_root.currentTurn); } _root.charStats.windowActions.buttons.removeMovieClip(); _root.charStats.windowActions.windowActionsMask.removeMovieClip(); _root.charStats.windowActions.createEmptyMovieClip("buttons", 1); _root.menuAddCancel(0, false); _root.checkForTutorial(); }; } else { _local5._alpha = 30; } var _local3 = buttons.attachMovie("actionButton", "actionBut", 2, {_x:13, _y:170}); _local3.name = "ACTION"; _local3.actionName.text = _local3.name; if (_root.tutorialCompleted == false) { if (((char.hasAttacked != true) && (tutorialNum != 0)) && (tutorialNum != 2)) { _local3.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local3.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } menuAddActions(_root.currentTurn); }; } else { _local3._alpha = 30; } } else if (char.hasAttacked != true) { _local3.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local3.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } menuAddActions(_root.currentTurn); }; } else { _local3._alpha = 30; } var _local4 = buttons.attachMovie("actionButton", "waitBut", 3, {_x:13, _y:200}); _local4.name = "END TURN"; _local4.actionName.text = _local4.name; if ((_root.tutorialCompleted == false) && (_root.tutorialNum < 8)) { trace("TUT NUM WAIT: " + _root.tutorialNum); if ((((tutorialNum != 0) && (tutorialNum != 2)) && (tutorialNum != 3)) && (tutorialNum != 4)) { _local4.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local4.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local4.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.currentTurn.MC.indicator.playerIndicator.removeMovieClip(); if (_root.currentTurn.hasMoved == true) { _root.checkTurn(); } else { _root.currentTurn.hasMoved = true; _root.faceDirection(_root.currentTurn); } _root.charStats.windowActions.removeMovieClip(); }; } else { _local4._alpha = 30; } } else { trace("IN ELSE"); _local4.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local4.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local4.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.currentTurn.MC.indicator.playerIndicator.removeMovieClip(); if (_root.currentTurn.hasMoved == true) { _root.checkTurn(); } else { _root.currentTurn.hasMoved = true; _root.faceDirection(_root.currentTurn, true); } _root.charStats.windowActions.removeMovieClip(); }; } var _local6 = buttons.attachMovie("actionButton", "statusBut", 4, {_x:13, _y:230}); _local6.name = "STATUS"; _local6.actionName.text = _local6.name; _local6.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local6.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local6.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.showStatus(); }; } function menuAddActions(char) { _root.charStats.windowActions.buttons.removeMovieClip(); _root.charStats.windowActions.windowActionsMask.removeMovieClip(); _root.charStats.windowActions.createEmptyMovieClip("buttons", 1); menuCount = 0; var _local5 = _root.charStats.windowActions.buttons.attachMovie("actionButton", "attackBut" + a, _root.charStats.windowActions.buttons.getNextHighestDepth(), {_x:13, _y:(30 * menuCount) + 135}); _local5.name = "ATTACKS"; _local5.actionName.text = _local5.name; _local5.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local5.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local5.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.menuAddSubmenu(_root.char.attacks); }; menuCount++; if (char.spells.length > 0) { var _local4 = _root.charStats.windowActions.buttons.attachMovie("actionButton", "spellsBut" + a, _root.charStats.windowActions.buttons.getNextHighestDepth(), {_x:13, _y:(30 * menuCount) + 135}); _local4.name = "SPELLS"; _local4.actionName.text = _local4.name; _local4.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local4.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local4.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.menuAddSpellsMenu(_root.char.spells); }; menuCount++; } var _local3 = _root.charStats.windowActions.buttons.attachMovie("actionButton", "itemsBut" + a, _root.charStats.windowActions.buttons.getNextHighestDepth(), {_x:13, _y:(30 * menuCount) + 135}); _local3.name = "ITEMS"; _local3.actionName.text = _local3.name; _local3.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local3.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.menuAddItemMenu(_root.inventory); }; menuCount++; menuAddCancel(menuCount, false); } function menuAddSubmenu(arr) { _root.charStats.windowActions.buttons.removeMovieClip(); _root.charStats.windowActions.windowActionsMask.removeMovieClip(); _root.charStats.windowActions.createEmptyMovieClip("buttons", 1); _root.charStats.windowActions.attachMovie("windowActionsMask", "windowActionsMask", _root.charStats.windowActions.getNextHighestDepth(), {_x:85, _y:195}); _root.charStats.windowActions.buttons.setMask(_root.charStats.windowActions.windowActionsMask); a = 0; while (a < arr.length) { var _local3 = _root.charStats.windowActions.buttons.attachMovie("actionButton", "attackBut" + a, _root.charStats.windowActions.buttons.getNextHighestDepth(), {_x:13, _y:(30 * a) + 135}); _local3.name = arr[a]; _local3.actionName.text = _local3.name; _local3.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local3.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.getAttackFunc(this.name); }; a++; } menuAddCancel(a, true); addMenuArrows(arr.length); } function menuAddItemMenu(arr) { _root.charStats.windowActions.buttons.removeMovieClip(); _root.charStats.windowActions.windowActionsMask.removeMovieClip(); _root.charStats.windowActions.createEmptyMovieClip("buttons", 1); _root.charStats.windowActions.attachMovie("windowActionsMask", "windowActionsMask", _root.charStats.windowActions.getNextHighestDepth(), {_x:85, _y:195}); _root.charStats.windowActions.buttons.setMask(_root.charStats.windowActions.windowActionsMask); itemCount = 0; a = 0; while (a < arr.length) { if (arr[a].battleUsable != false) { var _local3 = _root.charStats.windowActions.buttons.attachMovie("actionButton", "itemBut" + itemCount, _root.charStats.windowActions.buttons.getNextHighestDepth(), {_x:13, _y:(30 * itemCount) + 135}); _local3.NAME = arr[a].NAME; _local3.actionName.text = _local3.NAME; _local3.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.NAME; }; _local3.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.NAME; }; _local3.FUNC = getItemBattleFunc(arr[a]); _local3.ITEM = arr[a]; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.currentTurn.MC.indicator.playerIndicator.removeMovieClip(); if (this.ITEM.NAME == "Mega Elixer") { _root.addOverlay(_root.currentTurn, null); setTimeout(prepBattleItem, 2000, this.FUNC, _root.currentTurn, this.ITEM); } else { _root.checkItemRange(_root.currentTurn, this.ITEM); } _root.charStats.windowActions.buttons.removeMovieClip(); _root.charStats.windowActions.windowActionsMask.removeMovieClip(); _root.charStats.windowActions.createEmptyMovieClip("buttons", 1); _root.menuAddCancel(0, false); _root.charStats.windowActions.downArrow.removeMovieClip(); _root.charStats.windowActions.upArrow.removeMovieClip(); }; itemCount++; } a++; } menuAddCancel(itemCount, true); addMenuArrows(itemCount); } function menuAddSpellsMenu(arr) { charStats.windowActions.buttons.removeMovieClip(); charStats.windowActions.windowActionsMask.removeMovieClip(); charStats.windowActions.createEmptyMovieClip("buttons", 1); _root.charStats.windowActions.attachMovie("windowActionsMask", "windowActionsMask", _root.charStats.windowActions.getNextHighestDepth(), {_x:85, _y:195}); charStats.windowActions.buttons.setMask(charStats.windowActions.windowActionsMask); itemCount = 0; a = 0; while (a < arr.length) { var _local3 = charStats.windowActions.buttons.attachMovie("spellTxtButton", "spellTxtButton" + itemCount, charStats.windowActions.buttons.getNextHighestDepth(), {_x:37, _y:(30 * itemCount) + 135}); mySpell = getSpellInfo(arr[a][0]); _local3.spell = mySpell; _local3.spellName.text = mySpell.NAME; _local3.spellMana.text = mySpell.MPCost + " MP"; if (_root.currentTurn.MP >= mySpell.MPCost) { _local3.onRollOver = function () { this.gotoAndStop(2); this.spellName.text = this.spell.NAME; this.spellMana.text = this.spell.MPCost + " MP"; }; _local3.onRollOut = function () { this.gotoAndStop(1); this.spellName.text = this.spell.NAME; this.spellMana.text = this.spell.MPCost + " MP"; }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.currentTurn.MC.indicator.playerIndicator.removeMovieClip(); _root.checkSpellRange(this.spell, _root.currentTurn); _root.charStats.windowActions.buttons.removeMovieClip(); _root.charStats.windowActions.windowActionsMask.removeMovieClip(); _root.charStats.windowActions.createEmptyMovieClip("buttons", 1); _root.menuAddCancel(0, false); _root.charStats.windowActions.downArrow.removeMovieClip(); _root.charStats.windowActions.upArrow.removeMovieClip(); }; } else { _local3._alpha = 30; } itemCount++; a++; } menuAddCancel(itemCount, true); addMenuArrows(itemCount); } function addMenuArrows(arrLength) { if (arrLength > 3) { var _local4 = _root.charStats.windowActions.attachMovie("menuArrow", "downArrow", 3, {_x:80, _y:255}); var _local3 = _root.charStats.windowActions.attachMovie("menuArrow", "upArrow", 4, {_x:80, _y:120}); _local3._visible = false; _local4._yscale = -100; scrollNum = 0; arrSize = arrLength + 1; _local4.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (_root.scrollNum < (_root.arrSize - 4)) { _root.charStats.windowActions.buttons._y = _root.charStats.windowActions.buttons._y - 30; _root.scrollNum++; _root.checkScrollArrows(); } }; _local4.onRollOver = function () { this.gotoAndStop(2); }; _local4.onRollOut = function () { this.gotoAndStop(1); }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if ((_root.scrollNum + _root.arrSize) > _root.arrSize) { _root.charStats.windowActions.buttons._y = _root.charStats.windowActions.buttons._y + 30; _root.scrollNum--; _root.checkScrollArrows(); } }; _local3.onRollOver = function () { this.gotoAndStop(2); }; _local3.onRollOut = function () { this.gotoAndStop(1); }; } } function checkScrollArrows() { if ((scrollNum + 4) == arrSize) { _root.charStats.windowActions.downArrow._visible = false; } else { _root.charStats.windowActions.downArrow._visible = true; } if ((scrollNum + 4) == 4) { _root.charStats.windowActions.upArrow._visible = false; } else { _root.charStats.windowActions.upArrow._visible = true; } } function menuAddCancel(num, sub) { var _local3 = _root.charStats.windowActions.buttons.attachMovie("actionButton", "cancelBut" + a, _root.charStats.windowActions.buttons.getNextHighestDepth(), {_x:13, _y:(30 * num) + 135}); _local3.name = "CANCEL"; _local3.actionName.text = _local3.name; _local3.onRollOver = function () { this.gotoAndStop(2); this.actionName.text = this.name; }; _local3.onRollOut = function () { this.gotoAndStop(1); this.actionName.text = this.name; }; if (sub == true) { _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.resetEnemyRange(); _root.cancelAction(_root.currentTurn, true); }; } else { _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.cancelAction(_root.currentTurn, false); }; } } function cancelAction(char, sub) { resetCharFuncs(); resetRange(attackRangeArr); resetRange(meleeArr); resetRange(rangeTiles); charStats.windowActions.downArrow.removeMovieClip(); charStats.windowActions.upArrow.removeMovieClip(); if (sub == true) { menuAddActions(char); } else { displayActions(char); } } function addOverlay(char, target) { e = 0; while (e < enemyArr.length) { enemyArr[e].enabled = false; e++; } var _local2 = _root.display.tiles.attachMovie("overlay-MC", "overlayMC", _root.display.tiles.getNextHighestDepth()); _local2._width = _local2._width * 4; _local2._height = _local2._height * 4; _local2._x = _root.display.tiles._x - 1500; _local2._y = _root.display.tiles._y - 1000; if (char.MC._y < target.MC._y) { char.MC.swapDepths(_root.display.tiles.getNextHighestDepth()); target.MC.swapDepths(_root.display.tiles.getNextHighestDepth()); } else { target.MC.swapDepths(_root.display.tiles.getNextHighestDepth()); char.MC.swapDepths(_root.display.tiles.getNextHighestDepth()); } _root.charStats.windowActions._visible = false; } function remOverlay() { _root.display.tiles.overlayMC.gotoAndPlay(21); setTimeout(charOverlayDepth, 1000); if (dropTreasure == true) { setTimeout(dropTreasureFunc, 1000); } else { setTimeout(endAttack, 1200); } } function dropTreasureFunc() { if (_root.soundOn == true) { _root.treasureDropSnd.start(); } var _local2 = _root.display.tiles.attachMovie("treasureIcon", "treasureIcon", _root.currentTurn.targetChar.tile.getDepth() + 2, {_x:_root.currentTurn.targetChar.tile._x + 20, _y:_root.currentTurn.targetChar.tile._y - 20}); _local2.difficulty = _root.currentTurn.targetChar.difficulty; tileMap[_root.currentTurn.targetChar.x][_root.currentTurn.targetChar.y].treasure = _local2; _root.currentTurn.targetChar.MC.removeMovieClip(); setTimeout(endAttack, 2500); } function charOverlayDepth() { _root.currentTurn.MC.enabled = true; _root.currentTurn.targetChar.MC.enabled = true; _root.currentTurn.MC.swapDepths(_root.currentTurn.tile.getDepth() + 1); if (_root.currentTurn.targetChar.dead == true) { _root.currentTurn.targetChar.MC.swapDepths(_root.currentTurn.targetChar.tile.getDepth() + 3); } else { _root.currentTurn.targetChar.MC.swapDepths(_root.currentTurn.targetChar.tile.getDepth() + 1); a = 0; while (a < _root.currentTurn.targetChar.ailments.length) { if (_root.currentTurn.targetChar.ailments[a] == "frozen") { _root.currentTurn.targetChar.freezeMC.swapDepths(_root.currentTurn.targetChar.tile.getDepth() + 3); } a++; } } } function addText(mcParent, txtName, txtX, txtY, txtWidth, txtHeight, txt, txtSize, color, centered, addLineHeight) { txtName = mcParent.createTextField(txtName, mcParent.getNextHighestDepth(), txtX, txtY, txtWidth, txtHeight); txtName.type = "dynamic"; txtName.multiline = true; txtName.wordWrap = true; txtName.border = false; txtName.selectable = false; txtName.embedFonts = true; txtName.antiAliasType = "advanced"; myformat = new TextFormat(); if (addLineHeight == true) { myformat.leading = 5; } myformat.font = "txtBoxFont"; myformat.size = txtSize; myformat.bold = true; if (centered == false) { myformat.align = "left"; } else if (centered == "right") { myformat.align = "right"; } else { myformat.align = "center"; } if (color == undefined) { myformat.color = 16777215 /* 0xFFFFFF */; } else { myformat.color = color; } txtName.text = txt; txtName.setTextFormat(myformat); } function addPlayerIndicator(char) { char.MC.indicator.attachMovie("playerIndicator", "playerIndicator", 1); } function timeCounter() { trace("BEFORE"); trace("LOCAL: " + timePlayed); trace("SO: " + mySave.data.timePlayed); timePlayed++; trace("AFTER"); trace("LOCAL: " + timePlayed); trace("SO: " + mySave.data.timePlayed); } function createIntroMask() { _root.gameMask.removeMovieClip(); this.createEmptyMovieClip("gameMask", 4); gameMask.createEmptyMovieClip("mcMask", gameMask.getNextHighestDepth()); gameMask.mcMask.lineStyle(1, 16777215, 0); gameMask.mcMask.beginFill(16777215, 100); gameMask.mcMask.moveTo(0, 0); gameMask.mcMask.lineTo(wMask, 0); gameMask.mcMask.lineTo(wMask, hMask); gameMask.mcMask.lineTo(0, hMask); gameMask.mcMask.lineTo(0, 0); gameMask.mcMask.endFill(); gameMask.setMask(gameMask.mcMask); gameMask.createEmptyMovieClip("sqMsk", gameMask.getNextHighestDepth()); gameMask._x = (gameMask.mcMask._x = (gameMask.sqMsk._x = xMask)); gameMask._y = (gameMask.mcMask._y = (gameMask.sqMsk._y = yMask)); } function startMask() { var _local2; var _local1; if (((((nbIHD == 0) || (nbIHD == 1)) || (nbIHD == 2)) || (nbIHD == 3)) || (nbIHD == 4)) { _local2 = nbIHD; } else { rnd = (nbH - 0.001) * Math.random(); rr = 0; while (rr < nbH) { if ((rnd >= rr) && (rnd < (rr + 1))) { _local2 = arH[rr]; } rr++; } } if (((((nbIVD == 0) || (nbIVD == 1)) || (nbIVD == 2)) || (nbIVD == 3)) || (nbIVD == 4)) { _local1 = nbIVD; } else { rnd = (nbV - 0.001) * Math.random(); rr = 0; while (rr < nbV) { if ((rnd >= rr) && (rnd < (rr + 1))) { _local1 = arV[rr]; } rr++; } } i = 0; while (i < nbCols) { j = 0; while (j < nbRows) { z = (nbRows * i) + j; mc = gameMask.sqMsk.sqM.attachMovie("Square", "mcSquare" + z, gameMask.sqMsk.sqM.getNextHighestDepth(), initSquare); mc.init = true; mc.ix = i; mc.jy = j; mc.IHD = _local2; mc.IVD = _local1; mc.starting = true; j++; } i++; } } function finishedGameMask() { if (inBattle == true) { setTimeout(fadeGameMask, 2000); } else if (gameOver == true) { setTimeout(displayGameOverOptions, 2000); } else { setTimeout(displayLevelGold, 2000); } } function fadeGameMask() { gameMask.onEnterFrame = function () { this._alpha = this._alpha - 3; if (this._alpha <= 0) { delete this.onEnterFrame; _root.fadeMapIn(); } }; } function makeARectangle(mc, nbColor, nbAlpha) { var _local3 = (-wSq) / 2; var _local2 = (-hSq) / 2; mc.lineStyle(1, nbColor, 0); mc.beginFill(nbColor, nbAlpha); mc.moveTo(_local3, _local2); mc.lineTo(_local3 + wSq, _local2); mc.lineTo(_local3 + wSq, _local2 + hSq); mc.lineTo(_local3, _local2 + hSq); mc.lineTo(_local3, _local2); mc.endFill(); } function showGameMask(num) { createIntroMask(); gameMask.sqMsk.createEmptyMovieClip("sqM", gameMask.sqMsk.getNextHighestDepth()); gameMask.createEmptyMovieClip("mcC", gameMask.getNextHighestDepth()); if (num == 1) { gameMask.mcC.attachMovie("gameMaskMC", "gameMaskMC", 99); } else if (num == 2) { if (_root.missionType == "mission") { gameMask.mcC.attachMovie("gameMaskMissionCompleteMC", "gameMaskMC", 99); } else { gameMask.mcC.attachMovie("gameMaskLevelCompleteMC", "gameMaskMC", 99); } } else if (num == 3) { gameMask.mcC.attachMovie("gameMaskGameOverMC", "gameMaskMC", 99); } gameMask.mcC.setMask(gameMask.sqMsk.sqM); startMask(); } function initLockpicking(lockDifficulty, curLockpick) { statusScreen.createEmptyMovieClip("lockpickGame", statusScreen.getNextHighestDepth()); treasureBG = _root.statusScreen.lockpickGame.attachMovie("treasureBG", "treasureBG", _root.statusScreen.lockpickGame.getNextHighestDepth()); treasureBG.onRollOver = function () { this.useHandCursor = false; }; addText(treasureBG); lock = _root.statusScreen.lockpickGame.attachMovie("lockMC", "lockMC", _root.statusScreen.lockpickGame.getNextHighestDepth(), {_x:408, _y:298}); lockpickInfo = _root.statusScreen.lockpickGame.attachMovie("lockpickInfo", "lockpickInfo", _root.statusScreen.lockpickGame.getNextHighestDepth(), {_x:580, _y:510}); unlockRange = getUnlockRange(lockpicking, lockDifficulty); _root.treasureDifficulty = lockDifficulty; addLockPick(curLockpick.STR, curLockpick); } function addLockPick(lockpickType, curLockpick) { lockpick = _root.statusScreen.lockpickGame.attachMovie("lockpickMC", "lockpickMC", _root.statusScreen.lockpickGame.getNextHighestDepth(), {_x:405, _y:310}); lockpick.gotoAndStop(lockpickType); lockpick.moveAmt = 0; lockpick.MC = curLockpick; lockpick.durability = getLockpickDurability(lockpickType); lockpick.unlockNum = Math.floor(Math.random() * 180); if (Math.floor(Math.random() * 2) == 1) { lockpick.unlockNum = lockpick.unlockNum * -1; } lockpick.onPress = function () { if (_root.soundOn == true) { _root.lockpickingSnd.start(0, 999); } this.onEnterFrame = function () { Mouse.hide(); this.prevRotation = this._rotation; this._rotation = Math.floor(rotatePick(_xmouse, this._x, _ymouse, this._y)); if (this._rotation != this.prevRotation) { this.moveDiff = this._rotation - this.prevRotation; if (this.moveDiff < 0) { this.moveDiff = this.moveDiff * -1; } if (this.moveDiff < 300) { this.moveAmt = this.moveAmt + this.moveDiff; } lockpickInfo.lockpickMask._x = 33 - Math.ceil(146 * (this.moveAmt / this.durability)); if (this.moveAmt >= this.durability) { Mouse.show(); breakPick(this); } if ((this._rotation > (this.unlockNum - _root.unlockRange)) && (this._rotation < (this.unlockNum + _root.unlockRange))) { if (this.unlocking != true) { _root.shakePick(this); this.unlocking = true; _root.timePickInt = setTimeout(_root.timePick, 2000, this); } } else { this.unlocking = false; clearTimeout(_root.timePickInt); } } }; }; lockpick.onRelease = function () { Mouse.show(); _root.lockpickingSnd.stop(); delete this.onEnterFrame; }; lockpick.onRollOut = function () { Mouse.show(); delete this.onEnterFrame; }; } function rotatePick(x1, x2, y1, y2) { return((Math.atan2(y1 - y2, x1 - x2) * 180) / Math.PI); } function getLockpickDurability(type) { switch (type) { case 1 : return(500); case 2 : return(1000); case 3 : return(2000); } } function getUnlockRange(skillLevel, lockDifficulty) { switch (lockDifficulty) { case 1 : return(Math.floor(3 + (skillLevel * 1))); case 2 : return(Math.floor(skillLevel * 0.2)); case 3 : return(Math.floor(skillLevel * 0.1)); case 4 : return(Math.floor(skillLevel * 0.025)); } } function breakPick(lockpick) { _root.lockpickingSnd.stop(); if (_root.soundOn == true) { _root.lockpickBreakSnd.start(); } removeItemQTY(lockpick.MC); delete lockpick.onEnterFrame; lockpick.removeMovieClip(); brokePickTxt = _root.statusScreen.lockpickGame.attachMovie("textBox1MC", "brokePickTxt", _root.statusScreen.lockpickGame.getNextHighestDepth(), {_x:160, _y:215}); _root.addText(brokePickTxt, "titleTxt", 0, 45, 475, 50, "SNAP!", 24, 0); _root.addText(brokePickTxt, "infoTxt", 0, 80, 475, 50, "You have broken your lockpick.", 14, 6050119); cancelButtonMC = brokePickTxt.createEmptyMovieClip("cancelButtonMC", brokePickTxt.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 140, 120, 190, 20, "Close", 16, 6050119); cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.statusShowTreasures(); _root.statusScreen.lockpickGame.removeMovieClip(); }; } function shakePick(lockpick) { var _local4 = new mx.transitions.Tween(lockpick.pick, "_y", mx.transitions.easing.Bounce.easeIn, lockpick.pick._y, lockpick.pick._y + 4, 0.04, true); _local4.onMotionFinished = function () { if (_root.statusScreen.lockpickGame.lockpickMC.unlocking == true) { this.yoyo(); } else { _root.statusScreen.lockpickGame.lockpickMC.pick._x = 0; _root.statusScreen.lockpickGame.lockpickMC.pick._y = -34; } }; } function timePick(lockpick) { if (lockpick.unlocking == true) { delete lockpick.onEnterFrame; lockpick.removeMovieClip(); lockpick.unlocking = false; setTimeout(unlockTreasure, 500); delete lockpick.onEnterFrame; } } function unlockTreasure() { if (_root.soundOn == true) { _root.lockpickingSnd.stop(); _root.treasureOpenSnd.start(); } Mouse.show(); _root.statusScreen.lockpickGame.lockpickMC.removeMovieClip(); var _local2 = new mx.transitions.Tween(_root.statusScreen.lockpickGame.lockMC, "_rotation", mx.transitions.easing.Back.easeIn, 0, 90, 2, true); setTimeout(showTreasure, 2000); } function showTreasure() { treasuresUnlocked++; if ((treasuresUnlocked == 50) && (thiefGuildCount == 0)) { thiefGuildCount++; } if (_root.soundOn == true) { _root.startLevelSnd.start(); } treasureOverlay = _root.statusScreen.lockpickGame.attachMovie("treasureOverlay", "treasureOverlay", _root.statusScreen.lockpickGame.getNextHighestDepth(), {_x:410, _y:295}); var _local3 = new mx.transitions.Tween(treasureOverlay, "_xscale", mx.transitions.easing.Strong.easeIn, 1, 10000, 1.5, true); var _local6 = new mx.transitions.Tween(treasureOverlay, "_yscale", mx.transitions.easing.Strong.easeIn, 1, 10000, 1.5, true); treasureOverlay.onRollOver = function () { this.useHandCursor = false; }; _local3.onMotionFinished = function () { if (_root.soundOn == true) { _root.foundItemSnd.start(); } randLootArr = getTreasureLoot(_root.treasureDifficulty); if (_root.treasureDifficulty == 4) { _root.kongregateStats.submit("TacticsHero", 1); } randLoot = randLootArr[0]; treasureInfo = _root.statusScreen.lockpickGame.attachMovie("textBox1MC", "treasureInfo", _root.statusScreen.lockpickGame.getNextHighestDepth(), {_x:160, _y:215}); _root.addText(treasureInfo, "titleTxt", 0, 45, 475, 50, "Inside the treasure you discover:", 14, 6050119); if (randLoot == "Gold") { lootIcon = "iconGold"; } else { i = 0; while (i < itemListArr.length) { if (itemListArr[i].NAME == randLoot) { lootIcon = itemListArr[i].ICON; trace("ICON: " + lootIcon); break; } i++; } } if (randLoot == "Gold") { itemIcon = treasureInfo.attachMovie(lootIcon, lootIcon, treasureInfo.getNextHighestDepth(), {_x:180, _y:77}); _root.addText(treasureInfo, "infoTxt", 210, 80, 475, 50, randLootArr[1] + " Gold", 14, 0, false); } else { itemIcon = treasureInfo.attachMovie(lootIcon, lootIcon, treasureInfo.getNextHighestDepth(), {_x:140, _y:77}); _root.addText(treasureInfo, "infoTxt", 170, 80, 475, 50, "1 x " + randLoot, 14, 0, false); } var _local5 = new mx.transitions.Tween(treasureInfo, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 1, true); _root.statusScreen.statusBG.coinsTxt.text = gold; closeButtonMC = treasureInfo.createEmptyMovieClip("closeButtonMC", treasureInfo.getNextHighestDepth()); addText(closeButtonMC, "tfield", 140, 120, 190, 20, "Close", 16, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.removeTreasure(_root.treasureDifficulty); _root.statusShowTreasures(); _root.checkLockpickingLevelUp(_root.treasureDifficulty); _root.statusScreen.lockpickGame.removeMovieClip(); }; }; } function assignItem(itemName, makingItemList) { switch (itemName) { case "Healing Herb" : item = new Object(); item.NAME = itemName; item.VAL = 10; item.DESC = "Restores 10 HP to one character."; item.ICON = "iconHealingHerb"; item.TYPE = 1; item.battleUsable = true; item.STR = 10; item.FUNC = new Function(itemHPPotion); item.battleFUNC = new Function(itemHPPotionBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "sm. HP Potion" : item = new Object(); item.NAME = itemName; item.VAL = 25; item.DESC = "Restores 25 HP to one character."; item.ICON = "iconSmallPotion"; item.TYPE = 1; item.battleUsable = true; item.STR = 25; item.FUNC = new Function(itemHPPotion); item.battleFUNC = new Function(itemHPPotionBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "HP Potion" : item = new Object(); item.NAME = itemName; item.VAL = 150; item.DESC = "Restores 80 HP to one character."; item.ICON = "iconMediumPotion"; item.TYPE = 1; item.battleUsable = true; item.STR = 80; item.FUNC = new Function(itemHPPotion); item.battleFUNC = new Function(itemHPPotionBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "lg. HP Potion" : item = new Object(); item.NAME = itemName; item.VAL = 300; item.DESC = "Restores 150 HP to one character."; item.ICON = "iconLargePotion"; item.TYPE = 1; item.battleUsable = true; item.STR = 150; item.FUNC = new Function(itemHPPotion); item.battleFUNC = new Function(itemHPPotionBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Mana Root" : item = new Object(); item.NAME = itemName; item.VAL = 24; item.DESC = "Restores 10 MP to one character."; item.ICON = "iconManaRoot"; item.TYPE = 1; item.battleUsable = true; item.STR = 10; item.FUNC = new Function(itemMPPotion); item.battleFUNC = new Function(itemMPPotionBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "sm. Mana Potion" : item = new Object(); item.NAME = itemName; item.VAL = 80; item.DESC = "Restores 25 MP to one character."; item.ICON = "iconSmallManaPotion"; item.TYPE = 1; item.battleUsable = true; item.STR = 25; item.FUNC = new Function(itemMPPotion); item.battleFUNC = new Function(itemMPPotionBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Mana Potion" : item = new Object(); item.NAME = itemName; item.VAL = 200; item.DESC = "Restores 60 MP to one character."; item.ICON = "iconManaPotion"; item.TYPE = 1; item.battleUsable = true; item.STR = 60; item.FUNC = new Function(itemMPPotion); item.battleFUNC = new Function(itemMPPotionBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Elixer" : item = new Object(); item.NAME = itemName; item.VAL = 500; item.DESC = "Completely restore HP and MP of one character."; item.ICON = "iconElixer"; item.TYPE = 1; item.battleUsable = true; item.FUNC = new Function(itemElixer); item.battleFUNC = new Function(itemElixerBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Mega Elixer" : item = new Object(); item.NAME = itemName; item.VAL = 1000; item.DESC = "Completely restore HP and MP of the entire party."; item.ICON = "iconMegaElixer"; item.TYPE = 2; item.battleUsable = true; item.FUNC = new Function(itemMegaElixer); item.battleFUNC = new Function(itemMegaElixerBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Antidote" : item = new Object(); item.NAME = itemName; item.VAL = 35; item.DESC = "Cure a character of poison."; item.ICON = "iconAntidote"; item.TYPE = 1; item.battleUsable = true; item.FUNC = new Function(itemAntidote); item.battleFUNC = new Function(itemAntidoteBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Resurrection" : item = new Object(); item.NAME = itemName; item.VAL = 300; item.DESC = "Fully revives a dead party member."; item.ICON = "iconResurrection"; item.TYPE = 1; item.battleUsable = true; item.FUNC = new Function(itemResurrection); item.battleFUNC = new Function(itemResurrectionBattle); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Magic Tonic" : item = new Object(); item.NAME = itemName; item.VAL = 2; item.DESC = "Increase maximum MP of a character by 5"; item.ICON = "iconMagicTonic"; item.TYPE = 1; item.battleUsable = false; item.FUNC = new Function(itemMagicTonic); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "HP Booster" : item = new Object(); item.NAME = itemName; item.VAL = 2; item.DESC = "Increase maximum HP of a character by 10"; item.ICON = "iconHPBooster"; item.TYPE = 1; item.battleUsable = false; item.FUNC = new Function(itemHPBooster); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Power Bar" : item = new Object(); item.NAME = itemName; item.VAL = 2; item.DESC = "Increase STR (strength) of a character by 1"; item.ICON = "iconPowerBar"; item.TYPE = 1; item.battleUsable = false; item.FUNC = new Function(itemPowerBar); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Iron Tusk" : item = new Object(); item.NAME = itemName; item.VAL = 2; item.DESC = "Increase DEF (defense) of a character by 1"; item.ICON = "iconIronTusk"; item.TYPE = 1; item.battleUsable = false; item.FUNC = new Function(itemIronTusk); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Rusty Lockpick" : item = new Object(); item.NAME = itemName; item.VAL = 20; item.DESC = "Used to pick the lock off a treasure chest"; item.ICON = "iconRustyLockpick"; item.TYPE = 3; item.FUNC = new Function(statusShowTreasures); item.battleUsable = false; item.STR = 1; item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Iron Lockpick" : item = new Object(); item.NAME = itemName; item.VAL = 100; item.DESC = "Used to pick the lock off a treasure chest"; item.ICON = "iconIronLockpick"; item.TYPE = 3; item.battleUsable = false; item.STR = 2; item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Ultra Lockpick" : item = new Object(); item.NAME = itemName; item.VAL = 600; item.DESC = "Used to pick the lock off a treasure chest"; item.ICON = "iconUltraLockpick"; item.TYPE = 3; item.battleUsable = false; item.STR = 3; item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Poison Scroll" : item = new Object(); item.NAME = itemName; item.VAL = 2; item.DESC = "An ancient scroll that contains the Poison spell"; item.ICON = "iconSpellScroll"; item.TYPE = 2; item.battleUsable = false; item.FUNC = new Function(itemPoisonScroll); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Shock Scroll" : item = new Object(); item.NAME = itemName; item.VAL = 2; item.DESC = "An ancient scroll that contains the Shock spell"; item.ICON = "iconSpellScroll"; item.TYPE = 2; item.battleUsable = false; item.FUNC = new Function(itemShockScroll); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Freeze Scroll" : item = new Object(); item.NAME = itemName; item.VAL = 2; item.DESC = "An ancient scroll that contains the Freeze spell"; item.ICON = "iconSpellScroll"; item.TYPE = 2; item.battleUsable = false; item.FUNC = new Function(itemFreezeScroll); item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else if (checkItemExists(itemName) == false) { inventory.push(item); } break; case "Lockpicking Guide" : item = new Object(); item.NAME = itemName; item.VAL = null; item.DESC = "A guide that shows you how to pick a treasure's lock."; item.ICON = "iconLockpickManual"; item.TYPE = 4; item.battleUsable = false; item.STR = 10; item.QTY = 1; if (makingItemList == true) { itemListArr.push(item); } else { if (checkItemExists(itemName) != false) { break; } inventory.push(item); } } } function getItemFunc(item, char) { switch (item.NAME) { case "Healing Herb" : trace("FOUND: " + item.NAME); itemHPPotion(char, item); break; case "sm. HP Potion" : itemHPPotion(char, item); break; case "HP Potion" : itemHPPotion(char, item); break; case "lg. HP Potion" : itemHPPotion(char, item); break; case "Mana Root" : itemMPPotion(char, item); break; case "sm. Mana Potion" : itemMPPotion(char, item); break; case "Mana Potion" : itemMPPotion(char, item); break; case "Elixer" : itemElixer(char, item); break; case "Mega Elixer" : itemMegaElixer(item); break; case "Antidote" : itemAntidote(char, item); break; case "Resurrection" : itemResurrection(char, item); break; case "Magic Tonic" : itemMagicTonic(char, item); break; case "HP Booster" : itemHPBooster(char, item); break; case "Power Bar" : itemPowerBar(char, item); break; case "Iron Tusk" : itemIronTusk(char, item); break; case "Poison Scroll" : itemPoisonScroll(item); break; case "Shock Scroll" : itemShockScroll(item); break; case "Freeze Scroll" : itemFreezeScroll(item); } } function getItemBattleFunc(item) { switch (item.NAME) { case "Healing Herb" : trace("RETURN THIS ONE"); return(new Function(itemHPPotionBattle)); case "sm. HP Potion" : return(new Function(itemHPPotionBattle)); case "HP Potion" : return(new Function(itemHPPotionBattle)); case "lg. HP Potion" : return(new Function(itemHPPotionBattle)); case "Mana Root" : return(new Function(itemMPPotionBattle)); case "sm. Mana Potion" : return(new Function(itemMPPotionBattle)); case "Mana Potion" : return(new Function(itemMPPotionBattle)); case "Elixer" : return(new Function(itemElixerBattle)); case "Mega Elixer" : return(new Function(itemMegaElixerBattle)); case "Antidote" : return(new Function(itemAntidoteBattle)); case "Resurrection" : return(new Function(itemResurrectionBattle)); } } function statusShowItems() { curItem = null; statusScreen.statusRight.removeMovieClip(); var _local6 = statusScreen.createEmptyMovieClip("statusRight", statusScreen.getNextHighestDepth()); _local6._x = 230; var _local3 = statusScreen.statusRight.attachMovie("statusItems", "statusItems", statusScreen.statusRight.getNextHighestDepth(), {_x:16, _y:20}); _local3.createEmptyMovieClip("itemHolder", _local3.getNextHighestDepth()); i = 0; while (i < inventory.length) { itemNameClip = _local3.itemHolder.createEmptyMovieClip("itemNameClip" + i, _local3.itemHolder.getNextHighestDepth()); if ((i % 2) == 0) { itemIcon = itemNameClip.attachMovie(inventory[i].ICON, inventory[i].ICON, itemNameClip.getNextHighestDepth(), {_x:40, _y:(i * 15) + 60}); addText(itemNameClip, "titleTxt" + inventory[i].NAME, 100, (i * 15) + 65, 150, 20, inventory[i].NAME, 12, 6050119, false); itemQtyClip = _local3.itemHolder.createEmptyMovieClip("itemQtyClip" + i, _local3.itemHolder.getNextHighestDepth()); addText(itemQtyClip, "itemQTY" + inventory[i].NAME, 75, (i * 15) + 65, 35, 20, inventory[i].QTY + " x", 12, 0, false); } else { itemIcon = itemNameClip.attachMovie(inventory[i].ICON, inventory[i].ICON, itemNameClip.getNextHighestDepth(), {_x:280, _y:((i - 1) * 15) + 60}); addText(itemNameClip, "titleTxt" + inventory[i].NAME, 340, ((i - 1) * 15) + 65, 150, 20, inventory[i].NAME, 12, 6050119, false); itemQtyClip = _local3.itemHolder.createEmptyMovieClip("itemQtyClip" + i, _local3.itemHolder.getNextHighestDepth()); addText(itemQtyClip, "itemQTY" + inventory[i].NAME, 315, ((i - 1) * 15) + 65, 35, 20, inventory[i].QTY + " x", 12, 0, false); } itemNameClip.tfield = itemNameClip["titleTxt" + inventory[i].NAME]; itemNameClip.infoBox = _local3.itemInfo; itemNameClip.invItem = inventory[i]; itemNameClip.ICON = itemIcon; itemNameClip.onRollOver = function () { this.tfield.textColor = 0; this.infoBox.text = this.invItem.DESC; }; itemNameClip.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; this.infoBox.text = ""; }; itemNameClip.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; if (this.invItem.TYPE == 3) { _root.statusShowTreasures(); } else if (this.invItem.TYPE == 4) { showLockPickingGuide(); } else { showItemAlert(this.invItem); } }; i++; } itemCheckForScroll(); } function showLockPickingGuide() { lockpickingGuide = _root.statusScreen.createEmptyMovieClip("lockpickingGuide", _root.statusScreen.getNextHighestDepth()); lockpickingGuideMC = lockpickingGuide.attachMovie("lockpickingGuideMC", "lockpickingGuideMC", lockpickingGuide.getNextHighestDepth()); lockpickingGuideMC.onRollOver = function () { this.useHandCursor = false; }; cancelButtonMC = lockpickingGuide.createEmptyMovieClip("cancelButtonMC", lockpickingGuide.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 678, 550, 190, 20, "CLOSE GUIDE", 11, 16777215, false); cancelButtonMC.onRollOver = function () { this.tfield.textColor = 16773568 /* 0xFFF1C0 */; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 16777215 /* 0xFFFFFF */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.statusScreen.lockpickingGuide.removeMovieClip(); statusShowItems(); }; } function showItemAlert(item) { _root.statusScreen.createEmptyMovieClip("itemAlert", _root.statusScreen.getNextHighestDepth()); box = _root.statusScreen.itemAlert.createEmptyMovieClip("box", 1); box.beginFill(0); box.lineTo(0, 600); box.lineTo(800, 600); box.lineTo(800, 0); box.lineTo(0, 0); box._alpha = 50; box.onRollOver = function () { this.useHandCursor = false; }; itemAlertMC = _root.statusScreen.itemAlert.attachMovie("statusItemAlert", "statusItemAlert", _root.statusScreen.itemAlert.getNextHighestDepth(), {_x:400, _y:140}); useButtonMC = itemAlertMC.createEmptyMovieClip("useButtonMC", itemAlertMC.getNextHighestDepth()); addText(useButtonMC, "tfield", 5, 35, 190, 20, "Use", 13, 6050119); useButtonMC.invItem = item; useButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; useButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; useButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; if (this.invItem.TYPE == 1) { statusShowChars(this.invItem); } else { _root.getItemFunc(this.invItem); } _root.statusScreen.itemAlert.removeMovieClip(); }; dropButtonMC = itemAlertMC.createEmptyMovieClip("dropButtonMC", itemAlertMC.getNextHighestDepth()); addText(dropButtonMC, "tfield", 5, 65, 190, 20, "Drop", 13, 6050119); dropButtonMC.invItem = item; dropButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; dropButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; dropButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; dropItem(this.invItem); _root.statusScreen.itemAlert.removeMovieClip(); }; cancelButtonMC = itemAlertMC.createEmptyMovieClip("cancelButtonMC", itemAlertMC.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 5, 95, 190, 20, "Cancel", 13, 6050119); cancelButtonMC.invItem = item; cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.statusScreen.itemAlert.removeMovieClip(); statusShowItems(); }; } function checkItemExists(itemName) { i = 0; while (i < inventory.length) { if (inventory[i].NAME == itemName) { inventory[i].QTY++; return(true); } i++; } return(false); } function removeItemQTY(item) { trace("REMOVE: " + item.NAME); trace("QTY BEFORE: " + item.QTY); item.QTY--; trace("QTY AFTER: " + item.QTY); if (item.QTY <= 0) { i = 0; while (i < inventory.length) { if (inventory[i].NAME == item.NAME) { inventory.splice(i, 1); break; } i++; } } } function dropItem(item) { item.QTY--; if (item.QTY <= 0) { i = 0; while (i < inventory.length) { if (inventory[i].NAME == item.NAME) { inventory.splice(i, 1); break; } i++; } } statusShowItems(); } function getItemInfo(itemName) { i2 = 0; while (i2 < inventory.length) { if (inventory[i2].NAME == itemName) { return(inventory[i2]); } i2++; } e2 = 0; while (e2 < equipment.length) { if (equipment[e2].NAME == itemName) { return(equipment[e2]); } e2++; } return(false); } function itemCheckForScroll() { if (inventory.length > 18) { maskMC = statusScreen.statusRight.statusItems.attachMovie("windowActionsMask", "windowActionsMask", statusScreen.statusRight.statusItems.getNextHighestDepth(), {_x:265, _y:212}); maskMC._width = 480; maskMC._height = 280; statusScreen.statusRight.statusItems.itemHolder.setMask(maskMC); var _local4 = statusScreen.statusRight.statusItems.attachMovie("menuArrow", "downArrow", statusScreen.statusRight.statusItems.getNextHighestDepth(), {_x:250, _y:345}); var _local3 = statusScreen.statusRight.statusItems.attachMovie("menuArrow", "upArrow", statusScreen.statusRight.statusItems.getNextHighestDepth(), {_x:250, _y:45}); _local3._visible = false; _local4._yscale = -100; _root.scrollNum = 0; _root.arrSize = inventory.length + 1; _local4.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (_root.scrollNum < (_root.arrSize - 7)) { _root.statusScreen.statusRight.statusItems.itemHolder._y = _root.statusScreen.statusRight.statusItems.itemHolder._y - 30; _root.scrollNum++; _root.itemCheckScrollArrows(); } }; _local4.onRollOver = function () { this.gotoAndStop(2); }; _local4.onRollOut = function () { this.gotoAndStop(1); }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if ((_root.scrollNum + _root.arrSize) > _root.arrSize) { _root.statusScreen.statusRight.statusItems.itemHolder._y = _root.statusScreen.statusRight.statusItems.itemHolder._y + 30; _root.scrollNum--; _root.itemCheckScrollArrows(); } }; _local3.onRollOver = function () { this.gotoAndStop(2); }; _local3.onRollOut = function () { this.gotoAndStop(1); }; } } function itemCheckScrollArrows() { tempScrollNum = Math.floor(_root.arrSize / 2) * 2; if ((_root.scrollNum + 23) == tempScrollNum) { _root.statusScreen.statusRight.statusItems.downArrow._visible = false; } else { _root.statusScreen.statusRight.statusItems.downArrow._visible = true; } if ((_root.scrollNum + 18) == 18) { _root.statusScreen.statusRight.statusItems.upArrow._visible = false; } else { _root.statusScreen.statusRight.statusItems.upArrow._visible = true; } } function itemHPPotion(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } if ((_root.defenderArr[char.num].HP + item.STR) > _root.defenderArr[char.num].HPMax) { _root.defenderArr[char.num].HP = _root.defenderArr[char.num].HPMax; } else { _root.defenderArr[char.num].HP = _root.defenderArr[char.num].HP + item.STR; } _root.enableLeftNav(); _root.statusShowChars(); var _local4 = {r:255, g:255, b:255}; char.meterHP.fluxTint(_local4, 0, 100, 20, true, 1); removeItemQTY(item); } function itemMPPotion(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } if ((_root.defenderArr[char.num].MP + item.STR) > _root.defenderArr[char.num].MPMax) { _root.defenderArr[char.num].MP = _root.defenderArr[char.num].MPMax; } else { _root.defenderArr[char.num].MP = _root.defenderArr[char.num].MP + item.STR; } _root.enableLeftNav(); _root.statusShowChars(); var _local4 = {r:255, g:255, b:255}; char.meterMP.fluxTint(_local4, 0, 100, 20, true, 1); removeItemQTY(item); } function itemElixer(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } _root.defenderArr[char.num].HP = _root.defenderArr[char.num].HPMax; _root.defenderArr[char.num].MP = _root.defenderArr[char.num].MPMax; _root.enableLeftNav(); _root.statusShowChars(); var _local3 = {r:255, g:255, b:255}; char.meterHP.fluxTint(_local3, 0, 100, 20, true, 1); char.meterMP.fluxTint(_local3, 0, 100, 20, true, 1); removeItemQTY(item); } function itemMegaElixer(item) { if (_root.soundOn == true) { _root.healSnd.start(); } _root.statusShowChars(); c = 0; while (c < defenderArr.length) { char = defenderArr[c]; char.MP = char.MPMax; char.HP = char.HPMax; c++; } _root.statusShowChars(); c = 0; while (c < defenderArr.length) { char = statusScreen.statusRight[defenderArr[c].name + "Stats"]; var _local2 = {r:255, g:255, b:255}; char.meterMP.fluxTint(_local2, 0, 100, 20, true, 1); char.meterHP.fluxTint(_local2, 0, 100, 20, true, 1); c++; } removeItemQTY(item); } function itemAntidote(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } a = 0; while (a < char.ailments.length) { if (char.ailments[a] == "poison") { char.ailments.splice(a, 1); break; } a++; } _root.enableLeftNav(); _root.statusShowChars(); charMC = statusScreen.statusRight[char.name + "Stats"][char.name + "MC"]; var _local3 = {r:255, g:255, b:255}; charMC.fluxTint(_local3, 0, 100, 20, true, 1); removeItemQTY(item); } function itemResurrection(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } _root.defenderArr[char.num].HP = _root.defenderArr[char.num].HPMax; _root.defenderArr[char.num].MP = _root.defenderArr[char.num].MPMax; _root.enableLeftNav(); _root.statusShowChars(); var _local3 = {r:255, g:255, b:255}; char.meterHP.fluxTint(_local3, 0, 100, 20, true, 1); char.meterMP.fluxTint(_local3, 0, 100, 20, true, 1); removeItemQTY(item); char.dead = false; } function itemMagicTonic(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } char.MPMax = char.MPMax + 5; _root.enableLeftNav(); _root.statusShowChars(); charMC = statusScreen.statusRight[char.name + "Stats"][char.name + "MC"]; var _local3 = {r:255, g:255, b:255}; charMC.fluxTint(_local3, 0, 100, 20, true, 1); checkStatusAilments(char, charMC); removeItemQTY(item); } function itemHPBooster(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } char.HPMax = char.HPMax + 10; _root.enableLeftNav(); _root.statusShowChars(); charMC = statusScreen.statusRight[char.name + "Stats"][char.name + "MC"]; var _local3 = {r:255, g:255, b:255}; charMC.fluxTint(_local3, 0, 100, 20, true, 1); checkStatusAilments(char, charMC); removeItemQTY(item); } function itemPowerBar(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } char.STR = char.STR + 1; _root.enableLeftNav(); _root.statusShowChars(); charMC = statusScreen.statusRight[char.name + "Stats"][char.name + "MC"]; var _local3 = {r:255, g:255, b:255}; charMC.fluxTint(_local3, 0, 100, 20, true, 1); checkStatusAilments(char, charMC); removeItemQTY(item); } function itemIronTusk(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } char.DEF = char.DEF + 1; _root.enableLeftNav(); _root.statusShowChars(); charMC = statusScreen.statusRight[char.name + "Stats"][char.name + "MC"]; var _local3 = {r:255, g:255, b:255}; charMC.fluxTint(_local3, 0, 100, 20, true, 1); checkStatusAilments(char, charMC); removeItemQTY(item); } function itemPoisonScroll(item) { if (_root.soundOn == true) { _root.healSnd.start(); } _root.statusShowChars(); d = 0; while (d < defenderArr.length) { if (defenderArr[d].classType == "Mage") { defenderArr[d].spells.push(["POISON"]); } d++; } _root.statusShowChars(); removeItemQTY(item); showLearnedSpellAlert("POISON"); } function itemShockScroll(item) { if (_root.soundOn == true) { _root.healSnd.start(); } _root.statusShowChars(); d = 0; while (d < defenderArr.length) { if (defenderArr[d].classType == "Mage") { defenderArr[d].spells.push(["SHOCK"]); } d++; } _root.statusShowChars(); removeItemQTY(item); showLearnedSpellAlert("SHOCK"); } function itemFreezeScroll(item) { if (_root.soundOn == true) { _root.healSnd.start(); } _root.statusShowChars(); d = 0; while (d < defenderArr.length) { if (defenderArr[d].classType == "Mage") { defenderArr[d].spells.push(["FREEZE"]); } d++; } _root.statusShowChars(); removeItemQTY(item); showLearnedSpellAlert("FREEZE"); } function showLearnedSpellAlert(spellName) { _root.createEmptyMovieClip("itemAlert", _root.getNextHighestDepth()); box = _root.itemAlert.createEmptyMovieClip("box", 1); box.beginFill(0); box.lineTo(0, 600); box.lineTo(800, 600); box.lineTo(800, 0); box.lineTo(0, 0); box._alpha = 50; box.onRollOver = function () { this.useHandCursor = false; }; itemAlertMC = _root.itemAlert.attachMovie("statusItemAlert", "statusItemAlert", _root.itemAlert.getNextHighestDepth(), {_x:400, _y:140}); addText(itemAlertMC, "tfield", 5, 40, 190, 20, "Kage learned:", 13, 6050119); addText(itemAlertMC, "tfield2", 5, 65, 190, 20, spellName, 16, 0); cancelButtonMC = itemAlertMC.createEmptyMovieClip("cancelButtonMC", itemAlertMC.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 5, 105, 190, 20, "Close", 13, 6050119); cancelButtonMC.invItem = item; cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.itemAlert.removeMovieClip(); }; } function prepBattleItem(itemFunc, char, invItem) { itemTxt = _root.interfaceMC.createEmptyMovieClip("itemTxt", _root.interfaceMC.getNextHighestDepth()); addText(itemTxt, "tfield", 0, 60, 800, 60, invItem.NAME, 30, 16777215); itemTxt._alpha = 0; var _local3 = new mx.transitions.Tween(itemTxt, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 2, true); _local3.onMotionFinished = function () { var _local1 = new mx.transitions.Tween(itemTxt, "_alpha", mx.transitions.easing.Strong.easeOut, 100, 0, 1.5, true); _local1.onMotionFinished = function () { itemFunc = getItemBattleFunc(invItem); itemFunc(char, invItem); }; }; } function itemHPPotionBattle(char, item) { trace((((_root.currentTurn.name + " USING: ") + item.NAME) + " ON: ") + char.name); trace("THIS CHAR'S HP: " + char.HP); if (_root.soundOn == true) { _root.healSnd.start(); } if ((char.HP + item.STR) > char.HPMax) { char.HP = char.HPMax; } else { char.HP = char.HP + item.STR; } animateItemTxtPrep(("+" + item.STR) + " HP", char, 1); if (char.name == _root.currentTurn.name) { updateCharacterInfo(char, _root.charStats.charInfo); var _local4 = {r:255, g:255, b:255}; _root.charStats.charInfo.meterHP.fluxTint(_local4, 0, 100, 20, true, 1); } else { updateCharacterInfo(char, _root.charStats.charInfo2); var _local4 = {r:255, g:255, b:255}; _root.charStats.charInfo2.meterHP.fluxTint(_local4, 0, 100, 20, true, 1); } char.MC.fluxTint(_local4, 0, 100, 20, true, 1); removeItemQTY(item); setTimeout(remOverlay, 2000); } function itemMPPotionBattle(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } if ((char.MP + item.STR) > char.MPMax) { char.MP = char.MPMax; } else { char.MP = char.MP + item.STR; } animateItemTxtPrep(item.STR + " MP", char, 3); if (char.name == _root.currentTurn.name) { updateCharacterInfo(char, _root.charStats.charInfo); var _local4 = {r:255, g:255, b:255}; _root.charStats.charInfo.meterMP.fluxTint(_local4, 0, 100, 20, true, 1); } else { updateCharacterInfo(char, _root.charStats.charInfo2); var _local4 = {r:255, g:255, b:255}; _root.charStats.charInfo2.meterMP.fluxTint(_local4, 0, 100, 20, true, 1); } removeItemQTY(item); setTimeout(remOverlay, 2000); } function itemElixerBattle(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } char.HP = char.HPMax; char.MP = char.MPMax; animateItemTxtPrep("HP/MP Maxed", char, 2); if (char == _root.currentTurn) { updateCharacterInfo(char, _root.charStats.charInfo); var _local3 = {r:255, g:255, b:255}; _root.charStats.charInfo.meterMP.fluxTint(_local3, 0, 100, 20, true, 1); _root.charStats.charInfo.meterHP.fluxTint(_local3, 0, 100, 20, true, 1); } else { updateCharacterInfo(char, _root.charStats.charInfo2); var _local3 = {r:255, g:255, b:255}; _root.charStats.charInfo2.meterMP.fluxTint(_local3, 0, 100, 20, true, 1); _root.charStats.charInfo2.meterHP.fluxTint(_local3, 0, 100, 20, true, 1); } char.MC.fluxTint(_local3, 0, 100, 20, true, 1); removeItemQTY(item); setTimeout(remOverlay, 2000); } function itemMegaElixerBattle(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } d = 0; while (d < defenderLevelArr.length) { defenderLevelArr[d].HP = _root.defenderLevelArr[d].HPMax; defenderLevelArr[d].MP = _root.defenderLevelArr[d].MPMax; animateItemTxtPrep("HP/MP Maxed", defenderLevelArr[d], 7); var _local2 = {r:255, g:255, b:255}; defenderLevelArr[d].MC.fluxTint(_local2, 0, 100, 20, true, 1); d++; } updateCharacterInfo(char, _root.charStats.charInfo); _root.charStats.charInfo.meterMP.fluxTint(_local2, 0, 100, 20, true, 1); _root.charStats.charInfo.meterHP.fluxTint(_local2, 0, 100, 20, true, 1); removeItemQTY(item); setTimeout(remOverlay, 2000); } function itemAntidoteBattle(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } a = 0; while (a < char.ailments.length) { if (char.ailments[a] == "poison") { char.ailments.splice(a, 1); break; } a++; } var _local3 = {r:255, g:255, b:255}; char.MC.charMC.fluxTint(_local3, 0, 100, 20, true, 1); removeItemQTY(item); setTimeout(remOverlay, 2000); } function itemResurrectionBattle(char, item) { if (_root.soundOn == true) { _root.healSnd.start(); } char.dead = false; char.MC.charMC.gotoAndStop(char.curDirection); turnArr.push([char, char.SPD]); tileMap[char.x][char.y].walkable = false; tileMap[char.x][char.y].deadChar = false; char.enabled = true; char.HP = char.HPMax; char.MP = char.MPMax; var _local3 = {r:255, g:255, b:255}; char.MC.charMC.fluxTint(_local3, 0, 100, 20, true, 1); removeItemQTY(item); setTimeout(remOverlay, 2000); } function animateItemTxtPrep(critTxt, target, frame) { critTxtArr = critTxt.toString().split(""); itemTxt = _root.display.tiles.createEmptyMovieClip("itemTxt" + _root.display.tiles.getNextHighestDepth(), _root.display.tiles.getNextHighestDepth()); wordWidth2 = 0; t = 0; while (t < critTxtArr.length) { var _local2 = itemTxt.attachMovie("damageTxt", "critTxt" + t, itemTxt.getNextHighestDepth(), {_x:wordWidth2 + (target.MC._x - (critTxtArr.length * 4)), _y:(target.MC._y - target.MC._height) + 15}); _local2._width = _local2._width * 1.2; _local2._height = _local2._height * 1.2; _local2.num = t + 1; _local2.gotoAndStop(frame); _local2.txt.text = critTxtArr[t]; _local2.txt.autoSize = true; wordWidth2 = wordWidth2 + (_local2.txt._width - 2); setTimeout(animateItemTxt, t * 75, _local2, itemTxt); t++; } } function animateItemTxt(txt, MCHolder) { critTxtTween = new mx.transitions.Tween(txt, "_y", mx.transitions.easing.Elastic.easeOut, txt._y, txt._y - 10, 1.5, true); if (txt.num == critTxtArr.length) { critTxtTween.onMotionFinished = function () { MCHolder.removeMovieClip(); }; } } function addOverlayMultiple(char, target) { var _local2 = _root.display.tiles.attachMovie("overlay-MC", "overlayMC", _root.display.tiles.getNextHighestDepth()); _local2._width = _local2._width * 4; _local2._height = _local2._height * 4; _local2._x = _root.display.tiles._x - 1500; _local2._y = _root.display.tiles._y - 1000; if (char.MC._y < target._y) { char.MC.swapDepths(_root.display.tiles.getNextHighestDepth()); target.MC.swapDepths(_root.display.tiles.getNextHighestDepth()); } else { target.MC.swapDepths(_root.display.tiles.getNextHighestDepth()); char.MC.swapDepths(_root.display.tiles.getNextHighestDepth()); } _root.charStats.windowActions._visible = false; } function remOverlayMultiple() { _root.display.tiles.overlayMC.gotoAndPlay(21); setTimeout(charOverlayDepth, 1000); if (dropTreasure == true) { setTimeout(dropTreasureFunc, 1000); } else { setTimeout(endAttack, 1500); } } function checkItemRange(char, item) { attackRangeArr = new Array(); itemRange = 1; attackArr = new Array(); rangeCount = 1; down = false; i = char.x - itemRange; while (i < ((char.x + itemRange) + 1)) { var _local2 = {r:255, g:66, b:239}; i2 = char.y; while (i2 < (rangeCount + char.y)) { tileMap[i][i2].range._visible = true; tileMap[i][i2].range.fluxTint(_local2, 0, 50, 99, false, 1); attackRangeArr.push(tileMap[i][i2]); e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i2]) { attackArr.push(defenderLevelArr[e]); } e++; } e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == tileMap[i][i2]) { attackArr.push(enemyArr[e]); } e++; } i2++; } i3 = char.y; while (i3 > (char.y - rangeCount)) { tileMap[i][i3].range._visible = true; tileMap[i][i3].range.fluxTint(_local2, 0, 50, 99, false, 1); attackRangeArr.push(tileMap[i][i3]); e = 0; while (e < defenderLevelArr.length) { if (tileMap[defenderLevelArr[e].x][defenderLevelArr[e].y] == tileMap[i][i3]) { attackArr.push(defenderLevelArr[e]); } e++; } e = 0; while (e < enemyArr.length) { if (tileMap[enemyArr[e].x][enemyArr[e].y] == tileMap[i][i3]) { attackArr.push(enemyArr[e]); } e++; } i3--; } if (rangeCount < (itemRange + 1)) { if (down != true) { rangeCount++; } else { rangeCount--; } } else { down = true; rangeCount--; } i++; } itemHumansInRange(item); } function itemHumansInRange(item) { if (item.NAME == "Resurrection") { itemHumansInRangeResurrection(item); } else { e = 0; while (e < enemyArr.length) { enemyArr[e].enabled = false; e++; } r = 0; while (r < attackArr.length) { if ((attackArr[r].type == "enemy") || (attackArr[r].dead == true)) { attackArr[r].MC._alpha = 50; attackArr[r].MC.enabled = false; } else { var colObj = {r:255, g:255, b:255}; attackArr[r].MC.fluxTint(colObj, 0, 60, 5, true); attackArr[r].MC.hover.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this._parent.enabled = false; this._parent.useHandCursor = false; _root.resetRange(_root.attackRangeArr); _root.disableCharRollOvers(); this._parent.fluxTint(colObj, 0, 0, 1, false); _root.addOverlay(_root.currentTurn, this._parent.stats); setTimeout(prepBattleItem, 2000, item.battleFUNC, this._parent.stats, item); }; attackArr[r].MC.hover.onRollOver = function () { this.useHandCursor = true; var _local4 = {r:255, g:255, b:255}; this._parent.fluxTint(_local4, 0, 70, 15, false, 1); if (this._parent.stats != _root.currentTurn) { var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this._parent.stats, _local3); } }; attackArr[r].MC.hover.onRollOut = function () { var _local3 = {r:255, g:255, b:255}; this._parent.fluxTint(_local3, 0, 60, 5, true); _root.charStats.charInfo2.removeMovieClip(); }; } r++; } } } function itemHumansInRangeResurrection(item) { e = 0; while (e < enemyArr.length) { enemyArr[e].enabled = false; e++; } r = 0; while (r < attackArr.length) { if ((attackArr[r].type == "enemy") || (attackArr[r].dead != true)) { attackArr[r].MC._alpha = 50; attackArr[r].MC.enabled = false; } else { var colObj = {r:255, g:255, b:255}; attackArr[r].MC.fluxTint(colObj, 0, 60, 5, true); attackArr[r].MC.hover.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this._parent.enabled = false; this._parent.useHandCursor = false; _root.resetRange(_root.attackRangeArr); _root.disableCharRollOvers(); this._parent.fluxTint(colObj, 0, 0, 1, false); _root.addOverlay(_root.currentTurn, this._parent.stats); setTimeout(prepBattleItem, 2000, item.battleFUNC, this._parent.stats, item); }; attackArr[r].MC.hover.onRollOver = function () { this.useHandCursor = true; var _local4 = {r:255, g:255, b:255}; this._parent.fluxTint(_local4, 0, 70, 15, false, 1); if (this._parent.stats != _root.currentTurn) { var _local3 = _root.charStats.attachMovie("charInfoR-MC", "charInfo2", _root.charStats.getNextHighestDepth(), {_x:850, _y:440}); var _local7 = new mx.transitions.Tween(_local3, "_x", mx.transitions.easing.Strong.easeOut, _local3._x, 490, 1, true); updateCharacterInfo(this._parent.stats, _local3); } }; attackArr[r].MC.hover.onRollOut = function () { var _local3 = {r:255, g:255, b:255}; this._parent.fluxTint(_local3, 0, 60, 5, true); _root.charStats.charInfo2.removeMovieClip(); }; } r++; } } function assignEquipment(itemName, makingItemList) { switch (itemName) { case "Rusty Sword" : item = new Object(); item.NAME = itemName; item.ICON = "iconRustySword"; item.VAL = 2; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 1]]; item.classType = new Array(); item.classType = ["Knight"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Iron Sword" : item = new Object(); item.NAME = itemName; item.ICON = "iconIronSword"; item.VAL = 80; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 3]]; item.classType = new Array(); item.classType = ["Knight"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Broad Sword" : item = new Object(); item.NAME = itemName; item.ICON = "iconBroadSword"; item.VAL = 250; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 5]]; item.classType = new Array(); item.classType = ["Knight"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Falchion" : item = new Object(); item.NAME = itemName; item.ICON = "iconFalchion"; item.VAL = 500; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 7]]; item.classType = new Array(); item.classType = ["Knight"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Flame Sword" : item = new Object(); item.NAME = itemName; item.ICON = "iconFlameSword"; item.VAL = 2; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 9]]; item.classType = new Array(); item.classType = ["Knight"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Wood Staff" : item = new Object(); item.NAME = itemName; item.ICON = "iconWoodStaff"; item.VAL = 30; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["MAG", 2]]; item.classType = new Array(); item.classType = ["Mage"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Wand" : item = new Object(); item.NAME = itemName; item.ICON = "iconWand"; item.VAL = 70; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["MAG", 3]]; item.classType = new Array(); item.classType = ["Mage"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Element Staff" : item = new Object(); item.NAME = itemName; item.ICON = "iconElementStaff"; item.VAL = 225; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["MAG", 5]]; item.classType = new Array(); item.classType = ["Mage"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Lava Wand" : item = new Object(); item.NAME = itemName; item.ICON = "iconLavaWand"; item.VAL = 500; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["MAG", 7]]; item.classType = new Array(); item.classType = ["Mage"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Wooden Bow" : item = new Object(); item.NAME = itemName; item.ICON = "iconWoodenBow"; item.VAL = 100; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 2]]; item.classType = new Array(); item.classType = ["Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Long Bow" : item = new Object(); item.NAME = itemName; item.ICON = "iconLongBow"; item.VAL = 250; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 4]]; item.classType = new Array(); item.classType = ["Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Cupid Bow" : item = new Object(); item.NAME = itemName; item.ICON = "iconCupidBow"; item.VAL = 500; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 6]]; item.classType = new Array(); item.classType = ["Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Marksman Bow" : item = new Object(); item.NAME = itemName; item.ICON = "iconMarksmanBow"; item.VAL = 500; item.TYPE = 1; item.ATT = new Array(); item.ATT = [["STR", 8]]; item.classType = new Array(); item.classType = ["Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Rusty Armor" : item = new Object(); item.NAME = itemName; item.ICON = "iconRustyArmor"; item.VAL = 2; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 1]]; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Iron Armor" : item = new Object(); item.NAME = itemName; item.ICON = "iconIronArmor"; item.VAL = 90; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 3]]; item.classType = new Array(); item.classType = ["Knight"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Chain Mail" : item = new Object(); item.NAME = itemName; item.ICON = "iconChainMail"; item.VAL = 200; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 5]]; item.classType = new Array(); item.classType = ["Knight"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Plate Armor" : item = new Object(); item.NAME = itemName; item.ICON = "iconPlateArmor"; item.VAL = 575; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 7]]; item.classType = new Array(); item.classType = ["Knight"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Cloth Robe" : item = new Object(); item.NAME = itemName; item.ICON = "iconClothRobe"; item.VAL = 32; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 1]]; item.classType = new Array(); item.classType = ["Mage"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Cloak" : item = new Object(); item.NAME = itemName; item.ICON = "iconCloak"; item.VAL = 75; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 3]]; item.classType = new Array(); item.classType = ["Mage"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Silk Robe" : item = new Object(); item.NAME = itemName; item.ICON = "iconSilkRobe"; item.VAL = 220; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 5]]; item.classType = new Array(); item.classType = ["Mage"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Amber Robe" : item = new Object(); item.NAME = itemName; item.ICON = "iconSilkRobe"; item.VAL = 550; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 7]]; item.classType = new Array(); item.classType = ["Mage"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Iron Vest" : item = new Object(); item.NAME = itemName; item.ICON = "iconIronVest"; item.VAL = 60; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 3]]; item.classType = new Array(); item.classType = ["Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Iron Doublet" : item = new Object(); item.NAME = itemName; item.ICON = "iconIronDoublet"; item.VAL = 225; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 5]]; item.classType = new Array(); item.classType = ["Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Rose Gilet" : item = new Object(); item.NAME = itemName; item.ICON = "iconRoseGilet"; item.VAL = 525; item.TYPE = 2; item.ATT = new Array(); item.ATT = [["DEF", 7]]; item.classType = new Array(); item.classType = ["Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Iron Ring" : item = new Object(); item.NAME = itemName; item.ICON = "iconIronRing"; item.VAL = 50; item.TYPE = 3; item.ATT = new Array(); item.ATT = [["DEF", 1]]; item.DESC = "Increases DEF by 1"; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Magic Ring" : item = new Object(); item.NAME = itemName; item.ICON = "iconMagicRing"; item.VAL = 80; item.TYPE = 3; item.ATT = new Array(); item.ATT = [["MAG", 1]]; item.DESC = "Increases MAG by 1"; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Amulet of Warding" : item = new Object(); item.NAME = itemName; item.ICON = "iconAmuletWarding"; item.VAL = 200; item.TYPE = 3; item.ATT = new Array(); item.ATT = [["DEF", 1], ["MAG", 1]]; item.DESC = "Increases DEF by 1 and MAG by 1"; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Lucky Ribbon" : item = new Object(); item.NAME = itemName; item.ICON = "iconLuckyRibbon"; item.VAL = 500; item.TYPE = 3; item.ATT = new Array(); item.ATT = [["LCK", 5]]; item.DESC = "Increases LUCK by 5"; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Power Glove" : item = new Object(); item.NAME = itemName; item.ICON = "iconPowerGlove"; item.VAL = 600; item.TYPE = 3; item.ATT = new Array(); item.ATT = [["STR", 3]]; item.DESC = "Increases STR by 3"; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Ruby Pin" : item = new Object(); item.NAME = itemName; item.ICON = "iconRubyPin"; item.VAL = 300; item.TYPE = 3; item.ATT = new Array(); item.ATT = [["STR", 1], ["DEF", 1]]; item.DESC = "Increases STR by 1 and DEF by 1"; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Silver Necklace" : item = new Object(); item.NAME = itemName; item.ICON = "iconSilverNecklace"; item.VAL = 180; item.TYPE = 3; item.ATT = new Array(); item.ATT = [["STR", 1], ["SPD", 1]]; item.DESC = "Increases STR by 1 and SPD by 1"; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Speed Boots" : item = new Object(); item.NAME = itemName; item.ICON = "iconSpeedBoots"; item.VAL = 700; item.TYPE = 3; item.ATT = new Array(); item.ATT = [["SPD", 5]]; item.DESC = "Increases SPD by 5"; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } break; case "Thief Gloves" : item = new Object(); item.NAME = itemName; item.ICON = "iconThiefGloves"; item.VAL = 2; item.TYPE = 3; item.ATT = new Array(); item.ATT = null; item.DESC = "Increases chances of getting treasures from enemies."; item.classType = new Array(); item.classType = ["Knight", "Mage", "Archer"]; item.QTY = 1; item.USED = false; if (makingItemList == true) { itemListArr.push(item); } else { equipment.push(item); } } } function statusShowEquipment(charNum) { if (charNum == undefined) { charNum = 0; } statusScreen.statusRight.removeMovieClip(); var _local8 = statusScreen.createEmptyMovieClip("statusRight", statusScreen.getNextHighestDepth()); _local8._x = 230; var _local4 = statusScreen.statusRight.attachMovie("statusEquipment", "statusEquipment", statusScreen.statusRight.getNextHighestDepth(), {_x:16, _y:20}); if (_root.inBattle != true) { if (defenderArr.length > 1) { statusAddNextCharacterButton("equipment", charNum, _local4); } } var _local7 = _local4.attachMovie("defenders", "defender_" + defenderArr[charNum].name, _local4.getNextHighestDepth(), {_x:95, _y:110}); _local7.gotoAndStop(defenderArr[charNum].name); _local7._xscale = _local7._xscale * 1.15; _local7._yscale = _local7._yscale * 1.15; if (defenderArr[charNum].HP == 0) { _local4.attachMovie("iconDeath", "iconDeath", _local4.getNextHighestDepth(), {_x:18, _y:28}); } checkStatusAilments(defenderArr[charNum], _local7); _local4.charName.text = defenderArr[charNum].name; _local4.charSTR.text = defenderArr[charNum].STR; _local4.charDEF.text = defenderArr[charNum].DEF; _local4.charLCK.text = defenderArr[charNum].LCK; _local4.charSPD.text = defenderArr[charNum].SPD; _local4.charMAG.text = defenderArr[charNum].MAG; _local4.charRange.text = defenderArr[charNum].range; equipArr = new Array(); equipArr = [defenderArr[charNum].WEAPON, defenderArr[charNum].ARMOR, defenderArr[charNum].ACCESSORY]; e = 0; while (e < equipArr.length) { itemNameClip = _local4.createEmptyMovieClip(equipArr[e].NAME + "Clip", _local4.getNextHighestDepth()); itemIcon = itemNameClip.attachMovie(equipArr[e].ICON, equipArr[e].ICON, itemNameClip.getNextHighestDepth(), {_x:287, _y:(e * 29) + 65}); if ((equipArr[e].NAME == undefined) || (equipArr[e].NAME == null)) { addText(itemNameClip, "titleTxt" + equipArr[e].NAME, 320, (e * 29) + 70, 250, 20, "None", 12, 6050119, false); } else { addText(itemNameClip, "titleTxt" + equipArr[e].NAME, 320, (e * 29) + 70, 120, 20, equipArr[e].NAME, 12, 6050119, false); addRemoveEquipButton(defenderArr[charNum], equipArr[e], e, charNum); } itemNameClip.tfield = itemNameClip["titleTxt" + equipArr[e].NAME]; itemNameClip.invItem = equipArr[e]; itemNameClip.ICON = itemIcon; itemNameClip.TYPE = e + 1; itemNameClip.CHAR = defenderArr[charNum]; itemNameClip.curCharNum = charNum; itemNameClip.onRollOver = function () { this.tfield.textColor = 0; }; itemNameClip.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; itemNameClip.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; groupEquipment(this.CHAR, this.TYPE, this.curCharNum); }; e++; } } function addRemoveEquipButton(char, equipment, num, charNum) { trace("CHAR NUM REMOVE: " + charNum); removeTxtClip = statusScreen.statusRight.statusEquipment.createEmptyMovieClip(equipment.NAME + "RemoveTxt", statusScreen.statusRight.statusEquipment.getNextHighestDepth()); addText(removeTxtClip, "removeTxt" + equipment.NAME, 460, (num * 29) + 71, 100, 20, "Remove", 10, 6050119, false); removeTxtClip.equip = equipment; removeTxtClip.tfield = removeTxtClip["removeTxt" + equipment.NAME]; removeTxtClip.TYPE = num + 1; removeTxtClip.charNum = charNum; removeTxtClip.char = char; trace("CHAR NUM: " + charNum); removeTxtClip.onRollOver = function () { this.tfield.textColor = 0; }; removeTxtClip.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; removeTxtClip.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } equipmentType = this.equip; a = 0; while (a < equipmentType.ATT.length) { this.char[equipmentType.ATT[a][0]] = this.char[equipmentType.ATT[a][0]] - equipmentType.ATT[a][1]; a++; } e = 0; while (e < _root.equipment.length) { if (_root.equipment[e].NAME == equipmentType.NAME) { if (_root.equipment[e].USED == true) { _root.equipment[e].USED = false; break; } } e++; } switch (this.TYPE) { case 1 : _root.defenderArr[this.charNum].WEAPON = null; break; case 2 : _root.defenderArr[this.charNum].ARMOR = null; break; case 3 : _root.defenderArr[this.charNum].ACCESSORY = null; } _root.statusShowEquipment(this.charNum); }; } function groupEquipment(char, type, charNum) { statusScreen.statusRight.statusEquipment.equipmentOptions.removeMovieClip(); statusScreen.statusRight.statusEquipment.windowActionsMask.removeMovieClip(); statusScreen.statusRight.statusEquipment.titleTxt.removeMovieClip(); statusScreen.statusRight.statusEquipment.createEmptyMovieClip("equipmentOptions", statusScreen.statusRight.statusEquipment.getNextHighestDepth()); statusScreen.statusRight.statusEquipment.createEmptyMovieClip("titleTxt", statusScreen.statusRight.statusEquipment.getNextHighestDepth()); addText(statusScreen.statusRight.statusEquipment.titleTxt, "catTitle", 50, 207, 250, 20, getEquipmentClassName(type), 16, 0, false); equipCounter = 0; e = 0; while (e < equipment.length) { if (equipment[e].TYPE == type) { c = 0; while (c < equipment[e].classType.length) { if (equipment[e].classType[c] == char.classType) { if (equipment[e].USED != true) { displayEquipment(equipment[e], equipCounter, char, charNum); equipCounter++; } break; } c++; } } e++; } equipCheckForScroll(equipCounter); } function getEquipmentClassName(type) { switch (type) { case 1 : return("WEAPONS"); case 2 : return("ARMOR"); case 3 : return("ACCESSORIES"); } } function displayEquipment(myEquipment, counter, char, charNum) { itemNameClip = statusScreen.statusRight.statusEquipment.equipmentOptions.createEmptyMovieClip(myEquipment.NAME + "Clip", statusScreen.statusRight.statusEquipment.equipmentOptions.getNextHighestDepth()); if ((counter % 2) == 0) { itemIcon = itemNameClip.attachMovie(myEquipment.ICON, myEquipment.ICON, itemNameClip.getNextHighestDepth(), {_x:50, _y:(counter * 15) + 237}); addText(itemNameClip, "titleTxt" + myEquipment.NAME, 80, (counter * 15) + 242, 250, 20, myEquipment.NAME, 12, 6050119, false); } else { itemIcon = itemNameClip.attachMovie(myEquipment.ICON, myEquipment.ICON, itemNameClip.getNextHighestDepth(), {_x:300, _y:((counter - 1) * 15) + 237}); addText(itemNameClip, "titleTxt" + myEquipment.NAME, 330, ((counter - 1) * 15) + 242, 250, 20, myEquipment.NAME, 12, 6050119, false); } itemNameClip.tfield = itemNameClip["titleTxt" + myEquipment.NAME]; itemNameClip.invItem = myEquipment; itemNameClip.ICON = itemIcon; itemNameClip.CHAR = char; itemNameClip.curCharNum = charNum; itemNameClip.onRollOver = function () { this.tfield.textColor = 0; if (this.invItem.ATT == null) { statusEquipmentDescMC = statusScreen.statusRight.statusEquipment.attachMovie("statusEquipmentDescMC", "statusEquipmentDescMC", statusScreen.statusRight.statusEquipment.getNextHighestDepth(), {_x:40, _y:400}); _root.addText(statusEquipmentDescMC, "descTXT", 0, 20, 440, 60, this.invItem.DESC, 12, 6050119); } else { showEquipmentIncrease(this.invItem, this.CHAR); } }; itemNameClip.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; statusScreen.statusRight.statusEquipment.statusEquipmentDescMC.removeMovieClip(); statusScreen.statusRight.statusEquipment.attributeTxt.removeMovieClip(); }; itemNameClip.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } equipChar(this.CHAR, this.invItem.NAME, this.curCharNum); }; } function equipChar(char, equipmentName, charNum, initEquip) { e = 0; while (e < equipment.length) { if (equipment[e].NAME == equipmentName) { switch (equipment[e].TYPE) { case 1 : increaseEquipmentAttributes(char, char.WEAPON, equipment[e]); break; case 2 : increaseEquipmentAttributes(char, char.ARMOR, equipment[e]); break; case 3 : increaseEquipmentAttributes(char, char.ACCESSORY, equipment[e]); } if (initEquip != true) { statusShowEquipment(charNum); } break; } e++; } } function increaseEquipmentAttributes(char, equipmentType, equipmentAdding) { if (equipmentType != null) { a = 0; while (a < equipmentType.ATT.length) { char[equipmentType.ATT[a][0]] = char[equipmentType.ATT[a][0]] - equipmentType.ATT[a][1]; a++; } e = 0; while (e < equipment.length) { if (equipment[e].NAME == equipmentType.NAME) { if (equipment[e].USED == true) { equipment[e].USED = false; break; } } e++; } } a = 0; while (a < equipmentAdding.ATT.length) { char[equipmentAdding.ATT[a][0]] = char[equipmentAdding.ATT[a][0]] + equipmentAdding.ATT[a][1]; a++; } switch (equipmentAdding.TYPE) { case 1 : char.WEAPON = equipmentAdding; break; case 2 : char.ARMOR = equipmentAdding; break; case 3 : char.ACCESSORY = equipmentAdding; } e = 0; while (e < equipment.length) { if (equipment[e].NAME == equipmentAdding.NAME) { if (equipment[e].USED != true) { equipment[e].USED = true; break; } } e++; } } function checkEquipmentExists(itemName) { i = 0; while (i < equipment.length) { if (equipment[i].NAME == itemName) { equipment[i].QTY++; return(true); } i++; } return(false); } function removeEquipmentQTY(item) { i = 0; while (i < equipment.length) { if (equipment[i].NAME == item.NAME) { equipment.splice(i, 1); break; } i++; } } function dropEquipment(item) { item.QTY--; if (item.QTY <= 0) { i = 0; while (i < equipment.length) { if ((equipment[i].NAME == item.NAME) && (equipment[i].USED != true)) { equipment.splice(i, 1); break; } i++; } } statusShowItems(); } function showEquipmentIncrease(item, char) { statusScreen.statusRight.statusEquipment.attributeTxt.removeMovieClip(); txtHolder = statusScreen.statusRight.statusEquipment.createEmptyMovieClip("attributeTxt", statusScreen.statusRight.statusEquipment.getNextHighestDepth()); attArr = [["STR", 170, 413], ["DEF", 328, 413], ["LCK", 170, 441], ["MAG", 475, 413], ["SPD", 328, 441], ["range", 475, 441]]; a = 0; while (a < attArr.length) { STRDiff = compareAttributes(attArr[a][0], item, char); addText(txtHolder, "STRtxt", attArr[a][1], attArr[a][2], 120, 20, STRDiff[0], 12, STRDiff[1], false); a++; } } function getEquipmentType(char, item) { switch (item.TYPE) { case 1 : return(char.WEAPON); case 2 : return(char.ARMOR); case 3 : return(char.ACCESSORY); } } function compareAttributes(charAtt, item, char) { attNum = null; i = 0; while (i < item.ATT.length) { if (item.ATT[i][0] == charAtt) { attNum = i; newItemStat = item.ATT[i][1]; break; } i++; } diffReturn = new Array(); if (attNum == null) { charEquipArr = getEquipmentType(char, item).ATT; curItemStat = null; i = 0; while (i < charEquipArr.length) { if (charEquipArr[i][0] == charAtt) { curItemStat = charEquipArr[i][1]; break; } i++; } if (curItemStat == null) { diffReturn.push(""); diffReturn.push("0x930000"); return(diffReturn); } diffReturn.push("-" + curItemStat); diffReturn.push("0x930000"); return(diffReturn); } charEquipArr = getEquipmentType(char, item).ATT; curItemStat = null; i = 0; while (i < charEquipArr.length) { if (charEquipArr[i][0] == charAtt) { curItemStat = charEquipArr[i][1]; break; } i++; } if (curItemStat == null) { diffReturn.push("+" + newItemStat); diffReturn.push("0x0078ff"); return(diffReturn); } diff = newItemStat - curItemStat; if (diff < 0) { diffReturn.push(diff); diffReturn.push("0x930000"); return(diffReturn); } diffReturn.push("+" + diff); diffReturn.push("0x0078ff"); return(diffReturn); } function equipCheckForScroll(counter) { if (counter > 8) { maskMC = statusScreen.statusRight.statusEquipment.attachMovie("windowActionsMask", "windowActionsMask", statusScreen.statusRight.statusEquipment.getNextHighestDepth(), {_x:265, _y:300}); maskMC._width = 480; maskMC._height = 120; statusScreen.statusRight.statusEquipment.equipmentOptions.setMask(maskMC); var _local4 = statusScreen.statusRight.statusEquipment.titleTxt.attachMovie("menuArrow", "downArrow", statusScreen.statusRight.statusEquipment.titleTxt.getNextHighestDepth(), {_x:250, _y:355}); var _local3 = statusScreen.statusRight.statusEquipment.titleTxt.attachMovie("menuArrow", "upArrow", statusScreen.statusRight.statusEquipment.titleTxt.getNextHighestDepth(), {_x:250, _y:220}); _local3._visible = false; _local4._yscale = -100; _root.scrollNum = 0; _root.arrSize = counter + 1; _local4.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (_root.scrollNum < (_root.arrSize - 7)) { _root.statusScreen.statusRight.statusEquipment.equipmentOptions._y = _root.statusScreen.statusRight.statusEquipment.equipmentOptions._y - 30; _root.scrollNum++; _root.equipCheckScrollArrows(); } }; _local4.onRollOver = function () { this.gotoAndStop(2); }; _local4.onRollOut = function () { this.gotoAndStop(1); }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if ((_root.scrollNum + _root.arrSize) > _root.arrSize) { _root.statusScreen.statusRight.statusEquipment.equipmentOptions._y = _root.statusScreen.statusRight.statusEquipment.equipmentOptions._y + 30; _root.scrollNum--; _root.equipCheckScrollArrows(); } }; _local3.onRollOver = function () { this.gotoAndStop(2); }; _local3.onRollOut = function () { this.gotoAndStop(1); }; } } function equipCheckScrollArrows() { tempScrollNum = Math.floor(_root.arrSize / 2) * 2; if ((_root.scrollNum + 9) == tempScrollNum) { _root.statusScreen.statusRight.statusEquipment.titleTxt.downArrow._visible = false; } else { _root.statusScreen.statusRight.statusEquipment.titleTxt.downArrow._visible = true; } if ((_root.scrollNum + 8) == 8) { _root.statusScreen.statusRight.statusEquipment.titleTxt.upArrow._visible = false; } else { _root.statusScreen.statusRight.statusEquipment.titleTxt.upArrow._visible = true; } } function addTreasure(type) { switch (type) { case 1 : if (checkTreasureExists(type) == false) { item = new Object(); item.TYPE = type; item.NAME = "Easy Treasure"; item.MIN = 0; item.ICON = "iconTreasure"; item.LOOT = treasureEasy; item.QTY = 1; treasures.push(item); } break; case 2 : if (checkTreasureExists(type) == false) { item = new Object(); item.TYPE = type; item.NAME = "Medium Treasure"; item.MIN = 10; item.ICON = "iconTreasure"; item.LOOT = treasureMedium; item.QTY = 1; treasures.push(item); } break; case 3 : if (checkTreasureExists(type) == false) { item = new Object(); item.TYPE = type; item.NAME = "Hard Treasure"; item.MIN = 25; item.ICON = "iconTreasure"; item.LOOT = treasureHard; item.QTY = 1; treasures.push(item); } break; case 4 : if (checkTreasureExists(type) != false) { break; } item = new Object(); item.TYPE = type; item.NAME = "Very Hard Treasure"; item.MIN = 50; item.ICON = "iconTreasure"; item.LOOT = treasureVeryHard; item.QTY = 1; treasures.push(item); } } function checkTreasureExists(type) { i = 0; while (i < treasures.length) { if (treasures[i].TYPE == type) { treasures[i].QTY++; return(true); } i++; } return(false); } function statusShowTreasures() { curItem = null; statusScreen.statusRight.removeMovieClip(); statusScreen.alert.removeMovieClip(); var _local9 = statusScreen.createEmptyMovieClip("statusRight", statusScreen.getNextHighestDepth()); _local9._x = 230; var _local3 = statusScreen.statusRight.attachMovie("statusTreasures", "statusTreasures", statusScreen.statusRight.getNextHighestDepth(), {_x:16, _y:20}); i = 0; while (i < treasures.length) { itemNameClip = _local3.createEmptyMovieClip("itemNameClip" + i, _local3.getNextHighestDepth()); itemIcon = itemNameClip.attachMovie(treasures[i].ICON, treasures[i].ICON, itemNameClip.getNextHighestDepth(), {_x:40, _y:(i * 30) + 60}); addText(itemNameClip, "titleTxt" + treasures[i].NAME, 100, (i * 30) + 65, 150, 20, treasures[i].NAME, 12, 6050119, false); itemQtyClip = _local3.createEmptyMovieClip("itemQtyClip" + i, _local3.getNextHighestDepth()); addText(itemQtyClip, "itemQTY" + treasures[i].NAME, 75, (i * 30) + 65, 35, 20, treasures[i].QTY + " x", 12, 0, false); itemNameClip.tfield = itemNameClip["titleTxt" + treasures[i].NAME]; itemNameClip.infoBox = _local3.itemInfo; itemNameClip.treasure = treasures[i]; itemNameClip.ICON = itemIcon; itemNameClip.onRollOver = function () { this.tfield.textColor = 0; this.infoBox.text = this.invItem.DESC; var _local2 = {r:255, g:255, b:255}; this.ICON.fluxTint(_local2, 0, 70, 10, true); }; itemNameClip.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; this.infoBox.text = ""; var _local2 = {r:255, g:255, b:255}; this.ICON.fluxTint(_local2, 60, 0, 20, false); }; itemNameClip.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; this.ICON.fluxTint(colObj, 60, 0, 20, false); if (_root.lockpicking >= this.treasure.MIN) { if (checkLockpickInventory() == true) { _root.showTreasureAlert(this.treasure); } else { _root.showTreasureNoLockpicksAlert(); } } else { _root.showTreasureLevelAlert(this.treasure.MIN); } }; i++; } } function showTreasureAlert(treasure) { _root.statusScreen.createEmptyMovieClip("alert", _root.statusScreen.getNextHighestDepth()); box = _root.statusScreen.alert.createEmptyMovieClip("box", 1); box.beginFill(0); box.lineTo(0, 600); box.lineTo(800, 600); box.lineTo(800, 0); box.lineTo(0, 0); box._alpha = 50; box.onRollOver = function () { this.useHandCursor = false; }; alertMC = _root.statusScreen.alert.attachMovie("statusItemAlert", "statusItemAlert", _root.statusScreen.alert.getNextHighestDepth(), {_x:300, _y:165}); useButtonMC = alertMC.createEmptyMovieClip("useButtonMC", alertMC.getNextHighestDepth()); addText(useButtonMC, "tfield", 5, 50, 190, 20, "Unlock", 16, 6050119); useButtonMC.treasure = treasure; useButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; useButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; useButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.showLockPicksAlert(this.treasure.TYPE); }; cancelButtonMC = alertMC.createEmptyMovieClip("cancelButtonMC", alertMC.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 5, 85, 190, 20, "Cancel", 16, 6050119); cancelButtonMC.invItem = item; cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.statusScreen.alert.removeMovieClip(); statusShowTreasures(); }; } function showLockPicksAlert(treasureDifficulty) { _root.statusScreen.alert.removeMovieClip(); _root.statusScreen.createEmptyMovieClip("alert", _root.statusScreen.getNextHighestDepth()); box = _root.statusScreen.alert.createEmptyMovieClip("box", 1); box.beginFill(0); box.lineTo(0, 600); box.lineTo(800, 600); box.lineTo(800, 0); box.lineTo(0, 0); box._alpha = 50; box.onRollOver = function () { this.useHandCursor = false; }; treasureInfo = _root.statusScreen.alert.attachMovie("textBox1MC", "treasureInfo", _root.statusScreen.alert.getNextHighestDepth(), {_x:160, _y:175}); _root.addText(treasureInfo, "titleTxt", 0, 40, 475, 50, "Select a Lockpick to use", 16, 0); i = 0; while (i < inventory.length) { if (inventory[i].NAME == "Rusty Lockpick") { LP1 = inventory[i]; } else if (inventory[i].NAME == "Iron Lockpick") { LP2 = inventory[i]; } else if (inventory[i].NAME == "Ultra Lockpick") { LP3 = inventory[i]; } i++; } if ((LP1 == undefined) || (LP1.QTY == 0)) { LP1 = new Object(); LP1.ICON = "iconRustyLockpick"; LP1.NAME = "Rusty Lockpick"; LP1.QTY = 0; } if ((LP2 == undefined) || (LP2.QTY == 0)) { LP2 = new Object(); LP2.ICON = "iconIronLockpick"; LP2.NAME = "Iron Lockpick"; LP2.QTY = 0; } if ((LP3 == undefined) || (LP3.QTY == 0)) { LP3 = new Object(); LP3.ICON = "iconUltraLockpick"; LP3.NAME = "Ultra Lockpick"; LP3.QTY = 0; } l = 1; while (l < 4) { LPMC = this["LP" + l]; itemNameClip = treasureInfo.createEmptyMovieClip("itemNameClip" + l, treasureInfo.getNextHighestDepth()); itemIcon = itemNameClip.attachMovie(LPMC.ICON, LPMC.ICON, itemNameClip.getNextHighestDepth(), {_x:((l - 1) * 140) + 85, _y:80}); addText(itemNameClip, "titleTxt" + LPMC.NAME, ((l - 1) * 140) + 60, 120, 150, 20, LPMC.NAME, 11, 6050119, false); itemQtyClip = treasureInfo.createEmptyMovieClip("itemQtyClip1", treasureInfo.getNextHighestDepth()); addText(itemQtyClip, "itemQTY" + LPMC.NAME, ((l - 1) * 140) + 40, 120, 35, 20, LPMC.QTY + " x", 11, 0, false); if (LPMC.QTY > 0) { itemNameClip.tfield = itemNameClip["titleTxt" + LPMC.NAME]; itemNameClip.Lockpick = LPMC; itemNameClip.ICON = itemIcon; itemNameClip.DIFF = treasureDifficulty; itemNameClip.onRollOver = function () { this.tfield.textColor = 0; var _local2 = {r:255, g:255, b:255}; this.ICON.fluxTint(_local2, 0, 70, 10, true); }; itemNameClip.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; var _local2 = {r:255, g:255, b:255}; this.ICON.fluxTint(_local2, 60, 0, 20, false); }; itemNameClip.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.initLockpicking(this.DIFF, this.Lockpick); }; } else { itemNameClip._alpha = 40; itemQtyClip._alpha = 40; } l++; } } function showTreasureLevelAlert(difficulty) { _root.statusScreen.createEmptyMovieClip("alert", _root.statusScreen.getNextHighestDepth()); box = _root.statusScreen.alert.createEmptyMovieClip("box", 1); box.beginFill(0); box.lineTo(0, 600); box.lineTo(800, 600); box.lineTo(800, 0); box.lineTo(0, 0); box._alpha = 50; box.onRollOver = function () { this.useHandCursor = false; }; treasureInfo = _root.statusScreen.alert.attachMovie("textBox1MC", "treasureInfo", _root.statusScreen.alert.getNextHighestDepth(), {_x:160, _y:175}); _root.addText(treasureInfo, "titleTxt", 0, 50, 475, 50, "You must have a Lock Picking skill of", 14, 6050119); _root.addText(treasureInfo, "infoTxt", 0, 75, 475, 50, ("at least " + difficulty) + " to pick this treasure", 14, 6050119); cancelButtonMC = treasureInfo.createEmptyMovieClip("cancelButtonMC", treasureInfo.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 140, 120, 190, 20, "Close", 16, 6050119); cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; statusShowTreasures(); }; } function showTreasureNoLockpicksAlert() { _root.statusScreen.createEmptyMovieClip("alert", _root.statusScreen.getNextHighestDepth()); box = _root.statusScreen.alert.createEmptyMovieClip("box", 1); box.beginFill(0); box.lineTo(0, 600); box.lineTo(800, 600); box.lineTo(800, 0); box.lineTo(0, 0); box._alpha = 50; box.onRollOver = function () { this.useHandCursor = false; }; treasureInfo = _root.statusScreen.alert.attachMovie("textBox1MC", "treasureInfo", _root.statusScreen.alert.getNextHighestDepth(), {_x:160, _y:175}); _root.addText(treasureInfo, "titleTxt", 0, 50, 475, 50, "You must have at least one Lock Pick in", 14, 6050119); _root.addText(treasureInfo, "infoTxt", 0, 75, 475, 50, "your inventory to attempt this treasure.", 14, 6050119); cancelButtonMC = treasureInfo.createEmptyMovieClip("cancelButtonMC", treasureInfo.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 140, 120, 190, 20, "Close", 16, 6050119); cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; statusShowTreasures(); }; } function checkLockpickInventory() { i = 0; while (i < inventory.length) { if (inventory[i].NAME == "Rusty Lockpick") { return(true); } if (inventory[i].NAME == "Iron Lockpick") { return(true); } if (inventory[i].NAME == "Ultra Lockpick") { return(true); } i++; } return(false); } function removeTreasure(difficulty) { i = 0; while (i < treasures.length) { if (treasures[i].TYPE == difficulty) { treasures[i].QTY--; if (treasures[i].QTY <= 0) { treasures.splice(i, 1); } break; } i++; } } function showLockpickLvlAlert() { _root.statusScreen.createEmptyMovieClip("alert", _root.statusScreen.getNextHighestDepth()); box = _root.statusScreen.alert.createEmptyMovieClip("box", 1); box.beginFill(0); box.lineTo(0, 600); box.lineTo(800, 600); box.lineTo(800, 0); box.lineTo(0, 0); box._alpha = 50; box.onRollOver = function () { this.useHandCursor = false; }; treasureInfo = _root.statusScreen.alert.attachMovie("textBox1MC", "treasureInfo", _root.statusScreen.alert.getNextHighestDepth(), {_x:160, _y:175}); _root.addText(treasureInfo, "titleTxt", 0, 45, 475, 50, "Congratulations!", 24, 0); _root.addText(treasureInfo, "infoTxt", 0, 80, 475, 50, "Your Lock Picking skill has increased to level " + _root.lockpicking, 14, 6050119); cancelButtonMC = treasureInfo.createEmptyMovieClip("cancelButtonMC", treasureInfo.getNextHighestDepth()); addText(cancelButtonMC, "tfield", 140, 120, 190, 20, "Close", 16, 6050119); cancelButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; cancelButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; cancelButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; statusShowTreasures(); }; } function showFoundTreasureAlert(treasureDifficulty) { if (_root.soundOn == true) { _root.foundItemSnd.start(); } treasureAlert = _root.interfaceMC.createEmptyMovieClip("treasureAlert", _root.interfaceMC.getNextHighestDepth()); box = treasureAlert.createEmptyMovieClip("box", 1); box.beginFill(0); box.lineTo(0, 600); box.lineTo(800, 600); box.lineTo(800, 0); box.lineTo(0, 0); box._alpha = 50; box.onRollOver = function () { this.useHandCursor = false; }; switch (treasureDifficulty) { case 1 : treasureTypeTxt = "Easy Treasure Chest"; break; case 2 : treasureTypeTxt = "Medium Treasure Chest"; break; case 3 : treasureTypeTxt = "Hard Treasure Chest"; break; case 4 : treasureTypeTxt = "Very Hard Treasure Chest"; } treasureInfo = treasureAlert.attachMovie("textBox2MC", "textBoxMC", treasureAlert.getNextHighestDepth(), {_x:297, _y:197}); addText(treasureInfo, "titleTxt" + _root.grandpaCount, 5, 45, 230, 50, "Item Aquired", 18, 0); addText(treasureInfo, "titleTxt2" + _root.grandpaCount, 5, 130, 230, 80, treasureTypeTxt, 12, 6050119); var _local4 = treasureInfo.attachMovie("iconTreasure", "iconTreasure", treasureInfo.getNextHighestDepth(), {_x:105, _y:90}); closeButtonMC = treasureInfo.createEmptyMovieClip("closeButtonMC", treasureInfo.getNextHighestDepth()); addText(closeButtonMC, "tfield", 20, 170, 190, 20, "Close", 12, 6050119); closeButtonMC.defenderName = defenderName; closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.checkForTutorial("Treasure"); _root.faceDirection(_root.currentTurn); _root.interfaceMC.treasureAlert.removeMovieClip(); }; var _local3 = new mx.transitions.Tween(treasureInfo, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 0.75, true); } function checkLockpickingLevelUp(difficulty) { prevLockpicking = lockpicking; switch (difficulty) { case 1 : if (lockpicking < 10) { lockpicking++; } else if ((lockpicking >= 10) && (lockpicking < 25)) { lockpicking = lockpicking + 1; } else { lockpicking = lockpicking + 0.5; } break; case 2 : if (lockpicking < 25) { lockpicking++; } else if ((lockpicking >= 25) && (lockpicking < 50)) { lockpicking = lockpicking + 1; } else { lockpicking = lockpicking + 0.5; } break; case 3 : if (lockpicking < 50) { lockpicking++; } else if (lockpicking >= 50) { lockpicking = lockpicking + 0.5; } break; case 4 : if (lockpicking < 100) { lockpicking++; } else { if (lockpicking < 100) { break; } lockpicking = lockpicking + 0.5; } } if (Math.floor(prevLockpicking) < Math.floor(lockpicking)) { _root.showLockpickLvlAlert(); } } function getTreasureLoot(difficulty) { t = 0; while (t < treasures.length) { if (treasures[t].TYPE == difficulty) { lootArr = treasures[t].LOOT; break; } t++; } randLootNum = Math.floor(Math.random() * 100); l = 0; while (l < lootArr.length) { thisLoot = lootArr[l]; if (randLootNum <= thisLoot[1]) { if (thisLoot[0] == "Gold") { _root.gold = _root.gold + thisLoot[2]; } else { u = 0; while (u < itemListArr.length) { if (itemListArr[u].NAME == thisLoot[0]) { lootItem = itemListArr[u]; } u++; } if (lootItem.ATT == undefined) { trace("TREASURE IS ITEM"); assignItem(thisLoot[0]); } else { trace("TREASURE IS EQUIPMENT"); assignEquipment(thisLoot[0]); } } return([thisLoot[0], thisLoot[2]]); } l++; } } function rollTreasure() { if (enemiesKilledCount == 1) { return(true); } randRoll = Math.floor(Math.random() * 100); if (randRoll <= checkForThiefGloves()) { if (_root.soundOn == true) { _root.foundItemSnd.start(); } return(true); } return(false); } function checkForThiefGloves() { d = 0; while (d < defenderLevelArr.length) { if (defenderLevelArr[d].ACCESSORY.NAME == "Thief Gloves") { return(50); } d++; } return(20); } function formatTime() { mins = Math.floor(timePlayed / 60); if (mins < 10) { mins = "0" + mins; } hours = timePlayed - (mins * 60); if (hours < 10) { hours = "0" + hours; } return((mins + ":") + hours); } function showStatus() { screenMoverMC._visible = false; this.createEmptyMovieClip("statusScreen", 98); statusBG = statusScreen.attachMovie("statusBG", "statusBG", _root.statusScreen.getNextHighestDepth()); statusBG.onRollOver = function () { this.useHandCursor = false; }; statusBG.timeTxt.text = formatTime(); statusBG.coinsTxt.text = gold; statusLeftNav(); if (inBattle == true) { statusCharacter(_root.currentTurn.num); } else { statusShowChars(); } } function statusShowChars(item) { statusScreen.cancelBut.removeMovieClip(); statusScreen.statusRight.removeMovieClip(); var _local6 = statusScreen.createEmptyMovieClip("statusRight", statusScreen.getNextHighestDepth()); _local6._x = 230; var _local12 = statusScreen.attachMovie("statusCharsBG", "statusCharsBG", statusScreen.getNextHighestDepth(), {_x:230, _y:0}); c = 0; while (c < defenderArr.length) { charStat = _local6.attachMovie("statusCharStats", defenderArr[c].name + "Stats", _local6.getNextHighestDepth(), {_x:10, _y:(c * 118) + 3}); var _local3 = charStat.attachMovie("defenders", "defender_" + defenderArr[c].name, charStat.getNextHighestDepth(), {_x:65, _y:90}); _local3.gotoAndStop(defenderArr[c].name); _local3._xscale = _local3._xscale * 1.15; _local3._yscale = _local3._yscale * 1.15; _local3.gotoAndStop(defenderArr[c].classType); checkStatusAilments(defenderArr[c], _local3); charStat.num = c; charStat.char = defenderArr[c]; charStat.charName.text = defenderArr[c].name; charStat.charClass.text = defenderArr[c].classType; charStat.charLevel.text = "level " + defenderArr[c].lvl; charStat.HPTxt.text = (checkZero(defenderArr[c].HP) + "/") + checkZero(defenderArr[c].HPMax); charStat.MPTxt.text = (checkZero(defenderArr[c].MP) + "/") + checkZero(defenderArr[c].MPMax); charStat.EXPTxt.text = (checkZero(defenderArr[c].EXP) + "/") + checkZero(expList(defenderArr[c].lvl)); charStat.HPMask._x = 144 + Math.ceil(146 * (defenderArr[c].HP / defenderArr[c].HPMax)); charStat.MPMask._x = 144 + Math.ceil(146 * (defenderArr[c].MP / defenderArr[c].MPMax)); charStat.EXPMask._x = 144 + Math.ceil(146 * (defenderArr[c].EXP / expList(defenderArr[c].lvl))); if (defenderArr[c].HP == 0) { charStat.attachMovie("iconDeath", "iconDeath", charStat.getNextHighestDepth(), {_x:90, _y:40}); var _local5 = {r:255, g:0, b:0}; charStat.fluxTint(_local5, 0, 50, 50, false); charStat.HPMask._x = 0; } if (item == undefined) { charStat.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } statusCharacter(this.num); }; } else { charStat.invItem = item; if (item.NAME == "Resurrection") { if (defenderArr[c].HP <= 0) { charStat.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.getItemFunc(this.invItem, this.char); }; } } else if (defenderArr[c].HP > 0) { charStat.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.getItemFunc(this.invItem, this.char); }; } } if (item.NAME == "Resurrection") { if (defenderArr[c].HP <= 0) { if ((defenderArr[c].HP > 0) || (item.NAME == "Resurrection")) { charStat.onRollOver = function () { var _local2 = {r:255, g:255, b:255}; this.boxMC.fluxTint(_local2, 0, 80, 10, false); }; charStat.onRollOut = function () { var _local2 = {r:255, g:255, b:255}; this.boxMC.fluxTint(_local2, 80, 0, 10, false); }; } } } else if ((defenderArr[c].HP > 0) || (item.NAME == "Resurrection")) { charStat.onRollOver = function () { var _local2 = {r:255, g:255, b:255}; this.boxMC.fluxTint(_local2, 0, 80, 10, false); }; charStat.onRollOut = function () { var _local2 = {r:255, g:255, b:255}; this.boxMC.fluxTint(_local2, 80, 0, 10, false); }; } c++; } if (item != undefined) { disableLeftNav(); } } function statusLeftNav() { _root.statusScreen.leftNav.removeMovieClip(); leftNav = _root.statusScreen.createEmptyMovieClip("leftNav", _root.statusScreen.getNextHighestDepth()); if (inBattle == true) { leftNavArr = [["menuStats", statusCharacter], ["menuEquipment", statusShowEquipment], ["menuSound", setSound], ["menuExit", exitStatus]]; } else { leftNavArr = [["menuStats", statusShowChars], ["menuItems", statusShowItems], ["menuEquipment", statusShowEquipment], ["menuTreasures", statusShowTreasures], ["menuSound", setSound], ["menuExit", exitStatus]]; } l = 0; while (l < leftNavArr.length) { navButt = leftNav.attachMovie(leftNavArr[l][0], leftNavArr[l][0], leftNav.getNextHighestDepth(), {_x:35, _y:(l * 55) + 40}); if (leftNavArr[l][0] == "menuSound") { if (soundOn == false) { navButt.attachMovie("iconDisabled", "disabled", navButt.getNextHighestDepth(), {_x:130, _y:10}); } } navButt.NAME = leftNavArr[l][0]; navButt.FUNC = new Function(leftNavArr[l][1]); navButt.onRollOver = function () { this.gotoAndStop(2); }; navButt.onRollOut = function () { this.gotoAndStop(1); }; navButt.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if ((this.NAME == "menuEquipment") && (_root.inBattle == true)) { this.FUNC(_root.currentTurn.num); } else { this.FUNC(); } }; l++; } } function disableLeftNav() { cancelBut = _root.statusScreen.createEmptyMovieClip("cancelBut", _root.statusScreen.getNextHighestDepth()); addText(cancelBut, "titleTxt", 80, 450, 300, 20, "CANCEL", 16, 268435447, false); cancelBut.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.enableLeftNav(); _root.statusShowChars(); }; _root.statusScreen.leftNav._alpha = 30; _root.statusScreen.leftNav.onRollOver = function () { this.useHandCursor = false; }; } function enableLeftNav() { _root.statusScreen.leftNav._alpha = 100; delete _root.statusScreen.leftNav.onRollOver; } function statusCharacter(charNum) { if (charNum == undefined) { charNum = 0; } if (inBattle == true) { charNum = _root.currentTurn.num; } statusScreen.statusRight.removeMovieClip(); var _local5 = statusScreen.createEmptyMovieClip("statusRight", statusScreen.getNextHighestDepth()); _local5._x = 230; var _local3 = statusScreen.statusRight.attachMovie("statusStatsMain", "statusStatsMain", statusScreen.statusRight.getNextHighestDepth(), {_x:16, _y:20}); if ((defenderArr.length > 1) && (inBattle != true)) { statusAddNextCharacterButton("stats", charNum, _local3); } var _local4 = _local3.attachMovie("defenders", "defender_" + defenderArr[charNum].name, _local3.getNextHighestDepth(), {_x:95, _y:110}); _local4.gotoAndStop(defenderArr[charNum].name); _local4._xscale = _local4._xscale * 1.15; _local4._yscale = _local4._yscale * 1.15; checkStatusAilments(defenderArr[charNum], _local4); _local3.charName.text = defenderArr[charNum].name; _local3.charClass.text = defenderArr[charNum].classType; _local3.charLvl.text = defenderArr[charNum].lvl; _local3.HPTxt.text = (checkZero(defenderArr[charNum].HP) + "/") + checkZero(defenderArr[charNum].HPMax); _local3.MPTxt.text = (checkZero(defenderArr[charNum].MP) + "/") + checkZero(defenderArr[charNum].MPMax); _local3.charEXP.text = defenderArr[charNum].EXP; _local3.charEXPNext.text = expList(defenderArr[charNum].lvl); _local3.charSTR.text = defenderArr[charNum].STR; _local3.charDEF.text = defenderArr[charNum].DEF; _local3.charLCK.text = defenderArr[charNum].LCK; _local3.charSPD.text = defenderArr[charNum].SPD; _local3.charMAG.text = defenderArr[charNum].MAG; _local3.charRange.text = defenderArr[charNum].range; _local3.charLockpicking.text = Math.floor(lockpicking); _local3.HPMask._x = 30 + Math.ceil(194 * (defenderArr[charNum].HP / defenderArr[charNum].HPMax)); _local3.MPMask._x = 30 + Math.ceil(194 * (defenderArr[charNum].MP / defenderArr[charNum].MPMax)); if (defenderArr[charNum].HP == 0) { _local3.attachMovie("iconDeath", "iconDeath", _local3.getNextHighestDepth(), {_x:18, _y:28}); _local3.HPMask._x = 0; var _local6 = {r:255, g:0, b:0}; _local5.fluxTint(_local6, 0, 50, 10, false); } } function statusAddNextCharacterButton(currentScreen, charNum, MC) { statusNextCharButton = MC.attachMovie("statusNextCharButton", "statusNextCharButton", MC.getNextHighestDepth()); statusNextCharButton._x = 370; statusNextCharButton._y = 27; if ((charNum + 2) > defenderArr.length) { charNum = -1; } statusNextCharButton.NUM = charNum; statusNextCharButton.currentScreen = currentScreen; statusNextCharButton.onRollOver = function () { this.tfield.textColor = 0; }; statusNextCharButton.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; statusNextCharButton.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (this.currentScreen == "equipment") { statusShowEquipment(this.NUM + 1); } else if (this.currentScreen == "stats") { statusCharacter(this.NUM + 1); } }; } function checkStatusAilments(char, charMC) { a = 0; while (a < char.ailments.length) { if (char.ailments[a] == "poison") { var _local1 = {r:31, g:211, b:0}; charMC.fluxTint(_local1, 0, 60, 5, true); } a++; } } function setSound() { if (soundOn == true) { soundOn = false; _root.levelMusic.stop(); _root.worldMapMusic.stop(); } else { soundOn = true; if (inBattle == true) { _root.levelMusic.start(0, 999); } else { _root.worldMapMusic.start(0, 999); } } statusLeftNav(); } function exitStatus() { screenMoverMC._visible = true; statusScreen.removeMovieClip(); } function ailmentPoison(char) { if (_root.soundOn == true) { _root.damageSnd.start(); } poisonDMG = 5; char.HP = char.HP - poisonDMG; updateCharacterInfo(char, _root.charStats.charInfo); var _local5 = {r:255, g:255, b:255}; _root.charStats.charInfo.meterHP.fluxTint(_local5, 0, 100, 35, true, 1); _local5 = {r:255, g:0, b:0}; char.MC.fluxTint(_local5, 0, 70, 15, true, 1); shakeCount = 0; var _local4 = new mx.transitions.Tween(_root.display.tiles, "_x", mx.transitions.easing.Bounce.easeIn, _root.display.tiles._x, _root.display.tiles._x + 7, 0.05, true); _local4.onMotionFinished = function () { shakeCount++; if (shakeCount < 5) { this.yoyo(); } }; poisonDamageTxt("-" + poisonDMG, char); } function poisonDamageTxt(damage, char) { damageArr = damage.toString().split(""); _root.display.tiles.createEmptyMovieClip("damageTxt", _root.display.tiles.getNextHighestDepth()); wordWidth = 0; d = 0; while (d < damageArr.length) { var _local2 = _root.display.tiles.damageTxt.attachMovie("damageTxt", "damageTxt" + d, _root.display.tiles.damageTxt.getNextHighestDepth(), {_x:(wordWidth + char.MC._x) - (damageArr.length * 7), _y:(char.MC._y - char.MC._height) + 5}); _local2._width = _local2._width * 1.6; _local2._height = _local2._height * 1.6; _local2.gotoAndStop(5); _local2.num = d + 1; _local2.txt.text = damageArr[d]; _local2.txt.autoSize = true; wordWidth = wordWidth + (_local2.txt._width + 2); setTimeout(animatePoisonDamage, d * 100, _local2, char); d++; } } function animatePoisonDamage(txt, char) { dmgTxtTween = new mx.transitions.Tween(txt, "_y", mx.transitions.easing.Elastic.easeOut, txt._y, txt._y - 15, 1.5, true); if (txt.num == damageArr.length) { dmgTxtTween.onMotionFinished = function () { _root.display.tiles.damageTxt.removeMovieClip(); if (char.HP <= 0) { trace(char); var _local2 = {r:0, g:0, b:0}; char.MC.charMC.fluxTint(_local2, 0, 0, 1, false); _root.targetDeath(char, true); if (_root.checkLevelComplete() == true) { _root.levelComplete(); } else { trace("SOMEONE DIED POISONED"); if ((char.type == "human") && (checkGameOver(char) == true)) { trace("MAIN CHAR DIED POISONED"); _root.gameOverFunc(); } else { setTimeout(_root.nextTurn, 250, char); } } } else { setTimeout(_root.nextTurn, 250, char); } }; } } function loadWorldMap(num) { if (_root.soundOn == true) { _root.levelMusic.stop(); _root.themeMusicSnd.stop(); _root.worldMapMusic.start(0, 999); } titleScreen.removeMovieClip(); BG.removeMovieClip(); display.removeMovieClip(); screenMoverMC.removeMovieClip(); charStats.removeMovieClip(); worldMapMC.removeMovieClip(); createEmptyMovieClip("worldMapMC", 1); worldMapMC.attachMovie("worldMap", "worldMap", 1); addClouds(); addLava(); addMapMarkers(num); addMapMenu(); } function addClouds() { cloudArr = new Array(); cloudArr = [["cloud1", -150, 0], ["cloud2", 200, 100], ["cloud1", 550, 400], ["cloud2", -450, 430]]; worldMapMC.createEmptyMovieClip("clouds", 2); c = 0; while (c < cloudArr.length) { cloud = worldMapMC.clouds.attachMovie(cloudArr[c][0], "cloud" + c, c, {_x:cloudArr[c][1], _y:cloudArr[c][2]}); cloud._alpha = 65; cloud.onEnterFrame = function () { this._x = this._x - 1; if (this._x <= (-this._width)) { this._x = 900; } }; c++; } } function addLava() { lavaAlphaTween.stop(); lavaAlphaTween = new mx.transitions.Tween(worldMapMC.worldMap.lavaMC, "_alpha", mx.transitions.easing.Regular.easeInOut, 100, 60, 1.5, true); lavaAlphaTween.onMotionFinished = function () { this.yoyo(); }; } function addMapMarkers(num) { worldMapMC.createEmptyMovieClip("markers", 3); mapMarkerArr = new Array(); mapMarkerArr = [[1, 255, 462, "Grandpa's House", 200, 447, 140, 20], [2, 380, 480, "Deep Woods", 340, 500, 110, 20], [1, 475, 435, "Athelas", 445, 455, 70, 20], [2, 575, 445, "Athelas Grove", 550, 465, 70, 30], [2, 385, 410, "Jungle", 345, 395, 110, 20], [1, 270, 255, "Sandos", 245, 270, 70, 20], [2, 247, 300, "Sandos Dunes", 220, 320, 70, 30], [2, 105, 272, "Great Pyramids", 115, 270, 80, 30], [2, 550, 240, "The Oasis", 520, 258, 80, 20], [1, 525, 122, "Damascus", 475, 142, 80, 20], [2, 322, 130, "Damascus Ruins", 300, 148, 80, 30], [2, 390, 100, "Death Rock", 355, 120, 100, 20]]; m = 0; while (m < (num + 1)) { marker = worldMapMC.markers.attachMovie("mapMarker" + mapMarkerArr[m][0], "marker" + m, worldMapMC.markers.getNextHighestDepth(), {_x:mapMarkerArr[m][1], _y:mapMarkerArr[m][2]}); marker.num = m; marker.NAME = mapMarkerArr[m][3]; markerTxtMC = worldMapMC.markers.createEmptyMovieClip("mapClip" + m, worldMapMC.markers.getNextHighestDepth()); addText(markerTxtMC, "markerShadow", mapMarkerArr[m][4] + 1.5, mapMarkerArr[m][5] + 1.5, mapMarkerArr[m][6], mapMarkerArr[m][7], mapMarkerArr[m][3], 13, 0, true); addText(markerTxtMC, "markerName", mapMarkerArr[m][4], mapMarkerArr[m][5], mapMarkerArr[m][6], mapMarkerArr[m][7], mapMarkerArr[m][3], 13, 16777215, true); markerTxtMC.markerMC = marker; markerTxtMC.num = m; markerTxtMC.NAME = mapMarkerArr[m][3]; markerTxtMC.onRollOver = function () { this.markerShadow.textColor = 16777215 /* 0xFFFFFF */; var _local2 = {r:255, g:255, b:255}; this.markerMC.fluxTint(_local2, 0, 50, 20, true); }; markerTxtMC.onRollOut = function () { this.markerShadow.textColor = 0; this.markerMC.fluxTint(colObj, 0, 0, 20, false); }; markerTxtMC.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.mapAddLevelPopup(this.num, this.NAME); }; marker.txtBox = markerTxtMC; marker.onRollOver = function () { this.txtBox.markerShadow.textColor = 16777215 /* 0xFFFFFF */; var _local2 = {r:255, g:255, b:255}; this.fluxTint(_local2, 0, 50, 20, true); }; marker.onRollOut = function () { this.txtBox.markerShadow.textColor = 0; this.fluxTint(colObj, 0, 0, 20, false); }; marker.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.mapAddLevelPopup(this.num, this.NAME); }; m++; } } function mapAddLevelPopup(num, levelName) { _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); mapLevelInfoMC = _root.worldMapMC.createEmptyMovieClip("mapLevelInfoMC", worldMapMC.getNextHighestDepth()); overlayMC = mapLevelInfoMC.attachMovie("overlayGraphic", "overlayGraphic", 1); overlayMC.onRollOver = function () { this.useHandCursor = false; }; mapInfoMC = mapLevelInfoMC.attachMovie("mapTextbox1", "mapLevelTxtBox", 2, {_x:300, _y:200}); addText(mapInfoMC, "mapInfoTitle", 0, 40, 220, 20, levelName, 16, 0, true); thisLevelArr = mapGetLevelInfo(levelName); mapAddSubMenu(thisLevelArr[0], num, levelName, thisLevelArr[1]); } function mapGetLevelInfo(levelName) { switch (levelName) { case "Grandpa's House" : if (levelsUnlocked >= 2) { return([["grandpa", "treasures", "leave"]]); } trace("TUT NUM: " + tutorialNum); if (tutorialNum == 0) { return([["grandpa", "leave"]]); } return([["rest", "grandpa", "treasures", "leave"]]); case "Deep Woods" : return([["battle", "leave"]]); case "Athelas" : if (defenderArr.length < 2) { addDefenderAlert("Kage"); assignEquipment("Wood Staff"); assignEquipment("Cloth Robe"); equipChar(defenderArr[1], "Wood Staff", null, true); equipChar(defenderArr[1], "Cloth Robe", null, true); unlockMission(missionsArr[1], "Mutant Pond"); unlockMission(missionsArr[1], "The Athelas Leaf"); } else { if (checkMissionsAvailable(missionsArr[1]) == true) { return([["inn", "shop", "missions", "mage", "leave"]]); } return([["inn", "shop", "mage", "leave"]]); } case "Athelas Grove" : if (levelsUnlocked >= 3) { m = 0; while (m < missionsArr[1].length) { if (((missionsArr[1][m][0] == "The Athelas Leaf") && (missionsArr[1][m][2] == true)) && (curMission == missionsArr[1][m][0])) { return([["startMission", "leave"], ["The Athelas Leaf"]]); } m++; } return([["battle", "leave"]]); } return([["battle", "leave"]]); case "Jungle" : m = 0; while (m < missionsArr[1].length) { if (((missionsArr[1][m][0] == "Venom Snakes!") && (missionsArr[1][m][2] == true)) && (curMission == missionsArr[1][m][0])) { return([["startMission", "leave"], ["Venom Snakes!"]]); } m++; } return([["battle", "leave"]]); case "Sandos" : if (defenderArr.length < 3) { addDefenderAlert("Aryana"); assignEquipment("Wooden Bow"); assignEquipment("Iron Vest"); equipChar(defenderArr[2], "Wooden Bow", null, true); equipChar(defenderArr[2], "Iron Vest", null, true); } else { if (levelsUnlocked == 5) { return([["startMission", "leave"], ["The Desert Sting"]]); } if (checkMissionsAvailable(missionsArr[2]) == true) { return([["inn", "shop", "missions", "warrior", "leave"]]); } return([["inn", "shop", "warrior", "leave"]]); } case "Sandos Dunes" : m = 0; while (m < missionsArr[2].length) { if (((missionsArr[2][m][0] == "Eye Guys") && (missionsArr[2][m][2] == true)) && (curMission == missionsArr[2][m][0])) { return([["startMission", "leave"], ["Eye Guys"]]); } m++; } return([["battle", "leave"]]); case "Great Pyramids" : m = 0; while (m < missionsArr[2].length) { if (((missionsArr[2][m][0] == "Ancient Pyramids") && (missionsArr[2][m][2] == true)) && (curMission == missionsArr[2][m][0])) { return([["startMission", "leave"], ["Ancient Pyramids"]]); } m++; } return([["battle", "leave"]]); case "The Oasis" : m = 0; while (m < missionsArr[2].length) { if (((missionsArr[2][m][0] == "Oasis") && (missionsArr[2][m][2] == true)) && (curMission == missionsArr[2][m][0])) { return([["startMission", "leave"], ["Oasis"]]); } m++; } return([["battle", "leave"]]); case "Damascus" : if (checkMissionsAvailable(missionsArr[3]) == true) { return([["inn", "shop", "missions", "thief", "leave"]]); } return([["inn", "shop", "thief", "leave"]]); case "Damascus Ruins" : m = 0; while (m < missionsArr[3].length) { if (((missionsArr[3][m][0] == "Lava Monsters") && (missionsArr[3][m][2] == true)) && (curMission == missionsArr[3][m][0])) { return([["startMission", "leave"], ["Lava Monsters"]]); } if (((missionsArr[3][m][0] == "Ring of Fire") && (missionsArr[3][m][2] == true)) && (curMission == missionsArr[3][m][0])) { return([["startMission", "leave"], ["Ring of Fire"]]); } m++; } return([["battle", "leave"]]); case "Death Rock" : m = 0; while (m < missionsArr[3].length) { if (((missionsArr[3][m][0] == "Death Rock Cave") && (missionsArr[3][m][2] == true)) && (curMission == missionsArr[3][m][0])) { return([["startMission", "leave"], ["Death Rock Cave"]]); } if (((missionsArr[3][m][0] == "Lava River") && (missionsArr[3][m][2] == true)) && (curMission == missionsArr[3][m][0])) { return([["startMission", "leave"], ["Lava River"]]); } if (((missionsArr[3][m][0] == "Cave Ogres") && (missionsArr[3][m][2] == true)) && (curMission == missionsArr[3][m][0])) { return([["startMission", "leave"], ["Cave Ogres"]]); } if (((missionsArr[3][m][0] == "Ogre Lord") && (missionsArr[3][m][2] == true)) && (curMission == missionsArr[3][m][0])) { return([["startMission", "leave"], ["Ogre Lord"]]); } m++; } return([["battle", "leave"]]); } } function checkMissionsAvailable(arr) { missionCount = 0; m = 0; while (m < arr.length) { if (arr[m][2] == true) { missionCount++; } m++; } if (missionCount > 0) { return(true); } return(false); } function mapAddSubMenu(arr, markerNum, levelName, missionName) { vSpacer = 28; if (arr.length == 4) { vAlign = 72; } else if (arr.length == 3) { vAlign = 84; } else if (arr.length == 2) { vAlign = 95; } else if (arr.length == 5) { vAlign = 68; vSpacer = 23; } s = 0; while (s < arr.length) { txtButton = worldMapMC.mapLevelInfoMC.mapLevelTxtBox.createEmptyMovieClip("txtButton" + s, worldMapMC.mapLevelInfoMC.mapLevelTxtBox.getNextHighestDepth()); addText(txtButton, "mapInfoTitle", 0, (s * vSpacer) + vAlign, 220, 20, mapGetSubMenuName(arr[s]), 12, 6444877, true); txtButton.onRollOver = function () { this.mapInfoTitle.textColor = 0; }; txtButton.onRollOut = function () { this.mapInfoTitle.textColor = 6444877 /* 0x62574D */; }; txtButton.NAME = arr[s]; txtButton.markerNum = markerNum; txtButton.levelName = levelName; txtButton.missionName = missionName; txtButton.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } mapGetSubMenuFunc(this.NAME, this.markerNum, this.levelName, this.missionName); }; s++; } } function mapGetSubMenuName(menuName) { switch (menuName) { case "rest" : return("REST"); case "inn" : return("INN"); case "grandpa" : return("VISIT GRANDPA"); case "treasures" : return("ASK ABOUT TREASURES"); case "shop" : return("SHOP"); case "missions" : return("MISSIONS"); case "startMission" : return("START MISSION"); case "battle" : return("BATTLE"); case "leave" : return("LEAVE"); case "mage" : return("MAGE GUILD"); case "warrior" : return("WARRIOR GUILD"); case "thief" : return("THIEF GUILD"); } } function mapGetSubMenuFunc(menuName, markerNum, levelName, missionName) { switch (menuName) { case "grandpa" : mapGrandpa(); break; case "rest" : mapRest(); break; case "treasures" : mapGrandpaTreasures(); break; case "inn" : mapInn(levelName); break; case "battle" : mapStartBattle(levelName); break; case "missions" : mapMissions(levelName); break; case "startMission" : mapStartBattle(missionName); break; case "shop" : mapShop(levelName); break; case "leave" : _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); break; case "mage" : mapMageGuild(); break; case "warrior" : mapWarriorGuild(); break; case "thief" : mapThiefGuild(); } } function addMapTextbox() { restAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("textBox1GFX", "textBoxMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:230, _y:210}); addMapPortrait(); } function addMapPortrait() { textBoxPortrait = restAlertMC.attachMovie("textBoxPortrait", "textBoxPortrait", restAlert.getNextHighestDepth(), {_x:-153, _y:0}); } function mapStartBattle(levelName) { _root.initMap(levelName); _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); } function addMapMenu() { worldMapMC.attachMovie("mapMenu", "mapMenu", worldMapMC.getNextHighestDepth()); worldMapMC.mapMenu._x = 40; worldMapMC.mapMenu._y = 35; worldMapMC.mapMenu.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.showStatus(); }; worldMapMC.attachMovie("mapSave", "mapSave", worldMapMC.getNextHighestDepth()); worldMapMC.mapSave._x = 40; worldMapMC.mapSave._y = 67; worldMapMC.mapSave.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.saveGame(); }; worldMapMC.attachMovie("mapGames", "mapGames", worldMapMC.getNextHighestDepth()); worldMapMC.mapGames._x = 40; worldMapMC.mapGames._y = 99; worldMapMC.mapGames.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1367&subid=worldMap", "_blank"); }; } function mapRest() { worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); worldMapMC.mapLevelInfoMC.textBoxGold.removeMovieClip(); mapRestRecoverHPMP(); restOverlay = worldMapMC.attachMovie("mapInnOverlay", "mapInnOverlay", worldMapMC.getNextHighestDepth()); restOverlay._alpha = 0; var _local1 = new mx.transitions.Tween(restOverlay, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, 3, true); _local1.onMotionFinished = function () { setTimeout(mapRestComplete, 1000, restOverlay); }; } function mapRestRecoverHPMP() { c = 0; while (c < defenderArr.length) { char = defenderArr[c]; char.MP = char.MPMax; char.HP = char.HPMax; char.dead = false; a = 0; while (a < char.ailments.length) { if (char.ailments[a] == "poison") { char.ailments.splice(a, 1); break; } a++; } c++; } } function mapRestComplete(restOverlay) { var _local1 = new mx.transitions.Tween(restOverlay, "_alpha", mx.transitions.easing.Regular.easeInOut, 100, 0, 3, true); _local1.onMotionFinished = function () { mapRestCompleteAlert(); }; } function mapRestCompleteAlert() { if (_root.soundOn == true) { _root.foundItemSnd.start(); } restAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("statusItemAlert", "restAlertMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:300, _y:210}); var _local3 = new mx.transitions.Tween(restAlertMC, "_alpha", mx.transitions.easing.Regular.easeInOut, 0, 100, 0.5, true); addText(restAlertMC, "titleTxt", 5, 58, 190, 50, "HP/MP Restored!", 13, 6050119); closeButtonMC = restAlertMC.createEmptyMovieClip("closeButtonMC", restAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 5, 95, 190, 20, "Close", 12, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.worldMapMC.mapInnOverlay.removeMovieClip(); _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; } function mapInn(levelName) { worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); innPrice = getInnPrice(levelName); worldMapMC.mapLevelInfoMC.attachMovie("textBoxGold", "textBoxGold", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:560, _y:165}); addText(worldMapMC.mapLevelInfoMC.textBoxGold, "goldTxt", 15, 25, 100, 20, gold + " G", 13, 0, "right"); addMapTextbox(); textBoxPortrait.attachMovie("textBoxInn", "textBoxInn", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt", 35, 37, 410, 50, ("Welcome to the " + levelName) + " Inn", 18, 0, false); if (checkInnSoldOut(levelName) != true) { if (gold >= innPrice) { addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2", 35, 65, 410, 120, ("Relax in one of our cozy rooms and fully recover your party's HP and MP. It costs " + innPrice) + " gold to stay at the Inn.\n\nWould you like a room for the night?", 12, 6050119, false, true); yesButtonMC = restAlertMC.createEmptyMovieClip("yesButtonMC", restAlertMC.getNextHighestDepth()); addText(yesButtonMC, "tfield", 345, 116, 30, 20, "Yes", 12, 6050119, false); yesButtonMC.price = innPrice; yesButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; yesButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; yesButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.gold = _root.gold - this.price; _root.mapRest(); _root.worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); }; noButtonMC = restAlertMC.createEmptyMovieClip("noButtonMC", restAlertMC.getNextHighestDepth()); addText(noButtonMC, "tfield", 390, 116, 25, 20, "No", 12, 6050119, false); noButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; noButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; noButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; } else { addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2", 35, 65, 410, 120, ("Relax in one of our cozy rooms and fully recover your party's HP and MP. It costs " + innPrice) + " gold to stay at the Inn.\n\nSorry, but it seems you do not have enough money to stay here.", 12, 6050119, false, true); leaveButtonMC = restAlertMC.createEmptyMovieClip("leaveButtonMC", restAlertMC.getNextHighestDepth()); addText(leaveButtonMC, "tfield", 380, 134, 50, 20, "Leave", 12, 6050119, false); leaveButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; leaveButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; leaveButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:365, _y:135}); } } else { addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2", 35, 65, 410, 120, "I'm sorry, but we have no more room available for tonight. Please check a different Inn for vacancies.", 12, 6050119, false, true); leaveButtonMC = restAlertMC.createEmptyMovieClip("leaveButtonMC", restAlertMC.getNextHighestDepth()); addText(leaveButtonMC, "tfield", 380, 134, 50, 20, "Leave", 12, 6050119, false); leaveButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; leaveButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; leaveButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:365, _y:135}); } } function getInnPrice(levelName) { switch (levelName) { case "Athelas" : return(50); case "Sandos" : return(100); case "Damascus" : return(200); } } function checkInnSoldOut(levelName) { switch (levelName) { case "Athelas" : if (levelsUnlocked >= 5) { return(true); } return(false); case "Sandos" : if (levelsUnlocked >= 9) { return(true); } return(false); case "Damascus" : return(false); } } function mapGrandpa() { trace("IN GRANDPA!"); worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); addMapTextbox(); textBoxPortrait.attachMovie("textBoxGrandpa", "textBoxGrandpa", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt" + _root.grandpaCount, 35, 37, 410, 50, "Grandpa:", 18, 0, false); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2" + _root.grandpaCount, 35, 65, 410, 80, getGrandpaTxt(_root.grandpaCount), 12, 6050119, false, true); closeButtonMC = restAlertMC.createEmptyMovieClip("closeButtonMC", restAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 300, 140, 190, 20, "Continue", 12, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; if (_root.grandpaCount == 0) { _root.initMap("tutorial"); } else if (_root.grandpaCount == 1) { _root.levelsUnlocked++; _root.grandpaCount++; _root.loadWorldMap(_root.levelsUnlocked); } else if (_root.grandpaCount == 2) { if (defenderArr[0].lvl >= 3) { _root.grandpaCount++; _root.mapGrandpa(); } else { _root.loadWorldMap(_root.levelsUnlocked); } } else if (_root.grandpaCount == 3) { _root.levelsUnlocked++; _root.grandpaCount++; _root.loadWorldMap(_root.levelsUnlocked); } else if (_root.grandpaCount == 4) { _root.loadWorldMap(_root.levelsUnlocked); } else if (_root.grandpaCount == 5) { _root.loadWorldMap(_root.levelsUnlocked); } }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:344, _y:141}); } function getGrandpaTxt(num) { switch (num) { case 0 : assignEquipment("Rusty Sword"); assignEquipment("Rusty Armor"); equipChar(defenderArr[0], "Rusty Sword", null, true); equipChar(defenderArr[0], "Rusty Armor", null, true); return("Oh Kronus, it's terrible! My backyard has been invaded by evil creatures. Now that you're old enough, please take my old war gear and do what you can to get rid of them before they do any more damage."); case 1 : c = 0; while (c < defenderArr.length) { char = defenderArr[c]; char.MP = char.MPMax; char.HP = char.HPMax; char.dead = false; a = 0; while (a < char.ailments.length) { if (char.ailments[a] == "poison") { char.ailments.splice(a, 1); break; } a++; } c++; } return("Great job! You have proven that you are a true warrior. Head east to the Deep Woods and continue gaining experience. When you have reached level 3, come see me again. Be sure to REST here between battles."); case 2 : if (defenderArr[0].lvl >= 3) { return("Congratulations! At this level, you are now able to begin doing missions. Help the citizens out and find out why these evil creatures are invading our land."); } return("Sorry, but you have not yet reached level 3. Keep battling and gaining experience. I cannot let you venture out into the dangerous world until you are ready."); case 3 : return("Travel east to Athelas, where an eager Mage is willing to help you on your journey. Good luck!"); case 4 : return("Hello Kronus, it is great to see you again! I have taught you everything that I know, please do your best to help us out. Good luck out there!"); } } function mapGrandpaTreasures() { worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); addMapTextbox(); textBoxPortrait.attachMovie("textBoxGrandpa", "textBoxGrandpa", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt" + _root.grandpaCount, 35, 37, 410, 50, "Grandpa:", 18, 0, false); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2" + _root.grandpaCount, 35, 65, 410, 80, mapGrandpaTreasureTxt(), 12, 6050119, false, true); closeButtonMC = restAlertMC.createEmptyMovieClip("closeButtonMC", restAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 300, 140, 190, 20, "Continue", 12, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; if (levelsUnlocked >= 2) { _root.loadWorldMap(_root.levelsUnlocked); } else if (_root.checkGrandpaLockPickManual() == false) { _root.giveLockPickManualAlert(); } else if (_root.checkGrandpaLockpick() == false) { _root.giveLockPickAlert(); } else { _root.loadWorldMap(_root.levelsUnlocked); } }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:344, _y:141}); } function mapGrandpaTreasureTxt() { if (levelsUnlocked >= 2) { return("I'm sorry but I do not have any more lockpicks to offer you. I hear the shops in the cities sell them."); } if (checkGrandpaLockpick() == false) { if (checkGrandpaLockPickManual() == false) { return("I'm afraid I can no longer unlock these chests, however, I do have a nice guide that will teach you how to Lock Pick. Here is an old Lockpick of mine to get you started."); } return("I see you have broken your lockpick, here have another."); } return("Come back when you need another Lockpick!"); } function checkGrandpaLockpick() { i2 = 0; while (i2 < inventory.length) { if (inventory[i2].NAME == "Rusty Lockpick") { return(true); } i2++; } return(false); } function checkGrandpaLockPickManual() { i3 = 0; while (i3 < inventory.length) { if (inventory[i3].NAME == "Lockpicking Guide") { return(true); } i3++; } return(false); } function giveLockPickManualAlert() { if (_root.soundOn == true) { _root.foundItemSnd.start(); } assignItem("Lockpicking Guide"); worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); defenderAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("textBox2MC", "textBoxMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:297, _y:197}); addText(defenderAlertMC, "titleTxt" + _root.grandpaCount, 5, 45, 230, 50, "Item Aquired", 18, 0); addText(defenderAlertMC, "titleTxt2" + _root.grandpaCount, 5, 130, 230, 80, "Lockpicking Guide", 12, 6050119); var _local3 = defenderAlertMC.attachMovie("iconLockpickManual", "iconLockpickManual", defenderAlertMC.getNextHighestDepth(), {_x:105, _y:90}); closeButtonMC = defenderAlertMC.createEmptyMovieClip("closeButtonMC", defenderAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 20, 170, 190, 20, "Close", 12, 6050119); closeButtonMC.defenderName = defenderName; closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.giveLockPickAlert(); }; } function giveLockPickAlert() { if (_root.soundOn == true) { _root.foundItemSnd.start(); } assignItem("Rusty Lockpick"); worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); defenderAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("textBox2MC", "textBoxMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:297, _y:197}); addText(defenderAlertMC, "titleTxt" + _root.grandpaCount, 5, 45, 230, 50, "Item Aquired", 18, 0); addText(defenderAlertMC, "titleTxt2" + _root.grandpaCount, 5, 130, 230, 80, "Rusty Lockpick", 12, 6050119); var _local3 = defenderAlertMC.attachMovie("iconRustyLockpick", "iconRustyLockpick", defenderAlertMC.getNextHighestDepth(), {_x:105, _y:90}); closeButtonMC = defenderAlertMC.createEmptyMovieClip("closeButtonMC", defenderAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 20, 170, 190, 20, "Close", 12, 6050119); closeButtonMC.defenderName = defenderName; closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.loadWorldMap(_root.levelsUnlocked); }; } function mapMissions(city) { worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); addMapTextbox(); textBoxPortrait.attachMovie("textBoxMissions", "textBoxMissions", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt", 35, 37, 410, 50, city + " Missions", 18, 0, false); if (checkMissions(city) == false) { addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2", 35, 65, 410, 120, "Sorry, but there are no missions currently available. ", 12, 6050119, false, true); leaveButtonMC = restAlertMC.createEmptyMovieClip("leaveButtonMC", restAlertMC.getNextHighestDepth()); addText(leaveButtonMC, "tfield", 380, 134, 50, 20, "Leave", 12, 6050119, false); leaveButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; leaveButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; leaveButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:365, _y:135}); } else { addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2", 35, 65, 410, 120, "We currently have the following missions available:", 12, 6050119, false, true); missionList = new Array(); missionList = getMissionList(city); missionCount = 0; m = 0; while (m < missionList.length) { if (missionList[m][2] == true) { missionNameMC = worldMapMC.mapLevelInfoMC.textBoxMC.createEmptyMovieClip("missionNameMC" + m, worldMapMC.mapLevelInfoMC.textBoxMC.getNextHighestDepth()); addText(missionNameMC, "mission" + m, 50, (missionCount * 21) + 88, 200, 20, "- " + missionList[m][0], 12, 6050119, false); missionNameMC.tfield = missionNameMC["mission" + m]; missionNameMC.missionName = missionList[m][0]; missionNameMC.difficulty = missionList[m][1]; missionNameMC.city = city; missionNameMC.onRollOver = function () { this.tfield.textColor = 0; }; missionNameMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; missionNameMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.getMissionInfo(this.missionName, this.difficulty, this.city); }; missionCount++; } m++; } leaveButtonMC = restAlertMC.createEmptyMovieClip("leaveButtonMC", restAlertMC.getNextHighestDepth()); addText(leaveButtonMC, "tfield", 380, 134, 50, 20, "Leave", 12, 6050119, false); leaveButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; leaveButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; leaveButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; } } function checkMissions(city) { switch (city) { case "Grandpa's House" : return(checkMissionsAvailable(missionsArr[0])); case "Athelas" : return(checkMissionsAvailable(missionsArr[1])); case "Sandos" : return(checkMissionsAvailable(missionsArr[2])); case "Damascus" : return(checkMissionsAvailable(missionsArr[3])); } } function getMissionList(city) { switch (city) { case "Grandpa's House" : return(missionsArr[0]); case "Athelas" : return(missionsArr[1]); case "Sandos" : return(missionsArr[2]); case "Damascus" : return(missionsArr[3]); } } function getMissionInfo(missionName, missionDifficultyLevel, missionCity) { _root.worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); restAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("textBox3MC", "mapLevelTxtBox", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:230, _y:210}); addMapPortrait(); textBoxPortrait.attachMovie("textBoxMissions", "textBoxMissions", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.mapLevelTxtBox, "titleTxt", 35, 37, 410, 50, missionName, 18, 0, false); addText(worldMapMC.mapLevelInfoMC.mapLevelTxtBox, "titleTxt2", 35, 65, 410, 120, getMissionDescription(missionName), 12, 6050119, false, true); addText(worldMapMC.mapLevelInfoMC.mapLevelTxtBox, "titleTxt", 35, 160, 410, 50, "Rewards", 16, 0, false); missionRewardArr = new Array(); missionRewardArr = getMissionReward(missionName); m = 0; while (m < missionRewardArr.length) { rewardItem = getRewardItemInfo(missionRewardArr[m]); rewardMC = worldMapMC.mapLevelInfoMC.mapLevelTxtBox.createEmptyMovieClip("itemNameClip" + m, worldMapMC.mapLevelInfoMC.mapLevelTxtBox.getNextHighestDepth()); if ((m % 2) == 0) { itemIcon = rewardMC.attachMovie(rewardItem.ICON, rewardItem.ICON, itemNameClip.getNextHighestDepth(), {_x:40, _y:(m * 15) + 185}); addText(rewardMC, "titleTxt" + rewardItem.NAME, 70, (m * 15) + 190, 150, 20, "1 x " + rewardItem.NAME, 12, 6050119, false); } else { itemIcon = rewardMC.attachMovie(rewardItem.ICON, rewardItem.ICON, itemNameClip.getNextHighestDepth(), {_x:250, _y:((m - 1) * 15) + 185}); addText(rewardMC, "titleTxt" + rewardItem.NAME, 280, ((m - 1) * 15) + 190, 150, 20, "1 x " + rewardItem.NAME, 12, 6050119, false); } m++; } yesButtonMC = worldMapMC.mapLevelInfoMC.mapLevelTxtBox.createEmptyMovieClip("yesButtonMC", worldMapMC.mapLevelInfoMC.mapLevelTxtBox.getNextHighestDepth()); addText(yesButtonMC, "tfield", 40, 260, 110, 20, "Accept Mission", 11, 6050119, false); yesButtonMC.missionName = missionName; yesButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; yesButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; yesButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.getMissionFunc(this.missionName); }; addText(worldMapMC.mapLevelInfoMC.mapLevelTxtBox, "tfield", 145, 260, 200, 20, ("( reccommended level: " + missionDifficultyLevel) + " )", 10, 7077888, false); noButtonMC = worldMapMC.mapLevelInfoMC.mapLevelTxtBox.createEmptyMovieClip("yesButtonMC", worldMapMC.mapLevelInfoMC.mapLevelTxtBox.getNextHighestDepth()); addText(noButtonMC, "tfield", 380, 260, 55, 20, "Cancel", 11, 6050119, false); noButtonMC.cityName = missionCity; noButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; noButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; noButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.mapMissions(this.cityName); }; } function getMissionDescription(missionName) { switch (missionName) { case "Mutant Pond" : return("Mutants have been terrorizing the town's pond. Put an end to their chaos once and for all."); case "The Athelas Leaf" : return("Travel to the Athelas Grove and defeat the monsters to retrieve the Athelas Leaf. This leaf is very important for my research, and I will reward you greatly for your troubles."); case "Venom Snakes!" : return("Go north to the Jungle and kill off the venomous snakes that make this area dangerous. (Don't forget your antitodes for this one!)"); case "Mutant Leader" : return("The leader of the mutants has gotten word that their gang has been defeated. Finish him off to finally restore peace in this town."); case "The Desert Sting" : return("Travel to Sandos, where you will meet an archer who will assist you on your missions. Work as a group to defeat the creatures in this new area."); case "Ancient Pyramids" : return("The Ancient Pyramids are at risk of being destroyed. Clear out the enemies who insist on attacking these landmarks."); case "Super Venom" : return("A local scientist would like to study the ultra powerful venom in the fire scorpions. Hunt down and return the body of these rare insects for his studies."); case "Oasis" : return("Rumor has it that there is an Oasis somewhere outside of Sandos with rare treasures to be discovered. Hurry and find this location before other treasure hunters get to it."); case "Eye Guys" : return("Strange, large-eyed mutants have been appearing in the Sandos Dunes. Where are these mutants coming from? Are they being sent here by someone? Eliminate them and investigate further."); case "Lava Monsters" : return("After the recent volcano eruption, monster made of lava have made their home at Damascus Ruins. Please go there and do what you can to make sure they don't make it to town."); case "Death Rock Cave" : return("Deep within the ruins of the old volcanic town of Damascus is a cave known as Death Rock. A highly skilled group of adventurers are needed to explore this dangerous area"); case "Ring of Fire" : return("Several types of ghouls have been spotted in a fiery area in Damascus Ruins called the Ring of Fire. Who are these evil souls and why are they attacking peaceful citizens?"); case "Lava River" : return("Skeletal mages and ghouls are using their magic powers to guard a secret group of enemies within the volcano. Eliminate them so we can find out who is behind this evil."); case "Cave Ogres" : return("After defeating the ghouls and mages, there have been sightings of powerful ogres within the cave. Could these be the monsters behind all of the destruction?"); case "Ogre Lord" : return("Defeat the Ogre Lord and his gang to finally restore peace to this land"); } } function getMissionFunc(missionName) { _root.curMission = missionName; switch (missionName) { case "Mutant Pond" : initMap(missionName); break; case "The Athelas Leaf" : levelsUnlocked = 3; _root.loadWorldMap(levelsUnlocked); break; case "Venom Snakes!" : levelsUnlocked = 4; _root.loadWorldMap(levelsUnlocked); break; case "Mutant Leader" : initMap(missionName); break; case "The Desert Sting" : levelsUnlocked = 5; _root.loadWorldMap(levelsUnlocked); break; case "Ancient Pyramids" : levelsUnlocked = 7; _root.loadWorldMap(levelsUnlocked); break; case "Super Venom" : initMap(missionName); break; case "Oasis" : _root.levelsUnlocked = 8; _root.loadWorldMap(levelsUnlocked); break; case "Eye Guys" : _root.loadWorldMap(levelsUnlocked); break; case "Lava Monsters" : levelsUnlocked = 10; _root.loadWorldMap(levelsUnlocked); break; case "Death Rock Cave" : if (levelsUnlocked < 11) { _root.levelsUnlocked = 11; } _root.loadWorldMap(levelsUnlocked); break; case "Ring of Fire" : _root.loadWorldMap(levelsUnlocked); break; case "Lava River" : _root.levelsUnlocked = 11; _root.loadWorldMap(levelsUnlocked); break; case "Cave Ogres" : _root.loadWorldMap(levelsUnlocked); break; case "Ogre Lord" : _root.loadWorldMap(levelsUnlocked); } } function removeMission(missName) { m = 0; while (m < missionsArr.length) { m1 = 0; while (m1 < missionsArr[m].length) { if (missionsArr[m][m1][0] == missName) { missionsArr[m][m1][2] = false; break; } m1++; } m++; } } function getMissionReward(missionName) { switch (missionName) { case "tutorial" : return(["Healing Herb"]); case "Mutant Pond" : return(["sm. HP Potion", "Iron Ring"]); case "The Athelas Leaf" : return(["Mana Root", "Iron Tusk", "Antidote"]); case "Venom Snakes!" : return(["sm. HP Potion", "Antidote", "Rusty Lockpick"]); case "Mutant Leader" : return(["Magic Ring", "Power Bar"]); case "The Desert Sting" : return(["Resurrection", "Mana Root"]); case "Ancient Pyramids" : return(["sm. Mana Potion", "HP Potion", "Antidote", "Antidote"]); case "Super Venom" : return(["Iron Lockpick", "HP Booster"]); case "Oasis" : return(["Amulet of Warding", "Silver Necklace"]); case "Eye Guys" : return(["lg. HP Potion", "Iron Tusk"]); case "Lava Monsters" : return(["Magic Tonic", "Mana Potion"]); case "Death Rock Cave" : return(["Ruby Pin", "lg. HP Potion"]); case "Ring of Fire" : return(["Iron Lockpick", "lg. HP Potion"]); case "Lava River" : return(["Power Glove"]); case "Cave Ogres" : return(["lg. HP Potion", "Mana Potion", "Elixer"]); case "Ogre Lord" : return(["Iron Tusk", "HP Booster", "Power Bar", "Magic Tonic"]); } } function getRewardItemInfo(itemName) { i2 = 0; while (i2 < itemListArr.length) { if (itemName == itemListArr[i2].NAME) { return(itemListArr[i2]); } i2++; } return(false); } function assignRewards() { r = 0; while (r < missionRewardArr.length) { assignItem(missionRewardArr[r]); r++; } } function getMap(mapName) { mapName = mapName.toString(); if (mapName == "tutorial") { tileMap = [[1, 2, 3, 1, 2, 1, 6, 12], [1, 6, 1, 2, 3, 1, 1, 1], [12, 2, 1, 1, 6, 3, 1, 2], [2, 1, 1, 2, 1, 1, 5, 1], [1, 3, 1, 1, 5, 9, 2, 6], [1, 6, 3, 1, 1, 2, 1, 1], [1, 3, 9, 13, 1, 1, 1, 2], [1, 1, 13, 1, 1, 3, 2, 1], [1, 3, 2, 1, 6, 1, 1, 3], [1, 2, 1, 1, 1, 2, 1, 1], [12, 5, 1, 1, 2, 1, 3, 1], [1, 1, 4, 3, 1, 1, 1, 5], [1, 6, 2, 1, 1, 1, 2, 1], [1, 2, 1, 3, 1, 2, 6, 1], [1, 3, 3, 1, 1, 1, 1, 1]]; heightMap = [[3, 3, 2, 2, 2, 2, 2, 2], [3, 2, 2, 1, 1, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 2, 2, 1], [2, 2, 1, 1, 1, 1, 2, 1], [2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1]]; charMap = [[0, ["snake1", "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ["beetle1", "enemy", 2], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ["Kronus", "human", 4], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Deep Woods") { thisLevelEnemies = new Array(); thisLevelEnemies = ["beetle1", "beetle2", "snake1"]; randomMapNum = Math.ceil(Math.random() * 2); if (randomMapNum == 1) { tileMap = [[12, 12, 12, 12, 1, 1, 6, 2, 12, 12], [12, 1, 3, 7, 1, 1, 1, 1, 8, 12], [12, 1, 1, 2, 1, 1, 3, 1, 1, 1], [12, 2, 5, 1, 1, 2, 5, 1, 1, 1], [12, 1, 1, 1, 1, 6, 1, 1, 1, 1], [1, 6, 3, 1, 2, 1, 1, 1, 1, 2], [3, 1, 1, 3, 5, 1, 1, 1, 1, 3], [1, 12, 12, 1, 1, 3, 2, 1, 1, 1], [1, 12, 9, 5, 1, 1, 1, 1, 1, 1], [12, 9, 12, 3, 1, 6, 1, 5, 1, 1], [12, 1, 6, 2, 1, 2, 1, 1, 1, 6], [3, 2, 3, 1, 1, 1, 1, 3, 1, 1], [1, 2, 3, 1, 1, 2, 1, 1, 5, 1], [1, 1, 6, 2, 1, 3, 2, 2, 1, 3], [1, 2, 1, 1, 1, 1, 1, 1, 1, 1]]; heightMap = [[3, 3, 2, 2, 2, 1, 1, 2, 2, 3], [2, 2, 2, 1, 1, 1, 1, 1, 2, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 2, 1, 1, 1, 1, 1, 1, 2, 2], [1, 2, 2, 1, 1, 1, 1, 1, 2, 2], [1, 2, 2, 1, 1, 1, 1, 1, 1, 2], [1, 2, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3]], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, checkLevelAddDefender(2, 4), 0, ["Kronus", "human", 4], 0, checkLevelAddDefender(1, 4), 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } else { tileMap = [[1, 1, 1, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12], [2, 1, 6, 1, 1, 12, 8, 12, 1, 5, 7, 12, 12, 12, 4], [3, 1, 1, 1, 5, 3, 1, 2, 3, 1, 4, 1, 3, 2, 12], [1, 5, 1, 20, 1, 1, 1, 6, 1, 3, 1, 1, 2, 1, 3], [18, 19, 18, 19, 13, 5, 1, 1, 3, 1, 1, 1, 2, 1, 1], [18, 18, 19, 20, 19, 1, 1, 2, 1, 2, 1, 6, 1, 5, 1], [1, 1, 1, 19, 1, 3, 4, 1, 1, 1, 1, 1, 3, 2, 1], [6, 3, 1, 6, 1, 1, 6, 1, 2, 1, 2, 3, 3, 4, 1], [1, 2, 1, 1, 5, 2, 1, 1, 1, 3, 6, 1, 12, 12, 12], [1, 1, 1, 2, 1, 1, 1, 1, 1, 12, 12, 12, 4, 7, 12]]; heightMap = [[2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0, 0], [0, ["Kronus", "human", 1], 0, checkLevelAddDefender(1, 1), checkLevelAddDefender(2, 1), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } _root.missionType = "level"; mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Mutant Pond") { tileMap = [[1, 1, 1, 1, 2, 1, 1, 6, 1, 1, 1, 1, 1, 1, 1], [5, 2, 6, 1, 1, 5, 1, 1, 3, 1, 1, 2, 11, 6, 1], [1, 9, 3, 1, 3, 6, 1, 2, 1, 1, 3, 6, 1, 1, 1], [1, 1, 1, 2, 13, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1], [1, 13, 1, 1, 1, 10, 23, 23, 23, 10, 1, 1, 2, 1, 1], [5, 1, 1, 1, 23, 23, 22, 22, 22, 23, 23, 10, 9, 13, 1], [1, 1, 1, 23, 22, 22, 22, 22, 22, 22, 22, 23, 10, 4, 3], [2, 1, 1, 24, 22, 22, 22, 22, 22, 22, 22, 22, 1, 6, 1], [1, 6, 1, 24, 22, 22, 22, 22, 22, 22, 22, 22, 1, 1, 1], [1, 1, 1, 1, 22, 22, 22, 22, 22, 22, 22, 10, 5, 2, 1], [1, 2, 1, 1, 1, 10, 22, 22, 22, 1, 1, 1, 3, 1, 1], [6, 4, 1, 6, 4, 1, 14, 15, 14, 1, 1, 2, 1, 1, 2], [1, 1, 1, 6, 13, 2, 14, 14, 15, 1, 6, 4, 1, 1, 1], [1, 9, 5, 1, 1, 5, 15, 14, 14, 3, 1, 1, 2, 13, 1], [1, 3, 1, 1, 1, 2, 14, 15, 14, 1, 1, 1, 3, 1, 1]]; heightMap = [[3, 2, 2, 2, 1, 1, 1, 2, 2, 3, 2, 2, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [3, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, ["mutant1", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, ["mutant1", "enemy", 1], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [["mutant1", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["mutant1", "enemy", 2], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], 0, ["Kage", "human", 4], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "The Athelas Leaf") { tileMap = [[12, 1, 1, 8, 1, 1, 12, 1, 1, 1, 12, 1, 1, 1, 1], [1, 6, 1, 1, 1, 1, 2, 1, 1, 11, 1, 1, 1, 2, 1], [1, 1, 2, 1, 4, 3, 1, 1, 2, 1, 1, 3, 3, 8, 1], [1, 1, 1, 12, 1, 1, 1, 5, 3, 1, 2, 1, 6, 1, 1], [1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 3, 2, 4, 1, 1], [12, 1, 1, 1, 3, 1, 1, 1, 1, 12, 6, 1, 1, 1, 1], [1, 2, 1, 1, 12, 1, 1, 6, 1, 1, 1, 3, 1, 12, 1], [1, 11, 5, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 5, 2], [3, 8, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 2, 1], [6, 1, 1, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 11, 1, 1, 2, 1, 1, 3, 3, 1], [1, 1, 2, 11, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1], [1, 12, 1, 1, 1, 4, 1, 1, 1, 3, 3, 1, 1, 6, 1], [1, 2, 1, 8, 1, 3, 1, 6, 1, 1, 1, 5, 1, 1, 1], [1, 1, 1, 1, 1, 3, 3, 2, 1, 1, 1, 1, 1, 1, 1]]; heightMap = [[1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1], [1, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 1, 1, 1, 1], [1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["beetle3", "enemy", 2], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ["beetle2", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["beetle2", "enemy", 2], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, ["beetle3", "enemy", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], 0, ["Kage", "human", 4], 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Athelas Grove") { thisLevelEnemies = new Array(); thisLevelEnemies = ["beetle3", "mutant1", "beetle2"]; _root.missionType = "level"; randomMapNum = Math.ceil(Math.random() * 2); if (randomMapNum == 1) { tileMap = [[12, 1, 1, 8, 1, 1, 12, 1, 1, 1, 12, 1, 1, 1, 1], [1, 6, 1, 1, 1, 1, 2, 1, 1, 11, 1, 1, 1, 2, 1], [1, 1, 2, 1, 4, 3, 1, 1, 2, 1, 1, 3, 3, 8, 1], [1, 1, 1, 12, 1, 1, 1, 5, 3, 1, 2, 1, 6, 1, 1], [1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 3, 2, 4, 1, 1], [12, 1, 1, 1, 3, 1, 1, 1, 1, 12, 6, 1, 1, 1, 1], [1, 2, 1, 1, 12, 1, 1, 6, 1, 1, 1, 3, 1, 12, 1], [1, 11, 5, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 5, 2], [3, 8, 1, 1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 2, 1], [6, 1, 1, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 11, 1, 1, 2, 1, 1, 3, 3, 1], [1, 1, 2, 11, 1, 1, 1, 1, 1, 1, 12, 1, 1, 1, 1], [1, 12, 1, 1, 1, 4, 1, 1, 1, 3, 3, 1, 1, 6, 1], [1, 2, 1, 8, 1, 3, 1, 6, 1, 1, 1, 5, 1, 1, 1], [1, 1, 1, 1, 1, 3, 3, 2, 1, 1, 1, 1, 1, 1, 1]]; heightMap = [[1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1], [1, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 1, 1, 1, 1], [1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ["beetle2", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], checkLevelAddDefender(2, 4), ["Kage", "human", 4], 0, 0, 0, 0, 0, 0]]; } else if (randomMapNum == 2) { tileMap = [[1, 12, 1, 12, 3, 1, 1, 1, 12, 1], [1, 2, 1, 13, 3, 1, 12, 1, 4, 1], [12, 1, 1, 1, 1, 1, 2, 1, 6, 3], [1, 1, 3, 1, 1, 1, 1, 3, 1, 1], [1, 6, 1, 2, 20, 18, 17, 20, 19, 17], [2, 1, 1, 1, 20, 18, 18, 18, 17, 20], [12, 12, 4, 1, 18, 17, 1, 1, 2, 1], [1, 1, 1, 1, 17, 20, 2, 6, 3, 1], [3, 1, 1, 2, 18, 18, 1, 1, 2, 1], [1, 1, 1, 6, 17, 18, 2, 4, 1, 13], [1, 13, 1, 2, 18, 19, 2, 1, 2, 1], [1, 1, 1, 3, 18, 18, 1, 3, 3, 1], [2, 1, 1, 1, 20, 17, 1, 3, 13, 1], [6, 1, 13, 1, 18, 18, 1, 1, 2, 1], [1, 12, 1, 1, 19, 17, 1, 1, 1, 1]]; heightMap = [[4, 4, 3, 3, 3, 3, 2, 2, 2, 2], [4, 3, 3, 2, 2, 2, 2, 2, 2, 2], [3, 3, 2, 2, 2, 2, 2, 2, 2, 2], [3, 2, 2, 2, 2, 2, 2, 2, 2, 2], [3, 2, 2, 2, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2]]; charMap = [[[getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 1], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], 0], [0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 3], 0, checkLevelAddDefender(2, 3)], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Venom Snakes!") { tileMap = [[1, 1, 1, 1, 1, 6, 22, 22, 22, 22, 22, 22], [1, 3, 1, 2, 1, 10, 1, 22, 22, 22, 22, 22], [1, 5, 6, 1, 3, 5, 1, 1, 1, 22, 22, 22], [3, 2, 1, 1, 2, 1, 1, 2, 1, 1, 22, 22], [1, 10, 1, 3, 1, 3, 2, 6, 1, 1, 1, 22], [1, 1, 1, 6, 1, 1, 1, 1, 3, 1, 10, 1], [22, 22, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1], [22, 22, 22, 1, 1, 10, 2, 1, 1, 1, 6, 2], [22, 22, 22, 22, 22, 1, 1, 1, 6, 1, 2, 1], [22, 22, 22, 22, 22, 22, 1, 1, 2, 1, 1, 1], [22, 22, 22, 22, 22, 22, 22, 22, 1, 1, 5, 1], [22, 22, 22, 22, 22, 22, 22, 22, 22, 1, 1, 1]]; heightMap = [[2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0], [2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], [2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 0], [1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1], [0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]]; charMap = [[0, ["Kage", "human", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [["Kronus", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["snake2", "enemy", 2], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["snake2", "enemy", 3], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["snake2", "enemy", 4], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Jungle") { return(levelJungle(mapName)); } if (mapName == "Mutant Leader") { tileMap = [[2, 1, 1, 2, 1, 1, 1, 1, 2, 6], [2, 1, 1, 13, 1, 2, 1, 1, 2, 2], [1, 6, 2, 1, 1, 1, 2, 13, 1, 1], [13, 1, 19, 17, 19, 17, 18, 19, 1, 1], [1, 1, 20, 19, 17, 20, 18, 20, 2, 6], [1, 2, 18, 17, 18, 18, 19, 18, 2, 13], [1, 6, 19, 20, 17, 19, 17, 19, 1, 1], [1, 13, 1, 2, 1, 6, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 2, 1], [1, 6, 1, 1, 2, 2, 1, 1, 1, 2]]; heightMap = [[2, 2, 2, 1, 1, 1, 1, 2, 2, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 1, 1, 1, 1, 1, 1, 1, 1, 2], [2, 2, 2, 1, 1, 1, 1, 2, 2, 2]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [["mutant3", "enemy", 1], 0, 0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 3]], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ["Kronus", "human", 4], 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "The Desert Sting") { tileMap = [[60, 55, 55, 55, 55, 55, 55, 55, 55, 60, 57, 55], [55, 57, 55, 55, 60, 57, 55, 57, 62, 55, 63, 58], [64, 56, 57, 55, 55, 56, 58, 55, 57, 55, 55, 55], [55, 57, 58, 57, 55, 57, 55, 55, 55, 56, 55, 55], [55, 57, 57, 55, 55, 57, 55, 55, 55, 55, 57, 55], [55, 55, 55, 56, 55, 55, 56, 55, 57, 56, 60, 55], [57, 62, 56, 55, 56, 58, 55, 57, 55, 55, 55, 55], [55, 55, 57, 55, 55, 55, 60, 55, 57, 58, 55, 55], [55, 55, 58, 55, 55, 57, 55, 57, 57, 55, 56, 55], [55, 57, 57, 55, 55, 55, 57, 57, 55, 55, 56, 55], [55, 60, 55, 55, 57, 55, 55, 55, 64, 55, 57, 55], [55, 57, 55, 55, 56, 55, 57, 58, 55, 55, 55, 55]]; heightMap = [[3, 2, 2, 2, 1, 1, 2, 3, 3, 2, 2, 2], [3, 2, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["scorpion1", "enemy", 2], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, ["scorpion1", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, ["snake2", "enemy", 3], 0, 0, 0], [0, 0, 0, 0, ["scorpion1", "enemy", 3], 0, 0, 0, 0, 0, 0, 0], [0, ["Aryana", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [["Kage", "human", 1], 0, ["Kronus", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Sandos Dunes") { return(levelSandosDunes(mapName)); } if (mapName == "Ancient Pyramids") { return(levelAncientPyramids(mapName)); } if (mapName == "Great Pyramids") { return(levelGreatPyramids(mapName)); } if (mapName == "Super Venom") { tileMap = [[55, 57, 57, 59, 55, 56, 57, 57, 57, 57, 57, 60], [57, 56, 57, 57, 57, 57, 56, 58, 56, 57, 55, 56], [55, 57, 57, 63, 56, 57, 61, 57, 57, 55, 57, 55], [55, 58, 57, 56, 55, 57, 57, 56, 55, 57, 62, 55], [57, 56, 57, 55, 57, 55, 55, 57, 57, 56, 57, 57], [56, 57, 56, 57, 55, 60, 57, 55, 57, 57, 57, 57], [56, 57, 61, 57, 57, 57, 57, 55, 55, 55, 56, 57], [57, 57, 55, 57, 59, 57, 55, 55, 55, 57, 55, 56], [57, 56, 55, 57, 57, 57, 55, 57, 57, 57, 58, 57], [57, 60, 57, 57, 57, 56, 57, 55, 57, 55, 57, 55], [55, 56, 57, 62, 56, 55, 58, 57, 55, 56, 55, 57], [57, 57, 57, 57, 55, 57, 55, 57, 55, 57, 55, 57]]; heightMap = [[3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3], [3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3], [2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 3], [2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [["scorpion2", "enemy", 1], 0, 0, 0, 0, 0, 0, ["scorpion2", "enemy", 2], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, ["scorpion2", "enemy", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 3], ["Aryana", "human", 4], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 3], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Oasis") { tileMap = [[22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22], [22, 22, 22, 1, 1, 1, 3, 1, 1, 3, 1, 1, 24, 22, 22], [22, 22, 1, 5, 1, 2, 1, 1, 9, 1, 2, 5, 1, 24, 22], [22, 1, 1, 1, 3, 3, 6, 1, 1, 1, 1, 1, 3, 1, 24], [22, 3, 6, 1, 1, 1, 1, 1, 2, 1, 6, 1, 11, 1, 24], [22, 1, 1, 2, 3, 13, 1, 3, 1, 3, 1, 13, 1, 1, 24], [22, 1, 9, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 24], [22, 1, 2, 1, 1, 1, 3, 1, 1, 6, 9, 1, 1, 1, 24], [22, 1, 10, 1, 2, 1, 11, 1, 1, 3, 3, 1, 2, 1, 24], [22, 23, 23, 3, 1, 1, 1, 2, 1, 5, 1, 1, 1, 24, 22], [22, 22, 22, 23, 23, 23, 1, 1, 1, 1, 1, 24, 23, 22, 22], [22, 22, 22, 22, 22, 22, 22, 27, 27, 23, 23, 22, 22, 22, 22], [22, 22, 22, 22, 22, 22, 22, 27, 27, 22, 22, 22, 22, 22, 22], [22, 22, 22, 22, 22, 22, 22, 27, 27, 22, 22, 22, 22, 22, 22], [22, 22, 22, 22, 22, 22, 22, 27, 27, 22, 22, 22, 22, 22, 22]]; heightMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, ["scorpion2", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["snake3", "enemy", 2], 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["snake3", "enemy", 2], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ["scorpion2", "enemy", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], ["Aryana", "human", 4], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 4], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "The Oasis") { return(levelTheOasis(mapName)); } if (mapName == "Eye Guys") { tileMap = [[56, 59, 57, 56, 57, 57, 18, 17, 57, 55, 57, 57], [58, 57, 57, 57, 57, 62, 17, 18, 57, 57, 60, 57], [57, 57, 57, 56, 57, 57, 18, 18, 57, 56, 57, 62], [57, 56, 61, 57, 60, 55, 18, 17, 57, 59, 57, 55], [56, 58, 57, 57, 57, 57, 17, 18, 18, 18, 17, 18], [57, 56, 57, 57, 60, 57, 18, 17, 17, 18, 18, 18], [57, 60, 55, 57, 57, 57, 56, 57, 57, 55, 57, 55], [55, 57, 62, 57, 55, 61, 56, 57, 60, 57, 57, 57], [57, 55, 57, 56, 57, 55, 57, 57, 57, 55, 57, 58]]; heightMap = [[4, 3, 3, 2, 2, 1, 0, 0, 1, 1, 2, 2], [3, 3, 2, 2, 1, 1, 0, 0, 1, 1, 2, 2], [3, 2, 2, 1, 1, 1, 0, 0, 1, 1, 1, 2], [2, 2, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[["Kage", "human", 1], ["Aryana", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, ["eyeguy1", "enemy", 3], 0], [["Kronus", "human", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, ["eyeguy1", "enemy", 3], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["eyeguy1", "enemy", 2], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Damascus Ruins") { return(levelDamascusRuins(mapName)); } if (mapName == "Lava Monsters") { return(levelLavaMonsters(mapName)); } if (mapName == "Death Rock Cave") { tileMap = [[38, 38, 40, 38, 38, 41, 38, 38, 38, 38, 40, 38], [38, 39, 40, 38, 38, 38, 40, 38, 38, 40, 38, 38], [38, 39, 40, 38, 41, 38, 39, 38, 39, 38, 40, 38], [38, 40, 38, 40, 41, 38, 41, 38, 40, 40, 39, 38], [40, 38, 41, 40, 39, 39, 38, 38, 40, 41, 38, 38], [38, 38, 38, 38, 38, 38, 41, 38, 39, 40, 38, 38], [40, 38, 39, 41, 38, 40, 43, 40, 40, 41, 38, 38], [40, 38, 38, 38, 38, 42, 43, 42, 40, 38, 38, 39], [41, 38, 41, 40, 38, 43, 43, 42, 38, 38, 41, 38], [38, 40, 38, 40, 38, 42, 42, 43, 38, 38, 38, 38], [38, 38, 38, 38, 41, 43, 42, 43, 38, 38, 39, 38], [38, 41, 38, 39, 38, 42, 43, 43, 40, 38, 38, 38]]; heightMap = [[1, 1, 1, 2, 3, 3, 3, 2, 2, 2, 1, 1], [1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1], [2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [3, 2, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [3, 2, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, ["skeleton1", "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, ["skeleton1", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, ["skeleton1", "enemy", 2], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ["Kage", "human", 4], 0, ["Aryana", "human", 4], 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Ring of Fire") { tileMap = [[34, 34, 33, 35, 33, 34, 35, 34, 35, 35, 33, 36, 34, 35, 35], [34, 36, 35, 34, 51, 48, 48, 48, 48, 48, 48, 35, 33, 36, 33], [35, 35, 34, 48, 48, 48, 48, 50, 48, 48, 48, 48, 48, 34, 35], [34, 34, 48, 48, 48, 51, 48, 48, 48, 51, 50, 51, 48, 48, 34], [34, 33, 48, 51, 48, 50, 48, 34, 35, 48, 48, 48, 48, 48, 34], [33, 34, 48, 48, 48, 48, 36, 33, 34, 35, 35, 48, 48, 48, 34], [34, 34, 48, 50, 48, 33, 34, 33, 34, 34, 35, 48, 51, 48, 34], [34, 35, 48, 48, 51, 48, 34, 36, 35, 35, 47, 48, 50, 48, 33], [34, 34, 48, 48, 48, 48, 48, 34, 34, 47, 48, 51, 48, 48, 36], [33, 34, 35, 48, 48, 51, 50, 48, 48, 48, 51, 48, 48, 34, 35], [34, 34, 34, 35, 48, 51, 48, 51, 48, 50, 48, 48, 34, 33, 34], [34, 35, 36, 34, 34, 34, 48, 48, 48, 48, 34, 34, 33, 34, 35], [34, 35, 35, 34, 35, 35, 35, 38, 39, 35, 34, 35, 36, 34, 33], [34, 33, 35, 35, 36, 35, 35, 38, 39, 33, 35, 35, 33, 35, 34], [34, 35, 34, 34, 34, 33, 35, 38, 39, 35, 33, 34, 34, 34, 35]]; heightMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0], [0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0], [0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0], [0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0], [0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["flameskull2", "enemy", 2], ["flameskull2", "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ["flameskull1", "enemy", 2], 0, 0, 0, 0, 0, 0, ["flameskull1", "enemy", 2], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["Aryana", "human", 4], ["Kronus", "human", 4], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 4], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Lava River") { return(levelLavaRiver(mapName)); } if (mapName == "Cave Ogres") { tileMap = [[40, 40, 34, 33, 34, 34, 33, 34, 40, 40, 40, 40], [40, 38, 40, 43, 43, 43, 43, 43, 40, 39, 40, 40], [40, 38, 40, 43, 43, 43, 43, 43, 40, 40, 41, 40], [40, 41, 40, 35, 35, 34, 43, 43, 35, 34, 34, 40], [40, 40, 38, 33, 34, 34, 43, 43, 34, 33, 34, 40], [40, 40, 39, 34, 33, 34, 43, 43, 34, 35, 34, 36], [34, 42, 42, 34, 34, 34, 40, 40, 34, 33, 36, 34], [34, 42, 42, 34, 36, 34, 40, 41, 39, 35, 34, 34], [33, 42, 42, 34, 36, 34, 40, 40, 41, 34, 34, 34], [34, 42, 42, 35, 34, 34, 38, 40, 40, 34, 37, 35], [34, 42, 42, 34, 34, 34, 41, 39, 39, 35, 34, 33], [34, 42, 42, 34, 33, 34, 34, 35, 34, 34, 33, 35], [40, 39, 40, 38, 34, 34, 36, 34, 33, 34, 36, 34], [40, 40, 40, 40, 40, 34, 34, 33, 34, 34, 34, 34]]; heightMap = [[2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3], [3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3], [4, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [3, 3, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2], [2, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1], [1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1], [1, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1], [1, 2, 2, 1, 1, 1, 2, 3, 2, 1, 1, 1], [1, 2, 2, 1, 1, 1, 2, 3, 2, 1, 2, 1], [1, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1], [1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["ogre1", "enemy", 3], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, ["ogre1", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["ogre1", "enemy", 4], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, ["Kronus", "human", 4], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, ["Aryana", "human", 4], ["Kage", "human", 4], 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } if (mapName == "Ogre Lord") { return(levelOgreLord(mapName)); } if (mapName == "Death Rock") { return(levelDeathRock(mapName)); } } function checkLevelUnlock(levelName) { levelName = levelName.toString(); switch (levelName) { case "tutorial" : _root.grandpaCount++; break; case "Mutant Pond" : removeMission(levelName); if (checkMissionsAvailable(missionsArr[1]) == false) { unlockMission(missionsArr[1], "Mutant Leader"); } break; case "The Athelas Leaf" : removeMission(levelName); unlockMission(missionsArr[1], "Venom Snakes!"); break; case "Venom Snakes!" : removeMission(levelName); if (checkMissionsAvailable(missionsArr[1]) == false) { unlockMission(missionsArr[1], "Mutant Leader"); } break; case "Mutant Leader" : removeMission(levelName); unlockMission(missionsArr[1], "The Desert Sting"); break; case "The Desert Sting" : _root.levelsUnlocked++; removeMission(levelName); unlockMission(missionsArr[2], "Ancient Pyramids"); unlockMission(missionsArr[2], "Super Venom"); break; case "Ancient Pyramids" : removeMission(levelName); if (checkMissionsAvailable(missionsArr[2]) == false) { trace("UNLOCK OASIS MISSION!!!"); unlockMission(missionsArr[2], "Oasis"); } break; case "Super Venom" : removeMission(levelName); if (checkMissionsAvailable(missionsArr[2]) == false) { trace("UNLOCK OASIS MISSION!!!"); unlockMission(missionsArr[2], "Oasis"); } break; case "Oasis" : removeMission(levelName); unlockMission(missionsArr[2], "Eye Guys"); break; case "Eye Guys" : _root.levelsUnlocked = 9; removeMission(levelName); unlockMission(missionsArr[3], "Lava Monsters"); break; case "Lava Monsters" : removeMission(levelName); unlockMission(missionsArr[3], "Death Rock"); unlockMission(missionsArr[3], "Ring of Fire"); break; case "Death Rock" : removeMission(levelName); if (checkMissionsAvailable(missionsArr[3]) == false) { unlockMission(missionsArr[3], "Lava River"); } break; case "Ring of Fire" : removeMission(levelName); if (checkMissionsAvailable(missionsArr[3]) == false) { unlockMission(missionsArr[3], "Lava River"); } break; case "Lava River" : removeMission(levelName); if (checkMissionsAvailable(missionsArr[3]) == false) { unlockMission(missionsArr[3], "Cave Ogres"); } break; case "Cave Ogres" : removeMission(levelName); if (checkMissionsAvailable(missionsArr[3]) == false) { unlockMission(missionsArr[3], "Ogre Lord"); } break; case "Ogre Lord" : removeMission(levelName); trace("END GAME"); gameComplete = true; } } function unlockMission(arr, missionName) { m = 0; while (m < arr.length) { if (arr[m][0] == missionName) { arr[m][2] = true; break; } m++; } } function getRandomLevelEnemy(arr) { randomEnemyNum = Math.floor(Math.random() * arr.length); return(arr[randomEnemyNum]); } function checkLevelAddDefender(defenderNum, dir) { if (_root.defenderArr[defenderNum] != undefined) { if (defenderNum == 1) { return(["Kage", "human", dir]); } if (defenderNum == 2) { return(["Aryana", "human", dir]); } } return(0); } function levelJungle(mapName) { thisLevelEnemies = new Array(); thisLevelEnemies = ["beetle3", "snake2", "snake3"]; _root.missionType = "level"; randomMapNum = Math.ceil(Math.random() * 2); if (randomMapNum == 1) { tileMap = [[12, 12, 1, 1, 2, 1, 1, 1, 12, 12], [12, 1, 2, 1, 1, 2, 1, 1, 1, 12], [10, 1, 1, 1, 1, 1, 9, 1, 1, 2], [1, 2, 1, 1, 1, 2, 1, 1, 10, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [22, 22, 22, 22, 27, 27, 22, 22, 22, 22], [22, 22, 22, 22, 27, 27, 22, 22, 22, 22], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 10, 1, 1, 1, 2, 2, 1, 10, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [12, 1, 9, 2, 1, 1, 2, 1, 1, 7], [12, 1, 2, 1, 1, 1, 1, 1, 2, 1], [7, 1, 10, 1, 1, 1, 1, 2, 4, 1], [2, 1, 1, 1, 2, 1, 1, 1, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 2, 1]]; heightMap = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ["Kronus", "human", 4], ["Kage", "human", 4], checkLevelAddDefender(2, 4), 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } else if (randomMapNum == 2) { tileMap = [[1, 1, 1, 1, 1, 6, 22, 22, 22, 22, 22, 22], [1, 3, 1, 2, 1, 10, 1, 22, 22, 22, 22, 22], [1, 5, 6, 1, 3, 5, 1, 1, 1, 22, 22, 22], [3, 2, 1, 1, 2, 1, 1, 2, 1, 1, 22, 22], [1, 10, 1, 3, 1, 3, 2, 6, 1, 1, 1, 22], [1, 1, 1, 6, 1, 1, 1, 1, 3, 1, 10, 1], [22, 22, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1], [22, 22, 22, 1, 1, 10, 2, 1, 1, 1, 6, 2], [22, 22, 22, 22, 22, 1, 1, 1, 6, 1, 2, 1], [22, 22, 22, 22, 22, 22, 1, 1, 2, 1, 1, 1], [22, 22, 22, 22, 22, 22, 22, 22, 1, 1, 5, 1], [22, 22, 22, 22, 22, 22, 22, 22, 22, 1, 1, 1]]; heightMap = [[2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0], [2, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], [2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 0], [1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1], [0, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]]; charMap = [[0, ["Kage", "human", 2], checkLevelAddDefender(2, 2), 0, 0, 0, 0, 0, 0, 0, 0, 0], [["Kronus", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 4], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } function levelSandosDunes(mapName) { thisLevelEnemies = new Array(); thisLevelEnemies = ["beetle3", "snake3", "scorpion1"]; _root.missionType = "level"; randomMapNum = Math.ceil(Math.random() * 2); if (randomMapNum == 1) { tileMap = [[56, 59, 57, 56, 57, 57, 18, 17, 57, 55, 57, 57], [58, 57, 57, 57, 57, 62, 17, 18, 57, 57, 60, 57], [57, 57, 57, 56, 57, 57, 18, 18, 57, 56, 57, 62], [57, 56, 61, 57, 60, 55, 18, 17, 57, 59, 57, 55], [56, 58, 57, 57, 57, 57, 17, 18, 18, 18, 17, 18], [57, 56, 57, 57, 60, 57, 18, 17, 17, 18, 18, 18], [57, 60, 55, 57, 57, 57, 56, 57, 57, 55, 57, 55], [55, 57, 62, 57, 55, 61, 56, 57, 60, 57, 57, 57], [57, 55, 57, 56, 57, 55, 57, 57, 57, 55, 57, 58]]; heightMap = [[4, 3, 3, 2, 2, 1, 0, 0, 1, 1, 2, 2], [3, 3, 2, 2, 1, 1, 0, 0, 1, 1, 2, 2], [3, 2, 2, 1, 1, 1, 0, 0, 1, 1, 1, 2], [2, 2, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [2, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[["Kage", "human", 1], ["Aryana", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0], [["Kronus", "human", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } else if (randomMapNum == 2) { tileMap = [[60, 55, 55, 55, 55, 55, 55, 55, 55, 60, 57, 55], [55, 57, 55, 55, 60, 57, 55, 57, 62, 55, 63, 58], [64, 56, 57, 55, 55, 56, 58, 55, 57, 55, 55, 55], [55, 57, 58, 57, 55, 57, 55, 55, 55, 56, 55, 55], [55, 57, 57, 55, 55, 57, 55, 55, 55, 55, 57, 55], [55, 55, 55, 56, 55, 55, 56, 55, 57, 56, 60, 55], [57, 62, 56, 55, 56, 58, 55, 57, 55, 55, 55, 55], [55, 55, 57, 55, 55, 55, 60, 55, 57, 58, 55, 55], [55, 55, 58, 55, 55, 57, 55, 57, 57, 55, 56, 55], [55, 57, 57, 55, 55, 55, 57, 57, 55, 55, 56, 55], [55, 60, 55, 55, 57, 55, 55, 55, 64, 55, 57, 55], [55, 57, 55, 55, 56, 55, 57, 58, 55, 55, 55, 55]]; heightMap = [[3, 2, 2, 2, 1, 1, 2, 3, 3, 2, 2, 2], [3, 2, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0, 0, 0], [0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0, 0, 0, 0, 0, 0, 0], [0, ["Aryana", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [["Kage", "human", 1], 0, ["Kronus", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } function levelAncientPyramids(mapName) { tileMap = [[57, 57, 55, 55, 57, 55, 55, 55, 55, 55, 55, 63, 55, 55, 55, 55, 55, 55, 58, 55], [57, 57, 57, 57, 56, 57, 57, 56, 55, 57, 55, 56, 55, 55, 55, 57, 57, 57, 57, 55], [55, 56, 57, 55, 55, 57, 55, 55, 55, 55, 55, 55, 55, 57, 57, 55, 55, 60, 56, 55], [57, 55, 55, 55, 57, 55, 55, 55, 60, 55, 55, 56, 57, 55, 59, 55, 55, 55, 55, 55], [55, 55, 55, 55, 56, 55, 55, 55, 56, 55, 55, 55, 56, 55, 55, 55, 55, 56, 55, 56], [55, 56, 55, 55, 55, 55, 56, 55, 55, 55, 55, 55, 55, 55, 56, 55, 55, 55, 63, 55], [55, 55, 55, 56, 56, 55, 55, 55, 55, 56, 55, 55, 56, 55, 56, 64, 55, 57, 55, 55], [57, 56, 55, 55, 55, 56, 55, 57, 57, 63, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55], [60, 57, 55, 55, 55, 57, 55, 55, 55, 55, 55, 58, 56, 55, 57, 60, 56, 55, 57, 55], [55, 55, 55, 55, 64, 55, 55, 60, 55, 56, 55, 55, 55, 57, 55, 55, 55, 55, 57, 55], [55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 55, 56, 55, 55, 55, 55, 55], [55, 55, 57, 55, 55, 57, 57, 57, 57, 55, 56, 57, 57, 64, 56, 56, 55, 57, 55, 55], [55, 55, 55, 64, 57, 55, 59, 55, 55, 62, 55, 55, 60, 55, 55, 57, 59, 55, 56, 55], [55, 58, 55, 55, 55, 57, 55, 55, 55, 55, 55, 56, 55, 55, 55, 55, 57, 55, 55, 55], [55, 55, 57, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 55]]; heightMap = [[7, 6, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4], [6, 6, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3], [5, 5, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2], [4, 4, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 3, 3, 3, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 3, 3, 3, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["scorpion1", "enemy", 2], 0], [0, 0, ["snake3", "enemy", 1], 0, 0, 0, 0, 0, 0, ["scorpion1", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ["snake3", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["beetle3", "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ["scorpion1", "enemy", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 3], 0, ["Kage", "human", 4]], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Aryana", "human", 3], 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } function levelGreatPyramids(mapName) { thisLevelEnemies = new Array(); thisLevelEnemies = ["beetle3", "snake3", "scorpion1", "scorpion2"]; _root.missionType = "level"; randomMapNum = Math.ceil(Math.random() * 2); if (randomMapNum == 1) { tileMap = [[57, 57, 57, 57, 57, 56, 57, 56, 57, 59, 57, 57], [57, 55, 57, 64, 58, 55, 56, 57, 57, 56, 57, 63], [55, 57, 59, 57, 56, 57, 57, 57, 57, 60, 57, 57], [57, 56, 57, 56, 57, 57, 57, 56, 56, 55, 57, 56], [57, 57, 57, 56, 55, 58, 55, 57, 57, 64, 57, 55], [56, 60, 57, 57, 57, 56, 57, 57, 57, 57, 56, 57], [57, 57, 57, 63, 57, 57, 57, 56, 56, 55, 60, 56], [57, 57, 55, 57, 56, 57, 56, 57, 57, 57, 57, 57], [57, 56, 57, 57, 60, 57, 55, 57, 57, 56, 57, 57], [57, 64, 57, 55, 57, 57, 55, 57, 59, 57, 57, 58], [57, 57, 57, 56, 57, 57, 64, 57, 58, 57, 57, 56], [57, 57, 56, 57, 57, 57, 57, 57, 56, 57, 57, 56]]; heightMap = [[4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ["Kronus", "human", 4], 0, 0, ["Kage", "human", 4], 0, ["Aryana", "human", 4], 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } else if (randomMapNum == 2) { tileMap = [[57, 57, 55, 55, 57, 55, 55, 55, 55, 55, 55, 63, 55, 55, 55, 55, 55, 55, 58, 55], [57, 57, 57, 57, 56, 57, 57, 56, 55, 57, 55, 56, 55, 55, 55, 57, 57, 57, 57, 55], [55, 56, 57, 55, 55, 57, 55, 55, 55, 55, 55, 55, 55, 57, 57, 55, 55, 60, 56, 55], [57, 55, 55, 55, 57, 55, 55, 55, 60, 55, 55, 56, 57, 55, 59, 55, 55, 55, 55, 55], [55, 55, 55, 55, 56, 55, 55, 55, 56, 55, 55, 55, 56, 55, 55, 55, 55, 56, 55, 56], [55, 56, 55, 55, 55, 55, 56, 55, 55, 55, 55, 55, 55, 55, 56, 55, 55, 55, 63, 55], [55, 55, 55, 56, 56, 55, 55, 55, 55, 56, 55, 55, 56, 55, 56, 64, 55, 57, 55, 55], [57, 56, 55, 55, 55, 56, 55, 57, 57, 63, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55], [60, 57, 55, 55, 55, 57, 55, 55, 55, 55, 55, 58, 56, 55, 57, 60, 56, 55, 57, 55], [55, 55, 55, 55, 64, 55, 55, 60, 55, 56, 55, 55, 55, 57, 55, 55, 55, 55, 57, 55], [55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 55, 56, 55, 55, 55, 55, 55], [55, 55, 57, 55, 55, 57, 57, 57, 57, 55, 56, 57, 57, 64, 56, 56, 55, 57, 55, 55], [55, 55, 55, 64, 57, 55, 59, 55, 55, 62, 55, 55, 60, 55, 55, 57, 59, 55, 56, 55], [55, 58, 55, 55, 55, 57, 55, 55, 55, 55, 55, 56, 55, 55, 55, 55, 57, 55, 55, 55], [55, 55, 57, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 56, 55]]; heightMap = [[7, 6, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4], [6, 6, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3], [5, 5, 5, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2], [4, 4, 4, 4, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 3, 3, 3, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [3, 3, 3, 3, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0], [0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 1], 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ["scorpion1", "enemy", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 3], 0, ["Kage", "human", 4]], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Aryana", "human", 3], 0]]; } mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } function levelTheOasis(mapName) { thisLevelEnemies = new Array(); thisLevelEnemies = ["scorpion2", "snake3", "eyeguy1"]; _root.missionType = "level"; randomMapNum = Math.ceil(Math.random() * 2); if (randomMapNum == 1) { tileMap = [[1, 4, 1, 1, 2, 9, 1, 6, 1, 1, 2, 1], [1, 2, 1, 1, 1, 1, 4, 1, 3, 1, 1, 3], [1, 1, 2, 23, 23, 23, 23, 23, 22, 1, 1, 2], [3, 1, 1, 24, 22, 22, 22, 22, 22, 22, 1, 3], [2, 1, 24, 22, 22, 22, 22, 22, 22, 22, 22, 2], [1, 6, 24, 22, 22, 1, 10, 24, 22, 22, 22, 1], [1, 1, 24, 22, 22, 10, 9, 24, 22, 22, 22, 2], [1, 3, 24, 22, 22, 10, 1, 24, 22, 22, 22, 1], [6, 1, 24, 22, 22, 1, 10, 24, 22, 22, 22, 2], [2, 4, 24, 22, 22, 23, 23, 22, 22, 22, 22, 1], [1, 3, 24, 22, 22, 22, 22, 22, 22, 22, 22, 3], [1, 2, 22, 22, 22, 22, 22, 22, 22, 22, 1, 1], [3, 1, 1, 1, 22, 22, 22, 22, 22, 1, 3, 2], [2, 6, 1, 3, 1, 1, 6, 1, 3, 2, 1, 1], [1, 1, 1, 2, 1, 1, 3, 1, 1, 1, 2, 1]]; heightMap = [[2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 3, 3], [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3], [2, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 2], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1], [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1], [1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1], [1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1], [1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1], [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 1], 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0], [[getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["Aryana", "human", 3], 0, ["Kage", "human", 4]]]; } else if (randomMapNum == 2) { tileMap = [[22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22], [22, 22, 22, 1, 1, 1, 3, 1, 1, 3, 1, 1, 24, 22, 22], [22, 22, 1, 5, 1, 2, 1, 1, 9, 1, 2, 5, 1, 24, 22], [22, 1, 1, 1, 3, 3, 6, 1, 1, 1, 1, 1, 3, 1, 24], [22, 3, 6, 1, 1, 1, 1, 1, 2, 1, 6, 1, 11, 1, 24], [22, 1, 1, 2, 3, 13, 1, 3, 1, 3, 1, 13, 1, 1, 24], [22, 1, 9, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 24], [22, 1, 2, 1, 1, 1, 3, 1, 1, 6, 9, 1, 1, 1, 24], [22, 1, 10, 1, 2, 1, 11, 1, 1, 3, 3, 1, 2, 1, 24], [22, 23, 23, 3, 1, 1, 1, 2, 1, 5, 1, 1, 1, 24, 22], [22, 22, 22, 23, 23, 23, 1, 1, 1, 1, 1, 24, 23, 22, 22], [22, 22, 22, 22, 22, 22, 22, 27, 27, 23, 23, 22, 22, 22, 22], [22, 22, 22, 22, 22, 22, 22, 27, 27, 22, 22, 22, 22, 22, 22], [22, 22, 22, 22, 22, 22, 22, 27, 27, 22, 22, 22, 22, 22, 22], [22, 22, 22, 22, 22, 22, 22, 27, 27, 22, 22, 22, 22, 22, 22]]; heightMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], ["Aryana", "human", 4], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 4], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } function levelDamascusRuins(mapName) { thisLevelEnemies = new Array(); thisLevelEnemies = ["scorpion2", "skeleton1", "flameskull1"]; _root.missionType = "level"; randomMapNum = Math.ceil(Math.random() * 2); if (randomMapNum == 1) { tileMap = [[48, 48, 50, 48, 48, 47, 48, 48, 49, 48, 45, 49, 50, 49, 48], [47, 44, 48, 51, 48, 48, 51, 49, 49, 47, 48, 48, 47, 48, 35], [48, 48, 50, 45, 50, 47, 49, 46, 48, 49, 48, 51, 51, 34, 33], [48, 49, 49, 48, 49, 48, 48, 48, 51, 50, 48, 51, 34, 35, 33], [48, 49, 47, 48, 48, 48, 51, 50, 48, 35, 34, 34, 34, 34, 34], [50, 49, 51, 48, 51, 50, 48, 51, 48, 34, 36, 33, 37, 34, 36], [51, 49, 48, 48, 48, 48, 51, 34, 34, 35, 33, 34, 34, 34, 34], [48, 49, 48, 46, 51, 50, 51, 35, 33, 34, 35, 36, 34, 33, 34], [48, 50, 48, 48, 48, 50, 51, 35, 34, 36, 34, 35, 34, 33, 34], [48, 48, 48, 51, 48, 51, 48, 34, 34, 33, 34, 33, 35, 34, 35]]; heightMap = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0], [0, ["Aryana", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, ["Kronus", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, ["Kage", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } else if (randomMapNum == 2) { tileMap = [[34, 34, 33, 35, 33, 34, 35, 34, 35, 35, 33, 36, 34, 35, 35], [34, 36, 35, 34, 51, 48, 48, 48, 48, 48, 48, 35, 33, 36, 33], [35, 35, 34, 48, 48, 48, 48, 50, 48, 48, 48, 48, 48, 34, 35], [34, 34, 48, 48, 48, 51, 48, 48, 48, 51, 50, 51, 48, 48, 34], [34, 33, 48, 51, 48, 50, 48, 34, 35, 48, 48, 48, 48, 48, 34], [33, 34, 48, 48, 48, 48, 36, 33, 34, 35, 35, 48, 48, 48, 34], [34, 34, 48, 50, 48, 33, 34, 33, 34, 34, 35, 48, 51, 48, 34], [34, 35, 48, 48, 51, 48, 34, 36, 35, 35, 47, 48, 50, 48, 33], [34, 34, 48, 48, 48, 48, 48, 34, 34, 47, 48, 51, 48, 48, 36], [33, 34, 35, 48, 48, 51, 50, 48, 48, 48, 51, 48, 48, 34, 35], [34, 34, 34, 35, 48, 51, 48, 51, 48, 50, 48, 48, 34, 33, 34], [34, 35, 36, 34, 34, 34, 48, 48, 48, 48, 34, 34, 33, 34, 35], [34, 35, 35, 34, 35, 35, 35, 38, 39, 35, 34, 35, 36, 34, 33], [34, 33, 35, 35, 36, 35, 35, 38, 39, 33, 35, 35, 33, 35, 34], [34, 35, 34, 34, 34, 33, 35, 38, 39, 35, 33, 34, 34, 34, 35]]; heightMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0], [0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0], [0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0], [0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0], [0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["Aryana", "human", 4], ["Kronus", "human", 4], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 4], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; } mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } function levelLavaMonsters(mapName) { tileMap = [[48, 48, 50, 48, 48, 47, 48, 48, 49, 48, 45, 49, 50, 49, 48], [47, 44, 48, 51, 48, 48, 51, 49, 49, 47, 48, 48, 47, 48, 35], [48, 48, 50, 45, 50, 47, 49, 46, 48, 49, 48, 51, 51, 34, 33], [48, 49, 49, 48, 49, 48, 48, 48, 51, 50, 48, 51, 34, 35, 33], [48, 49, 47, 48, 48, 48, 51, 50, 48, 35, 34, 34, 34, 34, 34], [50, 49, 51, 48, 51, 50, 48, 51, 48, 34, 36, 33, 37, 34, 36], [51, 49, 48, 48, 48, 48, 51, 34, 34, 35, 33, 34, 34, 34, 34], [48, 49, 48, 46, 51, 50, 51, 35, 33, 34, 35, 36, 34, 33, 34], [48, 50, 48, 48, 48, 50, 51, 35, 34, 36, 34, 35, 34, 33, 34], [48, 48, 48, 51, 48, 51, 48, 34, 34, 33, 34, 33, 35, 34, 35]]; heightMap = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["flameskull1", "enemy", 3], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, ["flameskull1", "enemy", 2], 0, 0, 0, 0, 0, 0], [0, ["Aryana", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, ["flameskull1", "enemy", 3], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, ["Kronus", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, ["Kage", "human", 1], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } function levelLavaRiver(mapName) { tileMap = [[41, 40, 39, 38, 40, 41, 41, 41, 38, 41, 40, 41, 41, 38, 41, 41, 38, 41, 41, 38], [38, 41, 39, 38, 38, 38, 41, 38, 39, 41, 41, 38, 40, 41, 41, 39, 40, 40, 38, 41], [41, 38, 38, 41, 39, 41, 40, 41, 41, 41, 41, 41, 41, 41, 40, 40, 41, 40, 38, 38], [34, 35, 34, 34, 34, 36, 42, 42, 42, 34, 35, 34, 34, 34, 41, 38, 38, 41, 39, 38], [34, 34, 36, 34, 35, 35, 42, 42, 42, 34, 35, 35, 34, 36, 34, 34, 41, 38, 41, 41], [34, 36, 34, 34, 35, 34, 42, 42, 42, 34, 35, 34, 35, 34, 37, 34, 34, 34, 34, 34], [41, 38, 41, 41, 41, 38, 41, 41, 41, 41, 38, 41, 41, 34, 34, 35, 35, 34, 36, 35], [41, 41, 40, 41, 40, 41, 40, 38, 38, 40, 41, 38, 41, 41, 34, 36, 34, 34, 35, 35], [41, 38, 41, 38, 38, 41, 39, 41, 39, 38, 41, 39, 38, 41, 41, 41, 38, 38, 41, 41], [41, 41, 38, 40, 39, 41, 41, 38, 41, 41, 38, 41, 41, 39, 41, 38, 40, 40, 38, 41]]; heightMap = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 3], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Aryana", "human", 3], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, ["skeleton2", "enemy", 4], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["skeleton2", "enemy", 4], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, ["flameskull1", "enemy", 1], 0, 0, 0, 0, 0, 0, 0, ["flameskull2", "enemy", 3], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["flameskull2", "enemy", 3], 0, 0, 0]]; mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } function levelOgreLord(mapName) { tileMap = [[34, 34, 35, 35, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 39, 38, 35, 35, 35, 35], [34, 36, 35, 35, 39, 40, 39, 40, 39, 39, 39, 39, 39, 40, 39, 38, 35, 35, 36, 35], [35, 33, 35, 35, 35, 39, 39, 39, 40, 39, 39, 39, 41, 41, 41, 35, 35, 35, 33, 35], [33, 35, 35, 34, 34, 35, 35, 38, 39, 39, 39, 39, 39, 35, 35, 35, 35, 35, 33, 36], [34, 35, 35, 33, 37, 35, 35, 35, 39, 39, 39, 39, 35, 35, 35, 35, 35, 35, 35, 35], [33, 35, 36, 34, 35, 34, 35, 35, 39, 39, 39, 41, 35, 34, 33, 35, 35, 37, 35, 34], [35, 34, 35, 33, 36, 34, 35, 35, 39, 39, 39, 39, 35, 33, 35, 35, 34, 33, 35, 35], [36, 35, 37, 34, 35, 34, 35, 35, 40, 39, 39, 40, 35, 35, 35, 36, 35, 35, 34, 33], [34, 35, 35, 35, 33, 35, 35, 35, 39, 39, 39, 39, 35, 35, 35, 34, 34, 35, 35, 33], [34, 34, 35, 35, 35, 34, 33, 35, 41, 41, 40, 39, 34, 35, 35, 33, 35, 36, 34, 33], [35, 35, 35, 33, 37, 34, 34, 35, 39, 39, 41, 41, 35, 34, 33, 33, 37, 35, 34, 35], [35, 35, 34, 35, 35, 35, 33, 35, 39, 39, 40, 39, 35, 35, 33, 36, 35, 35, 35, 35], [35, 35, 34, 35, 36, 35, 34, 35, 39, 39, 39, 39, 35, 34, 35, 35, 35, 33, 35, 35], [35, 35, 36, 35, 35, 35, 35, 35, 39, 41, 39, 39, 35, 35, 34, 34, 34, 33, 35, 35], [35, 37, 35, 35, 33, 33, 35, 35, 39, 39, 41, 41, 35, 35, 37, 34, 36, 35, 33, 35], [35, 33, 34, 33, 35, 37, 35, 35, 39, 40, 39, 39, 35, 35, 34, 35, 33, 35, 35, 34], [35, 36, 33, 34, 36, 35, 35, 35, 41, 39, 39, 39, 35, 35, 33, 35, 35, 35, 35, 35], [35, 34, 33, 35, 34, 34, 35, 35, 39, 39, 40, 39, 35, 35, 36, 34, 35, 35, 33, 35], [35, 35, 34, 35, 35, 34, 35, 35, 40, 39, 39, 39, 35, 35, 34, 35, 35, 37, 33, 35], [35, 35, 33, 35, 34, 33, 35, 35, 39, 39, 39, 39, 35, 35, 35, 34, 35, 35, 35, 35]]; heightMap = [[0, 0, 0, 0, 1, 2, 3, 3, 3, 4, 4, 3, 3, 3, 2, 1, 0, 0, 0, 0], [0, 0, 0, 0, 1, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["ogre3", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["ogre1", "enemy", 2], ["ogre1", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["flameskull2", "enemy", 2], ["flameskull3", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["skeleton2", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["scorpion2", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["snake3", "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 4], 0, ["Aryana", "human", 4], 0, 0, 0, 0, 0, 0, 0, 0]]; mapReward = getMissionReward(mapName); _root.missionType = "mission"; return([tileMap, heightMap, charMap, mapReward]); } function levelDeathRock(mapName) { thisLevelEnemies = new Array(); thisLevelEnemies = ["skeleton1", "skeleton2", "flameskull2", "flameskull3", "ogre1"]; _root.missionType = "level"; randomMapNum = Math.ceil(Math.random() * 2); if (randomMapNum == 1) { tileMap = [[41, 40, 39, 38, 40, 41, 41, 41, 38, 41, 40, 41, 41, 38, 41, 41, 38, 41, 41, 38], [38, 41, 39, 38, 38, 38, 41, 38, 39, 41, 41, 38, 40, 41, 41, 39, 40, 40, 38, 41], [41, 38, 38, 41, 39, 41, 40, 41, 41, 41, 41, 41, 41, 41, 40, 40, 41, 40, 38, 38], [34, 35, 34, 34, 34, 36, 34, 42, 42, 34, 35, 34, 34, 34, 41, 38, 38, 41, 39, 38], [34, 34, 36, 34, 35, 35, 35, 42, 42, 34, 35, 35, 34, 36, 34, 34, 41, 38, 41, 41], [34, 36, 34, 34, 35, 34, 34, 42, 42, 34, 35, 34, 35, 34, 37, 34, 34, 34, 34, 34], [41, 38, 41, 41, 41, 38, 41, 41, 41, 41, 38, 41, 41, 34, 34, 35, 35, 34, 36, 35], [41, 41, 40, 41, 40, 41, 40, 38, 38, 40, 41, 38, 41, 41, 34, 36, 34, 34, 35, 35], [41, 38, 41, 38, 38, 41, 39, 41, 39, 38, 41, 39, 38, 41, 41, 41, 38, 38, 41, 41], [41, 41, 38, 40, 39, 41, 41, 38, 41, 41, 38, 41, 41, 39, 41, 38, 40, 40, 38, 41]]; heightMap = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kage", "human", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Kronus", "human", 3], 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ["Aryana", "human", 3], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 4], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 4], 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 1], 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 3], 0, 0, 0]]; } else if (randomMapNum == 2) { tileMap = [[38, 38, 40, 38, 38, 41, 38, 38, 38, 38, 40, 38], [38, 39, 40, 38, 38, 38, 40, 38, 38, 40, 38, 38], [38, 39, 40, 38, 41, 38, 39, 38, 39, 38, 40, 38], [38, 40, 38, 40, 41, 38, 41, 38, 40, 40, 39, 38], [40, 38, 41, 40, 39, 39, 38, 38, 40, 41, 38, 38], [38, 38, 38, 38, 38, 38, 41, 38, 39, 40, 38, 38], [40, 38, 39, 41, 38, 40, 43, 40, 40, 41, 38, 38], [40, 38, 38, 38, 38, 42, 43, 42, 40, 38, 38, 39], [41, 38, 41, 40, 38, 43, 43, 42, 38, 38, 41, 38], [38, 40, 38, 40, 38, 42, 42, 43, 38, 38, 38, 38], [38, 38, 38, 38, 41, 43, 42, 43, 38, 38, 39, 38], [38, 41, 38, 39, 38, 42, 43, 43, 40, 38, 38, 38]]; heightMap = [[1, 1, 1, 2, 3, 3, 3, 2, 2, 2, 1, 1], [1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1], [2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1], [2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [2, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [3, 2, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1], [3, 2, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1]]; charMap = [[0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, [getRandomLevelEnemy(thisLevelEnemies), "enemy", 2], 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, ["Kronus", "human", 4], 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, ["Kage", "human", 4], 0, ["Aryana", "human", 4], 0, 0, 0, 0]]; } mapReward = getMissionReward(mapName); return([tileMap, heightMap, charMap, mapReward]); } function mapShop(city) { worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); addMapTextbox(); textBoxPortrait.attachMovie("textBoxShop", "textBoxShop", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt", 35, 37, 410, 50, city + " Shop", 18, 0, false); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2", 35, 65, 410, 120, ("Welcome to the " + city) + " shop! Please take a look at what we have to offer or feel free to sell any unwanted items to me.", 12, 6050119, false, true); buyButtonMC = worldMapMC.mapLevelInfoMC.textBoxMC.createEmptyMovieClip("buyButtonMC", worldMapMC.mapLevelInfoMC.textBoxMC.getNextHighestDepth()); addText(buyButtonMC, "tfield", 45, 134, 40, 20, "Buy", 12, 6050119, false); buyButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; buyButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; buyButtonMC.city = city; buyButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.mapShopBuy(this.city); }; sellButtonMC = worldMapMC.mapLevelInfoMC.textBoxMC.createEmptyMovieClip("sellButtonMC", worldMapMC.mapLevelInfoMC.textBoxMC.getNextHighestDepth()); addText(sellButtonMC, "tfield", 120, 134, 40, 20, "Sell", 12, 6050119, false); sellButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; sellButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; sellButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.mapShopSell(this.city); }; leaveButtonMC = worldMapMC.mapLevelInfoMC.textBoxMC.createEmptyMovieClip("leaveButtonMC", worldMapMC.mapLevelInfoMC.textBoxMC.getNextHighestDepth()); addText(leaveButtonMC, "tfield", 380, 134, 50, 20, "Leave", 12, 6050119, false); leaveButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; leaveButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; leaveButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; } function mapShopBuy(city) { _root.worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); _root.worldMapMC.mapLevelInfoMC.shopBuyMC.removeMovieClip(); shopBuyMC = worldMapMC.mapLevelInfoMC.createEmptyMovieClip("shopBuyMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth()); shopBuyMC.attachMovie("textBox1MC", "textBoxDescription", shopBuyMC.getNextHighestDepth(), {_x:230, _y:450}); shopBuyMC.attachMovie("textBoxGold", "textBoxGold", shopBuyMC.getNextHighestDepth(), {_x:560, _y:165}); addText(shopBuyMC.textBoxGold, "goldTxt", 15, 25, 100, 20, gold + " G", 13, 0, "right"); restAlertMC = shopBuyMC.attachMovie("textBox3MC", "mapLevelTxtBox", shopBuyMC.getNextHighestDepth(), {_x:230, _y:210}); addMapPortrait(); textBoxPortrait.attachMovie("textBoxShop", "textBoxShop", textBoxPortrait.getNextHighestDepth()); shopBuyMC._y = shopBuyMC._y - 100; addText(shopBuyMC.mapLevelTxtBox, "titleTxt", 35, 37, 410, 50, city + " Shop", 18, 0, false); shopBuyMC.mapLevelTxtBox.createEmptyMovieClip("itemHolder", shopBuyMC.mapLevelTxtBox.getNextHighestDepth()); shopInventoryArr = getShopInventory(city); s = 0; while (s < shopInventoryArr.length) { shopItem = getRewardItemInfo(shopInventoryArr[s]); shopItemMC = shopBuyMC.mapLevelTxtBox.itemHolder.createEmptyMovieClip("itemNameClip" + m, shopBuyMC.mapLevelTxtBox.itemHolder.getNextHighestDepth()); itemIcon = shopItemMC.attachMovie(shopItem.ICON, "ICON", shopItemMC.getNextHighestDepth(), {_x:40, _y:(s * 28) + 70}); addText(shopItemMC, "titleTxt", 70, (s * 28) + 75, 300, 20, shopItem.NAME, 11, 6050119, false); addText(shopItemMC, "priceTxt", 260, (s * 28) + 75, 100, 20, shopItem.VAL + " G", 11, 0, "right"); addText(shopItemMC, "ownedTxt", 390, (s * 28) + 75, 100, 20, "Owned: " + shopGetOwnedAmt(shopItem), 10, 6050119, false); shopItemMC.thisItem = shopItem; if (shopItem.ATT == undefined) { shopItemMC.type = "item"; } else { shopItemMC.type = "equipment"; } shopItemMC.city = city; shopItemMC.onRollOver = function () { this.titleTxt.textColor = 0; _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder.removeMovieClip(); if (this.type == "item") { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.createEmptyMovieClip("descriptionHolder", 1); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder, "titleTxt", 40, 85, 400, 20, "Item Description", 16, 0, false); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder, "descTXT", 40, 110, 400, 60, this.thisItem.DESC, 11, 6050119, false); } else if (this.thisItem.TYPE == 3) { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.createEmptyMovieClip("descriptionHolder", 1); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder, "titleTxt", 40, 85, 400, 20, "Item Description", 16, 0, false); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder, "descTXT", 40, 110, 400, 60, this.thisItem.DESC, 11, 6050119, false); } else { _root.shopEquipmentDetails(this.thisItem); } }; shopItemMC.onRollOut = function () { this.titleTxt.textColor = 6050119 /* 0x5C5147 */; _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder.removeMovieClip(); }; shopItemMC.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } shopItemConfirmation(this, city); }; s++; } shopCheckForScroll(shopInventoryArr); shopLeaveButton = restAlertMC.attachMovie("shopLeaveButton", "shopLeaveButton", restAlertMC.getNextHighestDepth()); shopLeaveButton._x = 385; shopLeaveButton._y = 35; shopLeaveButton.onRollOver = function () { this.tfield.textColor = 0; }; shopLeaveButton.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; shopLeaveButton.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; } function getShopInventory(city) { switch (city) { case "Athelas" : return(["Healing Herb", "sm. HP Potion", "Antidote", "Mana Root", "Rusty Lockpick", "Iron Sword", "Iron Armor", "Cloak", "Wand", "Iron Ring"]); case "Sandos" : return(["HP Potion", "sm. Mana Potion", "Antidote", "Resurrection", "Iron Lockpick", "Broad Sword", "Chain Mail", "Silk Robe", "Element Staff", "Long Bow", "Iron Doublet", "Ruby Pin"]); case "Damascus" : return(["lg. HP Potion", "Mana Potion", "Elixer", "Resurrection", "Ultra Lockpick", "Falchion", "Plate Armor", "Amber Robe", "Lava Wand", "Marksman Bow", "Rose Gilet", "Speed Boots"]); } } function shopEquipmentDetails(item) { descriptionHolder = _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.createEmptyMovieClip("descriptionHolder", 1); defenderCount = 0; d = 0; while (d < defenderArr.length) { c = 0; while (c < item.classType.length) { if (defenderArr[d].classType == item.classType[c]) { var _local2 = descriptionHolder.attachMovie("defenders", "defender_" + defenderArr[d].name, descriptionHolder.getNextHighestDepth(), {_x:(defenderCount * 95) + 65, _y:120}); _local2.gotoAndStop(defenderArr[d].name); defenderCount++; equipDiff = shopCompareStats(defenderArr[d], item); if (equipDiff[0] > 1) { diffIcon = descriptionHolder.attachMovie("shopDiffIncrease", "diff" + defenderArr[d].name, descriptionHolder.getNextHighestDepth(), {_x:defenderCount * 95, _y:105}); addText(descriptionHolder, "diffTxt", defenderCount * 93, 125, 120, 20, equipDiff[0], 12, equipDiff[1], false); var _local4 = {r:255, g:255, b:255}; diffIcon.fluxTint(_local4, 0, 30, 8, true); } else if (equipDiff[0] < 0) { diffIcon = descriptionHolder.attachMovie("shopDiffDecrease", "diff" + defenderArr[d].name, descriptionHolder.getNextHighestDepth(), {_x:defenderCount * 95, _y:105}); addText(descriptionHolder, "diffTxt", defenderCount * 93, 125, 120, 20, equipDiff[0], 12, equipDiff[1], false); var _local4 = {r:255, g:255, b:255}; diffIcon.fluxTint(_local4, 0, 30, 8, true); } else { diffIcon = descriptionHolder.attachMovie("shopDiffEqual", "diff" + defenderArr[d].name, descriptionHolder.getNextHighestDepth(), {_x:defenderCount * 95, _y:105}); } diffIcon._height = diffIcon._height * 0.75; diffIcon._width = diffIcon._width * 0.75; } c++; } d++; } } function shopCompareStats(char, item) { s = 0; if (s < item.ATT.length) { return(compareAttributes(item.ATT[s][0], item, char)); } } function shopItemConfirmation(item, city) { overlayMC = worldMapMC.mapLevelInfoMC.shopBuyMC.attachMovie("overlayGraphic", "overlayGraphic2", worldMapMC.mapLevelInfoMC.shopBuyMC.getNextHighestDepth()); overlayMC._alpha = 50; overlayMC.onRollOver = function () { this.useHandCursor = false; }; shopConfirmMC = worldMapMC.mapLevelInfoMC.shopBuyMC.attachMovie("statusItemAlert", "shopConfirmMC", worldMapMC.mapLevelInfoMC.shopBuyMC.getNextHighestDepth(), {_x:375, _y:285}); _root.addText(shopConfirmMC, "titleTxt", 35, 40, 400, 20, "Buy this item?", 16, 0, false); trace((((("GOLD: " + _root.gold) + " ITEM VAL: ") + item.thisItem.VAL) + " DIF: ") + (_root.gold - item.thisItem.VAL)); if ((_root.gold - item.thisItem.VAL) < 0) { yesButtonMC = shopConfirmMC.createEmptyMovieClip("yesButtonMC", shopConfirmMC.getNextHighestDepth()); addText(yesButtonMC, "tfield", 20, 72, 160, 20, "Not enough money", 12, 6050119); } else { yesButtonMC = shopConfirmMC.createEmptyMovieClip("yesButtonMC", shopConfirmMC.getNextHighestDepth()); addText(yesButtonMC, "tfield", 85, 72, 50, 20, "Yes", 12, 6050119, false); yesButtonMC.thisItem = item; yesButtonMC.city = city; yesButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; yesButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; yesButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; shopBuyItem(this.thisItem, this.city); _root.worldMapMC.mapLevelInfoMC.overlayGraphic2.removeMovieClip(); _root.worldMapMC.mapLevelInfoMC.shopConfirmMC.removeMovieClip(); }; } noButtonMC = shopConfirmMC.createEmptyMovieClip("noButtonMC", shopConfirmMC.getNextHighestDepth()); addText(noButtonMC, "tfield", 85, 100, 50, 20, "No", 12, 6050119, false); noButtonMC.thisItem = item; noButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; noButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; noButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.worldMapMC.mapLevelInfoMC.shopBuyMC.overlayGraphic2.removeMovieClip(); _root.worldMapMC.mapLevelInfoMC.shopBuyMC.shopConfirmMC.removeMovieClip(); }; } function shopBuyItem(item, city) { if (_root.soundOn == true) { _root.foundItemSnd.start(); } if (item.type == "item") { assignItem(item.thisItem.NAME); } else { assignEquipment(item.thisItem.NAME); } _root.gold = _root.gold - item.thisItem.VAL; _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxGold.goldTxt.removeTextField(); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxGold, "goldTxt", 15, 25, 100, 20, _root.gold + " G", 13, 0, "right"); _root.mapShopBuy(city); } function shopGetOwnedAmt(item, selling) { if (shopItem.ATT == undefined) { e = 0; while (e < inventory.length) { if (inventory[e].NAME == item.NAME) { return(inventory[e].QTY); } e++; } return(0); } equipQTYCount = 0; e = 0; while (e < equipment.length) { if (equipment[e].NAME == item.NAME) { if (selling == true) { if (equipment[e].USED != true) { equipQTYCount++; } } else { equipQTYCount++; } } e++; } return(equipQTYCount); } function mapShopSell(city) { _root.worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); _root.worldMapMC.mapLevelInfoMC.shopBuyMC.removeMovieClip(); shopBuyMC = worldMapMC.mapLevelInfoMC.createEmptyMovieClip("shopBuyMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth()); shopBuyMC.attachMovie("textBox1MC", "textBoxDescription", shopBuyMC.getNextHighestDepth(), {_x:230, _y:450}); shopBuyMC.attachMovie("textBoxGold", "textBoxGold", shopBuyMC.getNextHighestDepth(), {_x:560, _y:165}); addText(shopBuyMC.textBoxGold, "goldTxt", 15, 25, 100, 20, gold + " G", 13, 0, "right"); restAlertMC = shopBuyMC.attachMovie("textBox3MC", "mapLevelTxtBox", shopBuyMC.getNextHighestDepth(), {_x:230, _y:210}); addMapPortrait(); textBoxPortrait.attachMovie("textBoxShop", "textBoxShop", textBoxPortrait.getNextHighestDepth()); shopBuyMC._y = shopBuyMC._y - 100; addText(shopBuyMC.mapLevelTxtBox, "titleTxt", 35, 37, 410, 50, "Sell your items", 18, 0, false); shopBuyMC.mapLevelTxtBox.createEmptyMovieClip("itemHolder", shopBuyMC.mapLevelTxtBox.getNextHighestDepth()); tempArr = new Array(); t = 0; while (t < equipment.length) { if (equipment[t].USED != true) { inTempArr = false; j = 0; while (j < tempArr.length) { if (tempArr[j].NAME == equipment[t].NAME) { inTempArr = true; } j++; } if (inTempArr != true) { tempArr.push(equipment[t]); } } t++; } equipmentInventoryArr = new Array(); equipmentInventoryArr = tempArr.concat(inventory); sCount = 0; s = 0; while (s < equipmentInventoryArr.length) { shopItem = equipmentInventoryArr[s]; if (shopItem.VAL != null) { shopItemMC = shopBuyMC.mapLevelTxtBox.itemHolder.createEmptyMovieClip("itemNameClip" + m, shopBuyMC.mapLevelTxtBox.itemHolder.getNextHighestDepth()); itemIcon = shopItemMC.attachMovie(shopItem.ICON, "ICON", shopItemMC.getNextHighestDepth(), {_x:40, _y:(sCount * 28) + 70}); addText(shopItemMC, "titleTxt", 70, (sCount * 28) + 75, 300, 20, shopItem.NAME, 11, 6050119, false); addText(shopItemMC, "priceTxt", 260, (sCount * 28) + 75, 100, 20, Math.ceil(shopItem.VAL / 2) + " G", 11, 0, "right"); addText(shopItemMC, "ownedTxt", 390, (sCount * 28) + 75, 100, 20, "Avail: " + shopGetOwnedAmt(shopItem, true), 10, 6050119, false); shopItemMC.thisItem = shopItem; if (shopItem.ATT == undefined) { shopItemMC.type = "item"; } else { shopItemMC.type = "equipment"; } shopItemMC.city = city; shopItemMC.onRollOver = function () { this.titleTxt.textColor = 0; _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder.removeMovieClip(); if (this.type == "item") { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.createEmptyMovieClip("descriptionHolder", 1); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder, "titleTxt", 40, 85, 400, 20, "Item Description", 16, 0, false); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder, "descTXT", 40, 110, 400, 60, this.thisItem.DESC, 11, 6050119, false); } else if (this.thisItem.TYPE == 3) { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.createEmptyMovieClip("descriptionHolder", 1); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder, "titleTxt", 40, 85, 400, 20, "Item Description", 16, 0, false); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder, "descTXT", 40, 110, 400, 60, this.thisItem.DESC, 11, 6050119, false); } else { _root.shopEquipmentDetails(this.thisItem); } }; shopItemMC.onRollOut = function () { this.titleTxt.textColor = 6050119 /* 0x5C5147 */; _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxDescription.descriptionHolder.removeMovieClip(); }; shopItemMC.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } shopSellConfirmation(this, city); }; sCount++; } s++; } shopCheckForScroll(equipmentInventoryArr); shopLeaveButton = restAlertMC.attachMovie("shopLeaveButton", "shopLeaveButton", restAlertMC.getNextHighestDepth()); shopLeaveButton._x = 385; shopLeaveButton._y = 35; shopLeaveButton.onRollOver = function () { this.tfield.textColor = 0; }; shopLeaveButton.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; shopLeaveButton.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.worldMapMC.mapLevelInfoMC.removeMovieClip(); }; } function shopSellConfirmation(item, city) { overlayMC = worldMapMC.mapLevelInfoMC.shopBuyMC.attachMovie("overlayGraphic", "overlayGraphic2", worldMapMC.mapLevelInfoMC.shopBuyMC.getNextHighestDepth()); overlayMC._alpha = 50; overlayMC.onRollOver = function () { this.useHandCursor = false; }; shopConfirmMC = worldMapMC.mapLevelInfoMC.shopBuyMC.attachMovie("statusItemAlert", "shopConfirmMC", worldMapMC.mapLevelInfoMC.shopBuyMC.getNextHighestDepth(), {_x:375, _y:285}); _root.addText(shopConfirmMC, "titleTxt", 35, 40, 400, 20, "Sell this item?", 16, 0, false); yesButtonMC = shopConfirmMC.createEmptyMovieClip("yesButtonMC", shopConfirmMC.getNextHighestDepth()); addText(yesButtonMC, "tfield", 85, 72, 50, 20, "Yes", 12, 6050119, false); yesButtonMC.thisItem = item; yesButtonMC.city = city; yesButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; yesButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; yesButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; shopSellItem(this.thisItem, this.city); _root.worldMapMC.mapLevelInfoMC.overlayGraphic2.removeMovieClip(); _root.worldMapMC.mapLevelInfoMC.shopConfirmMC.removeMovieClip(); }; noButtonMC = shopConfirmMC.createEmptyMovieClip("noButtonMC", shopConfirmMC.getNextHighestDepth()); addText(noButtonMC, "tfield", 85, 100, 50, 20, "No", 12, 6050119, false); noButtonMC.thisItem = item; noButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; noButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; noButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.worldMapMC.mapLevelInfoMC.shopBuyMC.overlayGraphic2.removeMovieClip(); _root.worldMapMC.mapLevelInfoMC.shopBuyMC.shopConfirmMC.removeMovieClip(); }; } function shopSellItem(item, city) { if (_root.soundOn == true) { _root.foundItemSnd.start(); } if (item.type == "item") { removeItemQTY(item.thisItem); } else { dropEquipment(item.thisItem); } _root.gold = _root.gold + Math.ceil(item.thisItem.VAL / 2); _root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxGold.goldTxt.removeTextField(); _root.addText(_root.worldMapMC.mapLevelInfoMC.shopBuyMC.textBoxGold, "goldTxt", 15, 25, 100, 20, _root.gold + " G", 13, 0, "right"); _root.mapShopSell(city); } function shopCheckForScroll(scrollArr) { if (scrollArr.length > 7) { maskMC = worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.attachMovie("windowActionsMask", "windowActionsMask", worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.getNextHighestDepth(), {_x:240, _y:176}); maskMC._width = 440; maskMC._height = 198; shopBuyMC.mapLevelTxtBox.itemHolder.setMask(maskMC); var _local4 = worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.attachMovie("menuArrow", "downArrow", worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.getNextHighestDepth(), {_x:250, _y:280}); var _local3 = worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.attachMovie("menuArrow", "upArrow", worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.getNextHighestDepth(), {_x:250, _y:60}); _local3._visible = false; _local4._yscale = -100; _root.scrollNum = 0; _root.arrSize = scrollArr.length + 1; _local4.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if (_root.scrollNum < (_root.arrSize - 7)) { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.itemHolder._y = _root.worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.itemHolder._y - 28; _root.scrollNum++; _root.shopCheckScrollArrows(); } }; _local4.onRollOver = function () { this.gotoAndStop(2); }; _local4.onRollOut = function () { this.gotoAndStop(1); }; _local3.onRelease = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } if ((_root.scrollNum + _root.arrSize) > _root.arrSize) { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.itemHolder._y = _root.worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.itemHolder._y + 28; _root.scrollNum--; _root.shopCheckScrollArrows(); } }; _local3.onRollOver = function () { this.gotoAndStop(2); }; _local3.onRollOut = function () { this.gotoAndStop(1); }; } } function shopCheckScrollArrows() { if ((_root.scrollNum + 8) == _root.arrSize) { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.downArrow._visible = false; } else { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.downArrow._visible = true; } if ((_root.scrollNum + 7) == 7) { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.upArrow._visible = false; } else { _root.worldMapMC.mapLevelInfoMC.shopBuyMC.mapLevelTxtBox.upArrow._visible = true; } } function mapWarriorGuild() { worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); addMapTextbox(); textBoxPortrait.attachMovie("textBoxWarrior", "textBoxWarrior", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt" + _root.warriorGuildCount, 35, 37, 410, 50, "Warrior Guild", 18, 0, false); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2" + _root.warriorGuildCount, 35, 65, 410, 120, getWarriorGuildTxt(_root.warriorGuildCount), 12, 6050119, false, true); closeButtonMC = restAlertMC.createEmptyMovieClip("closeButtonMC", restAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 300, 140, 190, 20, "Continue", 12, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; if (_root.warriorGuildCount == 0) { _root.loadWorldMap(_root.levelsUnlocked); } else if (_root.warriorGuildCount == 1) { _root.giveFlameSwordAlert(); _root.warriorGuildCount++; } else if (_root.warriorGuildCount == 2) { _root.loadWorldMap(_root.levelsUnlocked); } }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:344, _y:141}); } function getWarriorGuildTxt(num) { switch (num) { case 0 : return(("Welcome to the Warrior Guild. Come back when you have defeated 100 enemies, and we will give you an extremely powerful elemental sword. \n\nYou have currently defeated " + _root.enemiesKilledCount) + " enemies."); case 1 : return("Wow, you must be very strong to be able to defeat those enemies so quickly. As I promised, here is your Flame Sword."); case 2 : return("Never stop fighting, there are always bigger enemies to defeat and better treasures to discover."); } } function giveFlameSwordAlert() { if (_root.soundOn == true) { _root.foundItemSnd.start(); } _root.kongregateStats.submit("SwordMaster", 1); assignEquipment("Flame Sword"); worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); defenderAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("textBox2MC", "textBoxMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:297, _y:197}); addText(defenderAlertMC, "titleTxt" + _root.grandpaCount, 5, 45, 230, 50, "Item Aquired", 18, 0); addText(defenderAlertMC, "titleTxt2" + _root.grandpaCount, 5, 130, 230, 80, "Flame Sword", 12, 6050119); var _local3 = defenderAlertMC.attachMovie("iconFlameSword", "iconFlameSword", defenderAlertMC.getNextHighestDepth(), {_x:105, _y:90}); closeButtonMC = defenderAlertMC.createEmptyMovieClip("closeButtonMC", defenderAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 20, 170, 190, 20, "Close", 12, 6050119); closeButtonMC.defenderName = defenderName; closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.loadWorldMap(_root.levelsUnlocked); }; } function mapThiefGuild() { worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); addMapTextbox(); textBoxPortrait.attachMovie("textBoxThief", "textBoxThief", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt" + _root.grandpaCount, 35, 37, 410, 50, "Thief Guild", 18, 0, false); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2" + _root.grandpaCount, 35, 65, 410, 80, getThiefGuildTxt(_root.thiefGuildCount), 12, 6050119, false, true); closeButtonMC = restAlertMC.createEmptyMovieClip("closeButtonMC", restAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 300, 140, 190, 20, "Continue", 12, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; if (_root.thiefGuildCount == 0) { _root.loadWorldMap(_root.levelsUnlocked); } else if (_root.thiefGuildCount == 1) { _root.giveThiefGlovesAlert(); _root.thiefGuildCount++; } else if (_root.thiefGuildCount == 2) { _root.loadWorldMap(_root.levelsUnlocked); } }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:344, _y:141}); } function getThiefGuildTxt(num) { switch (num) { case 0 : return(("Welcome to the Thief Guild. Come back when you have unlocked 50 treasures, and we will give you a very rare item to make your thief skills more enjoyable. \nYou have currently unlocked " + _root.treasuresUnlocked) + " treasures."); case 1 : return("Excellent! As promised, here are your very own Thief Gloves. Where these during a battle to double the chance of enemies dropping treasures after you defeat them."); case 2 : return("I hope you are enjoying your Thief Gloves."); } } function giveThiefGlovesAlert() { if (_root.soundOn == true) { _root.foundItemSnd.start(); } _root.kongregateStats.submit("Thief", 1); assignEquipment("Thief Gloves"); worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); defenderAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("textBox2MC", "textBoxMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:297, _y:197}); addText(defenderAlertMC, "titleTxt" + _root.grandpaCount, 5, 45, 230, 50, "Item Aquired", 18, 0); addText(defenderAlertMC, "titleTxt2" + _root.grandpaCount, 5, 130, 230, 80, "Thief Gloves", 12, 6050119); var _local3 = defenderAlertMC.attachMovie("iconThiefGloves", "iconThiefGloves", defenderAlertMC.getNextHighestDepth(), {_x:105, _y:90}); closeButtonMC = defenderAlertMC.createEmptyMovieClip("closeButtonMC", defenderAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 20, 170, 190, 20, "Close", 12, 6050119); closeButtonMC.defenderName = defenderName; closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.loadWorldMap(_root.levelsUnlocked); }; } function mapMageGuild() { worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); spellTeachArr = findSpellToTeach(); addMapTextbox(); textBoxPortrait.attachMovie("textBoxMage", "textBoxMage", textBoxPortrait.getNextHighestDepth()); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt" + _root.grandpaCount, 35, 37, 410, 50, "Mage Guild", 18, 0, false); mageGuildTxt = getMageGuildTxt(spellTeachArr[0], spellTeachArr[1]); if (spellTeachArr == null) { addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2" + _root.grandpaCount, 35, 65, 410, 80, "You have learned everything you can from us. Please go out and protect the world with your powerful spells.", 12, 6050119, false, true); } else { addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2" + _root.grandpaCount, 35, 65, 410, 80, mageGuildTxt[0], 12, 6050119, false, true); } closeButtonMC = restAlertMC.createEmptyMovieClip("closeButtonMC", restAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 300, 140, 190, 20, "Continue", 12, 6050119); closeButtonMC.giveSpell = mageGuildTxt[1]; closeButtonMC.spellName = spellTeachArr[0]; closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } this.tfield.textColor = 0; if (this.giveSpell != true) { _root.loadWorldMap(_root.levelsUnlocked); } else { _root.giveSpellAlert(this.spellName); } }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:344, _y:141}); } function getMageGuildTxt(spellName, reqLvl) { if (reqLvl == undefined) { return([null, false]); } if (_root.defenderArr[1].lvl >= reqLvl) { return([("Congratulations, you are now able to learn " + spellName) + ". Please use this scroll to memorize this spell.", true]); } return([("Welcome young mage. We have many spells to teach you when you are ready. Please come back when you are level " + reqLvl) + " to learn your next spell.", false]); } function findSpellToTeach() { checkSpellsArr = [["POISON", 5, "Poison Scroll"], ["SHOCK", 7, "Shock Scroll"], ["FREEZE", 9, "Freeze Scroll"]]; s1 = 0; while (s1 < checkSpellsArr.length) { knowsSpell = false; d = 0; while (d < defenderArr.length) { if (defenderArr[d].name == "Kage") { mageDefender = defenderArr[d]; break; } d++; } s = 0; while (s < mageDefender.spells.length) { spellChecking = mageDefender.spells[s].toString(); if (spellChecking == checkSpellsArr[s1][0]) { knowsSpell = true; } s++; } if (knowsSpell == false) { hasScroll = false; s2 = 0; while (s2 < _root.inventory.length) { if (_root.inventory[s2].NAME == checkSpellsArr[s1][2]) { hasScroll = true; } s2++; } if (hasScroll == false) { return([checkSpellsArr[s1][0], checkSpellsArr[s1][1]]); } } s1++; } return(null); } function giveSpellAlert(spellName) { if (_root.soundOn == true) { _root.foundItemSnd.start(); } switch (spellName) { case "POISON" : assignItem("Poison Scroll"); break; case "SHOCK" : assignItem("Shock Scroll"); break; case "FREEZE" : _root.kongregateStats.submit("SpellMaster", 1); assignItem("Freeze Scroll"); } worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); defenderAlertMC = worldMapMC.mapLevelInfoMC.attachMovie("textBox2MC", "textBoxMC", worldMapMC.mapLevelInfoMC.getNextHighestDepth(), {_x:297, _y:197}); addText(defenderAlertMC, "titleTxt" + _root.grandpaCount, 5, 45, 230, 50, "Item Aquired", 18, 0); addText(defenderAlertMC, "titleTxt2" + _root.grandpaCount, 5, 130, 230, 80, spellName + " SCROLL", 12, 6050119); var _local3 = defenderAlertMC.attachMovie("iconSpellScroll", "iconSpellScroll", defenderAlertMC.getNextHighestDepth(), {_x:105, _y:90}); closeButtonMC = defenderAlertMC.createEmptyMovieClip("closeButtonMC", defenderAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 20, 170, 190, 20, "Close", 12, 6050119); closeButtonMC.defenderName = defenderName; closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.loadWorldMap(_root.levelsUnlocked); }; } function endGameAlert() { mapLevelInfoMC = _root.worldMapMC.createEmptyMovieClip("mapLevelInfoMC", worldMapMC.getNextHighestDepth()); overlayMC = mapLevelInfoMC.attachMovie("overlayGraphic", "overlayGraphic", 1); overlayMC.onRollOver = function () { this.useHandCursor = false; }; _root.kongregateStats.submit("TacticsHero", 1); worldMapMC.mapLevelInfoMC.textBoxMC.removeMovieClip(); worldMapMC.mapLevelInfoMC.mapLevelTxtBox.removeMovieClip(); addMapTextbox(); worldMapMC.mapLevelInfoMC.textBoxMC._x = worldMapMC.mapLevelInfoMC.textBoxMC._x - 50; worldMapMC.mapLevelInfoMC.textBoxMC.textBoxPortrait.removeMovieClip(); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt" + _root.grandpaCount, 35, 37, 410, 50, "Congratulations!", 18, 0, false); addText(worldMapMC.mapLevelInfoMC.textBoxMC, "titleTxt2" + _root.grandpaCount, 35, 65, 410, 80, "You have defeated the Ogre Lord and have made this land a safe place once again, but your adventure is still far from over. There are still many rare treasures to be found out there!", 12, 6050119, false, true); closeButtonMC = restAlertMC.createEmptyMovieClip("closeButtonMC", restAlertMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 300, 140, 190, 20, "Continue", 12, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { if (_root.soundOn == true) { _root.buttonSnd.start(); } _root.loadWorldMap(_root.levelsUnlocked); }; restAlertMC.attachMovie("textBoxArrow", "textBoxArrow", restAlertMC.getNextHighestDepth(), {_x:344, _y:141}); } function checkSO() { mySave = SharedObject.getLocal("tacticsSave"); } function saveGame() { saveGameVars(); if (mySave.flush() == true) { trace("SAVED SUCCESSFULLY"); } else { trace("ERROR SAVING"); } mySave.flush(); } function saveGameVars() { trace("SAVING GAME"); mySave.data.gold = Number(gold); mySave.data.enemiesKilledCount = Number(enemiesKilledCount); mySave.data.timePlayed = Number(timePlayed); mySave.data.lockpicking = Number(lockpicking); mySave.data.inventory = new Array(); mySave.data.inventory = duplicateArray(inventory); mySave.data.treasures = new Array(); mySave.data.treasures = duplicateArray(treasures); mySave.data.treasuresUnlocked = treasuresUnlocked; mySave.data.showTreasureTutorial = showTreasureTutorial; mySave.data.equipment = new Array(); mySave.data.equipment = duplicateArray(equipment); mySave.data.defenderArr = new Array(); mySave.data.defenderArr = _root.duplicateArray(_root.defenderArr); mySave.data.tutorialNum = Number(tutorialNum); mySave.data.tutorialCompleted = tutorialCompleted; mySave.data.grandpaCount = Number(grandpaCount); mySave.data.warriorGuildCount = Number(warriorGuildCount); mySave.data.thiefGuildCount = Number(thiefGuildCount); mySave.data.levelsUnlocked = Number(levelsUnlocked); mySave.data.missionsArr = new Array(); mySave.data.missionsArr = missionsArr; showSaveAlert(); } function duplicateArray(arrName) { tempArrCopy = new Array(); d = 0; while (d < arrName.length) { if (typeof(arrName[d]) == "object") { newObj = arrName[d].copy(); } else { newObj = arrName[d].copy2(); } tempArrCopy.push(newObj); trace("DUPLICATING: " + newObj); d++; } return(tempArrCopy); } function saveDefenders() { game.data.char = new Object(); game.data.char.health = Number(char.health); game.data.char.mana = Number(char.mana); game.data.char = new Object(); game.data.char.name = String(defName); game.data.char.classType = String("Knight"); game.data.char.lvl = Number(char.lvl); game.data.char.HP = Number(char.HP); game.data.char.HPMax = game.data.char.HP; game.data.char.MP = Number(char.MP); game.data.char.MPMax = game.data.char.MP; game.data.char.DEF = Number(char.DEF); game.data.char.STR = Number(char.STR); game.data.char.MAG = Number(char.MAG); game.data.char.EXP = Number(char.EXP); game.data.char.SPD = Number(char.SPD); game.data.char.LCK = Number(char.LCK); game.data.char.range = Number(char.range); game.data.char.attacks = new Array(); game.data.char.attacks = char.attacks; game.data.char.spells = new Array(); game.data.char.spells = char.spells; game.data.char.ailments = new Array(); game.data.char.ailments = char.ailments; game.data.char.WEAPON = char.WEAPON; game.data.char.ARMOR = char.ARMOR; game.data.char.ACCESSORY = char.ACCESSORY; } function showSaveAlert() { createEmptyMovieClip("tutScreen", 20); tutScreen._alpha = 0; var _local3 = new mx.transitions.Tween(tutScreen, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 1, true); overlayMC = tutScreen.attachMovie("overlayGraphic", "overlayGraphic", 1); overlayMC.onRollOver = function () { this.useHandCursor = false; }; textBoxMC = tutScreen.attachMovie("textBox2MC", "textBoxMC", tutScreen.getNextHighestDepth(), {_x:280, _y:190}); addText(textBoxMC, "titleTxt2" + _root.tutorialNum, 50, 65, 160, 300, "Your progress has been saved.", 15, 6050119, false, true); closeButtonMC = textBoxMC.createEmptyMovieClip("closeButtonMC", textBoxMC.getNextHighestDepth()); addText(closeButtonMC, "tfield", 25, 135, 190, 20, "Continue", 12, 6050119); closeButtonMC.onRollOver = function () { this.tfield.textColor = 0; }; closeButtonMC.onRollOut = function () { this.tfield.textColor = 6050119 /* 0x5C5147 */; }; closeButtonMC.onPress = function () { _root.tutScreen.removeMovieClip(); }; textBoxMC.attachMovie("textBoxArrow", "textBoxArrow", textBoxMC.getNextHighestDepth(), {_x:70, _y:136}); } function loadSavedVars() { gold = mySave.data.gold; enemiesKilledCount = mySave.data.enemiesKilledCount; timePlayed = mySave.data.timePlayed; lockpicking = mySave.data.lockpicking; inventory = mySave.data.inventory; treasures = mySave.data.treasures; treasuresUnlocked = mySave.data.treasuresUnlocked; showTreasureTutorial = mySave.data.showTreasureTutorial; equipment = mySave.data.equipment; defenderArr = mySave.data.defenderArr; tutorialNum = mySave.data.tutorialNum; tutorialCompleted = mySave.data.tutorialCompleted; grandpaCount = mySave.data.grandpaCount; warriorGuildCount = mySave.data.warriorGuildCount; thiefGuildCount = mySave.data.thiefGuildCount; levelsUnlocked = mySave.data.levelsUnlocked; curMission = null; missionsArr = mySave.data.missionsArr; } keylistener = new Object(); keylistener.onKeyDown = function () { if (Key.getCode() == 32) { _root.spaceDown = true; } }; keylistener.onKeyUp = function () { if (Key.getCode() == 32) { _root.spaceDown = false; } }; Key.addListener(keylistener); var arV = new Array(); var arH = new Array(); var wSq = 30; var hSq = 30; var nbSqColor = 16777215; var nbSpeed = 5; var nbIHD = 1; var nbIVD = 3; var xMask = 0; var yMask = 0; var wMask = 800; var hMask = 600; var nbCols = Math.ceil(wMask / wSq); var nbRows = Math.ceil(hMask / hSq); var nbTotal = (nbCols * nbRows); var nbOK = 0; var nbMidOK = false; var nbV = arV.length; var nbH = arH.length; var initSquare = new Object(); initSquare.onEnterFrame = function () { if (this.init) { makeARectangle(this, nbSqColor, 100); this._x = (this.ix * wSq) + (wSq / 2); this._y = (this.jy * hSq) + (hSq / 2); this._xscale = (this._yscale = 0); switch (this.IHD) { case 0 : this.lagIx = 0; break; case 1 : this.lagIx = this.ix; break; case 2 : this.lagIx = nbCols - this.ix; break; case 3 : this.lagIx = Math.abs((nbCols / 2) - this.ix); break; case 4 : this.lagIx = Math.min(this.ix, nbCols - this.ix); } switch (this.IVD) { case 0 : this.lagIy = 0; break; case 1 : this.lagIy = this.jy; break; case 2 : this.lagIy = nbRows - this.jy; break; case 3 : this.lagIy = Math.abs((nbRows / 2) - this.jy); break; case 4 : this.lagIy = Math.min(this.jy, nbRows - this.jy); } this.lagI = this.lagIx + this.lagIy; this.speed = nbSpeed; this.t = 0; this.init = false; nbMidOK = false; } else if (this.t >= this.lagI) { this._xscale = this._xscale + this.speed; this._yscale = this._yscale + this.speed; if ((this._xscale >= 100) || (this._yscale >= 100)) { this._xscale = 100; this._yscale = 100; delete this.onEnterFrame; nbOK++; this.starting = false; this.t = 0; if (nbOK >= nbTotal) { finishedGameMask(); nbMidOK = true; nbOK = 0; } } } else { this.t = this.t + 1; } }; treasureEasy = new Array(); treasureEasy = [["Gold", 40, Math.floor(Math.random() * 15) + 15], ["Healing Herb", 60], ["Mana Root", 80], ["Antidote", 100]]; treasureMedium = new Array(); treasureMedium = [["Gold", 40, Math.floor(Math.random() * 15) + 75], ["sm. HP Potion", 60], ["Iron Ring", 80], ["Rusty Lockpick", 100]]; treasureHard = new Array(); treasureHard = [["Gold", 40, Math.floor(Math.random() * 55) + 120], ["Iron Lockpick", 50], ["sm. Mana Potion", 70], ["HP Potion", 90], ["Ruby Pin", 100]]; treasureVeryHard = new Array(); treasureVeryHard = [["Gold", 30, Math.floor(Math.random() * 80) + 220], ["Resurrection", 40], ["Mana Potion", 50], ["lg. HP Potion", 60], ["Elixer", 70], ["Mega Elixer", 80], ["Iron Tusk", 90], ["Magic Tonic", 100]]; Object.prototype.copy2 = function () { var _local2; var _local3 = new this.__proto__.constructor(); for (_local2 in this) { _local3[_local2] = this[_local2]; } return(_local3); }; ASSetPropFlags(Object.prototype, "copy2", 1); Object.prototype.copy = function () { var _local2 = new Object(); for (var _local3 in this) { _local2[_local3] = this[_local3]; } return(_local2); }; checkSO(); resizeAmt = 1; moveSpeed = 0.5; tileSize = 41 * resizeAmt; charTurn = -1; inMenu = false; soundOn = true; mouseIsDown = false; gameComplete = false; setInterval(timeCounter, 60000); loadTitleScreen(); stop();
Instance of Symbol 1779 MovieClip in Frame 4
onClipEvent (mouseDown) { if (_root.spaceDown == true) { _root.display.startDrag(); Key.removeListener(_root.keylistener); } } onClipEvent (mouseUp) { _root.spaceDown = false; _root.display.stopDrag(); Key.addListener(_root.keylistener); }
Symbol 16 MovieClip [RainDropEffectAS2] Frame 1
#initclip 14 Object.registerClass("RainDropEffectAS2", net.flashfilter.effects.E01_raindrop); #endinitclip news = "To purchase this effect visit http://www.flash-filter.net";
Symbol 40 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
this.onRollOver = function () { this.logo_ro.gotoAndStop(2); }; this.onRollOut = function () { this.logo_ro.gotoAndStop(1); }; this.onReleaseOutside = function () { this.logo_ro.gotoAndStop(1); }; this.onRelease = function () { getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1367&subid=preloader", "_blank"); };
Symbol 1780 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon { function OnEnterFrameBeacon () { } static function init() { var _local4 = _global.MovieClip; if (!_root.__OnEnterFrameBeacon) { mx.transitions.BroadcasterMX.initialize(_local4); var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876); _local3.onEnterFrame = function () { _global.MovieClip.broadcastMessage("onEnterFrame"); }; } } static var version = "1.1.0.52"; }
Symbol 1781 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX { var _listeners; function BroadcasterMX () { } static function initialize(o, dontCreateArray) { if (o.broadcastMessage != undefined) { delete o.broadcastMessage; } o.addListener = mx.transitions.BroadcasterMX.prototype.addListener; o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener; if (!dontCreateArray) { o._listeners = new Array(); } } function addListener(o) { removeListener(o); if (broadcastMessage == undefined) { broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage; } return(_listeners.push(o)); } function removeListener(o) { var _local2 = _listeners; var _local3 = _local2.length; while (_local3--) { if (_local2[_local3] == o) { _local2.splice(_local3, 1); if (!_local2.length) { broadcastMessage = undefined; } return(true); } } return(false); } function broadcastMessage() { var _local5 = String(arguments.shift()); var _local4 = _listeners.concat(); var _local6 = _local4.length; var _local3 = 0; while (_local3 < _local6) { _local4[_local3][_local5].apply(_local4[_local3], arguments); _local3++; } } static var version = "1.1.0.52"; }
Symbol 1782 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween { var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime; function Tween (obj, prop, func, begin, finish, duration, useSeconds) { mx.transitions.OnEnterFrameBeacon.init(); if (!arguments.length) { return; } this.obj = obj; this.prop = prop; this.begin = begin; position = (begin); this.duration = (duration); this.useSeconds = useSeconds; if (func) { this.func = func; } this.finish = (finish); _listeners = []; addListener(this); start(); } function set time(t) { prevTime = _time; if (t > duration) { if (looping) { rewind(t - _duration); update(); broadcastMessage("onMotionLooped", this); } else { if (useSeconds) { _time = _duration; update(); } stop(); broadcastMessage("onMotionFinished", this); } } else if (t < 0) { rewind(); update(); } else { _time = t; update(); } //return(time); } function get time() { return(_time); } function set duration(d) { _duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d)); //return(duration); } function get duration() { return(_duration); } function set FPS(fps) { var _local2 = isPlaying; stopEnterFrame(); _fps = fps; if (_local2) { startEnterFrame(); } //return(FPS); } function get FPS() { return(_fps); } function set position(p) { setPosition(p); //return(position); } function setPosition(p) { prevPos = _pos; obj[prop] = (_pos = p); broadcastMessage("onMotionChanged", this, _pos); updateAfterEvent(); } function get position() { return(getPosition()); } function getPosition(t) { if (t == undefined) { t = _time; } return(func(t, begin, change, _duration)); } function set finish(f) { change = f - begin; //return(finish); } function get finish() { return(begin + change); } function continueTo(finish, duration) { begin = position; this.finish = (finish); if (duration != undefined) { this.duration = (duration); } start(); } function yoyo() { continueTo(begin, time); } function startEnterFrame() { if (_fps == undefined) { _global.MovieClip.addListener(this); } else { _intervalID = setInterval(this, "onEnterFrame", 1000 / _fps); } isPlaying = true; } function stopEnterFrame() { if (_fps == undefined) { _global.MovieClip.removeListener(this); } else { clearInterval(_intervalID); } isPlaying = false; } function start() { rewind(); startEnterFrame(); broadcastMessage("onMotionStarted", this); } function stop() { stopEnterFrame(); broadcastMessage("onMotionStopped", this); } function resume() { fixTime(); startEnterFrame(); broadcastMessage("onMotionResumed", this); } function rewind(t) { _time = ((t == undefined) ? 0 : (t)); fixTime(); update(); } function fforward() { time = (_duration); fixTime(); } function nextFrame() { if (useSeconds) { time = ((getTimer() - _startTime) / 1000); } else { time = (_time + 1); } } function onEnterFrame() { nextFrame(); } function prevFrame() { if (!useSeconds) { time = (_time - 1); } } function toString() { return("[Tween]"); } function fixTime() { if (useSeconds) { _startTime = getTimer() - (_time * 1000); } } function update() { position = (getPosition(_time)); } static var version = "1.1.0.52"; static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init(); static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true); function func(t, b, c, d) { return(((c * t) / d) + b); } }
Symbol 1783 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic { function Elastic () { } static function easeIn(t, b, c, d, a, p) { if (t == 0) { return(b); } t = t / d; if (t == 1) { return(b + c); } if (!p) { p = d * 0.3; } if ((!a) || (a < Math.abs(c))) { a = c; var _local7 = p / 4; } else { var _local7 = (p / (Math.PI*2)) * Math.asin(c / a); } t = t - 1; return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b); } static function easeOut(t, b, c, d, a, p) { if (t == 0) { return(b); } t = t / d; if (t == 1) { return(b + c); } if (!p) { p = d * 0.3; } if ((!a) || (a < Math.abs(c))) { a = c; var _local7 = p / 4; } else { var _local7 = (p / (Math.PI*2)) * Math.asin(c / a); } return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b); } static function easeInOut(t, b, c, d, a, p) { if (t == 0) { return(b); } t = t / (d / 2); if (t == 2) { return(b + c); } if (!p) { p = d * 0.45; } if ((!a) || (a < Math.abs(c))) { a = c; var _local7 = p / 4; } else { var _local7 = (p / (Math.PI*2)) * Math.asin(c / a); } if (t < 1) { t = t - 1; return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b); } t = t - 1; return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b); } static var version = "1.1.0.52"; }
Symbol 1784 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong { function Strong () { } static function easeIn(t, b, c, d) { t = t / d; return((((((c * t) * t) * t) * t) * t) + b); } static function easeOut(t, b, c, d) { t = (t / d) - 1; return((c * (((((t * t) * t) * t) * t) + 1)) + b); } static function easeInOut(t, b, c, d) { t = t / (d / 2); if (t < 1) { return(((((((c / 2) * t) * t) * t) * t) * t) + b); } t = t - 2; return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b); } static var version = "1.1.0.52"; }
Symbol 1785 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back { function Back () { } static function easeIn(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / d; return((((c * t) * t) * (((s + 1) * t) - s)) + b); } static function easeOut(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = (t / d) - 1; return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b); } static function easeInOut(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / (d / 2); if (t < 1) { s = s * 1.525; return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b); } t = t - 2; s = s * 1.525; return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b); } static var version = "1.1.0.52"; }
Symbol 1786 MovieClip [__Packages.Path] Frame 0
class Path { var _segments, _length, _position, hasOwnProperty; function Path (start_x, start_y) { init(start_x, start_y); } function init(start_x, start_y) { _segments = new Array(); _length = 0; if (arguments.length) { moveTo(start_x, start_y); } else { moveTo(0, 0); } } function clear() { init(0, 0); } function moveTo(start_x, start_y) { _segments[_segments.length] = {d:0, start:{_x:_position._x, _y:_position._y}, end:{_x:start_x, _y:start_y}, type:"M"}; _position = {_x:start_x, _y:start_y}; return(this); } function lineTo(end_x, end_y) { var _local3 = end_x - _position._x; var _local2 = end_y - _position._y; var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2)); _segments[_segments.length] = {d:_local4, start:_position, end:{_x:end_x, _y:end_y}, type:"L"}; _length = _length + _local4; _position = {_x:end_x, _y:end_y}; return(this); } function circleTo(end_x, end_y, arc, dir) { if (dir == undefined) { dir = "CW"; } if (arc == undefined) { arc = 0.5; } if (arc > 1) { arc = 1; } else if (arc <= 0) { return(lineTo(end_x, end_y)); } if (dir == "CCW") { arc = 1 - arc; } var _local13 = {_x:(_position._x + end_x) / 2, _y:(_position._y + end_y) / 2}; var _local4 = end_x - _position._x; var _local3 = end_y - _position._y; var _local11 = Math.sqrt((_local4 * _local4) + (_local3 * _local3)); var _local7 = _local11 / 2; var _local8 = _local7 / Math.tan(arc * Math.PI); var _local10 = _local7 / Math.sin(arc * Math.PI); var _local9 = Math.atan2(_local3, _local4) + (Math.PI/2); _local13._x = _local13._x + (Math.cos(_local9) * _local8); _local13._y = _local13._y + (Math.sin(_local9) * _local8); var _local17 = Math.atan2(_position._y - _local13._y, _position._x - _local13._x); var _local15 = Math.atan2(end_y - _local13._y, end_x - _local13._x); if (dir == "CW") { if (_local15 < _local17) { _local15 = _local15 + (Math.PI*2); } } else if (_local17 < _local15) { _local17 = _local17 + (Math.PI*2); } _local11 = _local10 * Math.abs(_local15 - _local17); _segments[_segments.length] = {d:_local11, r:_local10, a1:_local17, a2:_local15, o:_local13, dir:dir, type:"C"}; _length = _length + _local11; _position = {_x:end_x, _y:end_y}; return(this); } function circleCWTo(end_x, end_y, arc) { return(circleTo(end_x, end_y, arc, "CW")); } function circleCCWTo(end_x, end_y, arc) { return(circleTo(end_x, end_y, arc, "CCW")); } function curveTo(con_x, con_y, end_x, end_y) { var _local3 = divideBezier(_position._x, _position._y, con_x, con_y, end_x, end_y); _segments[_segments.length] = {d:_local3.d, start:_position, con:{_x:con_x, _y:con_y}, end:{_x:end_x, _y:end_y}, segs:_local3, type:"B"}; _length = _length + _local3.d; _position = {_x:end_x, _y:end_y}; return(this); } function divideBezier(x1, y1, x2, y2, x3, y3) { var _local2; var _local15; var _local14; var _local12; var _local11; var _local9; var _local8; var _local7; var _local6; var _local29; var _local13 = new Array(); var _local5 = {_x:x1, _y:y1}; var _local22 = x2 - x1; var _local20 = y2 - y1; var _local21 = x3 - x2; var _local19 = y3 - y2; var _local16 = Math.atan2; var _local18 = Math.sqrt; var _local17 = 0; var _local36; var _local3; var _local10; var _local30 = _local16(_local20, _local22); var _local4 = 1; while (_local4 < curveToAccuracy) { _local2 = _local4 / curveToAccuracy; _local15 = x1 + (_local22 * _local2); _local12 = (x2 + (_local21 * _local2)) - _local15; _local14 = y1 + (_local20 * _local2); _local11 = (y2 + (_local19 * _local2)) - _local14; _local7 = _local15 + (_local12 * _local2); _local6 = _local14 + (_local11 * _local2); _local9 = _local7 - _local5._x; _local8 = _local6 - _local5._y; _local29 = _local18((_local9 * _local9) + (_local8 * _local8)); _local17 = _local17 + _local29; _local10 = _local16(_local11, _local12); _local3 = _local10 - _local30; if (_local3 > Math.PI) { _local3 = _local3 - (Math.PI*2); } else if (_local3 < -3.14159265358979) { _local3 = _local3 + (Math.PI*2); } _local13[_local13.length] = {d:_local29, start:_local5, end:{_x:_local7, _y:_local6}, a:{base:_local30, d:_local3}}; _local30 = _local10; _local5 = {_x:_local7, _y:_local6}; _local4++; } _local9 = x3 - _local5._x; _local8 = y3 - _local5._y; _local29 = _local18((_local9 * _local9) + (_local8 * _local8)); _local17 = _local17 + _local29; _local10 = _local16(_local19, _local21); _local13[_local13.length] = {d:_local29, start:_local5, end:{_x:x3, _y:y3}, a:{base:_local30, d:_local10 - _local30}}; _local13.d = _local17; return(_local13); } function setInBezier(obj, t, segments, orient, extra) { if (t < 0) { t = 0; } else if (t > 1) { t = 1; } var _local2 = segments[0]; var _local8 = segments.d * t; var _local3 = 0; var _local7 = 0; var _local4 = segments.length + 1; var _local1 = 1; while (_local1 < _local4) { _local7 = _local1 - 1; _local2 = segments[_local7]; if ((_local1 == _local4) || ((_local3 + _local2.d) >= _local8)) { break; } _local3 = _local3 + _local2.d; _local1++; } if (!_local2.d) { t = 0; } else { t = (_local8 - _local3) / _local2.d; } var _local11 = _local2.end._x - _local2.start._x; var _local10 = _local2.end._y - _local2.start._y; obj._x = _local2.start._x + (_local11 * t); obj._y = _local2.start._y + (_local10 * t); if (extra) { obj.t = t; obj.n = _local7; obj.divs = segments.length; } if (orient) { obj._rotation = ((_local2.a.base + (_local2.a.d * t)) * 180) / Math.PI; } } function reverse() { var _local3 = _segments; var _local2 = _local3.length; var _local4 = new Path(_local3[_local2 - 1].end._x, _local3[_local2 - 1].end._y); while (_local2--) { if (_local3[_local2].type == "M") { _local4._segments[_local4._segments.length] = {d:0, start:{_x:_local3[_local2].end._x, _y:_local3[_local2].end._y}, end:{_x:_local3[_local2].start._x, _y:_local3[_local2].start._y}, type:"M"}; } else if (_local3[_local2].type == "L") { _local4._segments[_local4._segments.length] = {d:_local3[_local2].d, start:{_x:_local3[_local2].end._x, _y:_local3[_local2].end._y}, end:{_x:_local3[_local2].start._x, _y:_local3[_local2].start._y}, type:"L"}; } else if (_local3[_local2].type == "C") { _local4._segments[_local4._segments.length] = {d:_local3[_local2].d, r:_local3[_local2].r, a1:_local3[_local2].a2, a2:_local3[_local2].a1, o:{_x:_local3[_local2].o._x, _y:_local3[_local2].o._y}, dir:((_local3[_local2].dir == "CW") ? "CCW" : "CW"), type:"C"}; } else if (_local3[_local2].type == "B") { var _local9 = divideBezier(_local3[_local2].end._x, _local3[_local2].end._y, _local3[_local2].con._x, _local3[_local2].con._y, _local3[_local2].start._x, _local3[_local2].start._y); _local4._segments[_local4._segments.length] = {d:_local3[_local2].d, start:{_x:_local3[_local2].end._x, _y:_local3[_local2].end._y}, con:{_x:_local3[_local2].con._x, _y:_local3[_local2].con._y}, end:{_x:_local3[_local2].start._x, _y:_local3[_local2].start._y}, segs:_local9, type:"B"}; } } _local4._length = _length; if (hasOwnProperty("curveToAccuracy")) { _local4.curveToAccuracy = curveToAccuracy; } return(_local4); } function traverse(obj, t, orient, wrap) { if ((wrap == undefined) || (wrap == true)) { if ((t < 0) || (t > 1)) { t = t - Math.floor(t); } } else if (t < 0) { t = 0; } else if (t > 1) { t = 1; } var _local3 = _segments[0]; var _local10 = _length * t; var _local7 = 0; var _local8 = 0; var _local9 = _segments.length + 1; var _local4 = 1; while (_local4 < _local9) { _local8 = _local4 - 1; _local3 = _segments[_local8]; if ((_local4 == _local9) || ((_local7 + _local3.d) >= _local10)) { break; } _local7 = _local7 + _local3.d; _local4++; } if (_local3.type == "M") { delete obj.onEnterFrame; obj.removeMovieClip(); _root.archerArrowAnimEnd(); } if (!_local3.d) { t = 0; } else { t = (_local10 - _local7) / _local3.d; } if (_local3.type == "L") { var _local13 = _local3.end._x - _local3.start._x; var _local12 = _local3.end._y - _local3.start._y; obj._x = _local3.start._x + (_local13 * t); obj._y = _local3.start._y + (_local12 * t); if (orient) { obj._rotation = (Math.atan2(_local12, _local13) * 180) / Math.PI; } } else if (_local3.type == "C") { var _local14 = _local3.a1; var _local15 = _local3.a2; var _local11 = _local14 + ((_local15 - _local14) * t); obj._x = _local3.o._x + (Math.cos(_local11) * _local3.r); obj._y = _local3.o._y + (Math.sin(_local11) * _local3.r); if (orient) { obj._rotation = ((_local3.dir == "CW") ? (((_local11 * 180) / Math.PI) + 90) : (((_local11 * 180) / Math.PI) - 90)); } } else if (_local3.type == "B") { setInBezier(obj, t, _local3.segs, orient); } return(this); } function mcCircleTo(cen_x, cen_y, a1, a2, r, dir) { dir = ((dir == "CCW") ? -1 : 1); var _local6 = Math.cos; var _local7 = Math.sin; var _local13 = Math.abs(a2 - a1); var _local12 = Math.floor(_local13 / (Math.PI/4)) + 1; var _local5 = (dir * _local13) / (2 * _local12); var _local8 = r / _local6(_local5); var _local4 = 0; while (_local4 < _local12) { a2 = a1 + _local5; a1 = a2 + _local5; curveTo(cen_x + (_local6(a2) * _local8), cen_y + (_local7(a2) * _local8), cen_x + (_local6(a1) * r), cen_y + (_local7(a1) * r)); _local4++; } return(this); } function draw(mc, n) { var _local3 = _segments; if (n == undefined) { n = _local3.length; } var _local2 = 0; while (_local2 < n) { if (_local3[_local2].type == "M") { mc.moveTo(_local3[_local2].end._x, _local3[_local2].end._y); } else if (_local3[_local2].type == "L") { mc.lineTo(_local3[_local2].end._x, _local3[_local2].end._y); } else if (_local3[_local2].type == "C") { mcCircleTo.call(mc, _local3[_local2].o._x, _local3[_local2].o._y, _local3[_local2].a1, _local3[_local2].a2, _local3[_local2].r, _local3[_local2].dir); } else if (_local3[_local2].type == "B") { mc.curveTo(_local3[_local2].con._x, _local3[_local2].con._y, _local3[_local2].end._x, _local3[_local2].end._y); } _local2++; } return(this); } function drawUpTo(mc, t, wrap) { if ((wrap == undefined) || (wrap == true)) { if ((t < 0) || (t > 1)) { t = t - Math.floor(t); } else if (t < 0) { t = 0; } else if (t > 1) { t = 1; } } var _local2 = _segments[0]; var _local9 = _length * t; var _local5 = 0; var _local7 = 0; var _local6 = _segments.length + 1; var _local3 = 1; while (_local3 < _local6) { _local7 = _local3 - 1; _local2 = _segments[_local7]; if ((_local3 == _local6) || ((_local5 + _local2.d) >= _local9)) { break; } _local5 = _local5 + _local2.d; _local3++; } if (!_local2.d) { t = 0; } else { t = (_local9 - _local5) / _local2.d; } draw(mc, _local7); if (_local2.type == "M") { mc.moveTo(_local2.end._x, _local2.end._y); } else if (_local2.type == "L") { mc.lineTo(_local2.start._x + ((_local2.end._x - _local2.start._x) * t), _local2.start._y + ((_local2.end._y - _local2.start._y) * t)); } else if (_local2.type == "C") { mcCircleTo.call(mc, _local2.o._x, _local2.o._y, _local2.a1, _local2.a1 + ((_local2.a2 - _local2.a1) * t), _local2.r, _local2.dir); } else if (_local2.type == "B") { var _local8 = new Object(); setInBezier(_local8, t, _local2.segs, false, true); var _local11 = (_local8.n / _local8.divs) + (_local8.t / _local8.divs); mc.curveTo(_local2.start._x + ((_local2.con._x - _local2.start._x) * _local11), _local2.start._y + ((_local2.con._y - _local2.start._y) * _local11), _local8._x, _local8._y); } return(this); } var curveToAccuracy = 10; }
Symbol 1787 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce { function Bounce () { } static function easeOut(t, b, c, d) { t = t / d; if (t < 0.363636363636364) { return((c * ((7.5625 * t) * t)) + b); } if (t < 0.727272727272727) { t = t - 0.545454545454545; return((c * (((7.5625 * t) * t) + 0.75)) + b); } if (t < 0.909090909090909) { t = t - 0.818181818181818; return((c * (((7.5625 * t) * t) + 0.9375)) + b); } t = t - 0.954545454545455; return((c * (((7.5625 * t) * t) + 0.984375)) + b); } static function easeIn(t, b, c, d) { return((c - easeOut(d - t, 0, c, d)) + b); } static function easeInOut(t, b, c, d) { if (t < (d / 2)) { return((easeIn(t * 2, 0, c, d) * 0.5) + b); } return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static var version = "1.1.0.52"; }
Symbol 1788 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular { function Regular () { } static function easeIn(t, b, c, d) { t = t / d; return(((c * t) * t) + b); } static function easeOut(t, b, c, d) { t = t / d; return((((-c) * t) * (t - 2)) + b); } static function easeInOut(t, b, c, d) { t = t / (d / 2); if (t < 1) { return((((c / 2) * t) * t) + b); } t--; return((((-c) / 2) * ((t * (t - 2)) - 1)) + b); } static var version = "1.1.0.52"; }
Symbol 1789 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None { function None () { } static function easeNone(t, b, c, d) { return(((c * t) / d) + b); } static function easeIn(t, b, c, d) { return(((c * t) / d) + b); } static function easeOut(t, b, c, d) { return(((c * t) / d) + b); } static function easeInOut(t, b, c, d) { return(((c * t) / d) + b); } static var version = "1.1.0.52"; }
Symbol 8 MovieClip [__Packages.net.flashfilter.effects.SuperEffect] Frame 0
!!!ERROR
Symbol 9 MovieClip [__Packages.net.flashfilter.effects.E01_raindrop] Frame 0
!!!ERROR
Symbol 17 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
!!!ERROR
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 10
stop();
Symbol 78 MovieClip Frame 1
this._parent.stop(); this.link.onRelease = function () { getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1367&subid=splash", "_blank"); };
Symbol 78 MovieClip Frame 151
this._parent.stop(); this.link.onRelease = function () { getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1367&subid=splash", "_blank"); };
Symbol 78 MovieClip Frame 161
stop(); this._parent.gotoAndPlay(2);
Symbol 83 MovieClip Frame 1
function drop2() { rainFilter.createDrop(160, 50); } function drop3() { rainFilter.createDrop(460, 50); } var rainFilter = this.attachMovie("RainDropEffectAS2", "RainDropEffectAS2", 1); rainFilter.init(myLogo, 4, 1.5, true, false); rainFilter.createDrop(320, 130); setTimeout(drop2, 800); setTimeout(drop3, 1400);
Symbol 87 MovieClip Frame 2
rainDropInstance._visible = false; _root.likwidIntroSnd.start();
Instance of Symbol 79 MovieClip in Symbol 87 MovieClip Frame 2
on (release) { getURL ("http://www.likwidgames.com", "_blank"); }
Instance of Symbol 16 MovieClip [RainDropEffectAS2] "rainDropInstance" in Symbol 87 MovieClip Frame 2
//component parameters onClipEvent (construct) { _targetInstanceName = ""; _dropInterval = 0; _mouseSensetive = true; _refreshEveryFrame = false; _waveHeight = 9; }
Symbol 87 MovieClip Frame 191
_root.gotoAndStop(4); stop();
Symbol 93 MovieClip [treasureIcon] Frame 1
play();
Symbol 93 MovieClip [treasureIcon] Frame 25
play();
Symbol 93 MovieClip [treasureIcon] Frame 41
stop();
Symbol 223 MovieClip [tiles] Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 234 MovieClip [tileOutline] Frame 1
stop();
Symbol 238 MovieClip [miniTiles] Frame 1
stop();
Symbol 238 MovieClip [miniTiles] Frame 2
stop();
Symbol 238 MovieClip [miniTiles] Frame 3
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
play();
Symbol 260 MovieClip Frame 19
gotoAndPlay (2);
Symbol 260 MovieClip Frame 20
play();
Symbol 260 MovieClip Frame 33
gotoAndStop (1);
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
play();
Symbol 282 MovieClip Frame 19
gotoAndPlay (2);
Symbol 282 MovieClip Frame 20
play();
Symbol 282 MovieClip Frame 33
gotoAndStop (1);
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 285 MovieClip Frame 3
stop();
Symbol 285 MovieClip Frame 4
stop();
Symbol 285 MovieClip Frame 5
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
play();
Symbol 325 MovieClip Frame 19
gotoAndPlay (2);
Symbol 325 MovieClip Frame 31
gotoAndStop (1);
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
play();
Symbol 346 MovieClip Frame 19
gotoAndPlay (2);
Symbol 346 MovieClip Frame 31
gotoAndStop (1);
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 3
stop();
Symbol 349 MovieClip Frame 4
stop();
Symbol 349 MovieClip Frame 5
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
play();
Symbol 373 MovieClip Frame 19
gotoAndPlay (2);
Symbol 373 MovieClip Frame 31
gotoAndStop (1);
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
play();
Symbol 394 MovieClip Frame 19
gotoAndPlay (2);
Symbol 394 MovieClip Frame 31
gotoAndStop (1);
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 2
stop();
Symbol 397 MovieClip Frame 3
stop();
Symbol 397 MovieClip Frame 4
stop();
Symbol 397 MovieClip Frame 5
stop();
Symbol 398 MovieClip [defenders] Frame 1
stop();
Symbol 398 MovieClip [defenders] Frame 2
stop();
Symbol 398 MovieClip [defenders] Frame 3
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
play();
Symbol 416 MovieClip Frame 17
gotoAndPlay (2);
Symbol 416 MovieClip Frame 18
play();
Symbol 416 MovieClip Frame 30
gotoAndStop (1);
Symbol 433 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 2
play();
Symbol 433 MovieClip Frame 17
gotoAndPlay (2);
Symbol 433 MovieClip Frame 18
play();
Symbol 433 MovieClip Frame 30
gotoAndStop (1);
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
stop();
Symbol 436 MovieClip Frame 3
stop();
Symbol 436 MovieClip Frame 4
stop();
Symbol 436 MovieClip Frame 5
stop();
Symbol 453 MovieClip Frame 1
stop();
Symbol 453 MovieClip Frame 2
play();
Symbol 453 MovieClip Frame 17
gotoAndPlay (2);
Symbol 453 MovieClip Frame 18
play();
Symbol 453 MovieClip Frame 30
gotoAndStop (1);
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 2
play();
Symbol 470 MovieClip Frame 17
gotoAndPlay (2);
Symbol 470 MovieClip Frame 18
play();
Symbol 470 MovieClip Frame 30
gotoAndStop (1);
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 2
stop();
Symbol 473 MovieClip Frame 3
stop();
Symbol 473 MovieClip Frame 4
stop();
Symbol 473 MovieClip Frame 5
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
play();
Symbol 490 MovieClip Frame 17
gotoAndPlay (2);
Symbol 490 MovieClip Frame 18
play();
Symbol 490 MovieClip Frame 30
gotoAndStop (1);
Symbol 507 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 2
play();
Symbol 507 MovieClip Frame 17
gotoAndPlay (2);
Symbol 507 MovieClip Frame 18
play();
Symbol 507 MovieClip Frame 30
gotoAndStop (1);
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 2
stop();
Symbol 510 MovieClip Frame 3
stop();
Symbol 510 MovieClip Frame 4
stop();
Symbol 510 MovieClip Frame 5
stop();
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 2
play();
Symbol 531 MovieClip Frame 17
gotoAndPlay (2);
Symbol 531 MovieClip Frame 18
play();
Symbol 531 MovieClip Frame 28
gotoAndStop (1);
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 2
play();
Symbol 552 MovieClip Frame 17
gotoAndPlay (2);
Symbol 552 MovieClip Frame 18
play();
Symbol 552 MovieClip Frame 28
gotoAndStop (1);
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 2
stop();
Symbol 555 MovieClip Frame 3
stop();
Symbol 555 MovieClip Frame 4
stop();
Symbol 555 MovieClip Frame 5
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 2
play();
Symbol 576 MovieClip Frame 17
gotoAndPlay (2);
Symbol 576 MovieClip Frame 18
play();
Symbol 576 MovieClip Frame 28
gotoAndStop (1);
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 2
play();
Symbol 597 MovieClip Frame 17
gotoAndPlay (2);
Symbol 597 MovieClip Frame 18
play();
Symbol 597 MovieClip Frame 28
gotoAndStop (1);
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
stop();
Symbol 600 MovieClip Frame 3
stop();
Symbol 600 MovieClip Frame 4
stop();
Symbol 600 MovieClip Frame 5
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
play();
Symbol 621 MovieClip Frame 17
gotoAndPlay (2);
Symbol 621 MovieClip Frame 18
play();
Symbol 621 MovieClip Frame 28
gotoAndStop (1);
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 2
play();
Symbol 642 MovieClip Frame 17
gotoAndPlay (2);
Symbol 642 MovieClip Frame 18
play();
Symbol 642 MovieClip Frame 28
gotoAndStop (1);
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 2
stop();
Symbol 645 MovieClip Frame 3
stop();
Symbol 645 MovieClip Frame 4
stop();
Symbol 645 MovieClip Frame 5
stop();
Symbol 662 MovieClip Frame 1
stop();
Symbol 662 MovieClip Frame 2
play();
Symbol 662 MovieClip Frame 17
gotoAndPlay (2);
Symbol 662 MovieClip Frame 18
play();
Symbol 662 MovieClip Frame 35
gotoAndStop (1);
Symbol 679 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 2
play();
Symbol 679 MovieClip Frame 17
gotoAndPlay (2);
Symbol 679 MovieClip Frame 18
play();
Symbol 679 MovieClip Frame 35
gotoAndStop (1);
Symbol 682 MovieClip Frame 1
stop();
Symbol 682 MovieClip Frame 2
stop();
Symbol 682 MovieClip Frame 3
stop();
Symbol 682 MovieClip Frame 4
stop();
Symbol 682 MovieClip Frame 5
stop();
Symbol 699 MovieClip Frame 1
stop();
Symbol 699 MovieClip Frame 2
play();
Symbol 699 MovieClip Frame 17
gotoAndPlay (2);
Symbol 699 MovieClip Frame 18
play();
Symbol 699 MovieClip Frame 35
gotoAndStop (1);
Symbol 716 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 2
play();
Symbol 716 MovieClip Frame 17
gotoAndPlay (2);
Symbol 716 MovieClip Frame 18
play();
Symbol 716 MovieClip Frame 35
gotoAndStop (1);
Symbol 719 MovieClip Frame 1
stop();
Symbol 719 MovieClip Frame 2
stop();
Symbol 719 MovieClip Frame 3
stop();
Symbol 719 MovieClip Frame 4
stop();
Symbol 719 MovieClip Frame 5
stop();
Symbol 740 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 2
play();
Symbol 740 MovieClip Frame 17
gotoAndPlay (2);
Symbol 740 MovieClip Frame 18
play();
Symbol 740 MovieClip Frame 35
gotoAndStop (1);
Symbol 761 MovieClip Frame 1
stop();
Symbol 761 MovieClip Frame 2
play();
Symbol 761 MovieClip Frame 17
gotoAndPlay (2);
Symbol 761 MovieClip Frame 18
play();
Symbol 761 MovieClip Frame 35
gotoAndStop (1);
Symbol 764 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 2
stop();
Symbol 764 MovieClip Frame 3
stop();
Symbol 764 MovieClip Frame 4
stop();
Symbol 764 MovieClip Frame 5
stop();
Symbol 785 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 2
play();
Symbol 785 MovieClip Frame 17
gotoAndPlay (2);
Symbol 785 MovieClip Frame 18
play();
Symbol 785 MovieClip Frame 35
gotoAndStop (1);
Symbol 806 MovieClip Frame 1
stop();
Symbol 806 MovieClip Frame 2
play();
Symbol 806 MovieClip Frame 17
gotoAndPlay (2);
Symbol 806 MovieClip Frame 18
play();
Symbol 806 MovieClip Frame 35
gotoAndStop (1);
Symbol 809 MovieClip Frame 1
stop();
Symbol 809 MovieClip Frame 2
stop();
Symbol 809 MovieClip Frame 3
stop();
Symbol 809 MovieClip Frame 4
stop();
Symbol 809 MovieClip Frame 5
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 2
play();
Symbol 828 MovieClip Frame 17
gotoAndPlay (2);
Symbol 828 MovieClip Frame 18
play();
Symbol 828 MovieClip Frame 34
gotoAndStop (1);
Symbol 847 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 2
play();
Symbol 847 MovieClip Frame 17
gotoAndPlay (2);
Symbol 847 MovieClip Frame 18
play();
Symbol 847 MovieClip Frame 34
gotoAndStop (1);
Symbol 850 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 2
stop();
Symbol 850 MovieClip Frame 3
stop();
Symbol 850 MovieClip Frame 4
stop();
Symbol 850 MovieClip Frame 5
stop();
Symbol 869 MovieClip Frame 1
stop();
Symbol 869 MovieClip Frame 2
play();
Symbol 869 MovieClip Frame 17
gotoAndPlay (2);
Symbol 869 MovieClip Frame 18
play();
Symbol 869 MovieClip Frame 33
gotoAndStop (1);
Symbol 888 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 2
play();
Symbol 888 MovieClip Frame 17
gotoAndPlay (2);
Symbol 888 MovieClip Frame 18
play();
Symbol 888 MovieClip Frame 33
gotoAndStop (1);
Symbol 891 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 2
stop();
Symbol 891 MovieClip Frame 3
stop();
Symbol 891 MovieClip Frame 4
stop();
Symbol 891 MovieClip Frame 5
stop();
Symbol 910 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 2
play();
Symbol 910 MovieClip Frame 17
gotoAndPlay (2);
Symbol 910 MovieClip Frame 18
play();
Symbol 910 MovieClip Frame 33
gotoAndStop (1);
Symbol 929 MovieClip Frame 1
stop();
Symbol 929 MovieClip Frame 2
play();
Symbol 929 MovieClip Frame 17
gotoAndPlay (2);
Symbol 929 MovieClip Frame 18
play();
Symbol 929 MovieClip Frame 33
gotoAndStop (1);
Symbol 932 MovieClip Frame 1
stop();
Symbol 932 MovieClip Frame 2
stop();
Symbol 932 MovieClip Frame 3
stop();
Symbol 932 MovieClip Frame 4
stop();
Symbol 932 MovieClip Frame 5
stop();
Symbol 939 MovieClip Frame 1
Symbol 950 MovieClip Frame 1
stop();
Symbol 950 MovieClip Frame 2
play();
Symbol 950 MovieClip Frame 17
gotoAndPlay (2);
Symbol 950 MovieClip Frame 18
play();
Symbol 950 MovieClip Frame 35
gotoAndStop (1);
Symbol 968 MovieClip Frame 1
stop();
Symbol 968 MovieClip Frame 2
play();
Symbol 968 MovieClip Frame 17
gotoAndPlay (2);
Symbol 968 MovieClip Frame 18
play();
Symbol 968 MovieClip Frame 35
gotoAndStop (1);
Symbol 971 MovieClip Frame 1
stop();
Symbol 971 MovieClip Frame 2
stop();
Symbol 971 MovieClip Frame 3
stop();
Symbol 971 MovieClip Frame 4
stop();
Symbol 971 MovieClip Frame 5
stop();
Symbol 978 MovieClip Frame 1
Symbol 989 MovieClip Frame 1
stop();
Symbol 989 MovieClip Frame 2
play();
Symbol 989 MovieClip Frame 17
gotoAndPlay (2);
Symbol 989 MovieClip Frame 18
play();
Symbol 989 MovieClip Frame 33
gotoAndStop (1);
Symbol 1007 MovieClip Frame 1
stop();
Symbol 1007 MovieClip Frame 2
play();
Symbol 1007 MovieClip Frame 17
gotoAndPlay (2);
Symbol 1007 MovieClip Frame 18
play();
Symbol 1007 MovieClip Frame 33
gotoAndStop (1);
Symbol 1010 MovieClip Frame 1
stop();
Symbol 1010 MovieClip Frame 2
stop();
Symbol 1010 MovieClip Frame 3
stop();
Symbol 1010 MovieClip Frame 4
stop();
Symbol 1010 MovieClip Frame 5
stop();
Symbol 1017 MovieClip Frame 1
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 2
play();
Symbol 1028 MovieClip Frame 17
gotoAndPlay (2);
Symbol 1028 MovieClip Frame 18
play();
Symbol 1028 MovieClip Frame 35
gotoAndStop (1);
Symbol 1046 MovieClip Frame 1
stop();
Symbol 1046 MovieClip Frame 2
play();
Symbol 1046 MovieClip Frame 17
gotoAndPlay (2);
Symbol 1046 MovieClip Frame 18
play();
Symbol 1046 MovieClip Frame 35
gotoAndStop (1);
Symbol 1049 MovieClip Frame 1
stop();
Symbol 1049 MovieClip Frame 2
stop();
Symbol 1049 MovieClip Frame 3
stop();
Symbol 1049 MovieClip Frame 4
stop();
Symbol 1049 MovieClip Frame 5
stop();
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1064 MovieClip Frame 2
play();
Symbol 1064 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1064 MovieClip Frame 14
play();
Symbol 1064 MovieClip Frame 37
gotoAndStop (1);
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 2
play();
Symbol 1079 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1079 MovieClip Frame 14
play();
Symbol 1079 MovieClip Frame 37
gotoAndStop (1);
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 2
stop();
Symbol 1082 MovieClip Frame 3
stop();
Symbol 1082 MovieClip Frame 4
stop();
Symbol 1082 MovieClip Frame 5
stop();
Symbol 1097 MovieClip Frame 1
stop();
Symbol 1097 MovieClip Frame 2
play();
Symbol 1097 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1097 MovieClip Frame 14
play();
Symbol 1097 MovieClip Frame 37
gotoAndStop (1);
Symbol 1112 MovieClip Frame 1
stop();
Symbol 1112 MovieClip Frame 2
play();
Symbol 1112 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1112 MovieClip Frame 14
play();
Symbol 1112 MovieClip Frame 37
gotoAndStop (1);
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1115 MovieClip Frame 2
stop();
Symbol 1115 MovieClip Frame 3
stop();
Symbol 1115 MovieClip Frame 4
stop();
Symbol 1115 MovieClip Frame 5
stop();
Symbol 1116 MovieClip [enemies] Frame 1
stop();
Symbol 1116 MovieClip [enemies] Frame 2
stop();
Symbol 1116 MovieClip [enemies] Frame 3
stop();
Symbol 1116 MovieClip [enemies] Frame 4
stop();
Symbol 1116 MovieClip [enemies] Frame 5
stop();
Symbol 1116 MovieClip [enemies] Frame 6
stop();
Symbol 1116 MovieClip [enemies] Frame 7
stop();
Symbol 1116 MovieClip [enemies] Frame 8
stop();
Symbol 1116 MovieClip [enemies] Frame 10
stop();
Symbol 1116 MovieClip [enemies] Frame 11
stop();
Symbol 1116 MovieClip [enemies] Frame 12
stop();
Symbol 1116 MovieClip [enemies] Frame 14
stop();
Symbol 1116 MovieClip [enemies] Frame 17
stop();
Symbol 1116 MovieClip [enemies] Frame 18
stop();
Symbol 1116 MovieClip [enemies] Frame 20
stop();
Symbol 1116 MovieClip [enemies] Frame 21
stop();
Symbol 1116 MovieClip [enemies] Frame 22
stop();
Symbol 1116 MovieClip [enemies] Frame 23
stop();
Symbol 1116 MovieClip [enemies] Frame 25
stop();
Symbol 1119 MovieClip Frame 1
this.onRollOver = function () { this.logo_ro.gotoAndStop(2); }; this.onRollOut = function () { this.logo_ro.gotoAndStop(1); }; this.onReleaseOutside = function () { this.logo_ro.gotoAndStop(1); }; this.onRelease = function () { getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1367&subid=titleScreenLogo", "_blank"); };
Symbol 1128 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._y = _root.display._y + 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1129 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._y = _root.display._y - 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1130 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._x = _root.display._x + 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1131 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._x = _root.display._x - 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1132 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._x = _root.display._x + 3; _root.display._y = _root.display._y - 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1133 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._x = _root.display._x - 3; _root.display._y = _root.display._y - 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1134 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._x = _root.display._x - 3; _root.display._y = _root.display._y + 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1135 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._x = _root.display._x + 3; _root.display._y = _root.display._y + 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1141 MovieClip [dirArrowUR] Frame 1
stop();
Symbol 1141 MovieClip [dirArrowUR] Frame 2
stop();
Symbol 1144 MovieClip [dirArrowUL] Frame 1
stop();
Symbol 1144 MovieClip [dirArrowUL] Frame 2
stop();
Symbol 1149 MovieClip [dirArrowDL] Frame 1
stop();
Symbol 1149 MovieClip [dirArrowDL] Frame 2
stop();
Symbol 1152 MovieClip [dirArrowDR] Frame 1
stop();
Symbol 1152 MovieClip [dirArrowDR] Frame 2
stop();
Symbol 1158 MovieClip [gameMaskLevelCompleteMC] Frame 1
stop();
Symbol 1158 MovieClip [gameMaskLevelCompleteMC] Frame 2
stop();
Symbol 1165 MovieClip [menuArrow] Frame 1
stop();
Symbol 1165 MovieClip [menuArrow] Frame 2
stop();
Symbol 1169 MovieClip [actionButton] Frame 1
stop();
Symbol 1169 MovieClip [actionButton] Frame 2
stop();
Symbol 1169 MovieClip [actionButton] Frame 3
stop();
Symbol 1176 MovieClip [spellTxtButton] Frame 1
stop();
Symbol 1176 MovieClip [spellTxtButton] Frame 2
stop();
Symbol 1176 MovieClip [spellTxtButton] Frame 3
stop();
Symbol 1180 MovieClip [VS-MC] Frame 20
stop();
Symbol 1186 MovieClip [BG-MC] Frame 1
stop();
Symbol 1186 MovieClip [BG-MC] Frame 2
stop();
Symbol 1187 MovieClip [overlay-MC] Frame 20
stop();
Symbol 1187 MovieClip [overlay-MC] Frame 21
play();
Symbol 1187 MovieClip [overlay-MC] Frame 40
stop(); this.removeMovieClip();
Symbol 1193 MovieClip [windowActions] Frame 1
stop();
Symbol 1193 MovieClip [windowActions] Frame 2
stop();
Symbol 1205 MovieClip [damageTxt] Frame 1
stop();
Symbol 1205 MovieClip [damageTxt] Frame 2
stop();
Symbol 1205 MovieClip [damageTxt] Frame 3
stop();
Symbol 1205 MovieClip [damageTxt] Frame 4
stop();
Symbol 1205 MovieClip [damageTxt] Frame 5
stop();
Symbol 1205 MovieClip [damageTxt] Frame 6
stop();
Symbol 1244 MovieClip [charInfoL-MC] Frame 1
stop();
Symbol 1244 MovieClip [charInfoL-MC] Frame 2
stop();
Symbol 1267 MovieClip [charInfoR-MC] Frame 1
stop();
Symbol 1267 MovieClip [charInfoR-MC] Frame 2
stop();
Symbol 1468 MovieClip [lockpickMC] Frame 1
stop();
Symbol 1468 MovieClip [lockpickMC] Frame 2
stop();
Symbol 1468 MovieClip [lockpickMC] Frame 3
stop();
Symbol 1483 MovieClip [lockpickInfo] Frame 1
stop();
Symbol 1490 MovieClip [poisonSmokeMC] Frame 41
stop();
Symbol 1501 MovieClip Frame 1
play();
Symbol 1501 MovieClip Frame 19
stop();
Symbol 1509 MovieClip [spellFreezeMC] Frame 120
gotoAndPlay (30);
Symbol 1519 MovieClip [spellLightningMC] Frame 30
this.removeMovieClip();
Symbol 1625 MovieClip [menuStats] Frame 1
stop();
Symbol 1625 MovieClip [menuStats] Frame 2
stop();
Symbol 1632 MovieClip [menuItems] Frame 1
stop();
Symbol 1632 MovieClip [menuItems] Frame 2
stop();
Symbol 1637 MovieClip [menuEquipment] Frame 1
stop();
Symbol 1637 MovieClip [menuEquipment] Frame 2
stop();
Symbol 1644 MovieClip [menuSound] Frame 1
stop();
Symbol 1644 MovieClip [menuSound] Frame 2
stop();
Symbol 1651 MovieClip [menuTreasures] Frame 1
stop();
Symbol 1651 MovieClip [menuTreasures] Frame 2
stop();
Symbol 1656 MovieClip [menuExit] Frame 1
stop();
Symbol 1656 MovieClip [menuExit] Frame 2
stop();
Symbol 1661 MovieClip [menuSave] Frame 1
stop();
Symbol 1661 MovieClip [menuSave] Frame 2
stop();
Symbol 1745 MovieClip [gameMaskMissionCompleteMC] Frame 1
stop();
Symbol 1745 MovieClip [gameMaskMissionCompleteMC] Frame 2
stop();
Symbol 1772 MovieClip Frame 2
stopAllSounds();

Library Items

Symbol 1 Font [txtBoxFont]Used by:3 5 6 28 30 31 1166 1167 1168 1170 1171 1172 1173 1174 1175 1192 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1476 1535 1536 1537 1538 1539 1540 1541 1542 1543 1549 1553 1554 1555 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1615 1616 1617 1618 1622 1624 1627 1631 1633 1636 1639 1643 1646 1650 1652 1655 1657 1660 1662 1708 1709 1710 1712 1713 1714 1740 1742 1743 1774 1776 1777
Symbol 2 GraphicUsed by:7 32 1711 1715
Symbol 3 EditableTextUses:1 1191Used by:7
Symbol 4 GraphicUsed by:7 1711 1715
Symbol 5 EditableTextUses:1 1191Used by:7
Symbol 6 EditableTextUses:1 1191Used by:7
Symbol 7 Button [mapGames]Uses:2 3 4 5 6
Symbol 10 GraphicUsed by:15
Symbol 11 FontUsed by:12
Symbol 12 TextUses:11Used by:15
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:15
Symbol 15 MovieClipUses:10 12 14Used by:16
Symbol 16 MovieClip [RainDropEffectAS2]Uses:15Used by:87
Symbol 18 BitmapUsed by:19
Symbol 19 GraphicUses:18Used by:Timeline
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:24
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:24
Symbol 24 MovieClipUses:21 23Used by:Timeline
Symbol 25 GraphicUsed by:26 78 79 1716
Symbol 26 MovieClipUses:25Used by:Timeline
Symbol 27 GraphicUsed by:32
Symbol 28 EditableTextUses:1 1191Used by:32
Symbol 29 GraphicUsed by:32
Symbol 30 EditableTextUses:1 1191Used by:32
Symbol 31 EditableTextUses:1 1191Used by:32
Symbol 32 ButtonUses:27 28 29 30 31 2Used by:Timeline
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 MovieClip [titleLikwidGames]Uses:34Used by:1772  Timeline
Symbol 36 GraphicUsed by:40
Symbol 37 BitmapUsed by:38 39
Symbol 38 GraphicUses:37Used by:40
Symbol 39 GraphicUses:37Used by:40
Symbol 40 MovieClipUses:36 38 39Used by:41 1119
Symbol 41 MovieClipUses:40Used by:Timeline
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:42Used by:Timeline
Symbol 1780 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon]
Symbol 1781 MovieClip [__Packages.mx.transitions.BroadcasterMX]
Symbol 1782 MovieClip [__Packages.mx.transitions.Tween]
Symbol 1783 MovieClip [__Packages.mx.transitions.easing.Elastic]
Symbol 1784 MovieClip [__Packages.mx.transitions.easing.Strong]
Symbol 1785 MovieClip [__Packages.mx.transitions.easing.Back]
Symbol 1786 MovieClip [__Packages.Path]
Symbol 1787 MovieClip [__Packages.mx.transitions.easing.Bounce]
Symbol 1788 MovieClip [__Packages.mx.transitions.easing.Regular]
Symbol 1789 MovieClip [__Packages.mx.transitions.easing.None]
Symbol 8 MovieClip [__Packages.net.flashfilter.effects.SuperEffect]
Symbol 9 MovieClip [__Packages.net.flashfilter.effects.E01_raindrop]
Symbol 17 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClipUses:44Used by:78
Symbol 46 GraphicUsed by:77 78
Symbol 47 BitmapUsed by:48 61
Symbol 48 GraphicUses:47Used by:77 78
Symbol 49 GraphicUsed by:77 78
Symbol 50 GraphicUsed by:77 78
Symbol 51 GraphicUsed by:77 78
Symbol 52 GraphicUsed by:77 78
Symbol 53 GraphicUsed by:77 78
Symbol 54 GraphicUsed by:77 78
Symbol 55 GraphicUsed by:77 78
Symbol 56 GraphicUsed by:77 78
Symbol 57 GraphicUsed by:77 78
Symbol 58 GraphicUsed by:77 78
Symbol 59 GraphicUsed by:77 78
Symbol 60 GraphicUsed by:78 1779
Symbol 61 GraphicUses:47Used by:77 78
Symbol 62 GraphicUsed by:75
Symbol 63 GraphicUsed by:75
Symbol 64 GraphicUsed by:75
Symbol 65 GraphicUsed by:75
Symbol 66 GraphicUsed by:75
Symbol 67 GraphicUsed by:75
Symbol 68 GraphicUsed by:75
Symbol 69 GraphicUsed by:75
Symbol 70 GraphicUsed by:75
Symbol 71 GraphicUsed by:75
Symbol 72 GraphicUsed by:75
Symbol 73 GraphicUsed by:75
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:62 63 64 65 66 67 68 69 70 71 72 73 74Used by:76
Symbol 76 MovieClipUses:75Used by:77 78
Symbol 77 MovieClipUses:61 76 59 58 57 56 55 54 49 53 52 51 50 48 46Used by:78
Symbol 78 MovieClipUses:25 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 76 77Used by:87
Symbol 79 MovieClipUses:25Used by:87
Symbol 80 BitmapUsed by:81
Symbol 81 GraphicUses:80Used by:82
Symbol 82 MovieClipUses:81Used by:83
Symbol 83 MovieClipUses:82Used by:87
Symbol 84 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:86
Symbol 86 MovieClipUses:85Used by:87
Symbol 87 MovieClipUses:78 79 83 86 16Used by:1772  Timeline
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:90
Symbol 90 MovieClipUses:89Used by:93 1772
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:93
Symbol 93 MovieClip [treasureIcon]Uses:90 92Used by:1772
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:223
Symbol 96 BitmapUsed by:97
Symbol 97 GraphicUses:96Used by:223
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClipUses:98Used by:223
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:102
Symbol 102 MovieClipUses:101Used by:223
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:223
Symbol 105 BitmapUsed by:106
Symbol 106 GraphicUses:105Used by:223
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:223
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:223
Symbol 111 BitmapUsed by:112
Symbol 112 GraphicUses:111Used by:223
Symbol 113 BitmapUsed by:114
Symbol 114 GraphicUses:113Used by:223
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:223
Symbol 117 BitmapUsed by:118
Symbol 118 GraphicUses:117Used by:223
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:223
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:223
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:223
Symbol 125 BitmapUsed by:126
Symbol 126 GraphicUses:125Used by:223
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:223
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:223
Symbol 131 BitmapUsed by:132
Symbol 132 GraphicUses:131Used by:223
Symbol 133 BitmapUsed by:134
Symbol 134 GraphicUses:133Used by:223
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:223
Symbol 137 BitmapUsed by:138
Symbol 138 GraphicUses:137Used by:223
Symbol 139 BitmapUsed by:140
Symbol 140 GraphicUses:139Used by:223
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:223
Symbol 143 BitmapUsed by:144
Symbol 144 GraphicUses:143Used by:223
Symbol 145 BitmapUsed by:146
Symbol 146 GraphicUses:145Used by:223
Symbol 147 BitmapUsed by:148
Symbol 148 GraphicUses:147Used by:223
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:223
Symbol 151 BitmapUsed by:152
Symbol 152 GraphicUses:151Used by:223
Symbol 153 BitmapUsed by:155
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:153 154Used by:223
Symbol 156 BitmapUsed by:157
Symbol 157 GraphicUses:156Used by:223
Symbol 158 BitmapUsed by:159
Symbol 159 GraphicUses:158Used by:223
Symbol 160 BitmapUsed by:161
Symbol 161 GraphicUses:160Used by:223
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:223
Symbol 164 BitmapUsed by:165
Symbol 165 GraphicUses:164Used by:223
Symbol 166 BitmapUsed by:168
Symbol 167 BitmapUsed by:168
Symbol 168 GraphicUses:166 167Used by:223
Symbol 169 BitmapUsed by:170
Symbol 170 GraphicUses:169Used by:223
Symbol 171 BitmapUsed by:172
Symbol 172 GraphicUses:171Used by:223
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:223
Symbol 175 BitmapUsed by:176
Symbol 176 GraphicUses:175Used by:223
Symbol 177 BitmapUsed by:178
Symbol 178 GraphicUses:177Used by:223
Symbol 179 BitmapUsed by:180
Symbol 180 GraphicUses:179Used by:223
Symbol 181 BitmapUsed by:182
Symbol 182 GraphicUses:181Used by:223
Symbol 183 BitmapUsed by:184
Symbol 184 GraphicUses:183Used by:223
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:223
Symbol 187 BitmapUsed by:188
Symbol 188 GraphicUses:187Used by:223
Symbol 189 BitmapUsed by:190
Symbol 190 GraphicUses:189Used by:223
Symbol 191 BitmapUsed by:192
Symbol 192 GraphicUses:191Used by:223
Symbol 193 BitmapUsed by:194
Symbol 194 GraphicUses:193Used by:223
Symbol 195 BitmapUsed by:196
Symbol 196 GraphicUses:195Used by:223
Symbol 197 BitmapUsed by:198
Symbol 198 GraphicUses:197Used by:223
Symbol 199 BitmapUsed by:200
Symbol 200 GraphicUses:199Used by:223
Symbol 201 BitmapUsed by:202 222
Symbol 202 GraphicUses:201Used by:223
Symbol 203 BitmapUsed by:204
Symbol 204 GraphicUses:203Used by:223
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:223
Symbol 207 BitmapUsed by:208
Symbol 208 GraphicUses:207Used by:223
Symbol 209 BitmapUsed by:210
Symbol 210 GraphicUses:209Used by:223
Symbol 211 BitmapUsed by:212
Symbol 212 GraphicUses:211Used by:223
Symbol 213 BitmapUsed by:214
Symbol 214 GraphicUses:213Used by:223
Symbol 215 BitmapUsed by:216
Symbol 216 GraphicUses:215Used by:223
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:223
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:223
Symbol 221 BitmapUsed by:222
Symbol 222 GraphicUses:221 201Used by:223
Symbol 223 MovieClip [tiles]Uses:95 97 99 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 155 157 159 161 163 165 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208 210 212 214 216 218 220 222Used by:1772
Symbol 224 GraphicUsed by:225
Symbol 225 MovieClipUses:224Used by:1772
Symbol 226 MovieClipUsed by:1772
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:229
Symbol 229 MovieClipUses:228Used by:1772
Symbol 230 BitmapUsed by:231
Symbol 231 GraphicUses:230Used by:234
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClipUses:232Used by:234
Symbol 234 MovieClip [tileOutline]Uses:231 233Used by:1772
Symbol 235 GraphicUsed by:238
Symbol 236 GraphicUsed by:238 1193 1197
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClip [miniTiles]Uses:235 236 237Used by:1772
Symbol 239 GraphicUsed by:285 349 397
Symbol 240 BitmapUsed by:241
Symbol 241 GraphicUses:240Used by:260
Symbol 242 BitmapUsed by:243
Symbol 243 GraphicUses:242Used by:260
Symbol 244 BitmapUsed by:245
Symbol 245 GraphicUses:244Used by:260
Symbol 246 BitmapUsed by:247
Symbol 247 GraphicUses:246Used by:260
Symbol 248 BitmapUsed by:249
Symbol 249 GraphicUses:248Used by:260
Symbol 250 BitmapUsed by:251
Symbol 251 GraphicUses:250Used by:260
Symbol 252 BitmapUsed by:253
Symbol 253 GraphicUses:252Used by:260
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:260
Symbol 256 BitmapUsed by:257
Symbol 257 GraphicUses:256Used by:260
Symbol 258 BitmapUsed by:259
Symbol 259 GraphicUses:258Used by:260
Symbol 260 MovieClipUses:241 243 245 247 249 251 253 255 257 259Used by:285
Symbol 261 GraphicUsed by:285 349
Symbol 262 BitmapUsed by:263
Symbol 263 GraphicUses:262Used by:282
Symbol 264 BitmapUsed by:265
Symbol 265 GraphicUses:264Used by:282
Symbol 266 BitmapUsed by:267
Symbol 267 GraphicUses:266Used by:282
Symbol 268 BitmapUsed by:269
Symbol 269 GraphicUses:268Used by:282
Symbol 270 BitmapUsed by:271
Symbol 271 GraphicUses:270Used by:282
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:272Used by:282
Symbol 274 BitmapUsed by:275
Symbol 275 GraphicUses:274Used by:282
Symbol 276 BitmapUsed by:277
Symbol 277 GraphicUses:276Used by:282
Symbol 278 BitmapUsed by:279
Symbol 279 GraphicUses:278Used by:282
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:282
Symbol 282 MovieClipUses:263 265 267 269 271 273 275 277 279 281Used by:285
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:285
Symbol 285 MovieClipUses:239 260 261 282 284Used by:398
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClip [overlayGraphic]Uses:286Used by:288 1158 1187 1745
Symbol 288 MovieClip [windowActionsMask]Uses:287Used by:398 1772
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:303
Symbol 291 BitmapUsed by:292
Symbol 292 GraphicUses:291Used by:303
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:293Used by:303
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:295Used by:303
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:303
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:303
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:303
Symbol 303 MovieClipUses:290 292 294 296 298 300 302Used by:304 1273
Symbol 304 MovieClipUses:303Used by:398 1116
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:325
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:325
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:325
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:325
Symbol 313 BitmapUsed by:314
Symbol 314 GraphicUses:313Used by:325
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:325
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:325
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:325
Symbol 321 BitmapUsed by:322
Symbol 322 GraphicUses:321Used by:325
Symbol 323 BitmapUsed by:324
Symbol 324 GraphicUses:323Used by:325
Symbol 325 MovieClipUses:306 308 310 312 314 316 318 320 322 324Used by:349
Symbol 326 BitmapUsed by:327
Symbol 327 GraphicUses:326Used by:346
Symbol 328 BitmapUsed by:329
Symbol 329 GraphicUses:328Used by:346
Symbol 330 BitmapUsed by:331
Symbol 331 GraphicUses:330Used by:346
Symbol 332 BitmapUsed by:333
Symbol 333 GraphicUses:332Used by:346
Symbol 334 BitmapUsed by:335
Symbol 335 GraphicUses:334Used by:346
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:346
Symbol 338 BitmapUsed by:339
Symbol 339 GraphicUses:338Used by:346
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:346
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:346
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:346
Symbol 346 MovieClipUses:327 329 331 333 335 337 339 341 343 345Used by:349
Symbol 347 BitmapUsed by:348
Symbol 348 GraphicUses:347Used by:349
Symbol 349 MovieClipUses:239 325 261 346 348Used by:398
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:373
Symbol 352 BitmapUsed by:353
Symbol 353 GraphicUses:352Used by:373
Symbol 354 BitmapUsed by:355
Symbol 355 GraphicUses:354Used by:373
Symbol 356 BitmapUsed by:357
Symbol 357 GraphicUses:356Used by:373
Symbol 358 BitmapUsed by:359
Symbol 359 GraphicUses:358Used by:373
Symbol 360 BitmapUsed by:361
Symbol 361 GraphicUses:360Used by:373
Symbol 362 BitmapUsed by:363
Symbol 363 GraphicUses:362Used by:373
Symbol 364 BitmapUsed by:365
Symbol 365 GraphicUses:364Used by:366
Symbol 366 MovieClip [arrowMC]Uses:365Used by:373 394 1772
Symbol 367 BitmapUsed by:368
Symbol 368 GraphicUses:367Used by:373
Symbol 369 BitmapUsed by:370
Symbol 370 GraphicUses:369Used by:373
Symbol 371 BitmapUsed by:372
Symbol 372 GraphicUses:371Used by:373
Symbol 373 MovieClipUses:351 353 355 357 359 361 363 366 368 370 372Used by:397
Symbol 374 BitmapUsed by:375
Symbol 375 GraphicUses:374Used by:394
Symbol 376 BitmapUsed by:377
Symbol 377 GraphicUses:376Used by:394
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:394
Symbol 380 BitmapUsed by:381
Symbol 381 GraphicUses:380Used by:394
Symbol 382 BitmapUsed by:383
Symbol 383 GraphicUses:382Used by:394
Symbol 384 BitmapUsed by:385
Symbol 385 GraphicUses:384Used by:394
Symbol 386 BitmapUsed by:387
Symbol 387 GraphicUses:386Used by:394
Symbol 388 BitmapUsed by:389
Symbol 389 GraphicUses:388Used by:394
Symbol 390 BitmapUsed by:391
Symbol 391 GraphicUses:390Used by:394
Symbol 392 BitmapUsed by:393
Symbol 393 GraphicUses:392Used by:394
Symbol 394 MovieClipUses:375 377 379 381 383 385 387 366 389 391 393Used by:397
Symbol 395 BitmapUsed by:396
Symbol 396 GraphicUses:395Used by:397
Symbol 397 MovieClipUses:239 373 394 396Used by:398
Symbol 398 MovieClip [defenders]Uses:285 288 304 349 397Used by:1772
Symbol 399 GraphicUsed by:436 473 510 555 600 645 682 719 764 809 850 891 932 971 1010 1049 1082 1115
Symbol 400 BitmapUsed by:401
Symbol 401 GraphicUses:400Used by:416
Symbol 402 BitmapUsed by:403
Symbol 403 GraphicUses:402Used by:416
Symbol 404 BitmapUsed by:405
Symbol 405 GraphicUses:404Used by:416
Symbol 406 BitmapUsed by:407
Symbol 407 GraphicUses:406Used by:416
Symbol 408 BitmapUsed by:409
Symbol 409 GraphicUses:408Used by:416
Symbol 410 BitmapUsed by:411
Symbol 411 GraphicUses:410Used by:416
Symbol 412 BitmapUsed by:413
Symbol 413 GraphicUses:412Used by:416
Symbol 414 BitmapUsed by:415
Symbol 415 GraphicUses:414Used by:416
Symbol 416 MovieClipUses:401 403 405 407 409 411 413 415Used by:436
Symbol 417 BitmapUsed by:418
Symbol 418 GraphicUses:417Used by:433
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:433
Symbol 421 BitmapUsed by:422
Symbol 422 GraphicUses:421Used by:433
Symbol 423 BitmapUsed by:424
Symbol 424 GraphicUses:423Used by:433
Symbol 425 BitmapUsed by:426
Symbol 426 GraphicUses:425Used by:433
Symbol 427 BitmapUsed by:428
Symbol 428 GraphicUses:427Used by:433
Symbol 429 BitmapUsed by:430
Symbol 430 GraphicUses:429Used by:433
Symbol 431 BitmapUsed by:432
Symbol 432 GraphicUses:431Used by:433
Symbol 433 MovieClipUses:418 420 422 424 426 428 430 432Used by:436
Symbol 434 BitmapUsed by:435
Symbol 435 GraphicUses:434Used by:436
Symbol 436 MovieClipUses:399 416 433 435Used by:1116
Symbol 437 BitmapUsed by:438
Symbol 438 GraphicUses:437Used by:453
Symbol 439 BitmapUsed by:440
Symbol 440 GraphicUses:439Used by:453
Symbol 441 BitmapUsed by:442
Symbol 442 GraphicUses:441Used by:453
Symbol 443 BitmapUsed by:444
Symbol 444 GraphicUses:443Used by:453
Symbol 445 BitmapUsed by:446
Symbol 446 GraphicUses:445Used by:453
Symbol 447 BitmapUsed by:448
Symbol 448 GraphicUses:447Used by:453
Symbol 449 BitmapUsed by:450
Symbol 450 GraphicUses:449Used by:453
Symbol 451 BitmapUsed by:452
Symbol 452 GraphicUses:451Used by:453
Symbol 453 MovieClipUses:438 440 442 444 446 448 450 452Used by:473
Symbol 454 BitmapUsed by:455
Symbol 455 GraphicUses:454Used by:470
Symbol 456 BitmapUsed by:457
Symbol 457 GraphicUses:456Used by:470
Symbol 458 BitmapUsed by:459
Symbol 459 GraphicUses:458Used by:470
Symbol 460 BitmapUsed by:461
Symbol 461 GraphicUses:460Used by:470
Symbol 462 BitmapUsed by:463
Symbol 463 GraphicUses:462Used by:470
Symbol 464 BitmapUsed by:465
Symbol 465 GraphicUses:464Used by:470
Symbol 466 BitmapUsed by:467
Symbol 467 GraphicUses:466Used by:470
Symbol 468 BitmapUsed by:469
Symbol 469 GraphicUses:468Used by:470
Symbol 470 MovieClipUses:455 457 459 461 463 465 467 469Used by:473
Symbol 471 BitmapUsed by:472
Symbol 472 GraphicUses:471Used by:473
Symbol 473 MovieClipUses:399 453 470 472Used by:1116
Symbol 474 BitmapUsed by:475
Symbol 475 GraphicUses:474Used by:490
Symbol 476 BitmapUsed by:477
Symbol 477 GraphicUses:476Used by:490
Symbol 478 BitmapUsed by:479
Symbol 479 GraphicUses:478Used by:490
Symbol 480 BitmapUsed by:481
Symbol 481 GraphicUses:480Used by:490
Symbol 482 BitmapUsed by:483
Symbol 483 GraphicUses:482Used by:490
Symbol 484 BitmapUsed by:485
Symbol 485 GraphicUses:484Used by:490
Symbol 486 BitmapUsed by:487
Symbol 487 GraphicUses:486Used by:490
Symbol 488 BitmapUsed by:489
Symbol 489 GraphicUses:488Used by:490
Symbol 490 MovieClipUses:475 477 479 481 483 485 487 489Used by:510
Symbol 491 BitmapUsed by:492
Symbol 492 GraphicUses:491Used by:507
Symbol 493 BitmapUsed by:494
Symbol 494 GraphicUses:493Used by:507
Symbol 495 BitmapUsed by:496
Symbol 496 GraphicUses:495Used by:507
Symbol 497 BitmapUsed by:498
Symbol 498 GraphicUses:497Used by:507
Symbol 499 BitmapUsed by:500
Symbol 500 GraphicUses:499Used by:507
Symbol 501 BitmapUsed by:502
Symbol 502 GraphicUses:501Used by:507
Symbol 503 BitmapUsed by:504
Symbol 504 GraphicUses:503Used by:507
Symbol 505 BitmapUsed by:506
Symbol 506 GraphicUses:505Used by:507
Symbol 507 MovieClipUses:492 494 496 498 500 502 504 506Used by:510
Symbol 508 BitmapUsed by:509
Symbol 509 GraphicUses:508Used by:510
Symbol 510 MovieClipUses:399 490 507 509Used by:1116
Symbol 511 BitmapUsed by:512
Symbol 512 GraphicUses:511Used by:531
Symbol 513 BitmapUsed by:514
Symbol 514 GraphicUses:513Used by:531
Symbol 515 BitmapUsed by:516
Symbol 516 GraphicUses:515Used by:531
Symbol 517 BitmapUsed by:518
Symbol 518 GraphicUses:517Used by:531
Symbol 519 BitmapUsed by:520
Symbol 520 GraphicUses:519Used by:531
Symbol 521 BitmapUsed by:522
Symbol 522 GraphicUses:521Used by:531
Symbol 523 BitmapUsed by:524
Symbol 524 GraphicUses:523Used by:531
Symbol 525 BitmapUsed by:526
Symbol 526 GraphicUses:525Used by:531
Symbol 527 BitmapUsed by:528
Symbol 528 GraphicUses:527Used by:531
Symbol 529 BitmapUsed by:530
Symbol 530 GraphicUses:529Used by:531
Symbol 531 MovieClipUses:512 514 516 518 520 522 524 526 528 530Used by:555
Symbol 532 BitmapUsed by:533
Symbol 533 GraphicUses:532Used by:552
Symbol 534 BitmapUsed by:535
Symbol 535 GraphicUses:534Used by:552
Symbol 536 BitmapUsed by:537
Symbol 537 GraphicUses:536Used by:552
Symbol 538 BitmapUsed by:539
Symbol 539 GraphicUses:538Used by:552
Symbol 540 BitmapUsed by:541
Symbol 541 GraphicUses:540Used by:552
Symbol 542 BitmapUsed by:543
Symbol 543 GraphicUses:542Used by:552
Symbol 544 BitmapUsed by:545
Symbol 545 GraphicUses:544Used by:552
Symbol 546 BitmapUsed by:547
Symbol 547 GraphicUses:546Used by:552
Symbol 548 BitmapUsed by:549
Symbol 549 GraphicUses:548Used by:552
Symbol 550 BitmapUsed by:551
Symbol 551 GraphicUses:550Used by:552
Symbol 552 MovieClipUses:533 535 537 539 541 543 545 547 549 551Used by:555
Symbol 553 BitmapUsed by:554
Symbol 554 GraphicUses:553Used by:555
Symbol 555 MovieClipUses:399 531 552 554Used by:1116
Symbol 556 BitmapUsed by:557
Symbol 557 GraphicUses:556Used by:576
Symbol 558 BitmapUsed by:559
Symbol 559 GraphicUses:558Used by:576
Symbol 560 BitmapUsed by:561
Symbol 561 GraphicUses:560Used by:576
Symbol 562 BitmapUsed by:563
Symbol 563 GraphicUses:562Used by:576
Symbol 564 BitmapUsed by:565
Symbol 565 GraphicUses:564Used by:576
Symbol 566 BitmapUsed by:567
Symbol 567 GraphicUses:566Used by:576
Symbol 568 BitmapUsed by:569
Symbol 569 GraphicUses:568Used by:576
Symbol 570 BitmapUsed by:571
Symbol 571 GraphicUses:570Used by:576
Symbol 572 BitmapUsed by:573
Symbol 573 GraphicUses:572Used by:576
Symbol 574 BitmapUsed by:575
Symbol 575 GraphicUses:574Used by:576
Symbol 576 MovieClipUses:557 559 561 563 565 567 569 571 573 575Used by:600
Symbol 577 BitmapUsed by:578
Symbol 578 GraphicUses:577Used by:597
Symbol 579 BitmapUsed by:580
Symbol 580 GraphicUses:579Used by:597
Symbol 581 BitmapUsed by:582
Symbol 582 GraphicUses:581Used by:597
Symbol 583 BitmapUsed by:584
Symbol 584 GraphicUses:583Used by:597
Symbol 585 BitmapUsed by:586
Symbol 586 GraphicUses:585Used by:597
Symbol 587 BitmapUsed by:588
Symbol 588 GraphicUses:587Used by:597
Symbol 589 BitmapUsed by:590
Symbol 590 GraphicUses:589Used by:597
Symbol 591 BitmapUsed by:592
Symbol 592 GraphicUses:591Used by:597
Symbol 593 BitmapUsed by:594
Symbol 594 GraphicUses:593Used by:597
Symbol 595 BitmapUsed by:596
Symbol 596 GraphicUses:595Used by:597
Symbol 597 MovieClipUses:578 580 582 584 586 588 590 592 594 596Used by:600
Symbol 598 BitmapUsed by:599
Symbol 599 GraphicUses:598Used by:600
Symbol 600 MovieClipUses:399 576 597 599Used by:1116
Symbol 601 BitmapUsed by:602
Symbol 602 GraphicUses:601Used by:621
Symbol 603 BitmapUsed by:604
Symbol 604 GraphicUses:603Used by:621
Symbol 605 BitmapUsed by:606
Symbol 606 GraphicUses:605Used by:621
Symbol 607 BitmapUsed by:608
Symbol 608 GraphicUses:607Used by:621
Symbol 609 BitmapUsed by:610
Symbol 610 GraphicUses:609Used by:621
Symbol 611 BitmapUsed by:612
Symbol 612 GraphicUses:611Used by:621
Symbol 613 BitmapUsed by:614
Symbol 614 GraphicUses:613Used by:621
Symbol 615 BitmapUsed by:616
Symbol 616 GraphicUses:615Used by:621
Symbol 617 BitmapUsed by:618
Symbol 618 GraphicUses:617Used by:621
Symbol 619 BitmapUsed by:620
Symbol 620 GraphicUses:619Used by:621
Symbol 621 MovieClipUses:602 604 606 608 610 612 614 616 618 620Used by:645
Symbol 622 BitmapUsed by:623
Symbol 623 GraphicUses:622Used by:642
Symbol 624 BitmapUsed by:625
Symbol 625 GraphicUses:624Used by:642
Symbol 626 BitmapUsed by:627
Symbol 627 GraphicUses:626Used by:642
Symbol 628 BitmapUsed by:629
Symbol 629 GraphicUses:628Used by:642
Symbol 630 BitmapUsed by:631
Symbol 631 GraphicUses:630Used by:642
Symbol 632 BitmapUsed by:633
Symbol 633 GraphicUses:632Used by:642
Symbol 634 BitmapUsed by:635
Symbol 635 GraphicUses:634Used by:642
Symbol 636 BitmapUsed by:637
Symbol 637 GraphicUses:636Used by:642
Symbol 638 BitmapUsed by:639
Symbol 639 GraphicUses:638Used by:642
Symbol 640 BitmapUsed by:641
Symbol 641 GraphicUses:640Used by:642
Symbol 642 MovieClipUses:623 625 627 629 631 633 635 637 639 641Used by:645
Symbol 643 BitmapUsed by:644
Symbol 644 GraphicUses:643Used by:645
Symbol 645 MovieClipUses:399 621 642 644Used by:1116
Symbol 646 BitmapUsed by:647
Symbol 647 GraphicUses:646Used by:662
Symbol 648 BitmapUsed by:649
Symbol 649 GraphicUses:648Used by:662
Symbol 650 BitmapUsed by:651
Symbol 651 GraphicUses:650Used by:662
Symbol 652 BitmapUsed by:653
Symbol 653 GraphicUses:652Used by:662
Symbol 654 BitmapUsed by:655
Symbol 655 GraphicUses:654Used by:662
Symbol 656 BitmapUsed by:657
Symbol 657 GraphicUses:656Used by:662
Symbol 658 BitmapUsed by:659
Symbol 659 GraphicUses:658Used by:662
Symbol 660 BitmapUsed by:661
Symbol 661 GraphicUses:660Used by:662
Symbol 662 MovieClipUses:647 649 651 653 655 657 659 661Used by:682
Symbol 663 BitmapUsed by:664
Symbol 664 GraphicUses:663Used by:679
Symbol 665 BitmapUsed by:666
Symbol 666 GraphicUses:665Used by:679
Symbol 667 BitmapUsed by:668
Symbol 668 GraphicUses:667Used by:679
Symbol 669 BitmapUsed by:670
Symbol 670 GraphicUses:669Used by:679
Symbol 671 BitmapUsed by:672
Symbol 672 GraphicUses:671Used by:679
Symbol 673 BitmapUsed by:674
Symbol 674 GraphicUses:673Used by:679
Symbol 675 BitmapUsed by:676
Symbol 676 GraphicUses:675Used by:679
Symbol 677 BitmapUsed by:678
Symbol 678 GraphicUses:677Used by:679
Symbol 679 MovieClipUses:664 666 668 670 672 674 676 678Used by:682
Symbol 680 BitmapUsed by:681
Symbol 681 GraphicUses:680Used by:682
Symbol 682 MovieClipUses:399 662 679 681Used by:1116
Symbol 683 BitmapUsed by:684
Symbol 684 GraphicUses:683Used by:699
Symbol 685 BitmapUsed by:686
Symbol 686 GraphicUses:685Used by:699
Symbol 687 BitmapUsed by:688
Symbol 688 GraphicUses:687Used by:699
Symbol 689 BitmapUsed by:690
Symbol 690 GraphicUses:689Used by:699
Symbol 691 BitmapUsed by:692
Symbol 692 GraphicUses:691Used by:699
Symbol 693 BitmapUsed by:694
Symbol 694 GraphicUses:693Used by:699
Symbol 695 BitmapUsed by:696
Symbol 696 GraphicUses:695Used by:699
Symbol 697 BitmapUsed by:698
Symbol 698 GraphicUses:697Used by:699
Symbol 699 MovieClipUses:684 686 688 690 692 694 696 698Used by:719
Symbol 700 BitmapUsed by:701
Symbol 701 GraphicUses:700Used by:716
Symbol 702 BitmapUsed by:703
Symbol 703 GraphicUses:702Used by:716
Symbol 704 BitmapUsed by:705
Symbol 705 GraphicUses:704Used by:716
Symbol 706 BitmapUsed by:707
Symbol 707 GraphicUses:706Used by:716
Symbol 708 BitmapUsed by:709
Symbol 709 GraphicUses:708Used by:716
Symbol 710 BitmapUsed by:711
Symbol 711 GraphicUses:710Used by:716
Symbol 712 BitmapUsed by:713
Symbol 713 GraphicUses:712Used by:716
Symbol 714 BitmapUsed by:715
Symbol 715 GraphicUses:714Used by:716
Symbol 716 MovieClipUses:701 703 705 707 709 711 713 715Used by:719
Symbol 717 BitmapUsed by:718
Symbol 718 GraphicUses:717Used by:719
Symbol 719 MovieClipUses:399 699 716 718Used by:1116
Symbol 720 BitmapUsed by:721
Symbol 721 GraphicUses:720Used by:740
Symbol 722 BitmapUsed by:723
Symbol 723 GraphicUses:722Used by:740
Symbol 724 BitmapUsed by:725
Symbol 725 GraphicUses:724Used by:740
Symbol 726 BitmapUsed by:727
Symbol 727 GraphicUses:726Used by:740
Symbol 728 BitmapUsed by:729
Symbol 729 GraphicUses:728Used by:740
Symbol 730 BitmapUsed by:731
Symbol 731 GraphicUses:730Used by:740
Symbol 732 BitmapUsed by:733
Symbol 733 GraphicUses:732Used by:740
Symbol 734 BitmapUsed by:735
Symbol 735 GraphicUses:734Used by:740
Symbol 736 BitmapUsed by:737
Symbol 737 GraphicUses:736Used by:740
Symbol 738 BitmapUsed by:739
Symbol 739 GraphicUses:738Used by:740
Symbol 740 MovieClipUses:721 723 725 727 729 731 733 735 737 739Used by:764
Symbol 741 BitmapUsed by:742
Symbol 742 GraphicUses:741Used by:761
Symbol 743 BitmapUsed by:744
Symbol 744 GraphicUses:743Used by:761
Symbol 745 BitmapUsed by:746
Symbol 746 GraphicUses:745Used by:761
Symbol 747 BitmapUsed by:748
Symbol 748 GraphicUses:747Used by:761
Symbol 749 BitmapUsed by:750
Symbol 750 GraphicUses:749Used by:761
Symbol 751 BitmapUsed by:752
Symbol 752 GraphicUses:751Used by:761
Symbol 753 BitmapUsed by:754
Symbol 754 GraphicUses:753Used by:761
Symbol 755 BitmapUsed by:756
Symbol 756 GraphicUses:755Used by:761
Symbol 757 BitmapUsed by:758
Symbol 758 GraphicUses:757Used by:761
Symbol 759 BitmapUsed by:760
Symbol 760 GraphicUses:759Used by:761
Symbol 761 MovieClipUses:742 744 746 748 750 752 754 756 758 760Used by:764
Symbol 762 BitmapUsed by:763
Symbol 763 GraphicUses:762Used by:764
Symbol 764 MovieClipUses:399 740 761 763Used by:1116
Symbol 765 BitmapUsed by:766
Symbol 766 GraphicUses:765Used by:785
Symbol 767 BitmapUsed by:768
Symbol 768 GraphicUses:767Used by:785
Symbol 769 BitmapUsed by:770
Symbol 770 GraphicUses:769Used by:785
Symbol 771 BitmapUsed by:772
Symbol 772 GraphicUses:771Used by:785
Symbol 773 BitmapUsed by:774
Symbol 774 GraphicUses:773Used by:785
Symbol 775 BitmapUsed by:776
Symbol 776 GraphicUses:775Used by:785
Symbol 777 BitmapUsed by:778
Symbol 778 GraphicUses:777Used by:785
Symbol 779 BitmapUsed by:780
Symbol 780 GraphicUses:779Used by:785
Symbol 781 BitmapUsed by:782
Symbol 782 GraphicUses:781Used by:785
Symbol 783 BitmapUsed by:784
Symbol 784 GraphicUses:783Used by:785
Symbol 785 MovieClipUses:766 768 770 772 774 776 778 780 782 784Used by:809
Symbol 786 BitmapUsed by:787
Symbol 787 GraphicUses:786Used by:806
Symbol 788 BitmapUsed by:789
Symbol 789 GraphicUses:788Used by:806
Symbol 790 BitmapUsed by:791
Symbol 791 GraphicUses:790Used by:806
Symbol 792 BitmapUsed by:793
Symbol 793 GraphicUses:792Used by:806
Symbol 794 BitmapUsed by:795
Symbol 795 GraphicUses:794Used by:806
Symbol 796 BitmapUsed by:797
Symbol 797 GraphicUses:796Used by:806
Symbol 798 BitmapUsed by:799
Symbol 799 GraphicUses:798Used by:806
Symbol 800 BitmapUsed by:801
Symbol 801 GraphicUses:800Used by:806
Symbol 802 BitmapUsed by:803
Symbol 803 GraphicUses:802Used by:806
Symbol 804 BitmapUsed by:805
Symbol 805 GraphicUses:804Used by:806
Symbol 806 MovieClipUses:787 789 791 793 795 797 799 801 803 805Used by:809
Symbol 807 BitmapUsed by:808
Symbol 808 GraphicUses:807Used by:809
Symbol 809 MovieClipUses:399 785 806 808Used by:1116
Symbol 810 BitmapUsed by:811
Symbol 811 GraphicUses:810Used by:828
Symbol 812 BitmapUsed by:813
Symbol 813 GraphicUses:812Used by:828
Symbol 814 BitmapUsed by:815
Symbol 815 GraphicUses:814Used by:828
Symbol 816 BitmapUsed by:817
Symbol 817 GraphicUses:816Used by:828
Symbol 818 BitmapUsed by:819
Symbol 819 GraphicUses:818Used by:828
Symbol 820 BitmapUsed by:821
Symbol 821 GraphicUses:820Used by:828
Symbol 822 BitmapUsed by:823
Symbol 823 GraphicUses:822Used by:828
Symbol 824 BitmapUsed by:825
Symbol 825 GraphicUses:824Used by:828
Symbol 826 BitmapUsed by:827
Symbol 827 GraphicUses:826Used by:828
Symbol 828 MovieClipUses:811 813 815 817 819 821 823 825 827Used by:850
Symbol 829 BitmapUsed by:830
Symbol 830 GraphicUses:829Used by:847
Symbol 831 BitmapUsed by:832
Symbol 832 GraphicUses:831Used by:847
Symbol 833 BitmapUsed by:834
Symbol 834 GraphicUses:833Used by:847
Symbol 835 BitmapUsed by:836
Symbol 836 GraphicUses:835Used by:847
Symbol 837 BitmapUsed by:838
Symbol 838 GraphicUses:837Used by:847
Symbol 839 BitmapUsed by:840
Symbol 840 GraphicUses:839Used by:847
Symbol 841 BitmapUsed by:842
Symbol 842 GraphicUses:841Used by:847
Symbol 843 BitmapUsed by:844
Symbol 844 GraphicUses:843Used by:847
Symbol 845 BitmapUsed by:846
Symbol 846 GraphicUses:845Used by:847
Symbol 847 MovieClipUses:830 832 834 836 838 840 842 844 846Used by:850
Symbol 848 BitmapUsed by:849
Symbol 849 GraphicUses:848Used by:850
Symbol 850 MovieClipUses:399 828 847 849Used by:1116
Symbol 851 BitmapUsed by:852
Symbol 852 GraphicUses:851Used by:869
Symbol 853 BitmapUsed by:854
Symbol 854 GraphicUses:853Used by:869
Symbol 855 BitmapUsed by:856
Symbol 856 GraphicUses:855Used by:869
Symbol 857 BitmapUsed by:858
Symbol 858 GraphicUses:857Used by:869
Symbol 859 BitmapUsed by:860
Symbol 860 GraphicUses:859Used by:869
Symbol 861 BitmapUsed by:862
Symbol 862 GraphicUses:861Used by:869
Symbol 863 BitmapUsed by:864
Symbol 864 GraphicUses:863Used by:869
Symbol 865 BitmapUsed by:866
Symbol 866 GraphicUses:865Used by:869
Symbol 867 BitmapUsed by:868
Symbol 868 GraphicUses:867Used by:869
Symbol 869 MovieClipUses:852 854 856 858 860 862 864 866 868Used by:891
Symbol 870 BitmapUsed by:871
Symbol 871 GraphicUses:870Used by:888
Symbol 872 BitmapUsed by:873
Symbol 873 GraphicUses:872Used by:888
Symbol 874 BitmapUsed by:875
Symbol 875 GraphicUses:874Used by:888
Symbol 876 BitmapUsed by:877
Symbol 877 GraphicUses:876Used by:888
Symbol 878 BitmapUsed by:879
Symbol 879 GraphicUses:878Used by:888
Symbol 880 BitmapUsed by:881
Symbol 881 GraphicUses:880Used by:888
Symbol 882 BitmapUsed by:883
Symbol 883 GraphicUses:882Used by:888
Symbol 884 BitmapUsed by:885
Symbol 885 GraphicUses:884Used by:888
Symbol 886 BitmapUsed by:887
Symbol 887 GraphicUses:886Used by:888
Symbol 888 MovieClipUses:871 873 875 877 879 881 883 885 887Used by:891
Symbol 889 BitmapUsed by:890
Symbol 890 GraphicUses:889Used by:891
Symbol 891 MovieClipUses:399 869 888 890Used by:1116
Symbol 892 BitmapUsed by:893
Symbol 893 GraphicUses:892Used by:910
Symbol 894 BitmapUsed by:895
Symbol 895 GraphicUses:894Used by:910
Symbol 896 BitmapUsed by:897
Symbol 897 GraphicUses:896Used by:910
Symbol 898 BitmapUsed by:899
Symbol 899 GraphicUses:898Used by:910
Symbol 900 BitmapUsed by:901
Symbol 901 GraphicUses:900Used by:910
Symbol 902 BitmapUsed by:903
Symbol 903 GraphicUses:902Used by:910
Symbol 904 BitmapUsed by:905
Symbol 905 GraphicUses:904Used by:910
Symbol 906 BitmapUsed by:907
Symbol 907 GraphicUses:906Used by:910
Symbol 908 BitmapUsed by:909
Symbol 909 GraphicUses:908Used by:910
Symbol 910 MovieClipUses:893 895 897 899 901 903 905 907 909Used by:932
Symbol 911 BitmapUsed by:912
Symbol 912 GraphicUses:911Used by:929
Symbol 913 BitmapUsed by:914
Symbol 914 GraphicUses:913Used by:929
Symbol 915 BitmapUsed by:916
Symbol 916 GraphicUses:915Used by:929
Symbol 917 BitmapUsed by:918
Symbol 918 GraphicUses:917Used by:929
Symbol 919 BitmapUsed by:920
Symbol 920 GraphicUses:919Used by:929
Symbol 921 BitmapUsed by:922
Symbol 922 GraphicUses:921Used by:929
Symbol 923 BitmapUsed by:924
Symbol 924 GraphicUses:923Used by:929
Symbol 925 BitmapUsed by:926
Symbol 926 GraphicUses:925Used by:929
Symbol 927 BitmapUsed by:928
Symbol 928 GraphicUses:927Used by:929
Symbol 929 MovieClipUses:912 914 916 918 920 922 924 926 928Used by:932
Symbol 930 BitmapUsed by:931
Symbol 931 GraphicUses:930Used by:932
Symbol 932 MovieClipUses:399 910 929 931Used by:1116
Symbol 933 BitmapUsed by:934
Symbol 934 GraphicUses:933Used by:939 950
Symbol 935 BitmapUsed by:936
Symbol 936 GraphicUses:935Used by:939 950
Symbol 937 BitmapUsed by:938
Symbol 938 GraphicUses:937Used by:939 950
Symbol 939 MovieClipUses:934 936 938Used by:950
Symbol 940 BitmapUsed by:941
Symbol 941 GraphicUses:940Used by:950
Symbol 942 BitmapUsed by:943
Symbol 943 GraphicUses:942Used by:950
Symbol 944 BitmapUsed by:945
Symbol 945 GraphicUses:944Used by:950
Symbol 946 BitmapUsed by:947
Symbol 947 GraphicUses:946Used by:950
Symbol 948 BitmapUsed by:949
Symbol 949 GraphicUses:948Used by:950
Symbol 950 MovieClipUses:939 934 936 938 941 943 945 947 949Used by:971
Symbol 951 BitmapUsed by:952
Symbol 952 GraphicUses:951Used by:957 968
Symbol 953 BitmapUsed by:954
Symbol 954 GraphicUses:953Used by:957 968
Symbol 955 BitmapUsed by:956
Symbol 956 GraphicUses:955Used by:957 968
Symbol 957 MovieClipUses:952 954 956Used by:968
Symbol 958 BitmapUsed by:959
Symbol 959 GraphicUses:958Used by:968
Symbol 960 BitmapUsed by:961
Symbol 961 GraphicUses:960Used by:968
Symbol 962 BitmapUsed by:963
Symbol 963 GraphicUses:962Used by:968
Symbol 964 BitmapUsed by:965
Symbol 965 GraphicUses:964Used by:968
Symbol 966 BitmapUsed by:967
Symbol 967 GraphicUses:966Used by:968
Symbol 968 MovieClipUses:957 952 954 956 959 961 963 965 967Used by:971
Symbol 969 BitmapUsed by:970
Symbol 970 GraphicUses:969Used by:971
Symbol 971 MovieClipUses:399 950 968 970Used by:1116
Symbol 972 BitmapUsed by:973
Symbol 973 GraphicUses:972Used by:978 989
Symbol 974 BitmapUsed by:975
Symbol 975 GraphicUses:974Used by:978 989
Symbol 976 BitmapUsed by:977
Symbol 977 GraphicUses:976Used by:978 989
Symbol 978 MovieClipUses:973 975 977Used by:989
Symbol 979 BitmapUsed by:980
Symbol 980 GraphicUses:979Used by:989
Symbol 981 BitmapUsed by:982
Symbol 982 GraphicUses:981Used by:989
Symbol 983 BitmapUsed by:984
Symbol 984 GraphicUses:983Used by:989
Symbol 985 BitmapUsed by:986
Symbol 986 GraphicUses:985Used by:989
Symbol 987 BitmapUsed by:988
Symbol 988 GraphicUses:987Used by:989
Symbol 989 MovieClipUses:978 973 975 977 980 982 984 986 988Used by:1010
Symbol 990 BitmapUsed by:991
Symbol 991 GraphicUses:990Used by:996 1007
Symbol 992 BitmapUsed by:993
Symbol 993 GraphicUses:992Used by:996 1007
Symbol 994 BitmapUsed by:995
Symbol 995 GraphicUses:994Used by:996 1007
Symbol 996 MovieClipUses:991 993 995Used by:1007
Symbol 997 BitmapUsed by:998
Symbol 998 GraphicUses:997Used by:1007
Symbol 999 BitmapUsed by:1000
Symbol 1000 GraphicUses:999Used by:1007
Symbol 1001 BitmapUsed by:1002
Symbol 1002 GraphicUses:1001Used by:1007
Symbol 1003 BitmapUsed by:1004
Symbol 1004 GraphicUses:1003Used by:1007
Symbol 1005 BitmapUsed by:1006
Symbol 1006 GraphicUses:1005Used by:1007
Symbol 1007 MovieClipUses:996 991 993 995 998 1000 1002 1004 1006Used by:1010
Symbol 1008 BitmapUsed by:1009
Symbol 1009 GraphicUses:1008Used by:1010
Symbol 1010 MovieClipUses:399 989 1007 1009Used by:1116
Symbol 1011 BitmapUsed by:1012
Symbol 1012 GraphicUses:1011Used by:1017 1028
Symbol 1013 BitmapUsed by:1014
Symbol 1014 GraphicUses:1013Used by:1017 1028
Symbol 1015 BitmapUsed by:1016
Symbol 1016 GraphicUses:1015Used by:1017 1028
Symbol 1017 MovieClipUses:1012 1014 1016Used by:1028
Symbol 1018 BitmapUsed by:1019
Symbol 1019 GraphicUses:1018Used by:1028
Symbol 1020 BitmapUsed by:1021
Symbol 1021 GraphicUses:1020Used by:1028
Symbol 1022 BitmapUsed by:1023
Symbol 1023 GraphicUses:1022Used by:1028
Symbol 1024 BitmapUsed by:1025
Symbol 1025 GraphicUses:1024Used by:1028
Symbol 1026 BitmapUsed by:1027
Symbol 1027 GraphicUses:1026Used by:1028
Symbol 1028 MovieClipUses:1017 1012 1014 1016 1019 1021 1023 1025 1027Used by:1049
Symbol 1029 BitmapUsed by:1030
Symbol 1030 GraphicUses:1029Used by:1035 1046
Symbol 1031 BitmapUsed by:1032
Symbol 1032 GraphicUses:1031Used by:1035 1046
Symbol 1033 BitmapUsed by:1034
Symbol 1034 GraphicUses:1033Used by:1035 1046
Symbol 1035 MovieClipUses:1030 1032 1034Used by:1046
Symbol 1036 BitmapUsed by:1037
Symbol 1037 GraphicUses:1036Used by:1046
Symbol 1038 BitmapUsed by:1039
Symbol 1039 GraphicUses:1038Used by:1046
Symbol 1040 BitmapUsed by:1041
Symbol 1041 GraphicUses:1040Used by:1046
Symbol 1042 BitmapUsed by:1043
Symbol 1043 GraphicUses:1042Used by:1046
Symbol 1044 BitmapUsed by:1045
Symbol 1045 GraphicUses:1044Used by:1046
Symbol 1046 MovieClipUses:1035 1030 1032 1034 1037 1039 1041 1043 1045Used by:1049
Symbol 1047 BitmapUsed by:1048
Symbol 1048 GraphicUses:1047Used by:1049
Symbol 1049 MovieClipUses:399 1028 1046 1048Used by:1116
Symbol 1050 BitmapUsed by:1051
Symbol 1051 GraphicUses:1050Used by:1064
Symbol 1052 BitmapUsed by:1053
Symbol 1053 GraphicUses:1052Used by:1064
Symbol 1054 BitmapUsed by:1055
Symbol 1055 GraphicUses:1054Used by:1064
Symbol 1056 BitmapUsed by:1057
Symbol 1057 GraphicUses:1056Used by:1064
Symbol 1058 BitmapUsed by:1059
Symbol 1059 GraphicUses:1058Used by:1064
Symbol 1060 BitmapUsed by:1061
Symbol 1061 GraphicUses:1060Used by:1064
Symbol 1062 BitmapUsed by:1063
Symbol 1063 GraphicUses:1062Used by:1064
Symbol 1064 MovieClipUses:1051 1053 1055 1057 1059 1061 1063Used by:1082
Symbol 1065 BitmapUsed by:1066
Symbol 1066 GraphicUses:1065Used by:1079
Symbol 1067 BitmapUsed by:1068
Symbol 1068 GraphicUses:1067Used by:1079
Symbol 1069 BitmapUsed by:1070
Symbol 1070 GraphicUses:1069Used by:1079
Symbol 1071 BitmapUsed by:1072
Symbol 1072 GraphicUses:1071Used by:1079
Symbol 1073 BitmapUsed by:1074
Symbol 1074 GraphicUses:1073Used by:1079
Symbol 1075 BitmapUsed by:1076
Symbol 1076 GraphicUses:1075Used by:1079
Symbol 1077 BitmapUsed by:1078
Symbol 1078 GraphicUses:1077Used by:1079
Symbol 1079 MovieClipUses:1066 1068 1070 1072 1074 1076 1078Used by:1082
Symbol 1080 BitmapUsed by:1081
Symbol 1081 GraphicUses:1080Used by:1082
Symbol 1082 MovieClipUses:399 1064 1079 1081Used by:1116
Symbol 1083 BitmapUsed by:1084
Symbol 1084 GraphicUses:1083Used by:1097
Symbol 1085 BitmapUsed by:1086
Symbol 1086 GraphicUses:1085Used by:1097
Symbol 1087 BitmapUsed by:1088
Symbol 1088 GraphicUses:1087Used by:1097
Symbol 1089 BitmapUsed by:1090
Symbol 1090 GraphicUses:1089Used by:1097
Symbol 1091 BitmapUsed by:1092
Symbol 1092 GraphicUses:1091Used by:1097
Symbol 1093 BitmapUsed by:1094
Symbol 1094 GraphicUses:1093Used by:1097
Symbol 1095 BitmapUsed by:1096
Symbol 1096 GraphicUses:1095Used by:1097
Symbol 1097 MovieClipUses:1084 1086 1088 1090 1092 1094 1096Used by:1115
Symbol 1098 BitmapUsed by:1099
Symbol 1099 GraphicUses:1098Used by:1112
Symbol 1100 BitmapUsed by:1101
Symbol 1101 GraphicUses:1100Used by:1112
Symbol 1102 BitmapUsed by:1103
Symbol 1103 GraphicUses:1102Used by:1112
Symbol 1104 BitmapUsed by:1105
Symbol 1105 GraphicUses:1104Used by:1112
Symbol 1106 BitmapUsed by:1107
Symbol 1107 GraphicUses:1106Used by:1112
Symbol 1108 BitmapUsed by:1109
Symbol 1109 GraphicUses:1108Used by:1112
Symbol 1110 BitmapUsed by:1111
Symbol 1111 GraphicUses:1110Used by:1112
Symbol 1112 MovieClipUses:1099 1101 1103 1105 1107 1109 1111Used by:1115
Symbol 1113 BitmapUsed by:1114
Symbol 1114 GraphicUses:1113Used by:1115
Symbol 1115 MovieClipUses:399 1097 1112 1114Used by:1116
Symbol 1116 MovieClip [enemies]Uses:436 304 473 510 555 600 645 682 719 764 809 850 891 932 971 1010 1049 1082 1115Used by:1772
Symbol 1117 BitmapUsed by:1118
Symbol 1118 GraphicUses:1117Used by:1122
Symbol 1119 MovieClipUses:40Used by:1122
Symbol 1120 FontUsed by:1121
Symbol 1121 EditableTextUses:1120Used by:1122
Symbol 1122 MovieClip [titleScreenMC]Uses:1118 1119 1121Used by:1772
Symbol 1123 BitmapUsed by:1124
Symbol 1124 GraphicUses:1123Used by:1125
Symbol 1125 MovieClip [iconSpellScroll]Uses:1124Used by:1772
Symbol 1126 GraphicUsed by:1128 1129 1130 1131 1132 1133 1134 1135 1165
Symbol 1127 GraphicUsed by:1128 1129 1130 1131 1132 1133 1134 1135
Symbol 1128 ButtonUses:1126 1127Used by:1136
Symbol 1129 ButtonUses:1126 1127Used by:1136
Symbol 1130 ButtonUses:1126 1127Used by:1136
Symbol 1131 ButtonUses:1126 1127Used by:1136
Symbol 1132 ButtonUses:1126 1127Used by:1136
Symbol 1133 ButtonUses:1126 1127Used by:1136
Symbol 1134 ButtonUses:1126 1127Used by:1136
Symbol 1135 ButtonUses:1126 1127Used by:1136
Symbol 1136 MovieClip [screenMover]Uses:1128 1129 1130 1131 1132 1133 1134 1135Used by:1772
Symbol 1137 BitmapUsed by:1138 1142
Symbol 1138 GraphicUses:1137Used by:1141
Symbol 1139 BitmapUsed by:1140 1143
Symbol 1140 GraphicUses:1139Used by:1141
Symbol 1141 MovieClip [dirArrowUR]Uses:1138 1140Used by:1772
Symbol 1142 GraphicUses:1137Used by:1144
Symbol 1143 GraphicUses:1139Used by:1144
Symbol 1144 MovieClip [dirArrowUL]Uses:1142 1143Used by:1772
Symbol 1145 BitmapUsed by:1146 1150
Symbol 1146 GraphicUses:1145Used by:1149
Symbol 1147 BitmapUsed by:1148 1151
Symbol 1148 GraphicUses:1147Used by:1149
Symbol 1149 MovieClip [dirArrowDL]Uses:1146 1148Used by:1772
Symbol 1150 GraphicUses:1145Used by:1152
Symbol 1151 GraphicUses:1147Used by:1152
Symbol 1152 MovieClip [dirArrowDR]Uses:1150 1151Used by:1772
Symbol 1153 BitmapUsed by:1154
Symbol 1154 GraphicUses:1153Used by:1155
Symbol 1155 MovieClip [gameMaskMC]Uses:1154Used by:1772
Symbol 1156 BitmapUsed by:1157
Symbol 1157 GraphicUses:1156Used by:1158 1745
Symbol 1158 MovieClip [gameMaskLevelCompleteMC]Uses:1157 287Used by:1772
Symbol 1159 BitmapUsed by:1160
Symbol 1160 GraphicUses:1159Used by:1161
Symbol 1161 MovieClip [gameMaskGameOverMC]Uses:1160Used by:1772
Symbol 1162 BitmapUsed by:1163
Symbol 1163 GraphicUses:1162Used by:1164
Symbol 1164 MovieClipUses:1163Used by:1165
Symbol 1165 MovieClip [menuArrow]Uses:1126 1164Used by:1772
Symbol 1166 EditableTextUses:1 1191Used by:1169
Symbol 1167 EditableTextUses:1 1191Used by:1169
Symbol 1168 EditableTextUses:1 1191Used by:1169
Symbol 1169 MovieClip [actionButton]Uses:1166 1167 1168Used by:1772
Symbol 1170 EditableTextUses:1Used by:1176
Symbol 1171 EditableTextUses:1Used by:1176
Symbol 1172 EditableTextUses:1Used by:1176
Symbol 1173 EditableTextUses:1Used by:1176
Symbol 1174 EditableTextUses:1Used by:1176
Symbol 1175 EditableTextUses:1Used by:1176
Symbol 1176 MovieClip [spellTxtButton]Uses:1170 1171 1172 1173 1174 1175Used by:1772
Symbol 1177 BitmapUsed by:1178
Symbol 1178 GraphicUses:1177Used by:1179
Symbol 1179 MovieClipUses:1178Used by:1180
Symbol 1180 MovieClip [VS-MC]Uses:1179Used by:1772
Symbol 1181 BitmapUsed by:1182
Symbol 1182 GraphicUses:1181Used by:1183
Symbol 1183 MovieClip [frame-MC]Uses:1182Used by:1772
Symbol 1184 GraphicUsed by:1186
Symbol 1185 GraphicUsed by:1186
Symbol 1186 MovieClip [BG-MC]Uses:1184 1185Used by:1772
Symbol 1187 MovieClip [overlay-MC]Uses:287Used by:1772
Symbol 1188 BitmapUsed by:1189
Symbol 1189 GraphicUses:1188Used by:1190
Symbol 1190 MovieClipUses:1189Used by:1193
Symbol 1191 FontUsed by:3 5 6 28 30 31 1166 1167 1168 1192 1209 1210 1211 1212 1213 1214 1217 1218 1219 1233 1234 1235 1236 1237 1238 1241 1242 1243 1245 1246 1247 1248 1249 1250 1253 1254 1255 1256 1257 1258 1259 1260 1261 1264 1265 1266 1476 1708 1709 1710 1712 1713 1714 1740 1742 1743 1774 1776 1777
Symbol 1192 EditableTextUses:1 1191Used by:1193
Symbol 1193 MovieClip [windowActions]Uses:1190 1192 236Used by:1772
Symbol 1194 GraphicUsed by:1195
Symbol 1195 MovieClipUses:1194Used by:1196
Symbol 1196 MovieClip [windowDirectionButton]Uses:1195Used by:1772
Symbol 1197 MovieClip [windowDirection]Uses:236Used by:1772
Symbol 1198 FontUsed by:1199 1200 1201 1202 1203 1204
Symbol 1199 EditableTextUses:1198Used by:1205
Symbol 1200 EditableTextUses:1198Used by:1205
Symbol 1201 EditableTextUses:1198Used by:1205
Symbol 1202 EditableTextUses:1198Used by:1205
Symbol 1203 EditableTextUses:1198Used by:1205
Symbol 1204 EditableTextUses:1198Used by:1205
Symbol 1205 MovieClip [damageTxt]Uses:1199 1200 1201 1202 1203 1204Used by:1772
Symbol 1206 BitmapUsed by:1207
Symbol 1207 GraphicUses:1206Used by:1208
Symbol 1208 MovieClipUses:1207Used by:1244 1267
Symbol 1209 EditableTextUses:1 1191Used by:1244
Symbol 1210 EditableTextUses:1 1191Used by:1244
Symbol 1211 EditableTextUses:1 1191Used by:1244
Symbol 1212 EditableTextUses:1 1191Used by:1244
Symbol 1213 EditableTextUses:1 1191Used by:1244
Symbol 1214 EditableTextUses:1 1191Used by:1244
Symbol 1215 EditableTextUses:1Used by:1244
Symbol 1216 EditableTextUses:1Used by:1244
Symbol 1217 EditableTextUses:1 1191Used by:1244
Symbol 1218 EditableTextUses:1 1191Used by:1244
Symbol 1219 EditableTextUses:1 1191Used by:1244
Symbol 1220 BitmapUsed by:1221
Symbol 1221 GraphicUses:1220Used by:1244 1267
Symbol 1222 GraphicUsed by:1223 1479
Symbol 1223 MovieClipUses:1222Used by:1244 1267
Symbol 1224 BitmapUsed by:1225
Symbol 1225 GraphicUses:1224Used by:1226
Symbol 1226 MovieClipUses:1225Used by:1244 1267
Symbol 1227 BitmapUsed by:1228
Symbol 1228 GraphicUses:1227Used by:1229
Symbol 1229 MovieClipUses:1228Used by:1244 1267
Symbol 1230 BitmapUsed by:1231
Symbol 1231 GraphicUses:1230Used by:1232
Symbol 1232 MovieClipUses:1231Used by:1244 1267
Symbol 1233 EditableTextUses:1 1191Used by:1244
Symbol 1234 EditableTextUses:1 1191Used by:1244
Symbol 1235 EditableTextUses:1 1191Used by:1244
Symbol 1236 EditableTextUses:1 1191Used by:1244
Symbol 1237 EditableTextUses:1 1191Used by:1244
Symbol 1238 EditableTextUses:1 1191Used by:1244
Symbol 1239 EditableTextUses:1Used by:1244
Symbol 1240 EditableTextUses:1Used by:1244
Symbol 1241 EditableTextUses:1 1191Used by:1244
Symbol 1242 EditableTextUses:1 1191Used by:1244
Symbol 1243 EditableTextUses:1 1191Used by:1244
Symbol 1244 MovieClip [charInfoL-MC]Uses:1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1221 1223 1226 1229 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243Used by:1772
Symbol 1245 EditableTextUses:1 1191Used by:1267
Symbol 1246 EditableTextUses:1 1191Used by:1267
Symbol 1247 EditableTextUses:1 1191Used by:1267
Symbol 1248 EditableTextUses:1 1191Used by:1267
Symbol 1249 EditableTextUses:1 1191Used by:1267
Symbol 1250 EditableTextUses:1 1191Used by:1267
Symbol 1251 EditableTextUses:1Used by:1267
Symbol 1252 EditableTextUses:1Used by:1267
Symbol 1253 EditableTextUses:1 1191Used by:1267
Symbol 1254 EditableTextUses:1 1191Used by:1267
Symbol 1255 EditableTextUses:1 1191Used by:1267
Symbol 1256 EditableTextUses:1 1191Used by:1267
Symbol 1257 EditableTextUses:1 1191Used by:1267
Symbol 1258 EditableTextUses:1 1191Used by:1267
Symbol 1259 EditableTextUses:1 1191Used by:1267
Symbol 1260 EditableTextUses:1 1191Used by:1267
Symbol 1261 EditableTextUses:1 1191Used by:1267
Symbol 1262 EditableTextUses:1Used by:1267
Symbol 1263 EditableTextUses:1Used by:1267
Symbol 1264 EditableTextUses:1 1191Used by:1267
Symbol 1265 EditableTextUses:1 1191Used by:1267
Symbol 1266 EditableTextUses:1 1191Used by:1267
Symbol 1267 MovieClip [charInfoR-MC]Uses:1208 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1221 1223 1226 1229 1232 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266Used by:1772
Symbol 1268 MovieClip [Square]Used by:1772
Symbol 1269 BitmapUsed by:1270
Symbol 1270 GraphicUses:1269Used by:1271
Symbol 1271 MovieClip [textBox1GFX]Uses:1270Used by:1272 1772
Symbol 1272 MovieClip [textBox1MC]Uses:1271Used by:1772
Symbol 1273 MovieClip [playerIndicator]Uses:303Used by:1772
Symbol 1274 BitmapUsed by:1275
Symbol 1275 GraphicUses:1274Used by:1276
Symbol 1276 MovieClip [goldIcon]Uses:1275Used by:1772
Symbol 1277 BitmapUsed by:1278
Symbol 1278 GraphicUses:1277Used by:1279
Symbol 1279 MovieClip [textBox2MC]Uses:1278Used by:1772
Symbol 1280 BitmapUsed by:1281
Symbol 1281 GraphicUses:1280Used by:1282
Symbol 1282 MovieClip [iconLockPickManual]Uses:1281Used by:1772
Symbol 1283 BitmapUsed by:1284
Symbol 1284 GraphicUses:1283Used by:1285
Symbol 1285 MovieClip [iconGold]Uses:1284Used by:1772
Symbol 1286 BitmapUsed by:1287
Symbol 1287 GraphicUses:1286Used by:1288
Symbol 1288 MovieClip [iconAmberRobe]Uses:1287Used by:1772
Symbol 1289 BitmapUsed by:1290
Symbol 1290 GraphicUses:1289Used by:1291
Symbol 1291 MovieClip [iconSilkRobe]Uses:1290Used by:1772
Symbol 1292 BitmapUsed by:1293
Symbol 1293 GraphicUses:1292Used by:1294
Symbol 1294 MovieClip [iconCloak]Uses:1293Used by:1772
Symbol 1295 BitmapUsed by:1296
Symbol 1296 GraphicUses:1295Used by:1297
Symbol 1297 MovieClip [iconClothRobe]Uses:1296Used by:1772
Symbol 1298 BitmapUsed by:1299
Symbol 1299 GraphicUses:1298Used by:1300
Symbol 1300 MovieClip [iconLavaWand]Uses:1299Used by:1772
Symbol 1301 BitmapUsed by:1302
Symbol 1302 GraphicUses:1301Used by:1303
Symbol 1303 MovieClip [iconElementStaff]Uses:1302Used by:1772
Symbol 1304 BitmapUsed by:1305
Symbol 1305 GraphicUses:1304Used by:1306
Symbol 1306 MovieClip [iconWand]Uses:1305Used by:1772
Symbol 1307 BitmapUsed by:1308
Symbol 1308 GraphicUses:1307Used by:1309
Symbol 1309 MovieClip [iconWoodStaff]Uses:1308Used by:1772
Symbol 1310 BitmapUsed by:1311
Symbol 1311 GraphicUses:1310Used by:1312
Symbol 1312 MovieClip [iconFlameSword]Uses:1311Used by:1772
Symbol 1313 BitmapUsed by:1314
Symbol 1314 GraphicUses:1313Used by:1315
Symbol 1315 MovieClip [iconFalchion]Uses:1314Used by:1772
Symbol 1316 BitmapUsed by:1317
Symbol 1317 GraphicUses:1316Used by:1318
Symbol 1318 MovieClip [iconBroadSword]Uses:1317Used by:1772
Symbol 1319 BitmapUsed by:1320
Symbol 1320 GraphicUses:1319Used by:1321
Symbol 1321 MovieClip [iconIronSword]Uses:1320Used by:1772
Symbol 1322 BitmapUsed by:1323
Symbol 1323 GraphicUses:1322Used by:1324
Symbol 1324 MovieClip [iconPlateArmor]Uses:1323Used by:1772
Symbol 1325 BitmapUsed by:1326
Symbol 1326 GraphicUses:1325Used by:1327
Symbol 1327 MovieClip [iconChainMail]Uses:1326Used by:1772
Symbol 1328 BitmapUsed by:1329
Symbol 1329 GraphicUses:1328Used by:1330
Symbol 1330 MovieClip [iconIronArmor]Uses:1329Used by:1772
Symbol 1331 BitmapUsed by:1332
Symbol 1332 GraphicUses:1331Used by:1333
Symbol 1333 MovieClip [iconCupidBow]Uses:1332Used by:1772
Symbol 1334 BitmapUsed by:1335
Symbol 1335 GraphicUses:1334Used by:1336
Symbol 1336 MovieClip [iconIronDoublet]Uses:1335Used by:1772
Symbol 1337 BitmapUsed by:1338
Symbol 1338 GraphicUses:1337Used by:1339
Symbol 1339 MovieClip [iconIronVest]Uses:1338Used by:1772
Symbol 1340 BitmapUsed by:1341
Symbol 1341 GraphicUses:1340Used by:1342
Symbol 1342 MovieClip [iconLongBow]Uses:1341Used by:1772
Symbol 1343 BitmapUsed by:1344
Symbol 1344 GraphicUses:1343Used by:1345
Symbol 1345 MovieClip [iconMarksmanBow]Uses:1344Used by:1772
Symbol 1346 BitmapUsed by:1347
Symbol 1347 GraphicUses:1346Used by:1348
Symbol 1348 MovieClip [iconRoseGilet]Uses:1347Used by:1772
Symbol 1349 BitmapUsed by:1350
Symbol 1350 GraphicUses:1349Used by:1351
Symbol 1351 MovieClip [iconThiefGloves]Uses:1350Used by:1772
Symbol 1352 BitmapUsed by:1353
Symbol 1353 GraphicUses:1352Used by:1354
Symbol 1354 MovieClip [iconSpeedBoots]Uses:1353Used by:1772
Symbol 1355 BitmapUsed by:1356
Symbol 1356 GraphicUses:1355Used by:1357
Symbol 1357 MovieClip [iconSilverNecklace]Uses:1356Used by:1772
Symbol 1358 BitmapUsed by:1359
Symbol 1359 GraphicUses:1358Used by:1360
Symbol 1360 MovieClip [iconRubyPin]Uses:1359Used by:1772
Symbol 1361 BitmapUsed by:1362
Symbol 1362 GraphicUses:1361Used by:1363
Symbol 1363 MovieClip [iconPowerGlove]Uses:1362Used by:1772
Symbol 1364 BitmapUsed by:1365
Symbol 1365 GraphicUses:1364Used by:1366
Symbol 1366 MovieClip [iconMagicRing]Uses:1365Used by:1772
Symbol 1367 BitmapUsed by:1368
Symbol 1368 GraphicUses:1367Used by:1369
Symbol 1369 MovieClip [iconLuckyRibbon]Uses:1368Used by:1772
Symbol 1370 BitmapUsed by:1371
Symbol 1371 GraphicUses:1370Used by:1372
Symbol 1372 MovieClip [iconIronRing]Uses:1371Used by:1772
Symbol 1373 BitmapUsed by:1374
Symbol 1374 GraphicUses:1373Used by:1375
Symbol 1375 MovieClip [iconAmuletWarding]Uses:1374Used by:1772
Symbol 1376 BitmapUsed by:1377
Symbol 1377 GraphicUses:1376Used by:1378
Symbol 1378 MovieClip [iconResurrection]Uses:1377Used by:1772
Symbol 1379 BitmapUsed by:1380 1577
Symbol 1380 GraphicUses:1379Used by:1381
Symbol 1381 MovieClip [iconTreasure]Uses:1380Used by:1772
Symbol 1382 BitmapUsed by:1383
Symbol 1383 GraphicUses:1382Used by:1384
Symbol 1384 MovieClip [iconRustyArmor]Uses:1383Used by:1772
Symbol 1385 BitmapUsed by:1386
Symbol 1386 GraphicUses:1385Used by:1387
Symbol 1387 MovieClip [iconWoodenBow]Uses:1386Used by:1772
Symbol 1388 BitmapUsed by:1389
Symbol 1389 GraphicUses:1388Used by:1390
Symbol 1390 MovieClip [iconRustySword]Uses:1389Used by:1772
Symbol 1391 BitmapUsed by:1392
Symbol 1392 GraphicUses:1391Used by:1393
Symbol 1393 MovieClip [iconPoison]Uses:1392Used by:1772
Symbol 1394 BitmapUsed by:1395
Symbol 1395 GraphicUses:1394Used by:1396
Symbol 1396 MovieClip [iconDeath]Uses:1395Used by:1772
Symbol 1397 BitmapUsed by:1398
Symbol 1398 GraphicUses:1397Used by:1399
Symbol 1399 MovieClip [iconUltraLockpick]Uses:1398Used by:1772
Symbol 1400 BitmapUsed by:1401
Symbol 1401 GraphicUses:1400Used by:1402
Symbol 1402 MovieClip [iconIronLockpick]Uses:1401Used by:1772
Symbol 1403 BitmapUsed by:1404
Symbol 1404 GraphicUses:1403Used by:1405
Symbol 1405 MovieClip [iconRustyLockpick]Uses:1404Used by:1772
Symbol 1406 BitmapUsed by:1407
Symbol 1407 GraphicUses:1406Used by:1408
Symbol 1408 MovieClip [iconIronTusk]Uses:1407Used by:1772
Symbol 1409 BitmapUsed by:1410
Symbol 1410 GraphicUses:1409Used by:1411
Symbol 1411 MovieClip [iconPowerBar]Uses:1410Used by:1772
Symbol 1412 BitmapUsed by:1413
Symbol 1413 GraphicUses:1412Used by:1414
Symbol 1414 MovieClip [iconHPBooster]Uses:1413Used by:1772
Symbol 1415 BitmapUsed by:1416
Symbol 1416 GraphicUses:1415Used by:1417
Symbol 1417 MovieClip [iconMagicTonic]Uses:1416Used by:1772
Symbol 1418 BitmapUsed by:1419
Symbol 1419 GraphicUses:1418Used by:1420
Symbol 1420 MovieClip [iconManaRoot]Uses:1419Used by:1772
Symbol 1421 BitmapUsed by:1422
Symbol 1422 GraphicUses:1421Used by:1423
Symbol 1423 MovieClip [iconHealingHerb]Uses:1422Used by:1772
Symbol 1424 BitmapUsed by:1425
Symbol 1425 GraphicUses:1424Used by:1426
Symbol 1426 MovieClip [iconMegaElixer]Uses:1425Used by:1772
Symbol 1427 BitmapUsed by:1428
Symbol 1428 GraphicUses:1427Used by:1429
Symbol 1429 MovieClip [iconElixer]Uses:1428Used by:1772
Symbol 1430 BitmapUsed by:1431
Symbol 1431 GraphicUses:1430Used by:1432
Symbol 1432 MovieClip [iconManaPotion]Uses:1431Used by:1772
Symbol 1433 BitmapUsed by:1434
Symbol 1434 GraphicUses:1433Used by:1435
Symbol 1435 MovieClip [iconSmallManaPotion]Uses:1434Used by:1772
Symbol 1436 BitmapUsed by:1437
Symbol 1437 GraphicUses:1436Used by:1438
Symbol 1438 MovieClip [iconAntidote]Uses:1437Used by:1772
Symbol 1439 BitmapUsed by:1440
Symbol 1440 GraphicUses:1439Used by:1441
Symbol 1441 MovieClip [iconLargePotion]Uses:1440Used by:1772
Symbol 1442 BitmapUsed by:1443
Symbol 1443 GraphicUses:1442Used by:1444
Symbol 1444 MovieClip [iconMediumPotion]Uses:1443Used by:1772
Symbol 1445 BitmapUsed by:1446
Symbol 1446 GraphicUses:1445Used by:1447
Symbol 1447 MovieClip [iconSmallPotion]Uses:1446Used by:1772
Symbol 1448 BitmapUsed by:1449
Symbol 1449 GraphicUses:1448Used by:1450
Symbol 1450 MovieClip [iconDisabled]Uses:1449Used by:1772
Symbol 1451 BitmapUsed by:1452
Symbol 1452 GraphicUses:1451Used by:1453
Symbol 1453 MovieClipUses:1452Used by:1468 1772
Symbol 1454 BitmapUsed by:1455
Symbol 1455 GraphicUses:1454Used by:1456
Symbol 1456 MovieClipUses:1455Used by:1468 1772
Symbol 1457 BitmapUsed by:1458
Symbol 1458 GraphicUses:1457Used by:1459 1463
Symbol 1459 MovieClipUses:1458Used by:1468 1772
Symbol 1460 BitmapUsed by:1461
Symbol 1461 GraphicUses:1460Used by:1462
Symbol 1462 MovieClip [treasureBG]Uses:1461Used by:1772
Symbol 1463 MovieClipUses:1458Used by:1772
Symbol 1464 BitmapUsed by:1465
Symbol 1465 GraphicUses:1464Used by:1466
Symbol 1466 MovieClipUses:1465Used by:1467 1772
Symbol 1467 MovieClip [lockMC]Uses:1466Used by:1772
Symbol 1468 MovieClip [lockpickMC]Uses:1459 1456 1453Used by:1772
Symbol 1469 GraphicUsed by:1470
Symbol 1470 MovieClip [treasureOverlay]Uses:1469Used by:1772
Symbol 1471 BitmapUsed by:1472
Symbol 1472 GraphicUses:1471Used by:1473
Symbol 1473 MovieClipUses:1472Used by:1483 1772
Symbol 1474 BitmapUsed by:1475
Symbol 1475 GraphicUses:1474Used by:1483
Symbol 1476 EditableTextUses:1 1191Used by:1483
Symbol 1477 BitmapUsed by:1478
Symbol 1478 GraphicUses:1477Used by:1483
Symbol 1479 MovieClipUses:1222Used by:1483 1546 1609
Symbol 1480 BitmapUsed by:1481
Symbol 1481 GraphicUses:1480Used by:1482
Symbol 1482 MovieClipUses:1481Used by:1483 1546 1609
Symbol 1483 MovieClip [lockpickInfo]Uses:1473 1475 1476 1478 1479 1482Used by:1772
Symbol 1484 BitmapUsed by:1485
Symbol 1485 GraphicUses:1484Used by:1486
Symbol 1486 MovieClipUses:1485Used by:1546 1609 1772
Symbol 1487 BitmapUsed by:1488
Symbol 1488 GraphicUses:1487Used by:1489
Symbol 1489 MovieClipUses:1488Used by:1490 1772
Symbol 1490 MovieClip [poisonSmokeMC]Uses:1489Used by:1772
Symbol 1491 BitmapUsed by:1492
Symbol 1492 GraphicUses:1491Used by:1501
Symbol 1493 BitmapUsed by:1494
Symbol 1494 GraphicUses:1493Used by:1501
Symbol 1495 BitmapUsed by:1496
Symbol 1496 GraphicUses:1495Used by:1501
Symbol 1497 BitmapUsed by:1498
Symbol 1498 GraphicUses:1497Used by:1501
Symbol 1499 BitmapUsed by:1500
Symbol 1500 GraphicUses:1499Used by:1501
Symbol 1501 MovieClipUses:1492 1494 1496 1498 1500Used by:1502
Symbol 1502 MovieClip [flameMC]Uses:1501Used by:1772
Symbol 1503 BitmapUsed by:1504
Symbol 1504 GraphicUses:1503Used by:1505
Symbol 1505 MovieClipUses:1504Used by:1509
Symbol 1506 GraphicUsed by:1509
Symbol 1507 GraphicUsed by:1508
Symbol 1508 MovieClipUses:1507Used by:1509
Symbol 1509 MovieClip [spellFreezeMC]Uses:1505 1506 1508Used by:1772
Symbol 1510 BitmapUsed by:1511
Symbol 1511 GraphicUses:1510Used by:1512
Symbol 1512 MovieClipUses:1511Used by:1519
Symbol 1513 BitmapUsed by:1514
Symbol 1514 GraphicUses:1513Used by:1515
Symbol 1515 MovieClipUses:1514Used by:1519
Symbol 1516 BitmapUsed by:1517
Symbol 1517 GraphicUses:1516Used by:1518
Symbol 1518 MovieClipUses:1517Used by:1519
Symbol 1519 MovieClip [spellLightningMC]Uses:1512 1515 1518Used by:1772
Symbol 1520 BitmapUsed by:1521
Symbol 1521 GraphicUses:1520Used by:1522
Symbol 1522 MovieClip [lockpickingGuideMC]Uses:1521Used by:1772
Symbol 1523 GraphicUsed by:1524
Symbol 1524 MovieClip [statusEquipmentDescMC]Uses:1523Used by:1772
Symbol 1525 GraphicUsed by:1526
Symbol 1526 MovieClip [statusNextCharArrow]Uses:1525Used by:1772
Symbol 1527 BitmapUsed by:1528
Symbol 1528 GraphicUses:1527Used by:1529
Symbol 1529 MovieClip [statusItemAlert]Uses:1528Used by:1772
Symbol 1530 GraphicUsed by:1531
Symbol 1531 MovieClipUses:1530Used by:1546 1772
Symbol 1532 BitmapUsed by:1533
Symbol 1533 GraphicUses:1532Used by:1534
Symbol 1534 MovieClipUses:1533Used by:1546 1772
Symbol 1535 EditableTextUses:1Used by:1546
Symbol 1536 EditableTextUses:1Used by:1546
Symbol 1537 EditableTextUses:1Used by:1546
Symbol 1538 EditableTextUses:1Used by:1546
Symbol 1539 EditableTextUses:1Used by:1546
Symbol 1540 EditableTextUses:1Used by:1546
Symbol 1541 EditableTextUses:1Used by:1546
Symbol 1542 EditableTextUses:1Used by:1546
Symbol 1543 EditableTextUses:1Used by:1546
Symbol 1544 BitmapUsed by:1545 1608
Symbol 1545 GraphicUses:1544Used by:1546
Symbol 1546 MovieClip [statusCharStats]Uses:1531 1535 1536 1537 1538 1539 1540 1541 1542 1543 1545 1479 1482 1486 1534Used by:1772
Symbol 1547 BitmapUsed by:1548 1552 1558 1577
Symbol 1548 GraphicUses:1547Used by:1550
Symbol 1549 EditableTextUses:1Used by:1550
Symbol 1550 MovieClip [statusTreasures]Uses:1548 1549Used by:1772
Symbol 1551 BitmapUsed by:1552 1558 1577
Symbol 1552 GraphicUses:1551 1547Used by:1556
Symbol 1553 EditableTextUses:1Used by:1556
Symbol 1554 EditableTextUses:1Used by:1556
Symbol 1555 EditableTextUses:1Used by:1556
Symbol 1556 MovieClip [statusItems]Uses:1552 1553 1554 1555Used by:1772
Symbol 1557 BitmapUsed by:1558 1577
Symbol 1558 GraphicUses:1557 1551 1547Used by:1576
Symbol 1559 EditableTextUses:1Used by:1576
Symbol 1560 EditableTextUses:1Used by:1576
Symbol 1561 EditableTextUses:1Used by:1576
Symbol 1562 EditableTextUses:1Used by:1576
Symbol 1563 EditableTextUses:1Used by:1576
Symbol 1564 EditableTextUses:1Used by:1576
Symbol 1565 EditableTextUses:1Used by:1576
Symbol 1566 EditableTextUses:1Used by:1576
Symbol 1567 EditableTextUses:1Used by:1576
Symbol 1568 EditableTextUses:1Used by:1576
Symbol 1569 EditableTextUses:1Used by:1576
Symbol 1570 EditableTextUses:1Used by:1576
Symbol 1571 EditableTextUses:1Used by:1576
Symbol 1572 EditableTextUses:1Used by:1576
Symbol 1573 EditableTextUses:1Used by:1576
Symbol 1574 EditableTextUses:1Used by:1576
Symbol 1575 EditableTextUses:1Used by:1576
Symbol 1576 MovieClip [statusEquipment]Uses:1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575Used by:1772
Symbol 1577 GraphicUses:1379 1557 1551 1547Used by:1609
Symbol 1578 EditableTextUses:1Used by:1609
Symbol 1579 EditableTextUses:1Used by:1609
Symbol 1580 EditableTextUses:1Used by:1609
Symbol 1581 EditableTextUses:1Used by:1609
Symbol 1582 EditableTextUses:1Used by:1609
Symbol 1583 EditableTextUses:1Used by:1609
Symbol 1584 EditableTextUses:1Used by:1609
Symbol 1585 EditableTextUses:1Used by:1609
Symbol 1586 EditableTextUses:1Used by:1609
Symbol 1587 EditableTextUses:1Used by:1609
Symbol 1588 EditableTextUses:1Used by:1609
Symbol 1589 EditableTextUses:1Used by:1609
Symbol 1590 EditableTextUses:1Used by:1609
Symbol 1591 EditableTextUses:1Used by:1609
Symbol 1592 EditableTextUses:1Used by:1609
Symbol 1593 EditableTextUses:1Used by:1609
Symbol 1594 EditableTextUses:1Used by:1609
Symbol 1595 EditableTextUses:1Used by:1609
Symbol 1596 EditableTextUses:1Used by:1609
Symbol 1597 EditableTextUses:1Used by:1609
Symbol 1598 EditableTextUses:1Used by:1609
Symbol 1599 EditableTextUses:1Used by:1609
Symbol 1600 EditableTextUses:1Used by:1609
Symbol 1601 EditableTextUses:1Used by:1609
Symbol 1602 EditableTextUses:1Used by:1609
Symbol 1603 EditableTextUses:1Used by:1609
Symbol 1604 EditableTextUses:1Used by:1609
Symbol 1605 EditableTextUses:1Used by:1609
Symbol 1606 EditableTextUses:1Used by:1609
Symbol 1607 EditableTextUses:1Used by:1609
Symbol 1608 GraphicUses:1544Used by:1609
Symbol 1609 MovieClip [statusStatsMain]Uses:1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1479 1482 1486Used by:1772
Symbol 1610 BitmapUsed by:1611
Symbol 1611 GraphicUses:1610Used by:1612
Symbol 1612 MovieClip [statusCharsBG]Uses:1611Used by:1772
Symbol 1613 BitmapUsed by:1614
Symbol 1614 GraphicUses:1613Used by:1619
Symbol 1615 EditableTextUses:1Used by:1619
Symbol 1616 EditableTextUses:1Used by:1619
Symbol 1617 EditableTextUses:1Used by:1619
Symbol 1618 EditableTextUses:1Used by:1619
Symbol 1619 MovieClip [statusBG]Uses:1614 1615 1616 1617 1618Used by:1772
Symbol 1620 BitmapUsed by:1621 1623
Symbol 1621 GraphicUses:1620Used by:1625
Symbol 1622 EditableTextUses:1Used by:1625
Symbol 1623 GraphicUses:1620Used by:1625
Symbol 1624 EditableTextUses:1Used by:1625
Symbol 1625 MovieClip [menuStats]Uses:1621 1622 1623 1624Used by:1772
Symbol 1626 GraphicUsed by:1632 1637 1656
Symbol 1627 EditableTextUses:1Used by:1632
Symbol 1628 BitmapUsed by:1629
Symbol 1629 GraphicUses:1628Used by:1632
Symbol 1630 GraphicUsed by:1632 1637 1656
Symbol 1631 EditableTextUses:1Used by:1632
Symbol 1632 MovieClip [menuItems]Uses:1626 1627 1629 1630 1631Used by:1772
Symbol 1633 EditableTextUses:1Used by:1637
Symbol 1634 BitmapUsed by:1635
Symbol 1635 GraphicUses:1634Used by:1637
Symbol 1636 EditableTextUses:1Used by:1637
Symbol 1637 MovieClip [menuEquipment]Uses:1626 1633 1635 1630 1636Used by:1772
Symbol 1638 GraphicUsed by:1644 1661
Symbol 1639 EditableTextUses:1Used by:1644
Symbol 1640 BitmapUsed by:1641
Symbol 1641 GraphicUses:1640Used by:1644
Symbol 1642 GraphicUsed by:1644 1661
Symbol 1643 EditableTextUses:1Used by:1644
Symbol 1644 MovieClip [menuSound]Uses:1638 1639 1641 1642 1643Used by:1772
Symbol 1645 GraphicUsed by:1651
Symbol 1646 EditableTextUses:1Used by:1651
Symbol 1647 BitmapUsed by:1648
Symbol 1648 GraphicUses:1647Used by:1651
Symbol 1649 GraphicUsed by:1651
Symbol 1650 EditableTextUses:1Used by:1651
Symbol 1651 MovieClip [menuTreasures]Uses:1645 1646 1648 1649 1650Used by:1772
Symbol 1652 EditableTextUses:1Used by:1656
Symbol 1653 BitmapUsed by:1654
Symbol 1654 GraphicUses:1653Used by:1656
Symbol 1655 EditableTextUses:1Used by:1656
Symbol 1656 MovieClip [menuExit]Uses:1626 1652 1654 1630 1655Used by:1772
Symbol 1657 EditableTextUses:1Used by:1661
Symbol 1658 BitmapUsed by:1659
Symbol 1659 GraphicUses:1658Used by:1661
Symbol 1660 EditableTextUses:1Used by:1661
Symbol 1661 MovieClip [menuSave]Uses:1638 1657 1659 1642 1660Used by:1772
Symbol 1662 EditableTextUses:1Used by:1663
Symbol 1663 MovieClip [menuSaveAlert]Uses:1662Used by:1772
Symbol 1664 BitmapUsed by:1665
Symbol 1665 GraphicUses:1664Used by:1666
Symbol 1666 MovieClip [textBoxWarrior]Uses:1665Used by:1772
Symbol 1667 BitmapUsed by:1668
Symbol 1668 GraphicUses:1667Used by:1669
Symbol 1669 MovieClip [textBoxMage]Uses:1668Used by:1772
Symbol 1670 BitmapUsed by:1671
Symbol 1671 GraphicUses:1670Used by:1672
Symbol 1672 MovieClip [textBoxThief]Uses:1671Used by:1772
Symbol 1673 BitmapUsed by:1674
Symbol 1674 GraphicUses:1673Used by:1675
Symbol 1675 MovieClip [textBoxGold]Uses:1674Used by:1772
Symbol 1676 BitmapUsed by:1677
Symbol 1677 GraphicUses:1676Used by:1678
Symbol 1678 MovieClip [shopDiffDecrease]Uses:1677Used by:1772
Symbol 1679 BitmapUsed by:1680
Symbol 1680 GraphicUses:1679Used by:1681
Symbol 1681 MovieClip [shopDiffIncrease]Uses:1680Used by:1772
Symbol 1682 BitmapUsed by:1683
Symbol 1683 GraphicUses:1682Used by:1684
Symbol 1684 MovieClip [shopDiffEqual]Uses:1683Used by:1772
Symbol 1685 BitmapUsed by:1686
Symbol 1686 GraphicUses:1685Used by:1687
Symbol 1687 MovieClip [textBoxShop]Uses:1686Used by:1772
Symbol 1688 BitmapUsed by:1689
Symbol 1689 GraphicUses:1688Used by:1690
Symbol 1690 MovieClip [mapTextbox1]Uses:1689Used by:1772
Symbol 1691 BitmapUsed by:1692
Symbol 1692 GraphicUses:1691Used by:1693
Symbol 1693 MovieClip [mapMarker2]Uses:1692Used by:1772
Symbol 1694 BitmapUsed by:1695
Symbol 1695 GraphicUses:1694Used by:1696
Symbol 1696 MovieClip [mapMarker1]Uses:1695Used by:1772
Symbol 1697 GraphicUsed by:1698
Symbol 1698 MovieClipUses:1697Used by:1707 1772
Symbol 1699 BitmapUsed by:1700
Symbol 1700 GraphicUses:1699Used by:1701
Symbol 1701 MovieClip [cloud1]Uses:1700Used by:1772
Symbol 1702 BitmapUsed by:1703
Symbol 1703 GraphicUses:1702Used by:1704
Symbol 1704 MovieClip [cloud2]Uses:1703Used by:1772
Symbol 1705 BitmapUsed by:1706
Symbol 1706 GraphicUses:1705Used by:1707
Symbol 1707 MovieClip [worldMap]Uses:1706 1698Used by:1772
Symbol 1708 EditableTextUses:1 1191Used by:1711
Symbol 1709 EditableTextUses:1 1191Used by:1711
Symbol 1710 EditableTextUses:1 1191Used by:1711
Symbol 1711 Button [mapMenu]Uses:2 1708 4 1709 1710Used by:1772
Symbol 1712 EditableTextUses:1 1191Used by:1715
Symbol 1713 EditableTextUses:1 1191Used by:1715
Symbol 1714 EditableTextUses:1 1191Used by:1715
Symbol 1715 Button [mapSave]Uses:2 1712 4 1713 1714Used by:1772
Symbol 1716 MovieClip [mapInnOverlay]Uses:25Used by:1772
Symbol 1717 BitmapUsed by:1718
Symbol 1718 GraphicUses:1717Used by:1719
Symbol 1719 MovieClip [textBoxGrandpa]Uses:1718Used by:1772
Symbol 1720 BitmapUsed by:1721
Symbol 1721 GraphicUses:1720Used by:1722
Symbol 1722 MovieClip [textBoxPortrait]Uses:1721Used by:1772
Symbol 1723 BitmapUsed by:1724
Symbol 1724 GraphicUses:1723Used by:1725
Symbol 1725 MovieClipUses:1724Used by:1726 1772
Symbol 1726 MovieClip [textBoxArrow]Uses:1725Used by:1772
Symbol 1727 BitmapUsed by:1728
Symbol 1728 GraphicUses:1727Used by:1729
Symbol 1729 MovieClip [textBoxInn]Uses:1728Used by:1772
Symbol 1730 BitmapUsed by:1731
Symbol 1731 GraphicUses:1730Used by:1732
Symbol 1732 MovieClip [textBoxMissions]Uses:1731Used by:1772
Symbol 1733 BitmapUsed by:1734
Symbol 1734 GraphicUses:1733Used by:1735
Symbol 1735 MovieClip [textBox3MC]Uses:1734Used by:1772
Symbol 1736 BitmapUsed by:1737
Symbol 1737 GraphicUses:1736Used by:1738
Symbol 1738 MovieClip [themeMusicButton]Uses:1737Used by:1772
Symbol 1739 GraphicUsed by:1744
Symbol 1740 EditableTextUses:1 1191Used by:1744
Symbol 1741 GraphicUsed by:1744
Symbol 1742 EditableTextUses:1 1191Used by:1744
Symbol 1743 EditableTextUses:1 1191Used by:1744
Symbol 1744 Button [shopLeaveButton]Uses:1739 1740 1741 1742 1743Used by:1772
Symbol 1745 MovieClip [gameMaskMissionCompleteMC]Uses:1157 287Used by:1772
Symbol 1746 Sound [likwidIntroSnd]Used by:1772
Symbol 1747 Sound [gameoverSnd]Used by:1772
Symbol 1748 Sound [deathSnd]Used by:1772
Symbol 1749 Sound [missSnd]Used by:1772
Symbol 1750 Sound [startLevelSnd]Used by:1772
Symbol 1751 Sound [treasureOpenSnd]Used by:1772
Symbol 1752 Sound [swordSnd]Used by:1772
Symbol 1753 Sound [chooseTileSnd]Used by:1772
Symbol 1754 Sound [lockUnlockedSnd]Used by:1772
Symbol 1755 Sound [lockpickingSnd]Used by:1772
Symbol 1756 Sound [lockpickBreakSnd]Used by:1772
Symbol 1757 Sound [lightningSnd]Used by:1772
Symbol 1758 Sound [levelupSnd]Used by:1772
Symbol 1759 Sound [damageSnd]Used by:1772
Symbol 1760 Sound [healSnd]Used by:1772
Symbol 1761 Sound [freezeSnd]Used by:1772
Symbol 1762 Sound [foundItemSnd]Used by:1772
Symbol 1763 Sound [fireSnd]Used by:1772
Symbol 1764 Sound [treasureDropSnd]Used by:1772
Symbol 1765 Sound [expSnd]Used by:1772
Symbol 1766 Sound [endLevelSnd]Used by:1772
Symbol 1767 Sound [buttonSnd]Used by:1772
Symbol 1768 Sound [archerSnd]Used by:1772
Symbol 1769 Sound [levelSnd]Used by:1772
Symbol 1770 Sound [themeMusicSnd]Used by:1772
Symbol 1771 Sound [worldMapMusic]Used by:1772
Symbol 1772 MovieClipUses:87 93 223 225 226 229 234 238 398 366 1116 1122 1125 1136 1141 1144 1149 1152 1155 1158 1161 1165 1169 1176 1180 1183 1186 1187 288 1193 1196 1197 1205 1244 1267 1268 1271 1272 1273 1276 1279 1282 1285 1288 1291 1294 1297 1300 1303 1306 1309 1312 1315 1318 1321 1324 1327 1330 1333 1336 1339 1342 1345 1348 1351 1354 1357 1360 1363 1366 1369 1372 1375 1378 1381 1384 1387 1390 1393 1396 1399 1402 1405 1408 1411 1414 1417 1420 1423 1426 1429 1432 1435 1438 1441 1444 1447 1450 1453 1456 1459 1462 1463 1466 1467 1468 1470 1473 1483 1486 1489 1490 90 1502 1509 1519 1522 1524 1526 1529 1531 1534 1546 1550 1556 1576 1609 1612 1619 1625 1632 1637 1644 1651 1656 1661 1663 1666 1669 1672 1675 1678 1681 1684 1687 1690 1693 1696 1698 1701 1704 1707 1711 1715 1716 1719 1722 1725 1726 1729 1732 1735 1738 1744 35 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771Used by:Timeline
Symbol 1773 GraphicUsed by:1778
Symbol 1774 EditableTextUses:1 1191Used by:1778
Symbol 1775 GraphicUsed by:1778
Symbol 1776 EditableTextUses:1 1191Used by:1778
Symbol 1777 EditableTextUses:1 1191Used by:1778
Symbol 1778 Button [statusNextCharButton]Uses:1773 1774 1775 1776 1777Used by:Timeline
Symbol 1779 MovieClipUses:60Used by:Timeline

Instance Names

"preloaderBar"Frame 1Symbol 24 MovieClip
"adBox"Frame 1Symbol 26 MovieClip
"startGameButt"Frame 1Symbol 32 Button
"versionMC"Frame 1Symbol 43 MovieClip
"_logo_mc"Symbol 16 MovieClip [RainDropEffectAS2] Frame 1Symbol 15 MovieClip
"loaderBar"Symbol 24 MovieClip Frame 1Symbol 23 MovieClip
"logo_ro"Symbol 41 MovieClip Frame 1Symbol 40 MovieClip
"play_latest_text"Symbol 77 MovieClip Frame 1Symbol 76 MovieClip
"link"Symbol 78 MovieClip Frame 1Symbol 45 MovieClip
"play_latest_text"Symbol 78 MovieClip Frame 79Symbol 76 MovieClip
"play_latest_text"Symbol 78 MovieClip Frame 117Symbol 76 MovieClip
"myLogo"Symbol 83 MovieClip Frame 1Symbol 82 MovieClip
"logoMC"Symbol 87 MovieClip Frame 2Symbol 83 MovieClip
"rainDropInstance"Symbol 87 MovieClip Frame 2Symbol 16 MovieClip [RainDropEffectAS2]
"tileHit"Symbol 223 MovieClip [tiles] Frame 1Symbol 99 MovieClip
"range"Symbol 223 MovieClip [tiles] Frame 1Symbol 99 MovieClip
"selected"Symbol 223 MovieClip [tiles] Frame 1Symbol 102 MovieClip
"viewMC"Symbol 285 MovieClip Frame 1Symbol 260 MovieClip
"viewMC"Symbol 285 MovieClip Frame 3Symbol 282 MovieClip
"viewMC"Symbol 349 MovieClip Frame 1Symbol 325 MovieClip
"viewMC"Symbol 349 MovieClip Frame 3Symbol 346 MovieClip
"viewMC"Symbol 397 MovieClip Frame 1Symbol 373 MovieClip
"viewMC"Symbol 397 MovieClip Frame 3Symbol 394 MovieClip
"charMC"Symbol 398 MovieClip [defenders] Frame 1Symbol 285 MovieClip
"hover"Symbol 398 MovieClip [defenders] Frame 1Symbol 288 MovieClip [windowActionsMask]
"rangeMC"Symbol 398 MovieClip [defenders] Frame 1Symbol 288 MovieClip [windowActionsMask]
"indicator"Symbol 398 MovieClip [defenders] Frame 1Symbol 304 MovieClip
"charMC"Symbol 398 MovieClip [defenders] Frame 2Symbol 349 MovieClip
"charMC"Symbol 398 MovieClip [defenders] Frame 3Symbol 397 MovieClip
"viewMC"Symbol 436 MovieClip Frame 1Symbol 416 MovieClip
"viewMC"Symbol 436 MovieClip Frame 3Symbol 433 MovieClip
"viewMC"Symbol 473 MovieClip Frame 1Symbol 453 MovieClip
"viewMC"Symbol 473 MovieClip Frame 3Symbol 470 MovieClip
"viewMC"Symbol 510 MovieClip Frame 1Symbol 490 MovieClip
"viewMC"Symbol 510 MovieClip Frame 3Symbol 507 MovieClip
"viewMC"Symbol 555 MovieClip Frame 1Symbol 531 MovieClip
"viewMC"Symbol 555 MovieClip Frame 3Symbol 552 MovieClip
"viewMC"Symbol 600 MovieClip Frame 1Symbol 576 MovieClip
"viewMC"Symbol 600 MovieClip Frame 3Symbol 597 MovieClip
"viewMC"Symbol 645 MovieClip Frame 1Symbol 621 MovieClip
"viewMC"Symbol 645 MovieClip Frame 3Symbol 642 MovieClip
"viewMC"Symbol 682 MovieClip Frame 1Symbol 662 MovieClip
"viewMC"Symbol 682 MovieClip Frame 3Symbol 679 MovieClip
"viewMC"Symbol 719 MovieClip Frame 1Symbol 699 MovieClip
"viewMC"Symbol 719 MovieClip Frame 3Symbol 716 MovieClip
"viewMC"Symbol 764 MovieClip Frame 1Symbol 740 MovieClip
"viewMC"Symbol 764 MovieClip Frame 3Symbol 761 MovieClip
"viewMC"Symbol 809 MovieClip Frame 1Symbol 785 MovieClip
"viewMC"Symbol 809 MovieClip Frame 3Symbol 806 MovieClip
"viewMC"Symbol 850 MovieClip Frame 1Symbol 828 MovieClip
"viewMC"Symbol 850 MovieClip Frame 3Symbol 847 MovieClip
"viewMC"Symbol 891 MovieClip Frame 1Symbol 869 MovieClip
"viewMC"Symbol 891 MovieClip Frame 3Symbol 888 MovieClip
"viewMC"Symbol 932 MovieClip Frame 1Symbol 910 MovieClip
"viewMC"Symbol 932 MovieClip Frame 3Symbol 929 MovieClip
"viewMC"Symbol 971 MovieClip Frame 1Symbol 950 MovieClip
"viewMC"Symbol 971 MovieClip Frame 3Symbol 968 MovieClip
"viewMC"Symbol 1010 MovieClip Frame 1Symbol 989 MovieClip
"viewMC"Symbol 1010 MovieClip Frame 3Symbol 1007 MovieClip
"viewMC"Symbol 1049 MovieClip Frame 1Symbol 1028 MovieClip
"viewMC"Symbol 1049 MovieClip Frame 3Symbol 1046 MovieClip
"viewMC"Symbol 1082 MovieClip Frame 1Symbol 1064 MovieClip
"viewMC"Symbol 1082 MovieClip Frame 3Symbol 1079 MovieClip
"viewMC"Symbol 1115 MovieClip Frame 1Symbol 1097 MovieClip
"viewMC"Symbol 1115 MovieClip Frame 3Symbol 1112 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 2Symbol 436 MovieClip
"indicator"Symbol 1116 MovieClip [enemies] Frame 2Symbol 304 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 3Symbol 473 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 4Symbol 510 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 5Symbol 555 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 6Symbol 600 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 7Symbol 645 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 8Symbol 682 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 10Symbol 719 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 11Symbol 764 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 12Symbol 809 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 14Symbol 850 MovieClip
"indicator"Symbol 1116 MovieClip [enemies] Frame 14Symbol 304 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 17Symbol 891 MovieClip
"indicator"Symbol 1116 MovieClip [enemies] Frame 17Symbol 304 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 18Symbol 932 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 20Symbol 971 MovieClip
"indicator"Symbol 1116 MovieClip [enemies] Frame 20Symbol 304 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 21Symbol 1010 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 22Symbol 1049 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 23Symbol 1082 MovieClip
"charMC"Symbol 1116 MovieClip [enemies] Frame 25Symbol 1115 MovieClip
"indicator"Symbol 1116 MovieClip [enemies] Frame 25Symbol 304 MovieClip
"logo_ro"Symbol 1119 MovieClip Frame 1Symbol 40 MovieClip
"myArrow"Symbol 1165 MovieClip [menuArrow] Frame 1Symbol 1164 MovieClip
"actionName"Symbol 1169 MovieClip [actionButton] Frame 1Symbol 1166 EditableText
"actionName"Symbol 1169 MovieClip [actionButton] Frame 2Symbol 1167 EditableText
"actionName"Symbol 1169 MovieClip [actionButton] Frame 3Symbol 1168 EditableText
"spellName"Symbol 1176 MovieClip [spellTxtButton] Frame 1Symbol 1170 EditableText
"spellMana"Symbol 1176 MovieClip [spellTxtButton] Frame 1Symbol 1171 EditableText
"spellName"Symbol 1176 MovieClip [spellTxtButton] Frame 2Symbol 1172 EditableText
"spellMana"Symbol 1176 MovieClip [spellTxtButton] Frame 2Symbol 1173 EditableText
"spellName"Symbol 1176 MovieClip [spellTxtButton] Frame 3Symbol 1174 EditableText
"spellMana"Symbol 1176 MovieClip [spellTxtButton] Frame 3Symbol 1175 EditableText
"directionButton"Symbol 1196 MovieClip [windowDirectionButton] Frame 1Symbol 1195 MovieClip
"txt"Symbol 1205 MovieClip [damageTxt] Frame 1Symbol 1199 EditableText
"txt"Symbol 1205 MovieClip [damageTxt] Frame 2Symbol 1200 EditableText
"txt"Symbol 1205 MovieClip [damageTxt] Frame 3Symbol 1201 EditableText
"txt"Symbol 1205 MovieClip [damageTxt] Frame 4Symbol 1202 EditableText
"txt"Symbol 1205 MovieClip [damageTxt] Frame 5Symbol 1203 EditableText
"txt"Symbol 1205 MovieClip [damageTxt] Frame 6Symbol 1204 EditableText
"HPMax"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1211 EditableText
"HP"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1212 EditableText
"MPMax"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1215 EditableText
"MP"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1216 EditableText
"charName"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1217 EditableText
"charLvlTxt"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1218 EditableText
"charLvl"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1219 EditableText
"HPMask"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1223 MovieClip
"meterHP"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1226 MovieClip
"MPMask"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1223 MovieClip
"meterMP"Symbol 1244 MovieClip [charInfoL-MC] Frame 1Symbol 1229 MovieClip
"HPMax"Symbol 1244 MovieClip [charInfoL-MC] Frame 2Symbol 1235 EditableText
"HP"Symbol 1244 MovieClip [charInfoL-MC] Frame 2Symbol 1236 EditableText
"MPMax"Symbol 1244 MovieClip [charInfoL-MC] Frame 2Symbol 1239 EditableText
"MP"Symbol 1244 MovieClip [charInfoL-MC] Frame 2Symbol 1240 EditableText
"charName"Symbol 1244 MovieClip [charInfoL-MC] Frame 2Symbol 1241 EditableText
"charLvlTxt"Symbol 1244 MovieClip [charInfoL-MC] Frame 2Symbol 1242 EditableText
"charLvl"Symbol 1244 MovieClip [charInfoL-MC] Frame 2Symbol 1243 EditableText
"HPMax"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1247 EditableText
"HP"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1248 EditableText
"MPMax"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1251 EditableText
"MP"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1252 EditableText
"charName"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1253 EditableText
"charLvlTxt"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1254 EditableText
"charLvl"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1255 EditableText
"HPMask"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1223 MovieClip
"meterHP"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1226 MovieClip
"MPMask"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1223 MovieClip
"meterMP"Symbol 1267 MovieClip [charInfoR-MC] Frame 1Symbol 1229 MovieClip
"HPMax"Symbol 1267 MovieClip [charInfoR-MC] Frame 2Symbol 1258 EditableText
"HP"Symbol 1267 MovieClip [charInfoR-MC] Frame 2Symbol 1259 EditableText
"MPMax"Symbol 1267 MovieClip [charInfoR-MC] Frame 2Symbol 1262 EditableText
"MP"Symbol 1267 MovieClip [charInfoR-MC] Frame 2Symbol 1263 EditableText
"charName"Symbol 1267 MovieClip [charInfoR-MC] Frame 2Symbol 1264 EditableText
"charLvlTxt"Symbol 1267 MovieClip [charInfoR-MC] Frame 2Symbol 1265 EditableText
"charLvl"Symbol 1267 MovieClip [charInfoR-MC] Frame 2Symbol 1266 EditableText
"pick"Symbol 1468 MovieClip [lockpickMC] Frame 1Symbol 1459 MovieClip
"pick"Symbol 1468 MovieClip [lockpickMC] Frame 2Symbol 1456 MovieClip
"pick"Symbol 1468 MovieClip [lockpickMC] Frame 3Symbol 1453 MovieClip
"charName"Symbol 1483 MovieClip [lockpickInfo] Frame 1Symbol 1476 EditableText
"lockpickMask"Symbol 1483 MovieClip [lockpickInfo] Frame 1Symbol 1479 MovieClip
"meterLockpick"Symbol 1483 MovieClip [lockpickInfo] Frame 1Symbol 1482 MovieClip
"boxMC"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1531 MovieClip
"charName"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1535 EditableText
"charClass"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1536 EditableText
"charLevel"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1537 EditableText
"HPTxt"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1541 EditableText
"MPTxt"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1542 EditableText
"EXPTxt"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1543 EditableText
"MPMask"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1479 MovieClip
"meterMP"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1482 MovieClip
"HPMask"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1479 MovieClip
"meterHP"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1486 MovieClip
"EXPMask"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1479 MovieClip
"meterHP"Symbol 1546 MovieClip [statusCharStats] Frame 1Symbol 1534 MovieClip
"charName"Symbol 1550 MovieClip [statusTreasures] Frame 1Symbol 1549 EditableText
"charName"Symbol 1556 MovieClip [statusItems] Frame 1Symbol 1553 EditableText
"itemInfo"Symbol 1556 MovieClip [statusItems] Frame 1Symbol 1555 EditableText
"charName"Symbol 1576 MovieClip [statusEquipment] Frame 1Symbol 1559 EditableText
"charSTR"Symbol 1576 MovieClip [statusEquipment] Frame 1Symbol 1562 EditableText
"charDEF"Symbol 1576 MovieClip [statusEquipment] Frame 1Symbol 1564 EditableText
"charMAG"Symbol 1576 MovieClip [statusEquipment] Frame 1Symbol 1566 EditableText
"charLCK"Symbol 1576 MovieClip [statusEquipment] Frame 1Symbol 1568 EditableText
"charSPD"Symbol 1576 MovieClip [statusEquipment] Frame 1Symbol 1570 EditableText
"charRange"Symbol 1576 MovieClip [statusEquipment] Frame 1Symbol 1575 EditableText
"charName"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1578 EditableText
"charClass"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1579 EditableText
"HPTxt"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1581 EditableText
"charLvl"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1583 EditableText
"MPTxt"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1584 EditableText
"charEXP"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1591 EditableText
"charEXPNext"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1593 EditableText
"charSTR"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1595 EditableText
"charDEF"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1597 EditableText
"charMAG"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1599 EditableText
"charLCK"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1601 EditableText
"charSPD"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1603 EditableText
"charLockpicking"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1605 EditableText
"charRange"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1607 EditableText
"MPMask"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1479 MovieClip
"meterLockpick"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1482 MovieClip
"HPMask"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1479 MovieClip
"meterHP"Symbol 1609 MovieClip [statusStatsMain] Frame 1Symbol 1486 MovieClip
"timeTxt"Symbol 1619 MovieClip [statusBG] Frame 1Symbol 1616 EditableText
"coinsTxt"Symbol 1619 MovieClip [statusBG] Frame 1Symbol 1618 EditableText
"charName"Symbol 1625 MovieClip [menuStats] Frame 1Symbol 1622 EditableText
"charName"Symbol 1625 MovieClip [menuStats] Frame 2Symbol 1624 EditableText
"charName"Symbol 1632 MovieClip [menuItems] Frame 1Symbol 1627 EditableText
"charName"Symbol 1632 MovieClip [menuItems] Frame 2Symbol 1631 EditableText
"charName"Symbol 1637 MovieClip [menuEquipment] Frame 1Symbol 1633 EditableText
"charName"Symbol 1637 MovieClip [menuEquipment] Frame 2Symbol 1636 EditableText
"charName"Symbol 1644 MovieClip [menuSound] Frame 1Symbol 1639 EditableText
"charName"Symbol 1644 MovieClip [menuSound] Frame 2Symbol 1643 EditableText
"charName"Symbol 1651 MovieClip [menuTreasures] Frame 1Symbol 1646 EditableText
"charName"Symbol 1651 MovieClip [menuTreasures] Frame 2Symbol 1650 EditableText
"charName"Symbol 1656 MovieClip [menuExit] Frame 1Symbol 1652 EditableText
"charName"Symbol 1656 MovieClip [menuExit] Frame 2Symbol 1655 EditableText
"charName"Symbol 1661 MovieClip [menuSave] Frame 1Symbol 1657 EditableText
"charName"Symbol 1661 MovieClip [menuSave] Frame 2Symbol 1660 EditableText
"charName"Symbol 1663 MovieClip [menuSaveAlert] Frame 1Symbol 1662 EditableText
"lavaMC"Symbol 1707 MovieClip [worldMap] Frame 1Symbol 1698 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata present, AS1/AS2.
SWFMetaData (77)Timeline Frame 1953 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmln ..."
ExportAssets (56)Timeline Frame 1Symbol 1 as "txtBoxFont"
ExportAssets (56)Timeline Frame 1Symbol 7 as "mapGames"
ExportAssets (56)Timeline Frame 1Symbol 16 as "RainDropEffectAS2"
ExportAssets (56)Timeline Frame 1Symbol 35 as "titleLikwidGames"
ExportAssets (56)Timeline Frame 1Symbol 1780 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 1781 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 1782 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 1783 as "__Packages.mx.transitions.easing.Elastic"
ExportAssets (56)Timeline Frame 1Symbol 1784 as "__Packages.mx.transitions.easing.Strong"
ExportAssets (56)Timeline Frame 1Symbol 1785 as "__Packages.mx.transitions.easing.Back"
ExportAssets (56)Timeline Frame 1Symbol 1786 as "__Packages.Path"
ExportAssets (56)Timeline Frame 1Symbol 1787 as "__Packages.mx.transitions.easing.Bounce"
ExportAssets (56)Timeline Frame 1Symbol 1788 as "__Packages.mx.transitions.easing.Regular"
ExportAssets (56)Timeline Frame 1Symbol 1789 as "__Packages.mx.transitions.easing.None"
ExportAssets (56)Timeline Frame 1Symbol 8 as "__Packages.net.flashfilter.effects.SuperEffect"
ExportAssets (56)Timeline Frame 1Symbol 9 as "__Packages.net.flashfilter.effects.E01_raindrop"
ExportAssets (56)Timeline Frame 1Symbol 17 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 2Symbol 93 as "treasureIcon"
ExportAssets (56)Timeline Frame 2Symbol 223 as "tiles"
ExportAssets (56)Timeline Frame 2Symbol 234 as "tileOutline"
ExportAssets (56)Timeline Frame 2Symbol 238 as "miniTiles"
ExportAssets (56)Timeline Frame 2Symbol 287 as "overlayGraphic"
ExportAssets (56)Timeline Frame 2Symbol 288 as "windowActionsMask"
ExportAssets (56)Timeline Frame 2Symbol 366 as "arrowMC"
ExportAssets (56)Timeline Frame 2Symbol 398 as "defenders"
ExportAssets (56)Timeline Frame 2Symbol 1116 as "enemies"
ExportAssets (56)Timeline Frame 2Symbol 1122 as "titleScreenMC"
ExportAssets (56)Timeline Frame 2Symbol 1125 as "iconSpellScroll"
ExportAssets (56)Timeline Frame 2Symbol 1136 as "screenMover"
ExportAssets (56)Timeline Frame 2Symbol 1141 as "dirArrowUR"
ExportAssets (56)Timeline Frame 2Symbol 1144 as "dirArrowUL"
ExportAssets (56)Timeline Frame 2Symbol 1149 as "dirArrowDL"
ExportAssets (56)Timeline Frame 2Symbol 1152 as "dirArrowDR"
ExportAssets (56)Timeline Frame 2Symbol 1155 as "gameMaskMC"
ExportAssets (56)Timeline Frame 2Symbol 1158 as "gameMaskLevelCompleteMC"
ExportAssets (56)Timeline Frame 2Symbol 1161 as "gameMaskGameOverMC"
ExportAssets (56)Timeline Frame 2Symbol 1165 as "menuArrow"
ExportAssets (56)Timeline Frame 2Symbol 1169 as "actionButton"
ExportAssets (56)Timeline Frame 2Symbol 1176 as "spellTxtButton"
ExportAssets (56)Timeline Frame 2Symbol 1180 as "VS-MC"
ExportAssets (56)Timeline Frame 2Symbol 1183 as "frame-MC"
ExportAssets (56)Timeline Frame 2Symbol 1186 as "BG-MC"
ExportAssets (56)Timeline Frame 2Symbol 1187 as "overlay-MC"
ExportAssets (56)Timeline Frame 2Symbol 1193 as "windowActions"
ExportAssets (56)Timeline Frame 2Symbol 1196 as "windowDirectionButton"
ExportAssets (56)Timeline Frame 2Symbol 1197 as "windowDirection"
ExportAssets (56)Timeline Frame 2Symbol 1205 as "damageTxt"
ExportAssets (56)Timeline Frame 2Symbol 1244 as "charInfoL-MC"
ExportAssets (56)Timeline Frame 2Symbol 1267 as "charInfoR-MC"
ExportAssets (56)Timeline Frame 2Symbol 1268 as "Square"
ExportAssets (56)Timeline Frame 2Symbol 1271 as "textBox1GFX"
ExportAssets (56)Timeline Frame 2Symbol 1272 as "textBox1MC"
ExportAssets (56)Timeline Frame 2Symbol 1273 as "playerIndicator"
ExportAssets (56)Timeline Frame 2Symbol 1276 as "goldIcon"
ExportAssets (56)Timeline Frame 2Symbol 1279 as "textBox2MC"
ExportAssets (56)Timeline Frame 2Symbol 1282 as "iconLockPickManual"
ExportAssets (56)Timeline Frame 2Symbol 1285 as "iconGold"
ExportAssets (56)Timeline Frame 2Symbol 1288 as "iconAmberRobe"
ExportAssets (56)Timeline Frame 2Symbol 1291 as "iconSilkRobe"
ExportAssets (56)Timeline Frame 2Symbol 1294 as "iconCloak"
ExportAssets (56)Timeline Frame 2Symbol 1297 as "iconClothRobe"
ExportAssets (56)Timeline Frame 2Symbol 1300 as "iconLavaWand"
ExportAssets (56)Timeline Frame 2Symbol 1303 as "iconElementStaff"
ExportAssets (56)Timeline Frame 2Symbol 1306 as "iconWand"
ExportAssets (56)Timeline Frame 2Symbol 1309 as "iconWoodStaff"
ExportAssets (56)Timeline Frame 2Symbol 1312 as "iconFlameSword"
ExportAssets (56)Timeline Frame 2Symbol 1315 as "iconFalchion"
ExportAssets (56)Timeline Frame 2Symbol 1318 as "iconBroadSword"
ExportAssets (56)Timeline Frame 2Symbol 1321 as "iconIronSword"
ExportAssets (56)Timeline Frame 2Symbol 1324 as "iconPlateArmor"
ExportAssets (56)Timeline Frame 2Symbol 1327 as "iconChainMail"
ExportAssets (56)Timeline Frame 2Symbol 1330 as "iconIronArmor"
ExportAssets (56)Timeline Frame 2Symbol 1333 as "iconCupidBow"
ExportAssets (56)Timeline Frame 2Symbol 1336 as "iconIronDoublet"
ExportAssets (56)Timeline Frame 2Symbol 1339 as "iconIronVest"
ExportAssets (56)Timeline Frame 2Symbol 1342 as "iconLongBow"
ExportAssets (56)Timeline Frame 2Symbol 1345 as "iconMarksmanBow"
ExportAssets (56)Timeline Frame 2Symbol 1348 as "iconRoseGilet"
ExportAssets (56)Timeline Frame 2Symbol 1351 as "iconThiefGloves"
ExportAssets (56)Timeline Frame 2Symbol 1354 as "iconSpeedBoots"
ExportAssets (56)Timeline Frame 2Symbol 1357 as "iconSilverNecklace"
ExportAssets (56)Timeline Frame 2Symbol 1360 as "iconRubyPin"
ExportAssets (56)Timeline Frame 2Symbol 1363 as "iconPowerGlove"
ExportAssets (56)Timeline Frame 2Symbol 1366 as "iconMagicRing"
ExportAssets (56)Timeline Frame 2Symbol 1369 as "iconLuckyRibbon"
ExportAssets (56)Timeline Frame 2Symbol 1372 as "iconIronRing"
ExportAssets (56)Timeline Frame 2Symbol 1375 as "iconAmuletWarding"
ExportAssets (56)Timeline Frame 2Symbol 1378 as "iconResurrection"
ExportAssets (56)Timeline Frame 2Symbol 1381 as "iconTreasure"
ExportAssets (56)Timeline Frame 2Symbol 1384 as "iconRustyArmor"
ExportAssets (56)Timeline Frame 2Symbol 1387 as "iconWoodenBow"
ExportAssets (56)Timeline Frame 2Symbol 1390 as "iconRustySword"
ExportAssets (56)Timeline Frame 2Symbol 1393 as "iconPoison"
ExportAssets (56)Timeline Frame 2Symbol 1396 as "iconDeath"
ExportAssets (56)Timeline Frame 2Symbol 1399 as "iconUltraLockpick"
ExportAssets (56)Timeline Frame 2Symbol 1402 as "iconIronLockpick"
ExportAssets (56)Timeline Frame 2Symbol 1405 as "iconRustyLockpick"
ExportAssets (56)Timeline Frame 2Symbol 1408 as "iconIronTusk"
ExportAssets (56)Timeline Frame 2Symbol 1411 as "iconPowerBar"
ExportAssets (56)Timeline Frame 2Symbol 1414 as "iconHPBooster"
ExportAssets (56)Timeline Frame 2Symbol 1417 as "iconMagicTonic"
ExportAssets (56)Timeline Frame 2Symbol 1420 as "iconManaRoot"
ExportAssets (56)Timeline Frame 2Symbol 1423 as "iconHealingHerb"
ExportAssets (56)Timeline Frame 2Symbol 1426 as "iconMegaElixer"
ExportAssets (56)Timeline Frame 2Symbol 1429 as "iconElixer"
ExportAssets (56)Timeline Frame 2Symbol 1432 as "iconManaPotion"
ExportAssets (56)Timeline Frame 2Symbol 1435 as "iconSmallManaPotion"
ExportAssets (56)Timeline Frame 2Symbol 1438 as "iconAntidote"
ExportAssets (56)Timeline Frame 2Symbol 1441 as "iconLargePotion"
ExportAssets (56)Timeline Frame 2Symbol 1444 as "iconMediumPotion"
ExportAssets (56)Timeline Frame 2Symbol 1447 as "iconSmallPotion"
ExportAssets (56)Timeline Frame 2Symbol 1450 as "iconDisabled"
ExportAssets (56)Timeline Frame 2Symbol 1462 as "treasureBG"
ExportAssets (56)Timeline Frame 2Symbol 1467 as "lockMC"
ExportAssets (56)Timeline Frame 2Symbol 1468 as "lockpickMC"
ExportAssets (56)Timeline Frame 2Symbol 1470 as "treasureOverlay"
ExportAssets (56)Timeline Frame 2Symbol 1483 as "lockpickInfo"
ExportAssets (56)Timeline Frame 2Symbol 1490 as "poisonSmokeMC"
ExportAssets (56)Timeline Frame 2Symbol 1502 as "flameMC"
ExportAssets (56)Timeline Frame 2Symbol 1509 as "spellFreezeMC"
ExportAssets (56)Timeline Frame 2Symbol 1519 as "spellLightningMC"
ExportAssets (56)Timeline Frame 2Symbol 1522 as "lockpickingGuideMC"
ExportAssets (56)Timeline Frame 2Symbol 1524 as "statusEquipmentDescMC"
ExportAssets (56)Timeline Frame 2Symbol 1526 as "statusNextCharArrow"
ExportAssets (56)Timeline Frame 2Symbol 1529 as "statusItemAlert"
ExportAssets (56)Timeline Frame 2Symbol 1546 as "statusCharStats"
ExportAssets (56)Timeline Frame 2Symbol 1550 as "statusTreasures"
ExportAssets (56)Timeline Frame 2Symbol 1556 as "statusItems"
ExportAssets (56)Timeline Frame 2Symbol 1576 as "statusEquipment"
ExportAssets (56)Timeline Frame 2Symbol 1609 as "statusStatsMain"
ExportAssets (56)Timeline Frame 2Symbol 1612 as "statusCharsBG"
ExportAssets (56)Timeline Frame 2Symbol 1619 as "statusBG"
ExportAssets (56)Timeline Frame 2Symbol 1625 as "menuStats"
ExportAssets (56)Timeline Frame 2Symbol 1632 as "menuItems"
ExportAssets (56)Timeline Frame 2Symbol 1637 as "menuEquipment"
ExportAssets (56)Timeline Frame 2Symbol 1644 as "menuSound"
ExportAssets (56)Timeline Frame 2Symbol 1651 as "menuTreasures"
ExportAssets (56)Timeline Frame 2Symbol 1656 as "menuExit"
ExportAssets (56)Timeline Frame 2Symbol 1661 as "menuSave"
ExportAssets (56)Timeline Frame 2Symbol 1663 as "menuSaveAlert"
ExportAssets (56)Timeline Frame 2Symbol 1666 as "textBoxWarrior"
ExportAssets (56)Timeline Frame 2Symbol 1669 as "textBoxMage"
ExportAssets (56)Timeline Frame 2Symbol 1672 as "textBoxThief"
ExportAssets (56)Timeline Frame 2Symbol 1675 as "textBoxGold"
ExportAssets (56)Timeline Frame 2Symbol 1678 as "shopDiffDecrease"
ExportAssets (56)Timeline Frame 2Symbol 1681 as "shopDiffIncrease"
ExportAssets (56)Timeline Frame 2Symbol 1684 as "shopDiffEqual"
ExportAssets (56)Timeline Frame 2Symbol 1687 as "textBoxShop"
ExportAssets (56)Timeline Frame 2Symbol 1690 as "mapTextbox1"
ExportAssets (56)Timeline Frame 2Symbol 1693 as "mapMarker2"
ExportAssets (56)Timeline Frame 2Symbol 1696 as "mapMarker1"
ExportAssets (56)Timeline Frame 2Symbol 1701 as "cloud1"
ExportAssets (56)Timeline Frame 2Symbol 1704 as "cloud2"
ExportAssets (56)Timeline Frame 2Symbol 1707 as "worldMap"
ExportAssets (56)Timeline Frame 2Symbol 1711 as "mapMenu"
ExportAssets (56)Timeline Frame 2Symbol 1715 as "mapSave"
ExportAssets (56)Timeline Frame 2Symbol 1716 as "mapInnOverlay"
ExportAssets (56)Timeline Frame 2Symbol 1719 as "textBoxGrandpa"
ExportAssets (56)Timeline Frame 2Symbol 1722 as "textBoxPortrait"
ExportAssets (56)Timeline Frame 2Symbol 1726 as "textBoxArrow"
ExportAssets (56)Timeline Frame 2Symbol 1729 as "textBoxInn"
ExportAssets (56)Timeline Frame 2Symbol 1732 as "textBoxMissions"
ExportAssets (56)Timeline Frame 2Symbol 1735 as "textBox3MC"
ExportAssets (56)Timeline Frame 2Symbol 1738 as "themeMusicButton"
ExportAssets (56)Timeline Frame 2Symbol 1744 as "shopLeaveButton"
ExportAssets (56)Timeline Frame 2Symbol 1745 as "gameMaskMissionCompleteMC"
ExportAssets (56)Timeline Frame 2Symbol 1746 as "likwidIntroSnd"
ExportAssets (56)Timeline Frame 2Symbol 1747 as "gameoverSnd"
ExportAssets (56)Timeline Frame 2Symbol 1748 as "deathSnd"
ExportAssets (56)Timeline Frame 2Symbol 1749 as "missSnd"
ExportAssets (56)Timeline Frame 2Symbol 1750 as "startLevelSnd"
ExportAssets (56)Timeline Frame 2Symbol 1751 as "treasureOpenSnd"
ExportAssets (56)Timeline Frame 2Symbol 1752 as "swordSnd"
ExportAssets (56)Timeline Frame 2Symbol 1753 as "chooseTileSnd"
ExportAssets (56)Timeline Frame 2Symbol 1754 as "lockUnlockedSnd"
ExportAssets (56)Timeline Frame 2Symbol 1755 as "lockpickingSnd"
ExportAssets (56)Timeline Frame 2Symbol 1756 as "lockpickBreakSnd"
ExportAssets (56)Timeline Frame 2Symbol 1757 as "lightningSnd"
ExportAssets (56)Timeline Frame 2Symbol 1758 as "levelupSnd"
ExportAssets (56)Timeline Frame 2Symbol 1759 as "damageSnd"
ExportAssets (56)Timeline Frame 2Symbol 1760 as "healSnd"
ExportAssets (56)Timeline Frame 2Symbol 1761 as "freezeSnd"
ExportAssets (56)Timeline Frame 2Symbol 1762 as "foundItemSnd"
ExportAssets (56)Timeline Frame 2Symbol 1763 as "fireSnd"
ExportAssets (56)Timeline Frame 2Symbol 1764 as "treasureDropSnd"
ExportAssets (56)Timeline Frame 2Symbol 1765 as "expSnd"
ExportAssets (56)Timeline Frame 2Symbol 1766 as "endLevelSnd"
ExportAssets (56)Timeline Frame 2Symbol 1767 as "buttonSnd"
ExportAssets (56)Timeline Frame 2Symbol 1768 as "archerSnd"
ExportAssets (56)Timeline Frame 2Symbol 1769 as "levelSnd"
ExportAssets (56)Timeline Frame 2Symbol 1770 as "themeMusicSnd"
ExportAssets (56)Timeline Frame 2Symbol 1771 as "worldMapMusic"
ExportAssets (56)Timeline Frame 2Symbol 1778 as "statusNextCharButton"

Labels

"attack"Symbol 260 MovieClip Frame 20
"attack"Symbol 282 MovieClip Frame 20
"dead"Symbol 285 MovieClip Frame 5
"attack"Symbol 325 MovieClip Frame 20
"attack"Symbol 346 MovieClip Frame 20
"dead"Symbol 349 MovieClip Frame 5
"attack"Symbol 373 MovieClip Frame 20
"attack"Symbol 394 MovieClip Frame 20
"dead"Symbol 397 MovieClip Frame 5
"Kronus"Symbol 398 MovieClip [defenders] Frame 1
"Kage"Symbol 398 MovieClip [defenders] Frame 2
"Aryana"Symbol 398 MovieClip [defenders] Frame 3
"attack"Symbol 416 MovieClip Frame 18
"attack"Symbol 433 MovieClip Frame 18
"dead"Symbol 436 MovieClip Frame 5
"attack"Symbol 453 MovieClip Frame 18
"attack"Symbol 470 MovieClip Frame 18
"dead"Symbol 473 MovieClip Frame 5
"attack"Symbol 490 MovieClip Frame 18
"attack"Symbol 507 MovieClip Frame 18
"dead"Symbol 510 MovieClip Frame 5
"attack"Symbol 531 MovieClip Frame 18
"attack"Symbol 552 MovieClip Frame 18
"dead"Symbol 555 MovieClip Frame 5
"attack"Symbol 576 MovieClip Frame 18
"attack"Symbol 597 MovieClip Frame 18
"dead"Symbol 600 MovieClip Frame 5
"attack"Symbol 621 MovieClip Frame 18
"attack"Symbol 642 MovieClip Frame 18
"dead"Symbol 645 MovieClip Frame 5
"attack"Symbol 662 MovieClip Frame 18
"attack"Symbol 679 MovieClip Frame 18
"dead"Symbol 682 MovieClip Frame 5
"attack"Symbol 699 MovieClip Frame 18
"attack"Symbol 716 MovieClip Frame 18
"dead"Symbol 719 MovieClip Frame 5
"attack"Symbol 740 MovieClip Frame 18
"attack"Symbol 761 MovieClip Frame 18
"dead"Symbol 764 MovieClip Frame 5
"attack"Symbol 785 MovieClip Frame 18
"attack"Symbol 806 MovieClip Frame 18
"dead"Symbol 809 MovieClip Frame 5
"attack"Symbol 828 MovieClip Frame 18
"attack"Symbol 847 MovieClip Frame 18
"dead"Symbol 850 MovieClip Frame 5
"attack"Symbol 869 MovieClip Frame 18
"attack"Symbol 888 MovieClip Frame 18
"dead"Symbol 891 MovieClip Frame 5
"attack"Symbol 910 MovieClip Frame 18
"attack"Symbol 929 MovieClip Frame 18
"dead"Symbol 932 MovieClip Frame 5
"attack"Symbol 950 MovieClip Frame 18
"attack"Symbol 968 MovieClip Frame 18
"dead"Symbol 971 MovieClip Frame 5
"attack"Symbol 989 MovieClip Frame 18
"attack"Symbol 1007 MovieClip Frame 18
"dead"Symbol 1010 MovieClip Frame 5
"attack"Symbol 1028 MovieClip Frame 18
"attack"Symbol 1046 MovieClip Frame 18
"dead"Symbol 1049 MovieClip Frame 5
"attack"Symbol 1064 MovieClip Frame 14
"attack"Symbol 1079 MovieClip Frame 14
"dead"Symbol 1082 MovieClip Frame 5
"attack"Symbol 1097 MovieClip Frame 14
"attack"Symbol 1112 MovieClip Frame 14
"dead"Symbol 1115 MovieClip Frame 5
"beetle1"Symbol 1116 MovieClip [enemies] Frame 2
"beetle2"Symbol 1116 MovieClip [enemies] Frame 3
"beetle3"Symbol 1116 MovieClip [enemies] Frame 4
"snake1"Symbol 1116 MovieClip [enemies] Frame 5
"snake2"Symbol 1116 MovieClip [enemies] Frame 6
"snake3"Symbol 1116 MovieClip [enemies] Frame 7
"mutant1"Symbol 1116 MovieClip [enemies] Frame 8
"mutant3"Symbol 1116 MovieClip [enemies] Frame 10
"scorpion1"Symbol 1116 MovieClip [enemies] Frame 11
"scorpion2"Symbol 1116 MovieClip [enemies] Frame 12
"eyeguy1"Symbol 1116 MovieClip [enemies] Frame 14
"skeleton1"Symbol 1116 MovieClip [enemies] Frame 17
"skeleton2"Symbol 1116 MovieClip [enemies] Frame 18
"flameskull1"Symbol 1116 MovieClip [enemies] Frame 20
"flameskull2"Symbol 1116 MovieClip [enemies] Frame 21
"flameskull3"Symbol 1116 MovieClip [enemies] Frame 22
"ogre1"Symbol 1116 MovieClip [enemies] Frame 23
"ogre3"Symbol 1116 MovieClip [enemies] Frame 25




http://swfchan.com/12/55571/info.shtml
Created: 20/4 -2019 07:45:29 Last modified: 20/4 -2019 07:45:29 Server time: 13/05 -2024 22:38:42