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

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

Ultimate Tactics - a strategy game with RPG elements mixed in.swf

This is the info page for
Flash #92883

(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.4</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; _root.fadeStartButton(); } }; } 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; 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", 8, false]], [["Ancient Pyramids", 3, false], ["Super Venom", 4, false], ["Oasis", 5, false], ["Eye Guys", 7, false]], [["Lava Monsters", 3, false], ["Death Rock Cave", 4, false], ["Ring of Fire", 5, false], ["Lava River", 7, false], ["Cave Ogres", 7, false], ["Ogre Lord", 7, 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 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, 750); } } 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; char.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]); if (enemy.ailments.length > 0) { a = 0; while (a < enemy.ailments.length) { if (enemy.ailments[a] == "poison") { var _local6 = {r:31, g:211, b:0}; enemy.charMC.fluxTint(_local6, 0, 60, 5, true); } a++; } } 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; 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" : 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" : 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 = 3; 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 = 6; 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 = 20; 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 = 5; 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 = 20; 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 = 40; 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 = 10; 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 = 25; 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 = 30; 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 = 35; 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 = 40; 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 = 42; 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 = 40; 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 = 45; 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 = 50; 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 = 55; 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 = 200; 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, 250, 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, 200, 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, 600, 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, 300, 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") { 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); } levelGold = levelGold + deadChar.GOLD; 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) { 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, 250, 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 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.3; 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.5; 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 = 0; } 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)), 1, 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)), 1, 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, 1, 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(); } _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()); 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) { 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); _local3.onMotionFinished = function () { if (_root.soundOn == true) { _root.foundItemSnd.start(); } randLootArr = getTreasureLoot(_root.treasureDifficulty); 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 < inventory.length) { if (inventory[i].NAME == randLoot) { lootIcon = inventory[i].ICON; 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) { if (_root.soundOn == true) { _root.healSnd.start(); } if ((_root.defenderLevelArr[char.num].HP + item.STR) > _root.defenderLevelArr[char.num].HPMax) { _root.defenderLevelArr[char.num].HP = _root.defenderLevelArr[char.num].HPMax; } else { _root.defenderLevelArr[char.num].HP = _root.defenderLevelArr[char.num].HP + item.STR; } animateItemTxtPrep(("+" + item.STR) + " HP", char, 1); if (char == _root.currentTurn) { 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 ((_root.defenderLevelArr[char.num].MP + item.STR) > _root.defenderLevelArr[char.num].MPMax) { _root.defenderLevelArr[char.num].MP = _root.defenderLevelArr[char.num].MPMax; } else { _root.defenderLevelArr[char.num].MP = _root.defenderLevelArr[char.num].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(); } _root.defenderLevelArr[char.num].HP = _root.defenderLevelArr[char.num].HPMax; _root.defenderLevelArr[char.num].MP = _root.defenderLevelArr[char.num].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 + 0.5; } else { lockpicking = lockpicking + 0.25; } break; case 2 : if (lockpicking < 25) { lockpicking++; } else if ((lockpicking >= 25) && (lockpicking < 50)) { lockpicking = lockpicking + 0.5; } else { lockpicking = lockpicking + 0.25; } 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 { assignItem(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); targetDeath(char, true); if (checkLevelComplete() == true) { levelComplete(); } else { trace("SOMEONE DIED POISONED"); if ((char.type == "human") && (checkGameOver(char) == true)) { trace("MAIN CHAR DIED POISONED"); gameOverFunc(); } else { setTimeout(nextTurn, 250, char); } } } else { setTimeout(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.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(); } 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(); } 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; s = 0; while (s < defenderArr[1].spells.length) { if (defenderArr[1].spells[s] == 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" : 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; }; 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 1777 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 1778 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 1779 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 1780 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 1781 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 1782 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 1783 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 1784 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 1785 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 1786 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 1787 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 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 10
stop();
Symbol 76 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 76 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 76 MovieClip Frame 161
stop(); this._parent.gotoAndPlay(2);
Symbol 81 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 85 MovieClip Frame 2
rainDropInstance._visible = false; _root.likwidIntroSnd.start();
Instance of Symbol 77 MovieClip in Symbol 85 MovieClip Frame 2
on (release) { getURL ("http://www.likwidgames.com", "_blank"); }
Instance of Symbol 16 MovieClip [RainDropEffectAS2] "rainDropInstance" in Symbol 85 MovieClip Frame 2
//component parameters onClipEvent (construct) { _targetInstanceName = ""; _dropInterval = 0; _mouseSensetive = true; _refreshEveryFrame = false; _waveHeight = 9; }
Symbol 85 MovieClip Frame 191
_root.gotoAndStop(4); stop();
Symbol 91 MovieClip [treasureIcon] Frame 1
play();
Symbol 91 MovieClip [treasureIcon] Frame 25
play();
Symbol 91 MovieClip [treasureIcon] Frame 41
stop();
Symbol 221 MovieClip [tiles] Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 232 MovieClip [tileOutline] Frame 1
stop();
Symbol 236 MovieClip [miniTiles] Frame 1
stop();
Symbol 236 MovieClip [miniTiles] Frame 2
stop();
Symbol 236 MovieClip [miniTiles] Frame 3
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 2
play();
Symbol 258 MovieClip Frame 19
gotoAndPlay (2);
Symbol 258 MovieClip Frame 20
play();
Symbol 258 MovieClip Frame 33
gotoAndStop (1);
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
play();
Symbol 280 MovieClip Frame 19
gotoAndPlay (2);
Symbol 280 MovieClip Frame 20
play();
Symbol 280 MovieClip Frame 33
gotoAndStop (1);
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 3
stop();
Symbol 283 MovieClip Frame 4
stop();
Symbol 283 MovieClip Frame 5
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
play();
Symbol 323 MovieClip Frame 19
gotoAndPlay (2);
Symbol 323 MovieClip Frame 31
gotoAndStop (1);
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
play();
Symbol 344 MovieClip Frame 19
gotoAndPlay (2);
Symbol 344 MovieClip Frame 31
gotoAndStop (1);
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
stop();
Symbol 347 MovieClip Frame 3
stop();
Symbol 347 MovieClip Frame 4
stop();
Symbol 347 MovieClip Frame 5
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 2
play();
Symbol 371 MovieClip Frame 19
gotoAndPlay (2);
Symbol 371 MovieClip Frame 31
gotoAndStop (1);
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
play();
Symbol 392 MovieClip Frame 19
gotoAndPlay (2);
Symbol 392 MovieClip Frame 31
gotoAndStop (1);
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 3
stop();
Symbol 395 MovieClip Frame 4
stop();
Symbol 395 MovieClip Frame 5
stop();
Symbol 396 MovieClip [defenders] Frame 1
stop();
Symbol 396 MovieClip [defenders] Frame 2
stop();
Symbol 396 MovieClip [defenders] Frame 3
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 2
play();
Symbol 414 MovieClip Frame 17
gotoAndPlay (2);
Symbol 414 MovieClip Frame 18
play();
Symbol 414 MovieClip Frame 30
gotoAndStop (1);
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 2
play();
Symbol 431 MovieClip Frame 17
gotoAndPlay (2);
Symbol 431 MovieClip Frame 18
play();
Symbol 431 MovieClip Frame 30
gotoAndStop (1);
Symbol 434 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 2
stop();
Symbol 434 MovieClip Frame 3
stop();
Symbol 434 MovieClip Frame 4
stop();
Symbol 434 MovieClip Frame 5
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 2
play();
Symbol 451 MovieClip Frame 17
gotoAndPlay (2);
Symbol 451 MovieClip Frame 18
play();
Symbol 451 MovieClip Frame 30
gotoAndStop (1);
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 2
play();
Symbol 468 MovieClip Frame 17
gotoAndPlay (2);
Symbol 468 MovieClip Frame 18
play();
Symbol 468 MovieClip Frame 30
gotoAndStop (1);
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 3
stop();
Symbol 471 MovieClip Frame 4
stop();
Symbol 471 MovieClip Frame 5
stop();
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 2
play();
Symbol 488 MovieClip Frame 17
gotoAndPlay (2);
Symbol 488 MovieClip Frame 18
play();
Symbol 488 MovieClip Frame 30
gotoAndStop (1);
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 2
play();
Symbol 505 MovieClip Frame 17
gotoAndPlay (2);
Symbol 505 MovieClip Frame 18
play();
Symbol 505 MovieClip Frame 30
gotoAndStop (1);
Symbol 508 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 2
stop();
Symbol 508 MovieClip Frame 3
stop();
Symbol 508 MovieClip Frame 4
stop();
Symbol 508 MovieClip Frame 5
stop();
Symbol 529 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 2
play();
Symbol 529 MovieClip Frame 17
gotoAndPlay (2);
Symbol 529 MovieClip Frame 18
play();
Symbol 529 MovieClip Frame 28
gotoAndStop (1);
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
play();
Symbol 550 MovieClip Frame 17
gotoAndPlay (2);
Symbol 550 MovieClip Frame 18
play();
Symbol 550 MovieClip Frame 28
gotoAndStop (1);
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 2
stop();
Symbol 553 MovieClip Frame 3
stop();
Symbol 553 MovieClip Frame 4
stop();
Symbol 553 MovieClip Frame 5
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 2
play();
Symbol 574 MovieClip Frame 17
gotoAndPlay (2);
Symbol 574 MovieClip Frame 18
play();
Symbol 574 MovieClip Frame 28
gotoAndStop (1);
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 2
play();
Symbol 595 MovieClip Frame 17
gotoAndPlay (2);
Symbol 595 MovieClip Frame 18
play();
Symbol 595 MovieClip Frame 28
gotoAndStop (1);
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 2
stop();
Symbol 598 MovieClip Frame 3
stop();
Symbol 598 MovieClip Frame 4
stop();
Symbol 598 MovieClip Frame 5
stop();
Symbol 619 MovieClip Frame 1
stop();
Symbol 619 MovieClip Frame 2
play();
Symbol 619 MovieClip Frame 17
gotoAndPlay (2);
Symbol 619 MovieClip Frame 18
play();
Symbol 619 MovieClip Frame 28
gotoAndStop (1);
Symbol 640 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 2
play();
Symbol 640 MovieClip Frame 17
gotoAndPlay (2);
Symbol 640 MovieClip Frame 18
play();
Symbol 640 MovieClip Frame 28
gotoAndStop (1);
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 2
stop();
Symbol 643 MovieClip Frame 3
stop();
Symbol 643 MovieClip Frame 4
stop();
Symbol 643 MovieClip Frame 5
stop();
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 2
play();
Symbol 660 MovieClip Frame 17
gotoAndPlay (2);
Symbol 660 MovieClip Frame 18
play();
Symbol 660 MovieClip Frame 35
gotoAndStop (1);
Symbol 677 MovieClip Frame 1
stop();
Symbol 677 MovieClip Frame 2
play();
Symbol 677 MovieClip Frame 17
gotoAndPlay (2);
Symbol 677 MovieClip Frame 18
play();
Symbol 677 MovieClip Frame 35
gotoAndStop (1);
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 2
stop();
Symbol 680 MovieClip Frame 3
stop();
Symbol 680 MovieClip Frame 4
stop();
Symbol 680 MovieClip Frame 5
stop();
Symbol 697 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 2
play();
Symbol 697 MovieClip Frame 17
gotoAndPlay (2);
Symbol 697 MovieClip Frame 18
play();
Symbol 697 MovieClip Frame 35
gotoAndStop (1);
Symbol 714 MovieClip Frame 1
stop();
Symbol 714 MovieClip Frame 2
play();
Symbol 714 MovieClip Frame 17
gotoAndPlay (2);
Symbol 714 MovieClip Frame 18
play();
Symbol 714 MovieClip Frame 35
gotoAndStop (1);
Symbol 717 MovieClip Frame 1
stop();
Symbol 717 MovieClip Frame 2
stop();
Symbol 717 MovieClip Frame 3
stop();
Symbol 717 MovieClip Frame 4
stop();
Symbol 717 MovieClip Frame 5
stop();
Symbol 738 MovieClip Frame 1
stop();
Symbol 738 MovieClip Frame 2
play();
Symbol 738 MovieClip Frame 17
gotoAndPlay (2);
Symbol 738 MovieClip Frame 18
play();
Symbol 738 MovieClip Frame 35
gotoAndStop (1);
Symbol 759 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 2
play();
Symbol 759 MovieClip Frame 17
gotoAndPlay (2);
Symbol 759 MovieClip Frame 18
play();
Symbol 759 MovieClip Frame 35
gotoAndStop (1);
Symbol 762 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 2
stop();
Symbol 762 MovieClip Frame 3
stop();
Symbol 762 MovieClip Frame 4
stop();
Symbol 762 MovieClip Frame 5
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 2
play();
Symbol 783 MovieClip Frame 17
gotoAndPlay (2);
Symbol 783 MovieClip Frame 18
play();
Symbol 783 MovieClip Frame 35
gotoAndStop (1);
Symbol 804 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 2
play();
Symbol 804 MovieClip Frame 17
gotoAndPlay (2);
Symbol 804 MovieClip Frame 18
play();
Symbol 804 MovieClip Frame 35
gotoAndStop (1);
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 2
stop();
Symbol 807 MovieClip Frame 3
stop();
Symbol 807 MovieClip Frame 4
stop();
Symbol 807 MovieClip Frame 5
stop();
Symbol 826 MovieClip Frame 1
stop();
Symbol 826 MovieClip Frame 2
play();
Symbol 826 MovieClip Frame 17
gotoAndPlay (2);
Symbol 826 MovieClip Frame 18
play();
Symbol 826 MovieClip Frame 34
gotoAndStop (1);
Symbol 845 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 2
play();
Symbol 845 MovieClip Frame 17
gotoAndPlay (2);
Symbol 845 MovieClip Frame 18
play();
Symbol 845 MovieClip Frame 34
gotoAndStop (1);
Symbol 848 MovieClip Frame 1
stop();
Symbol 848 MovieClip Frame 2
stop();
Symbol 848 MovieClip Frame 3
stop();
Symbol 848 MovieClip Frame 4
stop();
Symbol 848 MovieClip Frame 5
stop();
Symbol 867 MovieClip Frame 1
stop();
Symbol 867 MovieClip Frame 2
play();
Symbol 867 MovieClip Frame 17
gotoAndPlay (2);
Symbol 867 MovieClip Frame 18
play();
Symbol 867 MovieClip Frame 33
gotoAndStop (1);
Symbol 886 MovieClip Frame 1
stop();
Symbol 886 MovieClip Frame 2
play();
Symbol 886 MovieClip Frame 17
gotoAndPlay (2);
Symbol 886 MovieClip Frame 18
play();
Symbol 886 MovieClip Frame 33
gotoAndStop (1);
Symbol 889 MovieClip Frame 1
stop();
Symbol 889 MovieClip Frame 2
stop();
Symbol 889 MovieClip Frame 3
stop();
Symbol 889 MovieClip Frame 4
stop();
Symbol 889 MovieClip Frame 5
stop();
Symbol 908 MovieClip Frame 1
stop();
Symbol 908 MovieClip Frame 2
play();
Symbol 908 MovieClip Frame 17
gotoAndPlay (2);
Symbol 908 MovieClip Frame 18
play();
Symbol 908 MovieClip Frame 33
gotoAndStop (1);
Symbol 927 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 2
play();
Symbol 927 MovieClip Frame 17
gotoAndPlay (2);
Symbol 927 MovieClip Frame 18
play();
Symbol 927 MovieClip Frame 33
gotoAndStop (1);
Symbol 930 MovieClip Frame 1
stop();
Symbol 930 MovieClip Frame 2
stop();
Symbol 930 MovieClip Frame 3
stop();
Symbol 930 MovieClip Frame 4
stop();
Symbol 930 MovieClip Frame 5
stop();
Symbol 937 MovieClip Frame 1
Symbol 948 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 2
play();
Symbol 948 MovieClip Frame 17
gotoAndPlay (2);
Symbol 948 MovieClip Frame 18
play();
Symbol 948 MovieClip Frame 35
gotoAndStop (1);
Symbol 966 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 2
play();
Symbol 966 MovieClip Frame 17
gotoAndPlay (2);
Symbol 966 MovieClip Frame 18
play();
Symbol 966 MovieClip Frame 35
gotoAndStop (1);
Symbol 969 MovieClip Frame 1
stop();
Symbol 969 MovieClip Frame 2
stop();
Symbol 969 MovieClip Frame 3
stop();
Symbol 969 MovieClip Frame 4
stop();
Symbol 969 MovieClip Frame 5
stop();
Symbol 976 MovieClip Frame 1
Symbol 987 MovieClip Frame 1
stop();
Symbol 987 MovieClip Frame 2
play();
Symbol 987 MovieClip Frame 17
gotoAndPlay (2);
Symbol 987 MovieClip Frame 18
play();
Symbol 987 MovieClip Frame 33
gotoAndStop (1);
Symbol 1005 MovieClip Frame 1
stop();
Symbol 1005 MovieClip Frame 2
play();
Symbol 1005 MovieClip Frame 17
gotoAndPlay (2);
Symbol 1005 MovieClip Frame 18
play();
Symbol 1005 MovieClip Frame 33
gotoAndStop (1);
Symbol 1008 MovieClip Frame 1
stop();
Symbol 1008 MovieClip Frame 2
stop();
Symbol 1008 MovieClip Frame 3
stop();
Symbol 1008 MovieClip Frame 4
stop();
Symbol 1008 MovieClip Frame 5
stop();
Symbol 1015 MovieClip Frame 1
Symbol 1026 MovieClip Frame 1
stop();
Symbol 1026 MovieClip Frame 2
play();
Symbol 1026 MovieClip Frame 17
gotoAndPlay (2);
Symbol 1026 MovieClip Frame 18
play();
Symbol 1026 MovieClip Frame 35
gotoAndStop (1);
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 2
play();
Symbol 1044 MovieClip Frame 17
gotoAndPlay (2);
Symbol 1044 MovieClip Frame 18
play();
Symbol 1044 MovieClip Frame 35
gotoAndStop (1);
Symbol 1047 MovieClip Frame 1
stop();
Symbol 1047 MovieClip Frame 2
stop();
Symbol 1047 MovieClip Frame 3
stop();
Symbol 1047 MovieClip Frame 4
stop();
Symbol 1047 MovieClip Frame 5
stop();
Symbol 1062 MovieClip Frame 1
stop();
Symbol 1062 MovieClip Frame 2
play();
Symbol 1062 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1062 MovieClip Frame 14
play();
Symbol 1062 MovieClip Frame 37
gotoAndStop (1);
Symbol 1077 MovieClip Frame 1
stop();
Symbol 1077 MovieClip Frame 2
play();
Symbol 1077 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1077 MovieClip Frame 14
play();
Symbol 1077 MovieClip Frame 37
gotoAndStop (1);
Symbol 1080 MovieClip Frame 1
stop();
Symbol 1080 MovieClip Frame 2
stop();
Symbol 1080 MovieClip Frame 3
stop();
Symbol 1080 MovieClip Frame 4
stop();
Symbol 1080 MovieClip Frame 5
stop();
Symbol 1095 MovieClip Frame 1
stop();
Symbol 1095 MovieClip Frame 2
play();
Symbol 1095 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1095 MovieClip Frame 14
play();
Symbol 1095 MovieClip Frame 37
gotoAndStop (1);
Symbol 1110 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 2
play();
Symbol 1110 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1110 MovieClip Frame 14
play();
Symbol 1110 MovieClip Frame 37
gotoAndStop (1);
Symbol 1113 MovieClip Frame 1
stop();
Symbol 1113 MovieClip Frame 2
stop();
Symbol 1113 MovieClip Frame 3
stop();
Symbol 1113 MovieClip Frame 4
stop();
Symbol 1113 MovieClip Frame 5
stop();
Symbol 1114 MovieClip [enemies] Frame 1
stop();
Symbol 1114 MovieClip [enemies] Frame 2
stop();
Symbol 1114 MovieClip [enemies] Frame 3
stop();
Symbol 1114 MovieClip [enemies] Frame 4
stop();
Symbol 1114 MovieClip [enemies] Frame 5
stop();
Symbol 1114 MovieClip [enemies] Frame 6
stop();
Symbol 1114 MovieClip [enemies] Frame 7
stop();
Symbol 1114 MovieClip [enemies] Frame 8
stop();
Symbol 1114 MovieClip [enemies] Frame 10
stop();
Symbol 1114 MovieClip [enemies] Frame 11
stop();
Symbol 1114 MovieClip [enemies] Frame 12
stop();
Symbol 1114 MovieClip [enemies] Frame 14
stop();
Symbol 1114 MovieClip [enemies] Frame 17
stop();
Symbol 1114 MovieClip [enemies] Frame 18
stop();
Symbol 1114 MovieClip [enemies] Frame 20
stop();
Symbol 1114 MovieClip [enemies] Frame 21
stop();
Symbol 1114 MovieClip [enemies] Frame 22
stop();
Symbol 1114 MovieClip [enemies] Frame 23
stop();
Symbol 1114 MovieClip [enemies] Frame 25
stop();
Symbol 1117 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 1126 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._y = _root.display._y + 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1127 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._y = _root.display._y - 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1128 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._x = _root.display._x + 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1129 Button
on (rollOver) { this.onEnterFrame = function () { _root.display._x = _root.display._x - 3; }; } on (rollOut) { delete this.onEnterFrame; }
Symbol 1130 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 1131 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 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 1139 MovieClip [dirArrowUR] Frame 1
stop();
Symbol 1139 MovieClip [dirArrowUR] Frame 2
stop();
Symbol 1142 MovieClip [dirArrowUL] Frame 1
stop();
Symbol 1142 MovieClip [dirArrowUL] Frame 2
stop();
Symbol 1147 MovieClip [dirArrowDL] Frame 1
stop();
Symbol 1147 MovieClip [dirArrowDL] Frame 2
stop();
Symbol 1150 MovieClip [dirArrowDR] Frame 1
stop();
Symbol 1150 MovieClip [dirArrowDR] Frame 2
stop();
Symbol 1156 MovieClip [gameMaskLevelCompleteMC] Frame 1
stop();
Symbol 1156 MovieClip [gameMaskLevelCompleteMC] Frame 2
stop();
Symbol 1163 MovieClip [menuArrow] Frame 1
stop();
Symbol 1163 MovieClip [menuArrow] Frame 2
stop();
Symbol 1167 MovieClip [actionButton] Frame 1
stop();
Symbol 1167 MovieClip [actionButton] Frame 2
stop();
Symbol 1167 MovieClip [actionButton] Frame 3
stop();
Symbol 1174 MovieClip [spellTxtButton] Frame 1
stop();
Symbol 1174 MovieClip [spellTxtButton] Frame 2
stop();
Symbol 1174 MovieClip [spellTxtButton] Frame 3
stop();
Symbol 1178 MovieClip [VS-MC] Frame 20
stop();
Symbol 1184 MovieClip [BG-MC] Frame 1
stop();
Symbol 1184 MovieClip [BG-MC] Frame 2
stop();
Symbol 1185 MovieClip [overlay-MC] Frame 20
stop();
Symbol 1185 MovieClip [overlay-MC] Frame 21
play();
Symbol 1185 MovieClip [overlay-MC] Frame 40
stop(); this.removeMovieClip();
Symbol 1191 MovieClip [windowActions] Frame 1
stop();
Symbol 1191 MovieClip [windowActions] Frame 2
stop();
Symbol 1203 MovieClip [damageTxt] Frame 1
stop();
Symbol 1203 MovieClip [damageTxt] Frame 2
stop();
Symbol 1203 MovieClip [damageTxt] Frame 3
stop();
Symbol 1203 MovieClip [damageTxt] Frame 4
stop();
Symbol 1203 MovieClip [damageTxt] Frame 5
stop();
Symbol 1203 MovieClip [damageTxt] Frame 6
stop();
Symbol 1242 MovieClip [charInfoL-MC] Frame 1
stop();
Symbol 1242 MovieClip [charInfoL-MC] Frame 2
stop();
Symbol 1265 MovieClip [charInfoR-MC] Frame 1
stop();
Symbol 1265 MovieClip [charInfoR-MC] Frame 2
stop();
Symbol 1466 MovieClip [lockpickMC] Frame 1
stop();
Symbol 1466 MovieClip [lockpickMC] Frame 2
stop();
Symbol 1466 MovieClip [lockpickMC] Frame 3
stop();
Symbol 1481 MovieClip [lockpickInfo] Frame 1
stop();
Symbol 1488 MovieClip [poisonSmokeMC] Frame 41
stop();
Symbol 1499 MovieClip Frame 1
play();
Symbol 1499 MovieClip Frame 19
stop();
Symbol 1507 MovieClip [spellFreezeMC] Frame 120
gotoAndPlay (30);
Symbol 1517 MovieClip [spellLightningMC] Frame 30
this.removeMovieClip();
Symbol 1623 MovieClip [menuStats] Frame 1
stop();
Symbol 1623 MovieClip [menuStats] Frame 2
stop();
Symbol 1630 MovieClip [menuItems] Frame 1
stop();
Symbol 1630 MovieClip [menuItems] Frame 2
stop();
Symbol 1635 MovieClip [menuEquipment] Frame 1
stop();
Symbol 1635 MovieClip [menuEquipment] Frame 2
stop();
Symbol 1642 MovieClip [menuSound] Frame 1
stop();
Symbol 1642 MovieClip [menuSound] Frame 2
stop();
Symbol 1649 MovieClip [menuTreasures] Frame 1
stop();
Symbol 1649 MovieClip [menuTreasures] Frame 2
stop();
Symbol 1654 MovieClip [menuExit] Frame 1
stop();
Symbol 1654 MovieClip [menuExit] Frame 2
stop();
Symbol 1659 MovieClip [menuSave] Frame 1
stop();
Symbol 1659 MovieClip [menuSave] Frame 2
stop();
Symbol 1743 MovieClip [gameMaskMissionCompleteMC] Frame 1
stop();
Symbol 1743 MovieClip [gameMaskMissionCompleteMC] Frame 2
stop();
Symbol 1770 MovieClip Frame 2
stopAllSounds();

Library Items

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

Instance Names

"preloaderBar"Frame 1Symbol 24 MovieClip
"adBox"Frame 1Symbol 26 MovieClip
"startGameButt"Frame 1Symbol 32 Button
"_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 75 MovieClip Frame 1Symbol 74 MovieClip
"link"Symbol 76 MovieClip Frame 1Symbol 43 MovieClip
"play_latest_text"Symbol 76 MovieClip Frame 79Symbol 74 MovieClip
"play_latest_text"Symbol 76 MovieClip Frame 117Symbol 74 MovieClip
"myLogo"Symbol 81 MovieClip Frame 1Symbol 80 MovieClip
"logoMC"Symbol 85 MovieClip Frame 2Symbol 81 MovieClip
"rainDropInstance"Symbol 85 MovieClip Frame 2Symbol 16 MovieClip [RainDropEffectAS2]
"tileHit"Symbol 221 MovieClip [tiles] Frame 1Symbol 97 MovieClip
"range"Symbol 221 MovieClip [tiles] Frame 1Symbol 97 MovieClip
"selected"Symbol 221 MovieClip [tiles] Frame 1Symbol 100 MovieClip
"viewMC"Symbol 283 MovieClip Frame 1Symbol 258 MovieClip
"viewMC"Symbol 283 MovieClip Frame 3Symbol 280 MovieClip
"viewMC"Symbol 347 MovieClip Frame 1Symbol 323 MovieClip
"viewMC"Symbol 347 MovieClip Frame 3Symbol 344 MovieClip
"viewMC"Symbol 395 MovieClip Frame 1Symbol 371 MovieClip
"viewMC"Symbol 395 MovieClip Frame 3Symbol 392 MovieClip
"charMC"Symbol 396 MovieClip [defenders] Frame 1Symbol 283 MovieClip
"hover"Symbol 396 MovieClip [defenders] Frame 1Symbol 286 MovieClip [windowActionsMask]
"rangeMC"Symbol 396 MovieClip [defenders] Frame 1Symbol 286 MovieClip [windowActionsMask]
"indicator"Symbol 396 MovieClip [defenders] Frame 1Symbol 302 MovieClip
"charMC"Symbol 396 MovieClip [defenders] Frame 2Symbol 347 MovieClip
"charMC"Symbol 396 MovieClip [defenders] Frame 3Symbol 395 MovieClip
"viewMC"Symbol 434 MovieClip Frame 1Symbol 414 MovieClip
"viewMC"Symbol 434 MovieClip Frame 3Symbol 431 MovieClip
"viewMC"Symbol 471 MovieClip Frame 1Symbol 451 MovieClip
"viewMC"Symbol 471 MovieClip Frame 3Symbol 468 MovieClip
"viewMC"Symbol 508 MovieClip Frame 1Symbol 488 MovieClip
"viewMC"Symbol 508 MovieClip Frame 3Symbol 505 MovieClip
"viewMC"Symbol 553 MovieClip Frame 1Symbol 529 MovieClip
"viewMC"Symbol 553 MovieClip Frame 3Symbol 550 MovieClip
"viewMC"Symbol 598 MovieClip Frame 1Symbol 574 MovieClip
"viewMC"Symbol 598 MovieClip Frame 3Symbol 595 MovieClip
"viewMC"Symbol 643 MovieClip Frame 1Symbol 619 MovieClip
"viewMC"Symbol 643 MovieClip Frame 3Symbol 640 MovieClip
"viewMC"Symbol 680 MovieClip Frame 1Symbol 660 MovieClip
"viewMC"Symbol 680 MovieClip Frame 3Symbol 677 MovieClip
"viewMC"Symbol 717 MovieClip Frame 1Symbol 697 MovieClip
"viewMC"Symbol 717 MovieClip Frame 3Symbol 714 MovieClip
"viewMC"Symbol 762 MovieClip Frame 1Symbol 738 MovieClip
"viewMC"Symbol 762 MovieClip Frame 3Symbol 759 MovieClip
"viewMC"Symbol 807 MovieClip Frame 1Symbol 783 MovieClip
"viewMC"Symbol 807 MovieClip Frame 3Symbol 804 MovieClip
"viewMC"Symbol 848 MovieClip Frame 1Symbol 826 MovieClip
"viewMC"Symbol 848 MovieClip Frame 3Symbol 845 MovieClip
"viewMC"Symbol 889 MovieClip Frame 1Symbol 867 MovieClip
"viewMC"Symbol 889 MovieClip Frame 3Symbol 886 MovieClip
"viewMC"Symbol 930 MovieClip Frame 1Symbol 908 MovieClip
"viewMC"Symbol 930 MovieClip Frame 3Symbol 927 MovieClip
"viewMC"Symbol 969 MovieClip Frame 1Symbol 948 MovieClip
"viewMC"Symbol 969 MovieClip Frame 3Symbol 966 MovieClip
"viewMC"Symbol 1008 MovieClip Frame 1Symbol 987 MovieClip
"viewMC"Symbol 1008 MovieClip Frame 3Symbol 1005 MovieClip
"viewMC"Symbol 1047 MovieClip Frame 1Symbol 1026 MovieClip
"viewMC"Symbol 1047 MovieClip Frame 3Symbol 1044 MovieClip
"viewMC"Symbol 1080 MovieClip Frame 1Symbol 1062 MovieClip
"viewMC"Symbol 1080 MovieClip Frame 3Symbol 1077 MovieClip
"viewMC"Symbol 1113 MovieClip Frame 1Symbol 1095 MovieClip
"viewMC"Symbol 1113 MovieClip Frame 3Symbol 1110 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 2Symbol 434 MovieClip
"indicator"Symbol 1114 MovieClip [enemies] Frame 2Symbol 302 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 3Symbol 471 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 4Symbol 508 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 5Symbol 553 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 6Symbol 598 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 7Symbol 643 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 8Symbol 680 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 10Symbol 717 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 11Symbol 762 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 12Symbol 807 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 14Symbol 848 MovieClip
"indicator"Symbol 1114 MovieClip [enemies] Frame 14Symbol 302 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 17Symbol 889 MovieClip
"indicator"Symbol 1114 MovieClip [enemies] Frame 17Symbol 302 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 18Symbol 930 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 20Symbol 969 MovieClip
"indicator"Symbol 1114 MovieClip [enemies] Frame 20Symbol 302 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 21Symbol 1008 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 22Symbol 1047 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 23Symbol 1080 MovieClip
"charMC"Symbol 1114 MovieClip [enemies] Frame 25Symbol 1113 MovieClip
"indicator"Symbol 1114 MovieClip [enemies] Frame 25Symbol 302 MovieClip
"logo_ro"Symbol 1117 MovieClip Frame 1Symbol 40 MovieClip
"myArrow"Symbol 1163 MovieClip [menuArrow] Frame 1Symbol 1162 MovieClip
"actionName"Symbol 1167 MovieClip [actionButton] Frame 1Symbol 1164 EditableText
"actionName"Symbol 1167 MovieClip [actionButton] Frame 2Symbol 1165 EditableText
"actionName"Symbol 1167 MovieClip [actionButton] Frame 3Symbol 1166 EditableText
"spellName"Symbol 1174 MovieClip [spellTxtButton] Frame 1Symbol 1168 EditableText
"spellMana"Symbol 1174 MovieClip [spellTxtButton] Frame 1Symbol 1169 EditableText
"spellName"Symbol 1174 MovieClip [spellTxtButton] Frame 2Symbol 1170 EditableText
"spellMana"Symbol 1174 MovieClip [spellTxtButton] Frame 2Symbol 1171 EditableText
"spellName"Symbol 1174 MovieClip [spellTxtButton] Frame 3Symbol 1172 EditableText
"spellMana"Symbol 1174 MovieClip [spellTxtButton] Frame 3Symbol 1173 EditableText
"directionButton"Symbol 1194 MovieClip [windowDirectionButton] Frame 1Symbol 1193 MovieClip
"txt"Symbol 1203 MovieClip [damageTxt] Frame 1Symbol 1197 EditableText
"txt"Symbol 1203 MovieClip [damageTxt] Frame 2Symbol 1198 EditableText
"txt"Symbol 1203 MovieClip [damageTxt] Frame 3Symbol 1199 EditableText
"txt"Symbol 1203 MovieClip [damageTxt] Frame 4Symbol 1200 EditableText
"txt"Symbol 1203 MovieClip [damageTxt] Frame 5Symbol 1201 EditableText
"txt"Symbol 1203 MovieClip [damageTxt] Frame 6Symbol 1202 EditableText
"HPMax"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1209 EditableText
"HP"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1210 EditableText
"MPMax"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1213 EditableText
"MP"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1214 EditableText
"charName"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1215 EditableText
"charLvlTxt"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1216 EditableText
"charLvl"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1217 EditableText
"HPMask"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1221 MovieClip
"meterHP"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1224 MovieClip
"MPMask"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1221 MovieClip
"meterMP"Symbol 1242 MovieClip [charInfoL-MC] Frame 1Symbol 1227 MovieClip
"HPMax"Symbol 1242 MovieClip [charInfoL-MC] Frame 2Symbol 1233 EditableText
"HP"Symbol 1242 MovieClip [charInfoL-MC] Frame 2Symbol 1234 EditableText
"MPMax"Symbol 1242 MovieClip [charInfoL-MC] Frame 2Symbol 1237 EditableText
"MP"Symbol 1242 MovieClip [charInfoL-MC] Frame 2Symbol 1238 EditableText
"charName"Symbol 1242 MovieClip [charInfoL-MC] Frame 2Symbol 1239 EditableText
"charLvlTxt"Symbol 1242 MovieClip [charInfoL-MC] Frame 2Symbol 1240 EditableText
"charLvl"Symbol 1242 MovieClip [charInfoL-MC] Frame 2Symbol 1241 EditableText
"HPMax"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1245 EditableText
"HP"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1246 EditableText
"MPMax"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1249 EditableText
"MP"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1250 EditableText
"charName"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1251 EditableText
"charLvlTxt"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1252 EditableText
"charLvl"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1253 EditableText
"HPMask"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1221 MovieClip
"meterHP"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1224 MovieClip
"MPMask"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1221 MovieClip
"meterMP"Symbol 1265 MovieClip [charInfoR-MC] Frame 1Symbol 1227 MovieClip
"HPMax"Symbol 1265 MovieClip [charInfoR-MC] Frame 2Symbol 1256 EditableText
"HP"Symbol 1265 MovieClip [charInfoR-MC] Frame 2Symbol 1257 EditableText
"MPMax"Symbol 1265 MovieClip [charInfoR-MC] Frame 2Symbol 1260 EditableText
"MP"Symbol 1265 MovieClip [charInfoR-MC] Frame 2Symbol 1261 EditableText
"charName"Symbol 1265 MovieClip [charInfoR-MC] Frame 2Symbol 1262 EditableText
"charLvlTxt"Symbol 1265 MovieClip [charInfoR-MC] Frame 2Symbol 1263 EditableText
"charLvl"Symbol 1265 MovieClip [charInfoR-MC] Frame 2Symbol 1264 EditableText
"pick"Symbol 1466 MovieClip [lockpickMC] Frame 1Symbol 1457 MovieClip
"pick"Symbol 1466 MovieClip [lockpickMC] Frame 2Symbol 1454 MovieClip
"pick"Symbol 1466 MovieClip [lockpickMC] Frame 3Symbol 1451 MovieClip
"charName"Symbol 1481 MovieClip [lockpickInfo] Frame 1Symbol 1474 EditableText
"lockpickMask"Symbol 1481 MovieClip [lockpickInfo] Frame 1Symbol 1477 MovieClip
"meterLockpick"Symbol 1481 MovieClip [lockpickInfo] Frame 1Symbol 1480 MovieClip
"boxMC"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1529 MovieClip
"charName"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1533 EditableText
"charClass"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1534 EditableText
"charLevel"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1535 EditableText
"HPTxt"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1539 EditableText
"MPTxt"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1540 EditableText
"EXPTxt"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1541 EditableText
"MPMask"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1477 MovieClip
"meterMP"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1480 MovieClip
"HPMask"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1477 MovieClip
"meterHP"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1484 MovieClip
"EXPMask"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1477 MovieClip
"meterHP"Symbol 1544 MovieClip [statusCharStats] Frame 1Symbol 1532 MovieClip
"charName"Symbol 1548 MovieClip [statusTreasures] Frame 1Symbol 1547 EditableText
"charName"Symbol 1554 MovieClip [statusItems] Frame 1Symbol 1551 EditableText
"itemInfo"Symbol 1554 MovieClip [statusItems] Frame 1Symbol 1553 EditableText
"charName"Symbol 1574 MovieClip [statusEquipment] Frame 1Symbol 1557 EditableText
"charSTR"Symbol 1574 MovieClip [statusEquipment] Frame 1Symbol 1560 EditableText
"charDEF"Symbol 1574 MovieClip [statusEquipment] Frame 1Symbol 1562 EditableText
"charMAG"Symbol 1574 MovieClip [statusEquipment] Frame 1Symbol 1564 EditableText
"charLCK"Symbol 1574 MovieClip [statusEquipment] Frame 1Symbol 1566 EditableText
"charSPD"Symbol 1574 MovieClip [statusEquipment] Frame 1Symbol 1568 EditableText
"charRange"Symbol 1574 MovieClip [statusEquipment] Frame 1Symbol 1573 EditableText
"charName"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1576 EditableText
"charClass"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1577 EditableText
"HPTxt"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1579 EditableText
"charLvl"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1581 EditableText
"MPTxt"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1582 EditableText
"charEXP"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1589 EditableText
"charEXPNext"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1591 EditableText
"charSTR"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1593 EditableText
"charDEF"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1595 EditableText
"charMAG"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1597 EditableText
"charLCK"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1599 EditableText
"charSPD"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1601 EditableText
"charLockpicking"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1603 EditableText
"charRange"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1605 EditableText
"MPMask"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1477 MovieClip
"meterLockpick"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1480 MovieClip
"HPMask"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1477 MovieClip
"meterHP"Symbol 1607 MovieClip [statusStatsMain] Frame 1Symbol 1484 MovieClip
"timeTxt"Symbol 1617 MovieClip [statusBG] Frame 1Symbol 1614 EditableText
"coinsTxt"Symbol 1617 MovieClip [statusBG] Frame 1Symbol 1616 EditableText
"charName"Symbol 1623 MovieClip [menuStats] Frame 1Symbol 1620 EditableText
"charName"Symbol 1623 MovieClip [menuStats] Frame 2Symbol 1622 EditableText
"charName"Symbol 1630 MovieClip [menuItems] Frame 1Symbol 1625 EditableText
"charName"Symbol 1630 MovieClip [menuItems] Frame 2Symbol 1629 EditableText
"charName"Symbol 1635 MovieClip [menuEquipment] Frame 1Symbol 1631 EditableText
"charName"Symbol 1635 MovieClip [menuEquipment] Frame 2Symbol 1634 EditableText
"charName"Symbol 1642 MovieClip [menuSound] Frame 1Symbol 1637 EditableText
"charName"Symbol 1642 MovieClip [menuSound] Frame 2Symbol 1641 EditableText
"charName"Symbol 1649 MovieClip [menuTreasures] Frame 1Symbol 1644 EditableText
"charName"Symbol 1649 MovieClip [menuTreasures] Frame 2Symbol 1648 EditableText
"charName"Symbol 1654 MovieClip [menuExit] Frame 1Symbol 1650 EditableText
"charName"Symbol 1654 MovieClip [menuExit] Frame 2Symbol 1653 EditableText
"charName"Symbol 1659 MovieClip [menuSave] Frame 1Symbol 1655 EditableText
"charName"Symbol 1659 MovieClip [menuSave] Frame 2Symbol 1658 EditableText
"charName"Symbol 1661 MovieClip [menuSaveAlert] Frame 1Symbol 1660 EditableText
"lavaMC"Symbol 1705 MovieClip [worldMap] Frame 1Symbol 1696 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 1778 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 1779 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 1780 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 1781 as "__Packages.mx.transitions.easing.Elastic"
ExportAssets (56)Timeline Frame 1Symbol 1782 as "__Packages.mx.transitions.easing.Strong"
ExportAssets (56)Timeline Frame 1Symbol 1783 as "__Packages.mx.transitions.easing.Back"
ExportAssets (56)Timeline Frame 1Symbol 1784 as "__Packages.Path"
ExportAssets (56)Timeline Frame 1Symbol 1785 as "__Packages.mx.transitions.easing.Bounce"
ExportAssets (56)Timeline Frame 1Symbol 1786 as "__Packages.mx.transitions.easing.Regular"
ExportAssets (56)Timeline Frame 1Symbol 1787 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 91 as "treasureIcon"
ExportAssets (56)Timeline Frame 2Symbol 221 as "tiles"
ExportAssets (56)Timeline Frame 2Symbol 232 as "tileOutline"
ExportAssets (56)Timeline Frame 2Symbol 236 as "miniTiles"
ExportAssets (56)Timeline Frame 2Symbol 285 as "overlayGraphic"
ExportAssets (56)Timeline Frame 2Symbol 286 as "windowActionsMask"
ExportAssets (56)Timeline Frame 2Symbol 364 as "arrowMC"
ExportAssets (56)Timeline Frame 2Symbol 396 as "defenders"
ExportAssets (56)Timeline Frame 2Symbol 1114 as "enemies"
ExportAssets (56)Timeline Frame 2Symbol 1120 as "titleScreenMC"
ExportAssets (56)Timeline Frame 2Symbol 1123 as "iconSpellScroll"
ExportAssets (56)Timeline Frame 2Symbol 1134 as "screenMover"
ExportAssets (56)Timeline Frame 2Symbol 1139 as "dirArrowUR"
ExportAssets (56)Timeline Frame 2Symbol 1142 as "dirArrowUL"
ExportAssets (56)Timeline Frame 2Symbol 1147 as "dirArrowDL"
ExportAssets (56)Timeline Frame 2Symbol 1150 as "dirArrowDR"
ExportAssets (56)Timeline Frame 2Symbol 1153 as "gameMaskMC"
ExportAssets (56)Timeline Frame 2Symbol 1156 as "gameMaskLevelCompleteMC"
ExportAssets (56)Timeline Frame 2Symbol 1159 as "gameMaskGameOverMC"
ExportAssets (56)Timeline Frame 2Symbol 1163 as "menuArrow"
ExportAssets (56)Timeline Frame 2Symbol 1167 as "actionButton"
ExportAssets (56)Timeline Frame 2Symbol 1174 as "spellTxtButton"
ExportAssets (56)Timeline Frame 2Symbol 1178 as "VS-MC"
ExportAssets (56)Timeline Frame 2Symbol 1181 as "frame-MC"
ExportAssets (56)Timeline Frame 2Symbol 1184 as "BG-MC"
ExportAssets (56)Timeline Frame 2Symbol 1185 as "overlay-MC"
ExportAssets (56)Timeline Frame 2Symbol 1191 as "windowActions"
ExportAssets (56)Timeline Frame 2Symbol 1194 as "windowDirectionButton"
ExportAssets (56)Timeline Frame 2Symbol 1195 as "windowDirection"
ExportAssets (56)Timeline Frame 2Symbol 1203 as "damageTxt"
ExportAssets (56)Timeline Frame 2Symbol 1242 as "charInfoL-MC"
ExportAssets (56)Timeline Frame 2Symbol 1265 as "charInfoR-MC"
ExportAssets (56)Timeline Frame 2Symbol 1266 as "Square"
ExportAssets (56)Timeline Frame 2Symbol 1269 as "textBox1GFX"
ExportAssets (56)Timeline Frame 2Symbol 1270 as "textBox1MC"
ExportAssets (56)Timeline Frame 2Symbol 1271 as "playerIndicator"
ExportAssets (56)Timeline Frame 2Symbol 1274 as "goldIcon"
ExportAssets (56)Timeline Frame 2Symbol 1277 as "textBox2MC"
ExportAssets (56)Timeline Frame 2Symbol 1280 as "iconLockPickManual"
ExportAssets (56)Timeline Frame 2Symbol 1283 as "iconGold"
ExportAssets (56)Timeline Frame 2Symbol 1286 as "iconAmberRobe"
ExportAssets (56)Timeline Frame 2Symbol 1289 as "iconSilkRobe"
ExportAssets (56)Timeline Frame 2Symbol 1292 as "iconCloak"
ExportAssets (56)Timeline Frame 2Symbol 1295 as "iconClothRobe"
ExportAssets (56)Timeline Frame 2Symbol 1298 as "iconLavaWand"
ExportAssets (56)Timeline Frame 2Symbol 1301 as "iconElementStaff"
ExportAssets (56)Timeline Frame 2Symbol 1304 as "iconWand"
ExportAssets (56)Timeline Frame 2Symbol 1307 as "iconWoodStaff"
ExportAssets (56)Timeline Frame 2Symbol 1310 as "iconFlameSword"
ExportAssets (56)Timeline Frame 2Symbol 1313 as "iconFalchion"
ExportAssets (56)Timeline Frame 2Symbol 1316 as "iconBroadSword"
ExportAssets (56)Timeline Frame 2Symbol 1319 as "iconIronSword"
ExportAssets (56)Timeline Frame 2Symbol 1322 as "iconPlateArmor"
ExportAssets (56)Timeline Frame 2Symbol 1325 as "iconChainMail"
ExportAssets (56)Timeline Frame 2Symbol 1328 as "iconIronArmor"
ExportAssets (56)Timeline Frame 2Symbol 1331 as "iconCupidBow"
ExportAssets (56)Timeline Frame 2Symbol 1334 as "iconIronDoublet"
ExportAssets (56)Timeline Frame 2Symbol 1337 as "iconIronVest"
ExportAssets (56)Timeline Frame 2Symbol 1340 as "iconLongBow"
ExportAssets (56)Timeline Frame 2Symbol 1343 as "iconMarksmanBow"
ExportAssets (56)Timeline Frame 2Symbol 1346 as "iconRoseGilet"
ExportAssets (56)Timeline Frame 2Symbol 1349 as "iconThiefGloves"
ExportAssets (56)Timeline Frame 2Symbol 1352 as "iconSpeedBoots"
ExportAssets (56)Timeline Frame 2Symbol 1355 as "iconSilverNecklace"
ExportAssets (56)Timeline Frame 2Symbol 1358 as "iconRubyPin"
ExportAssets (56)Timeline Frame 2Symbol 1361 as "iconPowerGlove"
ExportAssets (56)Timeline Frame 2Symbol 1364 as "iconMagicRing"
ExportAssets (56)Timeline Frame 2Symbol 1367 as "iconLuckyRibbon"
ExportAssets (56)Timeline Frame 2Symbol 1370 as "iconIronRing"
ExportAssets (56)Timeline Frame 2Symbol 1373 as "iconAmuletWarding"
ExportAssets (56)Timeline Frame 2Symbol 1376 as "iconResurrection"
ExportAssets (56)Timeline Frame 2Symbol 1379 as "iconTreasure"
ExportAssets (56)Timeline Frame 2Symbol 1382 as "iconRustyArmor"
ExportAssets (56)Timeline Frame 2Symbol 1385 as "iconWoodenBow"
ExportAssets (56)Timeline Frame 2Symbol 1388 as "iconRustySword"
ExportAssets (56)Timeline Frame 2Symbol 1391 as "iconPoison"
ExportAssets (56)Timeline Frame 2Symbol 1394 as "iconDeath"
ExportAssets (56)Timeline Frame 2Symbol 1397 as "iconUltraLockpick"
ExportAssets (56)Timeline Frame 2Symbol 1400 as "iconIronLockpick"
ExportAssets (56)Timeline Frame 2Symbol 1403 as "iconRustyLockpick"
ExportAssets (56)Timeline Frame 2Symbol 1406 as "iconIronTusk"
ExportAssets (56)Timeline Frame 2Symbol 1409 as "iconPowerBar"
ExportAssets (56)Timeline Frame 2Symbol 1412 as "iconHPBooster"
ExportAssets (56)Timeline Frame 2Symbol 1415 as "iconMagicTonic"
ExportAssets (56)Timeline Frame 2Symbol 1418 as "iconManaRoot"
ExportAssets (56)Timeline Frame 2Symbol 1421 as "iconHealingHerb"
ExportAssets (56)Timeline Frame 2Symbol 1424 as "iconMegaElixer"
ExportAssets (56)Timeline Frame 2Symbol 1427 as "iconElixer"
ExportAssets (56)Timeline Frame 2Symbol 1430 as "iconManaPotion"
ExportAssets (56)Timeline Frame 2Symbol 1433 as "iconSmallManaPotion"
ExportAssets (56)Timeline Frame 2Symbol 1436 as "iconAntidote"
ExportAssets (56)Timeline Frame 2Symbol 1439 as "iconLargePotion"
ExportAssets (56)Timeline Frame 2Symbol 1442 as "iconMediumPotion"
ExportAssets (56)Timeline Frame 2Symbol 1445 as "iconSmallPotion"
ExportAssets (56)Timeline Frame 2Symbol 1448 as "iconDisabled"
ExportAssets (56)Timeline Frame 2Symbol 1460 as "treasureBG"
ExportAssets (56)Timeline Frame 2Symbol 1465 as "lockMC"
ExportAssets (56)Timeline Frame 2Symbol 1466 as "lockpickMC"
ExportAssets (56)Timeline Frame 2Symbol 1468 as "treasureOverlay"
ExportAssets (56)Timeline Frame 2Symbol 1481 as "lockpickInfo"
ExportAssets (56)Timeline Frame 2Symbol 1488 as "poisonSmokeMC"
ExportAssets (56)Timeline Frame 2Symbol 1500 as "flameMC"
ExportAssets (56)Timeline Frame 2Symbol 1507 as "spellFreezeMC"
ExportAssets (56)Timeline Frame 2Symbol 1517 as "spellLightningMC"
ExportAssets (56)Timeline Frame 2Symbol 1520 as "lockpickingGuideMC"
ExportAssets (56)Timeline Frame 2Symbol 1522 as "statusEquipmentDescMC"
ExportAssets (56)Timeline Frame 2Symbol 1524 as "statusNextCharArrow"
ExportAssets (56)Timeline Frame 2Symbol 1527 as "statusItemAlert"
ExportAssets (56)Timeline Frame 2Symbol 1544 as "statusCharStats"
ExportAssets (56)Timeline Frame 2Symbol 1548 as "statusTreasures"
ExportAssets (56)Timeline Frame 2Symbol 1554 as "statusItems"
ExportAssets (56)Timeline Frame 2Symbol 1574 as "statusEquipment"
ExportAssets (56)Timeline Frame 2Symbol 1607 as "statusStatsMain"
ExportAssets (56)Timeline Frame 2Symbol 1610 as "statusCharsBG"
ExportAssets (56)Timeline Frame 2Symbol 1617 as "statusBG"
ExportAssets (56)Timeline Frame 2Symbol 1623 as "menuStats"
ExportAssets (56)Timeline Frame 2Symbol 1630 as "menuItems"
ExportAssets (56)Timeline Frame 2Symbol 1635 as "menuEquipment"
ExportAssets (56)Timeline Frame 2Symbol 1642 as "menuSound"
ExportAssets (56)Timeline Frame 2Symbol 1649 as "menuTreasures"
ExportAssets (56)Timeline Frame 2Symbol 1654 as "menuExit"
ExportAssets (56)Timeline Frame 2Symbol 1659 as "menuSave"
ExportAssets (56)Timeline Frame 2Symbol 1661 as "menuSaveAlert"
ExportAssets (56)Timeline Frame 2Symbol 1664 as "textBoxWarrior"
ExportAssets (56)Timeline Frame 2Symbol 1667 as "textBoxMage"
ExportAssets (56)Timeline Frame 2Symbol 1670 as "textBoxThief"
ExportAssets (56)Timeline Frame 2Symbol 1673 as "textBoxGold"
ExportAssets (56)Timeline Frame 2Symbol 1676 as "shopDiffDecrease"
ExportAssets (56)Timeline Frame 2Symbol 1679 as "shopDiffIncrease"
ExportAssets (56)Timeline Frame 2Symbol 1682 as "shopDiffEqual"
ExportAssets (56)Timeline Frame 2Symbol 1685 as "textBoxShop"
ExportAssets (56)Timeline Frame 2Symbol 1688 as "mapTextbox1"
ExportAssets (56)Timeline Frame 2Symbol 1691 as "mapMarker2"
ExportAssets (56)Timeline Frame 2Symbol 1694 as "mapMarker1"
ExportAssets (56)Timeline Frame 2Symbol 1699 as "cloud1"
ExportAssets (56)Timeline Frame 2Symbol 1702 as "cloud2"
ExportAssets (56)Timeline Frame 2Symbol 1705 as "worldMap"
ExportAssets (56)Timeline Frame 2Symbol 1709 as "mapMenu"
ExportAssets (56)Timeline Frame 2Symbol 1713 as "mapSave"
ExportAssets (56)Timeline Frame 2Symbol 1714 as "mapInnOverlay"
ExportAssets (56)Timeline Frame 2Symbol 1717 as "textBoxGrandpa"
ExportAssets (56)Timeline Frame 2Symbol 1720 as "textBoxPortrait"
ExportAssets (56)Timeline Frame 2Symbol 1724 as "textBoxArrow"
ExportAssets (56)Timeline Frame 2Symbol 1727 as "textBoxInn"
ExportAssets (56)Timeline Frame 2Symbol 1730 as "textBoxMissions"
ExportAssets (56)Timeline Frame 2Symbol 1733 as "textBox3MC"
ExportAssets (56)Timeline Frame 2Symbol 1736 as "themeMusicButton"
ExportAssets (56)Timeline Frame 2Symbol 1742 as "shopLeaveButton"
ExportAssets (56)Timeline Frame 2Symbol 1743 as "gameMaskMissionCompleteMC"
ExportAssets (56)Timeline Frame 2Symbol 1744 as "likwidIntroSnd"
ExportAssets (56)Timeline Frame 2Symbol 1745 as "gameoverSnd"
ExportAssets (56)Timeline Frame 2Symbol 1746 as "deathSnd"
ExportAssets (56)Timeline Frame 2Symbol 1747 as "missSnd"
ExportAssets (56)Timeline Frame 2Symbol 1748 as "startLevelSnd"
ExportAssets (56)Timeline Frame 2Symbol 1749 as "treasureOpenSnd"
ExportAssets (56)Timeline Frame 2Symbol 1750 as "swordSnd"
ExportAssets (56)Timeline Frame 2Symbol 1751 as "chooseTileSnd"
ExportAssets (56)Timeline Frame 2Symbol 1752 as "lockUnlockedSnd"
ExportAssets (56)Timeline Frame 2Symbol 1753 as "lockpickingSnd"
ExportAssets (56)Timeline Frame 2Symbol 1754 as "lockpickBreakSnd"
ExportAssets (56)Timeline Frame 2Symbol 1755 as "lightningSnd"
ExportAssets (56)Timeline Frame 2Symbol 1756 as "levelupSnd"
ExportAssets (56)Timeline Frame 2Symbol 1757 as "damageSnd"
ExportAssets (56)Timeline Frame 2Symbol 1758 as "healSnd"
ExportAssets (56)Timeline Frame 2Symbol 1759 as "freezeSnd"
ExportAssets (56)Timeline Frame 2Symbol 1760 as "foundItemSnd"
ExportAssets (56)Timeline Frame 2Symbol 1761 as "fireSnd"
ExportAssets (56)Timeline Frame 2Symbol 1762 as "treasureDropSnd"
ExportAssets (56)Timeline Frame 2Symbol 1763 as "expSnd"
ExportAssets (56)Timeline Frame 2Symbol 1764 as "endLevelSnd"
ExportAssets (56)Timeline Frame 2Symbol 1765 as "buttonSnd"
ExportAssets (56)Timeline Frame 2Symbol 1766 as "archerSnd"
ExportAssets (56)Timeline Frame 2Symbol 1767 as "levelSnd"
ExportAssets (56)Timeline Frame 2Symbol 1768 as "themeMusicSnd"
ExportAssets (56)Timeline Frame 2Symbol 1769 as "worldMapMusic"
ExportAssets (56)Timeline Frame 2Symbol 1776 as "statusNextCharButton"

Labels

"attack"Symbol 258 MovieClip Frame 20
"attack"Symbol 280 MovieClip Frame 20
"dead"Symbol 283 MovieClip Frame 5
"attack"Symbol 323 MovieClip Frame 20
"attack"Symbol 344 MovieClip Frame 20
"dead"Symbol 347 MovieClip Frame 5
"attack"Symbol 371 MovieClip Frame 20
"attack"Symbol 392 MovieClip Frame 20
"dead"Symbol 395 MovieClip Frame 5
"Kronus"Symbol 396 MovieClip [defenders] Frame 1
"Kage"Symbol 396 MovieClip [defenders] Frame 2
"Aryana"Symbol 396 MovieClip [defenders] Frame 3
"attack"Symbol 414 MovieClip Frame 18
"attack"Symbol 431 MovieClip Frame 18
"dead"Symbol 434 MovieClip Frame 5
"attack"Symbol 451 MovieClip Frame 18
"attack"Symbol 468 MovieClip Frame 18
"dead"Symbol 471 MovieClip Frame 5
"attack"Symbol 488 MovieClip Frame 18
"attack"Symbol 505 MovieClip Frame 18
"dead"Symbol 508 MovieClip Frame 5
"attack"Symbol 529 MovieClip Frame 18
"attack"Symbol 550 MovieClip Frame 18
"dead"Symbol 553 MovieClip Frame 5
"attack"Symbol 574 MovieClip Frame 18
"attack"Symbol 595 MovieClip Frame 18
"dead"Symbol 598 MovieClip Frame 5
"attack"Symbol 619 MovieClip Frame 18
"attack"Symbol 640 MovieClip Frame 18
"dead"Symbol 643 MovieClip Frame 5
"attack"Symbol 660 MovieClip Frame 18
"attack"Symbol 677 MovieClip Frame 18
"dead"Symbol 680 MovieClip Frame 5
"attack"Symbol 697 MovieClip Frame 18
"attack"Symbol 714 MovieClip Frame 18
"dead"Symbol 717 MovieClip Frame 5
"attack"Symbol 738 MovieClip Frame 18
"attack"Symbol 759 MovieClip Frame 18
"dead"Symbol 762 MovieClip Frame 5
"attack"Symbol 783 MovieClip Frame 18
"attack"Symbol 804 MovieClip Frame 18
"dead"Symbol 807 MovieClip Frame 5
"attack"Symbol 826 MovieClip Frame 18
"attack"Symbol 845 MovieClip Frame 18
"dead"Symbol 848 MovieClip Frame 5
"attack"Symbol 867 MovieClip Frame 18
"attack"Symbol 886 MovieClip Frame 18
"dead"Symbol 889 MovieClip Frame 5
"attack"Symbol 908 MovieClip Frame 18
"attack"Symbol 927 MovieClip Frame 18
"dead"Symbol 930 MovieClip Frame 5
"attack"Symbol 948 MovieClip Frame 18
"attack"Symbol 966 MovieClip Frame 18
"dead"Symbol 969 MovieClip Frame 5
"attack"Symbol 987 MovieClip Frame 18
"attack"Symbol 1005 MovieClip Frame 18
"dead"Symbol 1008 MovieClip Frame 5
"attack"Symbol 1026 MovieClip Frame 18
"attack"Symbol 1044 MovieClip Frame 18
"dead"Symbol 1047 MovieClip Frame 5
"attack"Symbol 1062 MovieClip Frame 14
"attack"Symbol 1077 MovieClip Frame 14
"dead"Symbol 1080 MovieClip Frame 5
"attack"Symbol 1095 MovieClip Frame 14
"attack"Symbol 1110 MovieClip Frame 14
"dead"Symbol 1113 MovieClip Frame 5
"beetle1"Symbol 1114 MovieClip [enemies] Frame 2
"beetle2"Symbol 1114 MovieClip [enemies] Frame 3
"beetle3"Symbol 1114 MovieClip [enemies] Frame 4
"snake1"Symbol 1114 MovieClip [enemies] Frame 5
"snake2"Symbol 1114 MovieClip [enemies] Frame 6
"snake3"Symbol 1114 MovieClip [enemies] Frame 7
"mutant1"Symbol 1114 MovieClip [enemies] Frame 8
"mutant3"Symbol 1114 MovieClip [enemies] Frame 10
"scorpion1"Symbol 1114 MovieClip [enemies] Frame 11
"scorpion2"Symbol 1114 MovieClip [enemies] Frame 12
"eyeguy1"Symbol 1114 MovieClip [enemies] Frame 14
"skeleton1"Symbol 1114 MovieClip [enemies] Frame 17
"skeleton2"Symbol 1114 MovieClip [enemies] Frame 18
"flameskull1"Symbol 1114 MovieClip [enemies] Frame 20
"flameskull2"Symbol 1114 MovieClip [enemies] Frame 21
"flameskull3"Symbol 1114 MovieClip [enemies] Frame 22
"ogre1"Symbol 1114 MovieClip [enemies] Frame 23
"ogre3"Symbol 1114 MovieClip [enemies] Frame 25




http://swfchan.com/19/92883/info.shtml
Created: 27/3 -2019 05:31:49 Last modified: 27/3 -2019 05:31:49 Server time: 29/04 -2024 07:34:50