Frame 1
Stage.scaleMode = "noScale";
Stage.showMenu = false;
Stage.align = "TL";
LOADED = Math.round(getBytesLoaded());
TOTAL = Math.round(getBytesTotal());
PERCENT = LOADED / TOTAL;
BALL._xscale = Math.round(PERCENT * 100);
BALL._yscale = Math.round(PERCENT * 100);
TEXT = ("Loaded: " + Math.round(PERCENT * 100)) + "%";
if (LOADED == TOTAL) {
gotoAndPlay (4);
}
Frame 2
gotoAndPlay (1);
Frame 4
stop();
playButton.onRelease = function () {
gotoAndPlay (5);
};
Frame 5
stop();
var soundOn = true;
speaker.stop();
song = new Sound();
song.attachSound("oneMansDream");
song.start();
speaker.play();
song.onSoundComplete = function () {
song.start();
speaker.play();
};
var charName = "Jamie";
var body = 1;
var might = 1;
var speed = 1;
var skill = 1;
var mind = 1;
var spirit = 1;
var playerBattleLife = _root.body;
var playerBattleSpirit = _root.spirit;
var enemyBody = 1;
var enemyMight = 1;
var enemySpeed = 1;
var enemySkill = 1;
var enemyMind = 1;
var enemySpirit = 1;
var coreAttribute = 0;
var randomAttribute = 0;
var MMPNum = 0;
var LMPNum = 0;
var MPNum = 0;
var GMPNum = 0;
var SMPNum = 0;
var SORNum = 0;
var MLNum = 0;
var itemRandom = 0;
var itemNum = 0;
var namelessBattle = false;
var namelessBattleComplete = false;
var enemyName = "nameless";
var enemyBattleLife = 0;
var enemyBattleSpirit = 0;
var damage = 0;
var playerInit = 0;
var enemyInit = 0;
var coreDamage = 0;
var randomDamage = 0;
var attack = 0;
var dodge = 0;
var pDefense = 0;
var mDefense = 0;
var playerState = "none";
var enemyState = "none";
var summonState = "none";
var lifeIndex = 0;
var powerIndex = 0;
var speedIndex = 0;
var skillIndex = 0;
var playerAttack = false;
var enemyAttack = false;
var startFight = false;
var fightEnd = true;
var direction = "none";
var floorNext = 0;
var enemyLevel = 0;
var enemyExp = 0;
var experiencePoints = 30;
var floorLevel = 0;
var floorName = "floorless";
var doorSection1 = false;
var doorSection2 = false;
var doorSection3 = false;
var doorSection4 = false;
var doorSection5 = false;
var expReq = new Array();
expReq = [1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768, 1028, 1542, 2056, 3084, 4112, 6168, 8224, 12336, 16448, 24672, 32896];
Instance of Symbol 606 MovieClip "room" in Frame 5
onClipEvent (load) {
this.attachMovie("intro", "room", 10);
}
Symbol 14 MovieClip [eMagic] Frame 4
magicSound = new Sound();
magicSound.attachSound("metalswooshSmall");
magicSound.start(0, 1);
Symbol 14 MovieClip [eMagic] Frame 11
explosionSound = new Sound();
_root.enemyBattleSpirit = _root.enemyBattleSpirit - 1;
_root.attack = Math.floor(random(_root.enemySkill)) + 1;
_root.dodge = Math.floor(random(_root.speed)) + 1;
if (_root.attack >= _root.dodge) {
randomSound = random(4);
if (randomSound == 0) {
explosionSound.attachSound("explosion1");
explosionSound.start(0, 1);
} else if (randomSound == 1) {
explosionSound.attachSound("explosion2");
explosionSound.start(0, 1);
} else if (randomSound == 2) {
explosionSound.attachSound("explosion3");
explosionSound.start(0, 1);
} else if (randomSound == 3) {
explosionSound.attachSound("explosion4");
explosionSound.start(0, 1);
}
_root.mDefense = Math.floor(_root.spirit / 2);
_root.coreDamage = Math.floor(_root.enemyMind / 2);
_root.randomDamage = Math.floor(random(_root.enemyMind - _root.coreDamage)) + 1;
_root.damage = (_root.coreDamage + _root.randomDamage) - _root.mDefense;
if (_root.damage < 0) {
_root.damage = 0;
}
_root.playerBattleLife = _root.playerBattleLife - _root.damage;
_root.room.room.hero.attachMovie("playerDamage", "hero", 10);
} else if (_root.attack < _root.dodge) {
explosionSound.attachSound("ExplosionBigAndFar");
explosionSound.start(0, 1);
_root.damage = "Miss";
_root.room.room.hero.attachMovie("playerDamage", "hero", 10);
}
if (_root.playerBattleLife <= 0) {
_root.room.attachMovie("deathLost", "room", 10);
}
Symbol 14 MovieClip [eMagic] Frame 17
if (_root.playerAttack) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (!_root.playerAttack) {
_root.fightEnd = true;
}
_root.room.room.villian.attachMovie("enemy", "hero", 10);
Symbol 15 MovieClip [pMagic] Frame 4
magicSound = new Sound();
magicSound.attachSound("metalswooshSmall");
magicSound.start(0, 1);
Symbol 15 MovieClip [pMagic] Frame 11
explosionSound = new Sound();
_root.playerBattleSpirit = _root.playerBattleSpirit - 1;
_root.attack = Math.floor(random(_root.skill)) + 1;
_root.dodge = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.attack >= _root.dodge) {
randomSound = random(4);
if (randomSound == 0) {
explosionSound.attachSound("explosion1");
explosionSound.start(0, 1);
} else if (randomSound == 1) {
explosionSound.attachSound("explosion2");
explosionSound.start(0, 1);
} else if (randomSound == 2) {
explosionSound.attachSound("explosion3");
explosionSound.start(0, 1);
} else if (randomSound == 3) {
explosionSound.attachSound("explosion4");
explosionSound.start(0, 1);
}
_root.mDefense = Math.floor(_root.enemySpirit / 2);
_root.coreDamage = Math.floor(_root.mind / 2);
_root.randomDamage = Math.floor(random(_root.mind - _root.coreDamage)) + 1;
_root.damage = (_root.coreDamage + _root.randomDamage) - _root.mDefense;
if (_root.damage < 0) {
_root.damage = 0;
}
_root.enemyBattleLife = _root.enemyBattleLife - _root.damage;
_root.room.room.villian.attachMovie("enemyDamage", "villian", 10);
} else if (_root.attack < _root.dodge) {
explosionSound.attachSound("ExplosionBigAndFar");
explosionSound.start(0, 1);
_root.damage = "Miss";
_root.room.room.villian.attachMovie("enemyDamage", "villian", 10);
}
if (_root.enemyBattleLife <= 0) {
if (_root.namelessBattle) {
_root.namelessBattleComplete = true;
_root.room.attachMovie("nameLessBattleWon", "room", 10);
} else if (_root.floorLevel == 5) {
_root.doorSection1 = true;
_root.room.attachMovie("doorKeeperWon", "room", 10);
} else if (_root.floorLevel == 10) {
_root.doorSection2 = true;
_root.room.attachMovie("doorKeeperWon", "room", 10);
} else if (_root.floorLevel == 15) {
_root.doorSection3 = true;
_root.room.attachMovie("doorKeeperWon", "room", 10);
} else if (_root.floorLevel == 20) {
_root.doorSection4 = true;
_root.room.attachMovie("doorKeeperWon", "room", 10);
} else if (_root.floorLevel == 25) {
_root.room.attachMovie("lastBattleWon", "room", 10);
} else {
_root.room.attachMovie("basicBattleWon", "room", 10);
}
}
Symbol 15 MovieClip [pMagic] Frame 17
if (_root.enemyAttack) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (!_root.enemyAttack) {
_root.fightEnd = true;
}
_root.room.room.hero.attachMovie("player", "hero", 10);
Symbol 20 MovieClip [healPlayer] Frame 1
energizeSound = new Sound();
energizeSound.attachSound("energizeEdit");
energizeSound.start(0, 1);
Symbol 20 MovieClip [healPlayer] Frame 13
_root.playerBattleSpirit = _root.playerBattleSpirit - 2;
_root.pDefense = Math.floor(_root.body / 2);
_root.coreDamage = Math.floor(_root.spirit / 2);
_root.randomDamage = Math.floor(random(_root.spirit - _root.coreDamage)) + 1;
_root.damage = (_root.coreDamage + _root.randomDamage) - _root.pDefense;
if (_root.damage < 0) {
_root.damage = 0;
}
_root.playerBattleLife = _root.playerBattleLife + _root.damage;
if (_root.playerBattleLife > _root.body) {
_root.playerBattleLife = _root.body;
}
_root.room.room.hero.hero.healText.textHeal.text = _root.damage;
Symbol 20 MovieClip [healPlayer] Frame 16
if (_root.enemyAttack) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (!_root.enemyAttack) {
_root.fightEnd = true;
}
_root.room.room.hero.attachMovie("player", "hero", 10);
Symbol 22 MovieClip [fadePlayer] Frame 4
if (_root.playerState == "attack") {
_root.room.room.hero.attachMovie("pPunch", "hero", 10);
} else if (_root.playerState == "magic") {
_root.room.room.hero.attachMovie("pMagic", "hero", 10);
} else if (_root.playerState == "heal") {
_root.room.room.hero.attachMovie("healPlayer", "hero", 10);
}
Symbol 23 MovieClip [pPunch] Frame 1
_root.room.room.hero._x = 160;
Symbol 23 MovieClip [pPunch] Frame 4
punchSound = new Sound();
_root.attack = Math.floor(random(_root.skill)) + 1;
_root.dodge = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.attack >= _root.dodge) {
randomSound = random(8);
if (randomSound == 0) {
punchSound.attachSound("attack1");
punchSound.start(0, 1);
} else if (randomSound == 1) {
punchSound.attachSound("attack2");
punchSound.start(0, 1);
} else if (randomSound == 2) {
punchSound.attachSound("attack3");
punchSound.start(0, 1);
} else if (randomSound == 3) {
punchSound.attachSound("attack4");
punchSound.start(0, 1);
} else if (randomSound == 4) {
punchSound.attachSound("attack5");
punchSound.start(0, 1);
} else if (randomSound == 5) {
punchSound.attachSound("attack6");
punchSound.start(0, 1);
} else if (randomSound == 6) {
punchSound.attachSound("attack7");
punchSound.start(0, 1);
} else if (randomSound == 7) {
punchSound.attachSound("attack8");
punchSound.start(0, 1);
}
_root.pDefense = Math.floor(_root.enemyBody / 2);
_root.coreDamage = Math.floor(_root.might / 2);
_root.randomDamage = Math.floor(random(_root.might - _root.coreDamage)) + 1;
_root.damage = (_root.coreDamage + _root.randomDamage) - _root.pDefense;
if (_root.damage < 0) {
_root.damage = 0;
}
_root.enemyBattleLife = _root.enemyBattleLife - _root.damage;
_root.room.room.villian.attachMovie("enemyDamage", "villian", 10);
} else if (_root.attack < _root.dodge) {
punchSound.attachSound("missedAttack");
punchSound.start(0, 1);
_root.damage = "Miss";
_root.room.room.villian.attachMovie("enemyDamage", "villian", 10);
}
if (_root.enemyBattleLife <= 0) {
if (_root.namelessBattle) {
_root.namelessBattleComplete = true;
_root.room.attachMovie("nameLessBattleWon", "room", 10);
} else if (_root.floorLevel == 5) {
_root.doorSection1 = true;
_root.room.attachMovie("doorKeeperWon", "room", 10);
}
if (_root.floorLevel == 10) {
_root.doorSection2 = true;
_root.room.attachMovie("doorKeeperWon", "room", 10);
} else if (_root.floorLevel == 15) {
_root.doorSection3 = true;
_root.room.attachMovie("doorKeeperWon", "room", 10);
} else if (_root.floorLevel == 20) {
_root.doorSection4 = true;
_root.room.attachMovie("doorKeeperWon", "room", 10);
} else if (_root.floorLevel == 25) {
_root.room.attachMovie("lastBattleWon", "room", 10);
} else {
_root.room.attachMovie("basicBattleWon", "room", 10);
}
}
Symbol 23 MovieClip [pPunch] Frame 8
_root.room.room.hero._x = -200;
Symbol 23 MovieClip [pPunch] Frame 11
if (_root.enemyAttack) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (!_root.enemyAttack) {
_root.fightEnd = true;
}
_root.room.room.hero.attachMovie("player", "hero", 10);
Symbol 25 MovieClip [fadeEnemy] Frame 4
if (_root.enemyState == "attack") {
_root.room.room.villian.attachMovie("ePunch", "villian", 10);
} else if (_root.enemyState == "magic") {
_root.room.room.villian.attachMovie("eMagic", "villian", 10);
} else if (_root.enemyState == "heal") {
_root.room.room.villian.attachMovie("healEnemy", "villian", 10);
}
Symbol 26 MovieClip [ePunch] Frame 1
_root.room.room.villian._x = -150;
Symbol 26 MovieClip [ePunch] Frame 4
punchSound = new Sound();
_root.attack = Math.floor(random(_root.enemySkill)) + 1;
_root.dodge = Math.floor(random(_root.speed)) + 1;
if (_root.attack >= _root.dodge) {
randomSound = random(8);
if (randomSound == 0) {
punchSound.attachSound("attack1");
punchSound.start(0, 1);
} else if (randomSound == 1) {
punchSound.attachSound("attack2");
punchSound.start(0, 1);
} else if (randomSound == 2) {
punchSound.attachSound("attack3");
punchSound.start(0, 1);
} else if (randomSound == 3) {
punchSound.attachSound("attack4");
punchSound.start(0, 1);
} else if (randomSound == 4) {
punchSound.attachSound("attack5");
punchSound.start(0, 1);
} else if (randomSound == 5) {
punchSound.attachSound("attack6");
punchSound.start(0, 1);
} else if (randomSound == 6) {
punchSound.attachSound("attack7");
punchSound.start(0, 1);
} else if (randomSound == 7) {
punchSound.attachSound("attack8");
punchSound.start(0, 1);
}
_root.defense = Math.floor(_root.body / 2);
_root.coreDamage = Math.floor(_root.enemyMight / 2);
_root.randomDamage = Math.floor(random(_root.enemyMight - _root.coreDamage)) + 1;
_root.damage = (_root.coreDamage + _root.randomDamage) - _root.defense;
if (_root.damage < 0) {
_root.damage = 0;
}
_root.playerBattleLife = _root.playerBattleLife - _root.damage;
_root.room.room.hero.attachMovie("playerDamage", "hero", 10);
} else if (_root.attack < _root.dodge) {
punchSound.attachSound("missedAttack");
punchSound.start(0, 1);
_root.damage = "Miss";
_root.room.room.hero.attachMovie("playerDamage", "hero", 10);
}
if (_root.playerBattleLife <= 0) {
_root.room.attachMovie("deathLost", "room", 10);
}
Symbol 26 MovieClip [ePunch] Frame 8
_root.room.room.villian._x = 200;
Symbol 26 MovieClip [ePunch] Frame 11
if (_root.playerAttack) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (!_root.enemyAttack) {
_root.fightEnd = true;
}
_root.room.room.villian.attachMovie("enemy", "villian", 10);
Symbol 27 MovieClip [introPlayer] Frame 12
_root.startFight = true;
_root.room.room.hero.attachMovie("player", "hero", 10);
Symbol 28 MovieClip [introEnemy] Frame 12
_root.startFight = true;
_root.room.room.villian.attachMovie("enemy", "villian", 10);
Symbol 31 MovieClip [playerDamage] Frame 1
_root.room.room.hero.hero.damageText.textDamage.text = _root.damage;
Symbol 31 MovieClip [playerDamage] Frame 4
_root.room.room.hero.attachMovie("player", "hero", 10);
Symbol 32 MovieClip [enemyDamage] Frame 1
_root.room.room.villian.villian.damageText.textDamage.text = _root.damage;
Symbol 32 MovieClip [enemyDamage] Frame 4
_root.room.room.villian.attachMovie("enemy", "villian", 10);
Symbol 33 MovieClip [fleePlayer] Frame 1
fleeSound = new Sound();
fleeSound.attachSound("runEdit");
fleeSound.start(0, 1);
Symbol 33 MovieClip [fleePlayer] Frame 16
_root.startFight = false;
_root.namelessBattle = false;
_root.playerBattleLife = _root.body;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicStage5", "room", 10);
} else if ((_root.floorLevel == 5) && (_root.doorSection1 == false)) {
_root.room.attachMovie("doorKeeperFlee1", "room", 10);
} else if ((_root.floorLevel == 10) && (_root.doorSection2 == false)) {
_root.room.attachMovie("doorKeeperFlee2", "room", 10);
} else if ((_root.floorLevel == 15) && (_root.doorSection3 == false)) {
_root.room.attachMovie("doorKeeperFlee3", "room", 10);
} else if ((_root.floorLevel == 20) && (_root.doorSection4 == false)) {
_root.room.attachMovie("doorKeeperFlee4", "room", 10);
} else if ((_root.floorLevel == 5) && (_root.doorSection1 == true)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.floorLevel == 10) && (_root.doorSection2 == true)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.floorLevel == 15) && (_root.doorSection3 == true)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.floorLevel == 20) && (_root.doorSection4 == true)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if (_root.floorLevel == 25) {
}
Symbol 81 MovieClip [basementStage] Frame 1
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = "Basement";
};
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
upButton.onRelease = function () {
_root.direction = "up";
_root.room.attachMovie("fadeBasementStage ", "room", 10);
};
trainButton.onRelease = function () {
_root.room.attachMovie("trainStage1", "room", 10);
};
itemButton.onRelease = function () {
_root.room.attachMovie("items1", "room", 10);
};
restButton.onRelease = function () {
_root.room.attachMovie("restStage", "room", 10);
};
saveButton.onRelease = function () {
var _local2 = SharedObject.getLocal("TowerQuestExpansion");
_local2.data.charName = _root.charName;
_local2.data.floorLevel = _root.floorLevel;
_local2.data.namelessBattleComplete = _root.namelessBattleComplete;
_local2.data.experiencePoints = _root.experiencePoints;
_local2.data.body = _root.body;
_local2.data.might = _root.might;
_local2.data.speed = _root.speed;
_local2.data.skill = _root.skill;
_local2.data.mind = _root.mind;
_local2.data.spirit = _root.spirit;
_local2.data.playerBattleLife = _root.playerBattleLife;
_local2.data.playerBattleSpirit = _root.playerBattleSpirit;
_local2.data.doorSection1 = _root.doorSection1;
_local2.data.doorSection2 = _root.doorSection2;
_local2.data.doorSection3 = _root.doorSection3;
_local2.data.doorSection4 = _root.doorSection4;
_local2.data.doorSection5 = _root.doorSection5;
_local2.data.MMPNum = _root.MMPNum;
_local2.data.LMPNum = _root.LMPNum;
_local2.data.MPNum = _root.MPNum;
_local2.data.GMPNum = _root.GMPNum;
_local2.data.SMPNum = _root.SMPNum;
_local2.data.SORNum = _root.SORNum;
_local2.data.MLNum = _root.MLNum;
_local2.flush();
_root.attachMovie("gameSaved", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
Symbol 96 MovieClip Frame 1
PERCENT = _root.enemyBattleLife / _root.enemyBody;
eHPBAR._xscale = PERCENT * 100;
lifeText.text = (_root.enemyBattleLife + "/") + _root.enemyBody;
PERCENT = _root.enemyBattleSpirit / _root.enemySpirit;
eMPBAR._xscale = Math.round(PERCENT * 100);
manaText.text = (_root.enemyBattleSpirit + "/") + _root.enemySpirit;
Symbol 96 MovieClip Frame 2
gotoAndPlay (1);
Symbol 104 MovieClip Frame 1
PERCENT = _root.playerBattleLife / _root.body;
pHPBAR._xscale = Math.round(PERCENT * 100);
lifeText.text = (_root.playerBattleLife + "/") + _root.body;
PERCENT = _root.playerBattleSpirit / _root.spirit;
pMPBAR._xscale = Math.round(PERCENT * 100);
manaText.text = (_root.playerBattleSpirit + "/") + _root.spirit;
Symbol 104 MovieClip Frame 2
gotoAndPlay (1);
Symbol 120 MovieClip [basicFightStage1] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
name = "none";
num = Math.round(Math.random() * 51);
switch (num) {
case 0 :
name = "Andy";
break;
case 1 :
name = "Ben";
break;
case 2 :
name = "Beth";
break;
case 3 :
name = "Bill";
break;
case 4 :
name = "Bob";
break;
case 5 :
name = "Bon";
break;
case 6 :
name = "Dave";
break;
case 7 :
name = "Deb";
break;
case 8 :
name = "Dee";
break;
case 9 :
name = "Dick";
break;
case 10 :
name = "Dot";
break;
case 11 :
name = "Drew";
break;
case 12 :
name = "Eddy";
break;
case 13 :
name = "Gail";
break;
case 14 :
name = "Gal";
break;
case 15 :
name = "Gene";
break;
case 16 :
name = "Gus";
break;
case 17 :
name = "Hal";
break;
case 18 :
name = "Hank";
break;
case 19 :
name = "Ike";
break;
case 20 :
name = "Jack";
break;
case 21 :
name = "Jan";
break;
case 22 :
name = "Jeff";
break;
case 23 :
name = "Jim";
break;
case 24 :
name = "Joe";
break;
case 25 :
name = "Kate";
break;
case 26 :
name = "Kris";
break;
case 27 :
name = "Lex";
break;
case 28 :
name = "Lisa";
break;
case 29 :
name = "Liz";
break;
case 30 :
name = "Lucy";
break;
case 31 :
name = "Matt";
break;
case 32 :
name = "Mia";
break;
case 33 :
name = "Mike";
break;
case 34 :
name = "Nan";
break;
case 35 :
name = "Nat";
break;
case 36 :
name = "Ned";
break;
case 37 :
name = "Nell";
break;
case 38 :
name = "Nick";
break;
case 39 :
name = "Pat";
break;
case 40 :
name = "Peg";
break;
case 41 :
name = "Pete";
break;
case 42 :
name = "Phil";
break;
case 43 :
name = "Rick";
break;
case 44 :
name = "Rob";
break;
case 45 :
name = "Ron";
break;
case 46 :
name = "Sam";
break;
case 47 :
name = "Sue";
break;
case 48 :
name = "Ted";
break;
case 49 :
name = "Tom";
break;
case 50 :
name = "Tony";
break;
case 51 :
name = "Val";
break;
default :
name = "nameless";
}
_root.enemyName = name;
if (_root.floorLevel == 1) {
_root.enemyBody = Math.floor(random(1)) + 1;
_root.enemyMight = Math.floor(random(1)) + 1;
_root.enemySpeed = Math.floor(random(1)) + 1;
_root.enemySkill = Math.floor(random(1)) + 1;
_root.enemyMind = Math.floor(random(1)) + 1;
_root.enemySpirit = Math.floor(random(1)) + 1;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 1 + Math.floor(random(1));
} else if (_root.floorLevel == 2) {
_root.enemyBody = Math.floor(random(2)) + 1;
_root.enemyMight = Math.floor(random(2)) + 1;
_root.enemySpeed = Math.floor(random(2)) + 1;
_root.enemySkill = Math.floor(random(2)) + 1;
_root.enemyMind = Math.floor(random(2)) + 1;
_root.enemySpirit = Math.floor(random(1)) + 1;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 2 + Math.floor(random(2));
} else if (_root.floorLevel == 3) {
_root.enemyBody = Math.floor(random(3)) + 1;
_root.enemyMight = Math.floor(random(3)) + 1;
_root.enemySpeed = Math.floor(random(3)) + 1;
_root.enemySkill = Math.floor(random(3)) + 1;
_root.enemyMind = Math.floor(random(3)) + 1;
_root.enemySpirit = Math.floor(random(2)) + 1;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 3 + Math.floor(random(3));
} else if (_root.floorLevel == 4) {
_root.enemyBody = Math.floor(random(4)) + 1;
_root.enemyMight = Math.floor(random(4)) + 1;
_root.enemySpeed = Math.floor(random(4)) + 1;
_root.enemySkill = Math.floor(random(4)) + 1;
_root.enemyMind = Math.floor(random(4)) + 1;
_root.enemySpirit = Math.floor(random(2)) + 1;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 4 + Math.floor(random(4));
}
_root.playerBattleLife = _root.body;
_root.itemRandom = Math.floor(random(60));
if ((_root.itemRandom >= 0) && (_root.itemRandom <= 46)) {
_root.itemNum = 0;
} else if ((_root.itemRandom >= 47) && (_root.itemRandom <= 56)) {
_root.itemNum = 1;
} else if ((_root.itemRandom >= 57) && (_root.itemRandom <= 59)) {
_root.itemNum = 6;
}
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 120 MovieClip [basicFightStage1] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 120 MovieClip [basicFightStage1] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 123 MovieClip [basicFightStage2] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
name = "none";
num = Math.round(Math.random() * 51);
switch (num) {
case 0 :
name = "Andy";
break;
case 1 :
name = "Ben";
break;
case 2 :
name = "Beth";
break;
case 3 :
name = "Bill";
break;
case 4 :
name = "Bob";
break;
case 5 :
name = "Bon";
break;
case 6 :
name = "Dave";
break;
case 7 :
name = "Deb";
break;
case 8 :
name = "Dee";
break;
case 9 :
name = "Dick";
break;
case 10 :
name = "Dot";
break;
case 11 :
name = "Drew";
break;
case 12 :
name = "Eddy";
break;
case 13 :
name = "Gail";
break;
case 14 :
name = "Gal";
break;
case 15 :
name = "Gene";
break;
case 16 :
name = "Gus";
break;
case 17 :
name = "Hal";
break;
case 18 :
name = "Hank";
break;
case 19 :
name = "Ike";
break;
case 20 :
name = "Jack";
break;
case 21 :
name = "Jan";
break;
case 22 :
name = "Jeff";
break;
case 23 :
name = "Jim";
break;
case 24 :
name = "Joe";
break;
case 25 :
name = "Kate";
break;
case 26 :
name = "Kris";
break;
case 27 :
name = "Lex";
break;
case 28 :
name = "Lisa";
break;
case 29 :
name = "Liz";
break;
case 30 :
name = "Lucy";
break;
case 31 :
name = "Matt";
break;
case 32 :
name = "Mia";
break;
case 33 :
name = "Mike";
break;
case 34 :
name = "Nan";
break;
case 35 :
name = "Nat";
break;
case 36 :
name = "Ned";
break;
case 37 :
name = "Nell";
break;
case 38 :
name = "Nick";
break;
case 39 :
name = "Pat";
break;
case 40 :
name = "Peg";
break;
case 41 :
name = "Pete";
break;
case 42 :
name = "Phil";
break;
case 43 :
name = "Rick";
break;
case 44 :
name = "Rob";
break;
case 45 :
name = "Ron";
break;
case 46 :
name = "Sam";
break;
case 47 :
name = "Sue";
break;
case 48 :
name = "Ted";
break;
case 49 :
name = "Tom";
break;
case 50 :
name = "Tony";
break;
case 51 :
name = "Val";
break;
default :
name = "nameless";
}
_root.enemyName = name;
if (_root.floorLevel == 6) {
_root.coreAttribute = 2;
_root.randomAttribute = Math.floor(random(5 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(5 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(5 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(5 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(5 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 1;
_root.randomAttribute = Math.floor(random(3 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 6 + Math.floor(random(6));
} else if (_root.floorLevel == 7) {
_root.coreAttribute = 3;
_root.randomAttribute = Math.floor(random(6 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(6 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(6 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(6 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(6 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 1;
_root.randomAttribute = Math.floor(random(3 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 8 + Math.floor(random(8));
} else if (_root.floorLevel == 8) {
_root.coreAttribute = 3;
_root.randomAttribute = Math.floor(random(7 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(7 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(7 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(7 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(7 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 2;
_root.randomAttribute = Math.floor(random(4 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 12 + Math.floor(random(12));
} else if (_root.floorLevel == 9) {
_root.coreAttribute = 4;
_root.randomAttribute = Math.floor(random(8 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(8 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(8 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(8 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(8 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 2;
_root.randomAttribute = Math.floor(random(4 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 16 + Math.floor(random(16));
}
_root.playerBattleLife = _root.body;
_root.itemRandom = Math.floor(random(60));
if ((_root.itemRandom >= 0) && (_root.itemRandom <= 46)) {
_root.itemNum = 0;
} else if ((_root.itemRandom >= 47) && (_root.itemRandom <= 56)) {
_root.itemNum = 2;
} else if ((_root.itemRandom >= 57) && (_root.itemRandom <= 59)) {
_root.itemNum = 6;
}
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 123 MovieClip [basicFightStage2] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 123 MovieClip [basicFightStage2] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 126 MovieClip [basicFightStage3] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
name = "none";
num = Math.round(Math.random() * 51);
switch (num) {
case 0 :
name = "Andy";
break;
case 1 :
name = "Ben";
break;
case 2 :
name = "Beth";
break;
case 3 :
name = "Bill";
break;
case 4 :
name = "Bob";
break;
case 5 :
name = "Bon";
break;
case 6 :
name = "Dave";
break;
case 7 :
name = "Deb";
break;
case 8 :
name = "Dee";
break;
case 9 :
name = "Dick";
break;
case 10 :
name = "Dot";
break;
case 11 :
name = "Drew";
break;
case 12 :
name = "Eddy";
break;
case 13 :
name = "Gail";
break;
case 14 :
name = "Gal";
break;
case 15 :
name = "Gene";
break;
case 16 :
name = "Gus";
break;
case 17 :
name = "Hal";
break;
case 18 :
name = "Hank";
break;
case 19 :
name = "Ike";
break;
case 20 :
name = "Jack";
break;
case 21 :
name = "Jan";
break;
case 22 :
name = "Jeff";
break;
case 23 :
name = "Jim";
break;
case 24 :
name = "Joe";
break;
case 25 :
name = "Kate";
break;
case 26 :
name = "Kris";
break;
case 27 :
name = "Lex";
break;
case 28 :
name = "Lisa";
break;
case 29 :
name = "Liz";
break;
case 30 :
name = "Lucy";
break;
case 31 :
name = "Matt";
break;
case 32 :
name = "Mia";
break;
case 33 :
name = "Mike";
break;
case 34 :
name = "Nan";
break;
case 35 :
name = "Nat";
break;
case 36 :
name = "Ned";
break;
case 37 :
name = "Nell";
break;
case 38 :
name = "Nick";
break;
case 39 :
name = "Pat";
break;
case 40 :
name = "Peg";
break;
case 41 :
name = "Pete";
break;
case 42 :
name = "Phil";
break;
case 43 :
name = "Rick";
break;
case 44 :
name = "Rob";
break;
case 45 :
name = "Ron";
break;
case 46 :
name = "Sam";
break;
case 47 :
name = "Sue";
break;
case 48 :
name = "Ted";
break;
case 49 :
name = "Tom";
break;
case 50 :
name = "Tony";
break;
case 51 :
name = "Val";
break;
default :
name = "nameless";
}
_root.enemyName = name;
if (_root.floorLevel == 11) {
_root.coreAttribute = 4;
_root.randomAttribute = Math.floor(random(9 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(9 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(9 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(9 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(9 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 2;
_root.randomAttribute = Math.floor(random(5 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 24 + Math.floor(random(24));
} else if (_root.floorLevel == 12) {
_root.coreAttribute = 5;
_root.randomAttribute = Math.floor(random(10 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(10 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(10 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(10 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(10 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 2;
_root.randomAttribute = Math.floor(random(5 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 32 + Math.floor(random(32));
} else if (_root.floorLevel == 13) {
_root.coreAttribute = 5;
_root.randomAttribute = Math.floor(random(11 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(11 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(11 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(11 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(11 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 3;
_root.randomAttribute = Math.floor(random(6 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 48 + Math.floor(random(48));
} else if (_root.floorLevel == 14) {
_root.coreAttribute = 6;
_root.randomAttribute = Math.floor(random(12 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(12 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(12 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(12 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(12 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 3;
_root.randomAttribute = Math.floor(random(6 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 64 + Math.floor(random(64));
}
_root.playerBattleLife = _root.body;
_root.itemRandom = Math.floor(random(60));
if ((_root.itemRandom >= 0) && (_root.itemRandom <= 46)) {
_root.itemNum = 0;
} else if ((_root.itemRandom >= 47) && (_root.itemRandom <= 56)) {
_root.itemNum = 3;
} else if ((_root.itemRandom >= 57) && (_root.itemRandom <= 59)) {
_root.itemNum = 6;
}
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 126 MovieClip [basicFightStage3] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 126 MovieClip [basicFightStage3] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 129 MovieClip [basicFightStage4] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
name = "none";
num = Math.round(Math.random() * 51);
switch (num) {
case 0 :
name = "Andy";
break;
case 1 :
name = "Ben";
break;
case 2 :
name = "Beth";
break;
case 3 :
name = "Bill";
break;
case 4 :
name = "Bob";
break;
case 5 :
name = "Bon";
break;
case 6 :
name = "Dave";
break;
case 7 :
name = "Deb";
break;
case 8 :
name = "Dee";
break;
case 9 :
name = "Dick";
break;
case 10 :
name = "Dot";
break;
case 11 :
name = "Drew";
break;
case 12 :
name = "Eddy";
break;
case 13 :
name = "Gail";
break;
case 14 :
name = "Gal";
break;
case 15 :
name = "Gene";
break;
case 16 :
name = "Gus";
break;
case 17 :
name = "Hal";
break;
case 18 :
name = "Hank";
break;
case 19 :
name = "Ike";
break;
case 20 :
name = "Jack";
break;
case 21 :
name = "Jan";
break;
case 22 :
name = "Jeff";
break;
case 23 :
name = "Jim";
break;
case 24 :
name = "Joe";
break;
case 25 :
name = "Kate";
break;
case 26 :
name = "Kris";
break;
case 27 :
name = "Lex";
break;
case 28 :
name = "Lisa";
break;
case 29 :
name = "Liz";
break;
case 30 :
name = "Lucy";
break;
case 31 :
name = "Matt";
break;
case 32 :
name = "Mia";
break;
case 33 :
name = "Mike";
break;
case 34 :
name = "Nan";
break;
case 35 :
name = "Nat";
break;
case 36 :
name = "Ned";
break;
case 37 :
name = "Nell";
break;
case 38 :
name = "Nick";
break;
case 39 :
name = "Pat";
break;
case 40 :
name = "Peg";
break;
case 41 :
name = "Pete";
break;
case 42 :
name = "Phil";
break;
case 43 :
name = "Rick";
break;
case 44 :
name = "Rob";
break;
case 45 :
name = "Ron";
break;
case 46 :
name = "Sam";
break;
case 47 :
name = "Sue";
break;
case 48 :
name = "Ted";
break;
case 49 :
name = "Tom";
break;
case 50 :
name = "Tony";
break;
case 51 :
name = "Val";
break;
default :
name = "nameless";
}
_root.enemyName = name;
if (_root.floorLevel == 16) {
_root.coreAttribute = 6;
_root.randomAttribute = Math.floor(random(13 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(13 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(13 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(13 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(13 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 3;
_root.randomAttribute = Math.floor(random(7 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 96 + Math.floor(random(96));
} else if (_root.floorLevel == 17) {
_root.coreAttribute = 7;
_root.randomAttribute = Math.floor(random(14 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(14 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(14 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(14 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(14 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 3;
_root.randomAttribute = Math.floor(random(7 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 128 + Math.floor(random(128));
} else if (_root.floorLevel == 18) {
_root.coreAttribute = 7;
_root.randomAttribute = Math.floor(random(15 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(15 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(15 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(15 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(15 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 4;
_root.randomAttribute = Math.floor(random(8 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 192 + Math.floor(random(192));
} else if (_root.floorLevel == 19) {
_root.coreAttribute = 8;
_root.randomAttribute = Math.floor(random(16 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(16 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(16 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(16 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(16 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 4;
_root.randomAttribute = Math.floor(random(8 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 256 + Math.floor(random(256));
}
_root.playerBattleLife = _root.body;
_root.itemRandom = Math.floor(random(60));
if ((_root.itemRandom >= 0) && (_root.itemRandom <= 46)) {
_root.itemNum = 0;
} else if ((_root.itemRandom >= 47) && (_root.itemRandom <= 56)) {
_root.itemNum = 4;
} else if ((_root.itemRandom >= 57) && (_root.itemRandom <= 59)) {
_root.itemNum = 6;
}
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 129 MovieClip [basicFightStage4] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 129 MovieClip [basicFightStage4] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 132 MovieClip [basicFightStage5] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
name = "none";
num = Math.round(Math.random() * 51);
switch (num) {
case 0 :
name = "Andy";
break;
case 1 :
name = "Ben";
break;
case 2 :
name = "Beth";
break;
case 3 :
name = "Bill";
break;
case 4 :
name = "Bob";
break;
case 5 :
name = "Bon";
break;
case 6 :
name = "Dave";
break;
case 7 :
name = "Deb";
break;
case 8 :
name = "Dee";
break;
case 9 :
name = "Dick";
break;
case 10 :
name = "Dot";
break;
case 11 :
name = "Drew";
break;
case 12 :
name = "Eddy";
break;
case 13 :
name = "Gail";
break;
case 14 :
name = "Gal";
break;
case 15 :
name = "Gene";
break;
case 16 :
name = "Gus";
break;
case 17 :
name = "Hal";
break;
case 18 :
name = "Hank";
break;
case 19 :
name = "Ike";
break;
case 20 :
name = "Jack";
break;
case 21 :
name = "Jan";
break;
case 22 :
name = "Jeff";
break;
case 23 :
name = "Jim";
break;
case 24 :
name = "Joe";
break;
case 25 :
name = "Kate";
break;
case 26 :
name = "Kris";
break;
case 27 :
name = "Lex";
break;
case 28 :
name = "Lisa";
break;
case 29 :
name = "Liz";
break;
case 30 :
name = "Lucy";
break;
case 31 :
name = "Matt";
break;
case 32 :
name = "Mia";
break;
case 33 :
name = "Mike";
break;
case 34 :
name = "Nan";
break;
case 35 :
name = "Nat";
break;
case 36 :
name = "Ned";
break;
case 37 :
name = "Nell";
break;
case 38 :
name = "Nick";
break;
case 39 :
name = "Pat";
break;
case 40 :
name = "Peg";
break;
case 41 :
name = "Pete";
break;
case 42 :
name = "Phil";
break;
case 43 :
name = "Rick";
break;
case 44 :
name = "Rob";
break;
case 45 :
name = "Ron";
break;
case 46 :
name = "Sam";
break;
case 47 :
name = "Sue";
break;
case 48 :
name = "Ted";
break;
case 49 :
name = "Tom";
break;
case 50 :
name = "Tony";
break;
case 51 :
name = "Val";
break;
default :
name = "nameless";
}
_root.enemyName = name;
if (_root.floorLevel == 21) {
_root.coreAttribute = 8;
_root.randomAttribute = Math.floor(random(17 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(17 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(17 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(17 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(17 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 4;
_root.randomAttribute = Math.floor(random(9 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 384 + Math.floor(random(384));
} else if (_root.floorLevel == 22) {
_root.coreAttribute = 9;
_root.randomAttribute = Math.floor(random(18 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(18 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(18 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(18 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(18 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 4;
_root.randomAttribute = Math.floor(random(9 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 512 + Math.floor(random(512));
} else if (_root.floorLevel == 23) {
_root.coreAttribute = 9;
_root.randomAttribute = Math.floor(random(19 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(19 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(19 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(19 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(19 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 5;
_root.randomAttribute = Math.floor(random(10 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 768 + Math.floor(random(768));
} else if (_root.floorLevel == 24) {
_root.coreAttribute = 10;
_root.randomAttribute = Math.floor(random(20 - _root.coreAttribute) + 1);
_root.enemyBody = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(20 - _root.coreAttribute) + 1);
_root.enemyMight = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(20 - _root.coreAttribute) + 1);
_root.enemySpeed = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(20 - _root.coreAttribute) + 1);
_root.enemySkill = _root.coreAttribute + _root.randomAttribute;
_root.randomAttribute = Math.floor(random(20 - _root.coreAttribute) + 1);
_root.enemyMind = _root.coreAttribute + _root.randomAttribute;
_root.coreAttribute = 5;
_root.randomAttribute = Math.floor(random(10 - _root.coreAttribute) + 1);
_root.enemySpirit = _root.coreAttribute + _root.randomAttribute;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyExp = 1028 + Math.floor(random(1028));
}
_root.playerBattleLife = _root.body;
_root.itemRandom = Math.floor(random(60));
if ((_root.itemRandom >= 0) && (_root.itemRandom <= 44)) {
_root.itemNum = 0;
} else if ((_root.itemRandom >= 45) && (_root.itemRandom <= 46)) {
if ((_root.MLNum == 0) && (!_root.namelessBattleComplete)) {
_root.itemNum = 7;
} else {
_root.itemNum = 0;
}
} else if ((_root.itemRandom >= 47) && (_root.itemRandom <= 56)) {
_root.itemNum = 5;
} else if ((_root.itemRandom >= 57) && (_root.itemRandom <= 59)) {
_root.itemNum = 6;
}
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if ((((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) && (_root.namelessBattle)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 132 MovieClip [basicFightStage5] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 132 MovieClip [basicFightStage5] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 139 MovieClip [basicStage1] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
if ((_root.doorSection1 == false) && (_root.floorNext == 5)) {
_root.attachMovie("bossWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("fadeBasicStage1", "room", 10);
}
};
itemButton.onRelease = function () {
_root.room.attachMovie("items1", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("basicFightStage1", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel - 1;
_root.direction = "down";
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("fadeBasicStage1", "room", 10);
}
};
Symbol 140 MovieClip [basicStage2] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
if ((_root.doorSection2 == false) && (_root.floorNext == 10)) {
_root.attachMovie("bossWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("fadeBasicStage2", "room", 10);
}
};
itemButton.onRelease = function () {
_root.room.attachMovie("items2", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("basicFightStage2", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel - 1;
_root.direction = "down";
if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("fadeBasicStage2", "room", 10);
}
};
Symbol 141 MovieClip [basicStage3] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
if ((_root.doorSection3 == false) && (_root.floorNext == 15)) {
_root.attachMovie("bossWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("fadeBasicStage3", "room", 10);
}
};
itemButton.onRelease = function () {
_root.room.attachMovie("items3", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("basicFightStage3", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel - 1;
_root.direction = "down";
if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("fadeBasicStage3", "room", 10);
}
};
Symbol 142 MovieClip [basicStage4] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
if ((_root.doorSection4 == false) && (_root.floorNext == 20)) {
_root.attachMovie("bossWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("fadeBasicStage4", "room", 10);
}
};
itemButton.onRelease = function () {
_root.room.attachMovie("items4", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("basicFightStage4", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel - 1;
_root.direction = "down";
if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("fadeBasicStage4", "room", 10);
}
};
Symbol 143 MovieClip [basicStage5] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 1 :
levelName = "Floor 1";
break;
case 2 :
levelName = "Floor 2";
break;
case 3 :
levelName = "Floor 3";
break;
case 4 :
levelName = "Floor 4";
break;
case 6 :
levelName = "Floor 6";
break;
case 7 :
levelName = "Floor 7";
break;
case 8 :
levelName = "Floor 8";
break;
case 9 :
levelName = "Floor 9";
break;
case 11 :
levelName = "Floor 11";
break;
case 12 :
levelName = "Floor 12";
break;
case 13 :
levelName = "Floor 13";
break;
case 14 :
levelName = "Floor 14";
break;
case 16 :
levelName = "Floor 16";
break;
case 17 :
levelName = "Floor 17";
break;
case 18 :
levelName = "Floor 18";
break;
case 19 :
levelName = "Floor 19";
break;
case 21 :
levelName = "Floor 21";
break;
case 22 :
levelName = "Floor 22";
break;
case 23 :
levelName = "Floor 23";
break;
case 24 :
levelName = "Floor 24";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
if ((_root.doorSection5 == false) && (_root.floorNext == 25)) {
_root.attachMovie("lastBossWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("fadeBasicStage5", "room", 10);
}
};
itemButton.onRelease = function () {
_root.room.attachMovie("items5", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("basicFightStage5", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel - 1;
_root.direction = "down";
if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("fadeBasicStage5", "room", 10);
}
};
Symbol 146 MovieClip [doorKeeperFight1] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
if (_root.floorLevel == 5) {
_root.enemyBody = 4;
_root.enemyMight = 4;
_root.enemySpeed = 4;
_root.enemySkill = 4;
_root.enemyMind = 4;
_root.enemySpirit = 4;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 10) {
_root.enemyBody = 8;
_root.enemyMight = 8;
_root.enemySpeed = 8;
_root.enemySkill = 8;
_root.enemyMind = 8;
_root.enemySpirit = 8;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 15) {
_root.enemyBody = 12;
_root.enemyMight = 12;
_root.enemySpeed = 12;
_root.enemySkill = 12;
_root.enemyMind = 12;
_root.enemySpirit = 12;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 20) {
_root.enemyBody = 16;
_root.enemyMight = 16;
_root.enemySpeed = 16;
_root.enemySkill = 16;
_root.enemyMind = 16;
_root.enemySpirit = 16;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
}
_root.playerBattleLife = _root.body;
_root.enemyName = "The Doorkeeper";
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 146 MovieClip [doorKeeperFight1] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 146 MovieClip [doorKeeperFight1] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 149 MovieClip [doorKeeperFight2] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
if (_root.floorLevel == 5) {
_root.enemyBody = 4;
_root.enemyMight = 4;
_root.enemySpeed = 4;
_root.enemySkill = 4;
_root.enemyMind = 4;
_root.enemySpirit = 4;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 10) {
_root.enemyBody = 8;
_root.enemyMight = 8;
_root.enemySpeed = 8;
_root.enemySkill = 8;
_root.enemyMind = 8;
_root.enemySpirit = 8;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 15) {
_root.enemyBody = 12;
_root.enemyMight = 12;
_root.enemySpeed = 12;
_root.enemySkill = 12;
_root.enemyMind = 12;
_root.enemySpirit = 12;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 20) {
_root.enemyBody = 16;
_root.enemyMight = 16;
_root.enemySpeed = 16;
_root.enemySkill = 16;
_root.enemyMind = 16;
_root.enemySpirit = 16;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
}
_root.playerBattleLife = _root.body;
_root.enemyName = "The Doorkeeper";
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 149 MovieClip [doorKeeperFight2] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 149 MovieClip [doorKeeperFight2] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 152 MovieClip [doorKeeperFight3] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
if (_root.floorLevel == 5) {
_root.enemyBody = 4;
_root.enemyMight = 4;
_root.enemySpeed = 4;
_root.enemySkill = 4;
_root.enemyMind = 4;
_root.enemySpirit = 4;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 10) {
_root.enemyBody = 8;
_root.enemyMight = 8;
_root.enemySpeed = 8;
_root.enemySkill = 8;
_root.enemyMind = 8;
_root.enemySpirit = 8;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 15) {
_root.enemyBody = 12;
_root.enemyMight = 12;
_root.enemySpeed = 12;
_root.enemySkill = 12;
_root.enemyMind = 12;
_root.enemySpirit = 12;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 20) {
_root.enemyBody = 16;
_root.enemyMight = 16;
_root.enemySpeed = 16;
_root.enemySkill = 16;
_root.enemyMind = 16;
_root.enemySpirit = 16;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
}
_root.playerBattleLife = _root.body;
_root.enemyName = "The Doorkeeper";
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 152 MovieClip [doorKeeperFight3] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 152 MovieClip [doorKeeperFight3] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 155 MovieClip [doorKeeperFight4] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
if (_root.floorLevel == 5) {
_root.enemyBody = 4;
_root.enemyMight = 4;
_root.enemySpeed = 4;
_root.enemySkill = 4;
_root.enemyMind = 4;
_root.enemySpirit = 4;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 10) {
_root.enemyBody = 8;
_root.enemyMight = 8;
_root.enemySpeed = 8;
_root.enemySkill = 8;
_root.enemyMind = 8;
_root.enemySpirit = 8;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 15) {
_root.enemyBody = 12;
_root.enemyMight = 12;
_root.enemySpeed = 12;
_root.enemySkill = 12;
_root.enemyMind = 12;
_root.enemySpirit = 12;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
} else if (_root.floorLevel == 20) {
_root.enemyBody = 16;
_root.enemyMight = 16;
_root.enemySpeed = 16;
_root.enemySkill = 16;
_root.enemyMind = 16;
_root.enemySpirit = 16;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
}
_root.playerBattleLife = _root.body;
_root.enemyName = "The Doorkeeper";
if (_root.namelessBattle) {
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.enemyName = "Nameless";
}
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = _root.enemyName;
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 155 MovieClip [doorKeeperFight4] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 155 MovieClip [doorKeeperFight4] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 156 MovieClip [doorKeeperFlee1] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
itemButton.onRelease = function () {
_root.room.attachMovie("items1", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "down";
_root.room.attachMovie("fadeDoorKeeperPoint1", "room", 10);
};
Symbol 157 MovieClip [doorKeeperFlee2] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
itemButton.onRelease = function () {
_root.room.attachMovie("items2", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "down";
_root.room.attachMovie("fadeDoorKeeperPoint2", "room", 10);
};
Symbol 158 MovieClip [doorKeeperFlee3] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
itemButton.onRelease = function () {
_root.room.attachMovie("items3", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "down";
_root.room.attachMovie("fadeDoorKeeperPoint3", "room", 10);
};
Symbol 159 MovieClip [doorKeeperFlee4] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
itemButton.onRelease = function () {
_root.room.attachMovie("items4", "room", 10);
};
fightButton.onRelease = function () {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "down";
_root.room.attachMovie("fadeDoorKeeperPoint4", "room", 10);
};
Symbol 160 MovieClip [doorKeeperPoint1] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
_root.room.attachMovie("fadeDoorKeeperPoint1", "room", 10);
};
trainButton.onRelease = function () {
_root.room.attachMovie("trainStage1", "room", 10);
};
itemButton.onRelease = function () {
_root.room.attachMovie("items1", "room", 10);
};
restButton.onRelease = function () {
_root.room.attachMovie("restStage", "room", 10);
};
saveButton.onRelease = function () {
var _local2 = SharedObject.getLocal("TowerQuestExpansion");
_local2.data.charName = _root.charName;
_local2.data.floorLevel = _root.floorLevel;
_local2.data.namelessBattleComplete = _root.namelessBattleComplete;
_local2.data.experiencePoints = _root.experiencePoints;
_local2.data.body = _root.body;
_local2.data.might = _root.might;
_local2.data.speed = _root.speed;
_local2.data.skill = _root.skill;
_local2.data.mind = _root.mind;
_local2.data.spirit = _root.spirit;
_local2.data.playerBattleLife = _root.playerBattleLife;
_local2.data.playerBattleSpirit = _root.playerBattleSpirit;
_local2.data.doorSection1 = _root.doorSection1;
_local2.data.doorSection2 = _root.doorSection2;
_local2.data.doorSection3 = _root.doorSection3;
_local2.data.doorSection4 = _root.doorSection4;
_local2.data.doorSection5 = _root.doorSection5;
_local2.data.MMPNum = _root.MMPNum;
_local2.data.LMPNum = _root.LMPNum;
_local2.data.MPNum = _root.MPNum;
_local2.data.GMPNum = _root.GMPNum;
_local2.data.SMPNum = _root.SMPNum;
_local2.data.SORNum = _root.SORNum;
_local2.data.MLNum = _root.MLNum;
_local2.flush();
_root.attachMovie("gameSaved", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "down";
_root.room.attachMovie("fadeDoorKeeperPoint1", "room", 10);
};
Symbol 161 MovieClip [doorKeeperPoint2] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
_root.room.attachMovie("fadeDoorKeeperPoint2", "room", 10);
};
trainButton.onRelease = function () {
_root.room.attachMovie("trainStage2", "room", 10);
};
itemButton.onRelease = function () {
_root.room.attachMovie("items2", "room", 10);
};
restButton.onRelease = function () {
_root.room.attachMovie("restStage", "room", 10);
};
saveButton.onRelease = function () {
var _local2 = SharedObject.getLocal("TowerQuestExpansion");
_local2.data.charName = _root.charName;
_local2.data.floorLevel = _root.floorLevel;
_local2.data.namelessBattleComplete = _root.namelessBattleComplete;
_local2.data.experiencePoints = _root.experiencePoints;
_local2.data.body = _root.body;
_local2.data.might = _root.might;
_local2.data.speed = _root.speed;
_local2.data.skill = _root.skill;
_local2.data.mind = _root.mind;
_local2.data.spirit = _root.spirit;
_local2.data.playerBattleLife = _root.playerBattleLife;
_local2.data.playerBattleSpirit = _root.playerBattleSpirit;
_local2.data.doorSection1 = _root.doorSection1;
_local2.data.doorSection2 = _root.doorSection2;
_local2.data.doorSection3 = _root.doorSection3;
_local2.data.doorSection4 = _root.doorSection4;
_local2.data.doorSection5 = _root.doorSection5;
_local2.data.MMPNum = _root.MMPNum;
_local2.data.LMPNum = _root.LMPNum;
_local2.data.MPNum = _root.MPNum;
_local2.data.GMPNum = _root.GMPNum;
_local2.data.SMPNum = _root.SMPNum;
_local2.data.SORNum = _root.SORNum;
_local2.data.MLNum = _root.MLNum;
_local2.flush();
_root.attachMovie("gameSaved", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "down";
_root.room.attachMovie("fadeDoorKeeperPoint2", "room", 10);
};
Symbol 162 MovieClip [doorKeeperPoint3] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
_root.room.attachMovie("fadeDoorKeeperPoint3", "room", 10);
};
trainButton.onRelease = function () {
_root.room.attachMovie("trainStage3", "room", 10);
};
itemButton.onRelease = function () {
_root.room.attachMovie("items3", "room", 10);
};
restButton.onRelease = function () {
_root.room.attachMovie("restStage", "room", 10);
};
saveButton.onRelease = function () {
var _local2 = SharedObject.getLocal("TowerQuestExpansion");
_local2.data.charName = _root.charName;
_local2.data.floorLevel = _root.floorLevel;
_local2.data.namelessBattleComplete = _root.namelessBattleComplete;
_local2.data.experiencePoints = _root.experiencePoints;
_local2.data.body = _root.body;
_local2.data.might = _root.might;
_local2.data.speed = _root.speed;
_local2.data.skill = _root.skill;
_local2.data.mind = _root.mind;
_local2.data.spirit = _root.spirit;
_local2.data.playerBattleLife = _root.playerBattleLife;
_local2.data.playerBattleSpirit = _root.playerBattleSpirit;
_local2.data.doorSection1 = _root.doorSection1;
_local2.data.doorSection2 = _root.doorSection2;
_local2.data.doorSection3 = _root.doorSection3;
_local2.data.doorSection4 = _root.doorSection4;
_local2.data.doorSection5 = _root.doorSection5;
_local2.data.MMPNum = _root.MMPNum;
_local2.data.LMPNum = _root.LMPNum;
_local2.data.MPNum = _root.MPNum;
_local2.data.GMPNum = _root.GMPNum;
_local2.data.SMPNum = _root.SMPNum;
_local2.data.SORNum = _root.SORNum;
_local2.data.MLNum = _root.MLNum;
_local2.flush();
_root.attachMovie("gameSaved", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "down";
_root.room.attachMovie("fadeDoorKeeperPoint3", "room", 10);
};
Symbol 163 MovieClip [doorKeeperPoint4] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
levelName = "floorless";
switch (_root.floorLevel) {
case 5 :
levelName = "Floor 5";
break;
case 10 :
levelName = "Floor 10";
break;
case 15 :
levelName = "Floor 15";
break;
case 20 :
levelName = "Floor 20";
break;
default :
levelName = "floorless";
}
_root.floorName = levelName;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
};
upButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "up";
_root.room.attachMovie("fadeDoorKeeperPoint4", "room", 10);
};
trainButton.onRelease = function () {
_root.room.attachMovie("trainStage4", "room", 10);
};
itemButton.onRelease = function () {
_root.room.attachMovie("items4", "room", 10);
};
restButton.onRelease = function () {
_root.room.attachMovie("restStage", "room", 10);
};
saveButton.onRelease = function () {
var _local2 = SharedObject.getLocal("TowerQuestExpansion");
_local2.data.charName = _root.charName;
_local2.data.floorLevel = _root.floorLevel;
_local2.data.namelessBattleComplete = _root.namelessBattleComplete;
_local2.data.experiencePoints = _root.experiencePoints;
_local2.data.body = _root.body;
_local2.data.might = _root.might;
_local2.data.speed = _root.speed;
_local2.data.skill = _root.skill;
_local2.data.mind = _root.mind;
_local2.data.spirit = _root.spirit;
_local2.data.playerBattleLife = _root.playerBattleLife;
_local2.data.playerBattleSpirit = _root.playerBattleSpirit;
_local2.data.doorSection1 = _root.doorSection1;
_local2.data.doorSection2 = _root.doorSection2;
_local2.data.doorSection3 = _root.doorSection3;
_local2.data.doorSection4 = _root.doorSection4;
_local2.data.doorSection5 = _root.doorSection5;
_local2.data.MMPNum = _root.MMPNum;
_local2.data.LMPNum = _root.LMPNum;
_local2.data.MPNum = _root.MPNum;
_local2.data.GMPNum = _root.GMPNum;
_local2.data.SMPNum = _root.SMPNum;
_local2.data.SORNum = _root.SORNum;
_local2.data.MLNum = _root.MLNum;
_local2.flush();
_root.attachMovie("gameSaved", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
downButton.onRelease = function () {
_root.floorNext = _root.floorLevel + 1;
_root.direction = "down";
_root.room.attachMovie("fadeDoorKeeperPoint4", "room", 10);
};
Symbol 172 MovieClip [doorKeeperWon] Frame 1
continueButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.playerBattleLife = _root.body;
if (_root.floorLevel == 5) {
_root.doorSection1 = true;
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.doorSection2 = true;
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.doorSection3 = true;
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.doorSection4 = true;
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
};
Symbol 186 MovieClip [brawlerEnding] Frame 1
playAgainButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.namelessBattle = false;
_root.charName = "Jamie";
_root.floorLevel = 0;
_root.body = 1;
_root.might = 1;
_root.speed = 1;
_root.skill = 1;
_root.mind = 1;
_root.spirit = 1;
_root.playerBattleLife = _root.body;
_root.playerBattleSpirit = _root.spirit;
_root.experiencePoints = 30;
_root.doorSection1 = false;
_root.doorSection2 = false;
_root.doorSection3 = false;
_root.doorSection4 = false;
_root.doorSection5 = false;
_root.MMPNum = 0;
_root.LMPNum = 0;
_root.MPNum = 0;
_root.GMPNum = 0;
_root.SMPNum = 0;
_root.SORNum = 0;
_root.MLNum = 0;
_root.room.attachMovie("intro", "room", 10);
};
Symbol 190 MovieClip [brawlerEnding2] Frame 1
backButton.onRelease = function () {
_root.room.attachMovie("falseGodEnding", "room", 10);
};
Symbol 200 MovieClip [falseGodEnding] Frame 1
brawlerButton.onRelease = function () {
_root.room.attachMovie("brawlerEnding2", "room", 10);
};
mageWarriorButton.onRelease = function () {
_root.room.attachMovie("mageWarriorEnding2", "room", 10);
};
sorcererButton.onRelease = function () {
_root.room.attachMovie("sorcererEnding2", "room", 10);
};
playAgainButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.namelessBattle = false;
_root.charName = "Jamie";
_root.floorLevel = 0;
_root.body = 1;
_root.might = 1;
_root.speed = 1;
_root.skill = 1;
_root.mind = 1;
_root.spirit = 1;
_root.playerBattleLife = _root.body;
_root.playerBattleSpirit = _root.spirit;
_root.experiencePoints = 30;
_root.doorSection1 = false;
_root.doorSection2 = false;
_root.doorSection3 = false;
_root.doorSection4 = false;
_root.doorSection5 = false;
_root.MMPNum = 0;
_root.LMPNum = 0;
_root.MPNum = 0;
_root.GMPNum = 0;
_root.SMPNum = 0;
_root.SORNum = 0;
_root.MLNum = 0;
_root.room.attachMovie("intro", "room", 10);
};
Symbol 203 MovieClip [mageWarriorEnding] Frame 1
playAgainButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.namelessBattle = false;
_root.charName = "Jamie";
_root.floorLevel = 0;
_root.body = 1;
_root.might = 1;
_root.speed = 1;
_root.skill = 1;
_root.mind = 1;
_root.spirit = 1;
_root.playerBattleLife = _root.body;
_root.playerBattleSpirit = _root.spirit;
_root.experiencePoints = 30;
_root.doorSection1 = false;
_root.doorSection2 = false;
_root.doorSection3 = false;
_root.doorSection4 = false;
_root.doorSection5 = false;
_root.MMPNum = 0;
_root.LMPNum = 0;
_root.MPNum = 0;
_root.GMPNum = 0;
_root.SMPNum = 0;
_root.SORNum = 0;
_root.MLNum = 0;
_root.room.attachMovie("intro", "room", 10);
};
Symbol 204 MovieClip [mageWarriorEnding2] Frame 1
backButton.onRelease = function () {
_root.room.attachMovie("falseGodEnding", "room", 10);
};
Symbol 207 MovieClip [sorcererEnding] Frame 1
playAgainButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.namelessBattle = false;
_root.charName = "Jamie";
_root.floorLevel = 0;
_root.body = 1;
_root.might = 1;
_root.speed = 1;
_root.skill = 1;
_root.mind = 1;
_root.spirit = 1;
_root.playerBattleLife = _root.body;
_root.playerBattleSpirit = _root.spirit;
_root.experiencePoints = 30;
_root.doorSection1 = false;
_root.doorSection2 = false;
_root.doorSection3 = false;
_root.doorSection4 = false;
_root.doorSection5 = false;
_root.MMPNum = 0;
_root.LMPNum = 0;
_root.MPNum = 0;
_root.GMPNum = 0;
_root.SMPNum = 0;
_root.SORNum = 0;
_root.MLNum = 0;
_root.room.attachMovie("intro", "room", 10);
};
Symbol 208 MovieClip [sorcererEnding2] Frame 1
backButton.onRelease = function () {
_root.room.attachMovie("falseGodEnding", "room", 10);
};
Symbol 209 MovieClip [fadeBasementStage ] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 209 MovieClip [fadeBasementStage ] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
_root.room.attachMovie("basicFightStage1", "room", 10);
}
Symbol 210 MovieClip [fadeBasicStage1] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 210 MovieClip [fadeBasicStage1] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 211 MovieClip [fadeBasicStage2] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 211 MovieClip [fadeBasicStage2] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 212 MovieClip [fadeBasicStage3] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 212 MovieClip [fadeBasicStage3] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 213 MovieClip [fadeBasicStage4] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 213 MovieClip [fadeBasicStage4] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 214 MovieClip [fadeBasicStage5] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 214 MovieClip [fadeBasicStage5] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 215 MovieClip [fadeDoorKeeperPoint1] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 215 MovieClip [fadeDoorKeeperPoint1] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 216 MovieClip [fadeDoorKeeperPoint2] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 216 MovieClip [fadeDoorKeeperPoint2] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 217 MovieClip [fadeDoorKeeperPoint3] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 217 MovieClip [fadeDoorKeeperPoint3] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 218 MovieClip [fadeDoorKeeperPoint4] Frame 1
walkStairs = new Sound();
walkStairs.attachSound("stoneStairs");
walkStairs.start(0, 1);
Symbol 218 MovieClip [fadeDoorKeeperPoint4] Frame 13
if (_root.direction == "up") {
_root.floorLevel = _root.floorLevel + 1;
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
} else if (_root.floorLevel == 25) {
}
}
if (_root.direction == "down") {
_root.floorLevel = _root.floorLevel - 1;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
Symbol 235 MovieClip [intro] Frame 66
stop();
startButton.onRelease = function () {
_root.room.attachMovie("secondIntro", "room", 10);
};
loadButton.onRelease = function () {
game = SharedObject.getLocal("TowerQuestExpansion");
if (game.data.charName != undefined) {
_root.charName = game.data.charName;
_root.floorLevel = game.data.floorLevel;
_root.namelessBattleComplete = game.data.namelessBattleComplete;
_root.experiencePoints = game.data.experiencePoints;
_root.body = game.data.body;
_root.might = game.data.might;
_root.speed = game.data.speed;
_root.skill = game.data.skill;
_root.mind = game.data.mind;
_root.spirit = game.data.spirit;
_root.playerBattleLife = game.data.playerBattleLife;
_root.playerBattleSpirit = game.data.playerBattleSpirit;
_root.doorSection1 = game.data.doorSection1;
_root.doorSection2 = game.data.doorSection2;
_root.doorSection3 = game.data.doorSection3;
_root.doorSection4 = game.data.doorSection4;
_root.doorSection5 = game.data.doorSection5;
_root.MMPNum = game.data.MMPNum;
_root.LMPNum = game.data.LMPNum;
_root.MPNum = game.data.MPNum;
_root.GMPNum = game.data.GMPNum;
_root.SMPNum = game.data.SMPNum;
_root.SORNum = game.data.SORNum;
_root.MLNum = game.data.MLNum;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
}
};
Symbol 246 MovieClip [secondIntro] Frame 1
_root.room.room.name.text = _root.charName;
continueButton.onRelease = function () {
_root.charName = _root.room.room.name;
_root.room.attachMovie("basementStage", "room", 10);
};
Symbol 247 MovieClip [lastBossStage] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
_root.floorName = "Floor 25";
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = _root.floorName;
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = "The Tower Champion";
};
_root.enemyBody = 20;
_root.enemyMight = 20;
_root.enemySpeed = 20;
_root.enemySkill = 20;
_root.enemyMind = 20;
_root.enemySpirit = 20;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.playerBattleLife = _root.body;
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 247 MovieClip [lastBossStage] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 247 MovieClip [lastBossStage] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 290 MovieClip [FAQ] Frame 1
q1.onRollOver = function () {
_root.empty.answer.answer.text = "You need to go and fight your way to the top of the twenty five story tower and defeat the tower's champion.";
};
q2.onRollOver = function () {
_root.empty.answer.answer.text = "A DoorKeeper is someone you must defeat in order to gain access to the upper levels. Once you defeat the DoorKeeper of a certain floor though, you don't have to fight him/her again.";
};
q3.onRollOver = function () {
_root.empty.answer.answer.text = "In this game, if you fight a regular enemy, you will gain experience points and also have a chance to recieve an item as well. The higher up you go in the tower, the more experience points you can win from the battles you fight and you will even have a chance of gaining more stronger mana potions as well as scroll of recalls. Also, with the experience points you gain, you can use them to level up your attributes like Might, Body and Mind.";
};
q4.onRollOver = function () {
_root.empty.answer.answer.text = "Each time you finish a fight, your Hit Points will become fully recovered for the next time you do battle. As for your Mana points, there are two ways to recover them. One way is to use a mana potion. The other is to go to the Basement of the Tower or to a floor where you defeated a Doorkeeper and then click on the 'Rest' option and then all your mana points will be recovered.";
};
q5.onRollOver = function () {
_root.empty.answer.answer.text = "The only places to go train is either the Basement of the Tower or to a floor where you defeated a Doorkeeper. Once you go to one of those places, you will need to click on the 'Train' option to bring you to the attribute training page. For each attribute, there is a level and the exp required to train that attribute to the next level. If you see that you have enough experience points required to train a certain attribute you wish train to the next level, you need to click on the button of that attribute you wish to level up.";
};
q6.onRollOver = function () {
_root.empty.answer.answer.text = "Physical damage is the damage that you can do to your opponent when you select the 'attack' option in a fight. Magical damage is the damage you can do to your opponent when you select the 'magic' option in a fight.";
};
q7.onRollOver = function () {
_root.empty.answer.answer.text = "Physical defense is how much protection you have against physical damage attacks that your opponent can do to you. Your physical defense is half of how much Body points you have. Magical defense is how much protection you have against magical damage attacks that your opponent can do to you. Your magical defense is half of how much Spirit points you have.";
};
q8.onRollOver = function () {
_root.empty.answer.answer.text = "Your healing strength would be reduced by how much physical defense you have.";
};
q9.onRollOver = function () {
_root.empty.answer.answer.text = "The game is designed in such a way where the amount of damage or healing you can do is in a range from half to the full amount of Might(if you wish to do physical damage), Mind(if you wish to do magical damage) or Spirit(if you wish to heal yourself) points you have. So if let's say you have 20 Might points, you can do from a range of 10 to 20 physical damage to your opponent not including how much physical defense your opponent has.";
};
q10.onRollOver = function () {
_root.empty.answer.answer.text = "The chance of you fleeing is based on how much Speed points you have compared to the Speed of your opponent. If you have more Speed than your opponent and you wish to flee, your chance of you fleeing is much greater than if your Speed is lower than your opponent. Also, if you have the same amount of Speed points as your opponent does, it doesn't mean that you will have a 50/50 chance of fleeing since your opponent will have an advantage in stopping you. Let's say you and your opponent has 1 point of Speed each, it will be virtually impossible for you to flee from that battle.";
};
q11.onRollOver = function () {
_root.empty.answer.answer.text = "Both you and your opponent have to each take turns in choosing an action in each round. What physical, magical or healing speed does is that it determines how much of a chance of who will be able to perform their action for that round first. If let's say you wish to heal yourself and your enemy wishes to cast 'magic' on you, if you have a higher amount of Spirit points than your opponent's Mind points, you will have a greater chance of doing your action first in that round.";
};
q12.onRollOver = function () {
_root.empty.answer.answer.text = "It costs 1 mana point to use magic and it costs 2 mana points to use heal in battle. Those numbers will always stay the same, even if your magic or healing strength is really strong.";
};
closeButton.onRelease = function () {
_root.empty.removeMovieClip();
};
Symbol 329 MovieClip Frame 1
PERCENT = _root.playerBattleLife / _root.body;
pHPBAR._xscale = Math.round(PERCENT * 100);
lifeText.text = (_root.playerBattleLife + "/") + _root.body;
PERCENT = _root.playerBattleSpirit / _root.spirit;
pMPBAR._xscale = Math.round(PERCENT * 100);
manaText.text = (_root.playerBattleSpirit + "/") + _root.spirit;
Symbol 329 MovieClip Frame 2
gotoAndPlay (1);
Symbol 331 MovieClip [stats] Frame 1
onEnterFrame = function () {
_root.empty.mightText.text = _root.might;
_root.empty.bodyText.text = _root.body;
_root.empty.speedText.text = _root.speed;
_root.empty.skillText.text = _root.skill;
_root.empty.mindText.text = _root.mind;
_root.empty.spiritText.text = _root.spirit;
if (_root.might == 30) {
_root.empty.mightExp.text = "MAX";
} else {
_root.empty.mightExp.text = _root.expReq[_root.might];
}
if (_root.body == 30) {
_root.empty.bodyExp.text = "MAX";
} else {
_root.empty.bodyExp.text = _root.expReq[_root.body];
}
if (_root.speed == 30) {
_root.empty.speedExp.text = "MAX";
} else {
_root.empty.speedExp.text = _root.expReq[_root.speed];
}
if (_root.skill == 30) {
_root.empty.skillExp.text = "MAX";
} else {
_root.empty.skillExp.text = _root.expReq[_root.skill];
}
if (_root.mind == 30) {
_root.empty.mindExp.text = "MAX";
} else {
_root.empty.mindExp.text = _root.expReq[_root.mind];
}
if (_root.spirit == 30) {
_root.empty.spiritExp.text = "MAX";
} else {
_root.empty.spiritExp.text = _root.expReq[_root.spirit];
}
_root.empty.expText.text = _root.experiencePoints;
};
closeButton.onRelease = function () {
_root.empty.removeMovieClip();
};
Symbol 334 MovieClip [restStage] Frame 1
continueButton.onRelease = function () {
_root.playerBattleSpirit = _root.spirit;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
}
};
Symbol 373 MovieClip [trainStage1] Frame 1
onEnterFrame = function () {
_root.room.room.mightText.text = _root.might;
_root.room.room.bodyText.text = _root.body;
_root.room.room.speedText.text = _root.speed;
_root.room.room.skillText.text = _root.skill;
_root.room.room.mindText.text = _root.mind;
_root.room.room.spiritText.text = _root.spirit;
if (_root.might == 30) {
_root.room.room.mightExp.text = "MAX";
} else {
_root.room.room.mightExp.text = _root.expReq[_root.might];
}
if (_root.body == 30) {
_root.room.room.bodyExp.text = "MAX";
} else {
_root.room.room.bodyExp.text = _root.expReq[_root.body];
}
if (_root.speed == 30) {
_root.room.room.speedExp.text = "MAX";
} else {
_root.room.room.speedExp.text = _root.expReq[_root.speed];
}
if (_root.skill == 30) {
_root.room.room.skillExp.text = "MAX";
} else {
_root.room.room.skillExp.text = _root.expReq[_root.skill];
}
if (_root.mind == 30) {
_root.room.room.mindExp.text = "MAX";
} else {
_root.room.room.mindExp.text = _root.expReq[_root.mind];
}
if (_root.spirit == 30) {
_root.room.room.spiritExp.text = "MAX";
} else {
_root.room.room.spiritExp.text = _root.expReq[_root.spirit];
}
_root.room.room.expText.text = _root.experiencePoints;
};
mightButton.onRelease = function () {
if (_root.room.room.mightExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.mightExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.mightExp.text;
_root.might = _root.might + 1;
}
}
};
bodyButton.onRelease = function () {
if (_root.room.room.bodyExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.bodyExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.bodyExp.text;
_root.body = _root.body + 1;
}
}
};
speedButton.onRelease = function () {
if (_root.room.room.speedExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.speedExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.speedExp.text;
_root.speed = _root.speed + 1;
}
}
};
skillButton.onRelease = function () {
if (_root.room.room.skillExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.skillExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.skillExp.text;
_root.skill = _root.skill + 1;
}
}
};
mindButton.onRelease = function () {
if (_root.room.room.mindExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.mindExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.mindExp.text;
_root.mind = _root.mind + 1;
}
}
};
spiritButton.onRelease = function () {
if (_root.room.room.spiritExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.spiritExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.spiritExp.text;
_root.spirit = _root.spirit + 1;
}
}
};
continueButton.onRelease = function () {
_root.playerBattleLife = _root.body;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
}
};
Symbol 398 MovieClip [trainStage2] Frame 1
onEnterFrame = function () {
_root.room.room.mightText.text = _root.might;
_root.room.room.bodyText.text = _root.body;
_root.room.room.speedText.text = _root.speed;
_root.room.room.skillText.text = _root.skill;
_root.room.room.mindText.text = _root.mind;
_root.room.room.spiritText.text = _root.spirit;
if (_root.might == 30) {
_root.room.room.mightExp.text = "MAX";
} else {
_root.room.room.mightExp.text = _root.expReq[_root.might];
}
if (_root.body == 30) {
_root.room.room.bodyExp.text = "MAX";
} else {
_root.room.room.bodyExp.text = _root.expReq[_root.body];
}
if (_root.speed == 30) {
_root.room.room.speedExp.text = "MAX";
} else {
_root.room.room.speedExp.text = _root.expReq[_root.speed];
}
if (_root.skill == 30) {
_root.room.room.skillExp.text = "MAX";
} else {
_root.room.room.skillExp.text = _root.expReq[_root.skill];
}
if (_root.mind == 30) {
_root.room.room.mindExp.text = "MAX";
} else {
_root.room.room.mindExp.text = _root.expReq[_root.mind];
}
if (_root.spirit == 30) {
_root.room.room.spiritExp.text = "MAX";
} else {
_root.room.room.spiritExp.text = _root.expReq[_root.spirit];
}
_root.room.room.expText.text = _root.experiencePoints;
};
mightButton.onRelease = function () {
if (_root.room.room.mightExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.mightExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.mightExp.text;
_root.might = _root.might + 1;
}
}
};
bodyButton.onRelease = function () {
if (_root.room.room.bodyExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.bodyExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.bodyExp.text;
_root.body = _root.body + 1;
}
}
};
speedButton.onRelease = function () {
if (_root.room.room.speedExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.speedExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.speedExp.text;
_root.speed = _root.speed + 1;
}
}
};
skillButton.onRelease = function () {
if (_root.room.room.skillExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.skillExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.skillExp.text;
_root.skill = _root.skill + 1;
}
}
};
mindButton.onRelease = function () {
if (_root.room.room.mindExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.mindExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.mindExp.text;
_root.mind = _root.mind + 1;
}
}
};
spiritButton.onRelease = function () {
if (_root.room.room.spiritExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.spiritExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.spiritExp.text;
_root.spirit = _root.spirit + 1;
}
}
};
continueButton.onRelease = function () {
_root.playerBattleLife = _root.body;
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
};
Symbol 422 MovieClip [trainStage3] Frame 1
onEnterFrame = function () {
_root.room.room.mightText.text = _root.might;
_root.room.room.bodyText.text = _root.body;
_root.room.room.speedText.text = _root.speed;
_root.room.room.skillText.text = _root.skill;
_root.room.room.mindText.text = _root.mind;
_root.room.room.spiritText.text = _root.spirit;
if (_root.might == 30) {
_root.room.room.mightExp.text = "MAX";
} else {
_root.room.room.mightExp.text = _root.expReq[_root.might];
}
if (_root.body == 30) {
_root.room.room.bodyExp.text = "MAX";
} else {
_root.room.room.bodyExp.text = _root.expReq[_root.body];
}
if (_root.speed == 30) {
_root.room.room.speedExp.text = "MAX";
} else {
_root.room.room.speedExp.text = _root.expReq[_root.speed];
}
if (_root.skill == 30) {
_root.room.room.skillExp.text = "MAX";
} else {
_root.room.room.skillExp.text = _root.expReq[_root.skill];
}
if (_root.mind == 30) {
_root.room.room.mindExp.text = "MAX";
} else {
_root.room.room.mindExp.text = _root.expReq[_root.mind];
}
if (_root.spirit == 30) {
_root.room.room.spiritExp.text = "MAX";
} else {
_root.room.room.spiritExp.text = _root.expReq[_root.spirit];
}
_root.room.room.expText.text = _root.experiencePoints;
};
mightButton.onRelease = function () {
if (_root.room.room.mightExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.mightExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.mightExp.text;
_root.might = _root.might + 1;
}
}
};
bodyButton.onRelease = function () {
if (_root.room.room.bodyExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.bodyExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.bodyExp.text;
_root.body = _root.body + 1;
}
}
};
speedButton.onRelease = function () {
if (_root.room.room.speedExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.speedExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.speedExp.text;
_root.speed = _root.speed + 1;
}
}
};
skillButton.onRelease = function () {
if (_root.room.room.skillExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.skillExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.skillExp.text;
_root.skill = _root.skill + 1;
}
}
};
mindButton.onRelease = function () {
if (_root.room.room.mindExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.mindExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.mindExp.text;
_root.mind = _root.mind + 1;
}
}
};
spiritButton.onRelease = function () {
if (_root.room.room.spiritExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.spiritExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.spiritExp.text;
_root.spirit = _root.spirit + 1;
}
}
};
continueButton.onRelease = function () {
_root.playerBattleLife = _root.body;
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
};
Symbol 446 MovieClip [trainStage4] Frame 1
onEnterFrame = function () {
_root.room.room.mightText.text = _root.might;
_root.room.room.bodyText.text = _root.body;
_root.room.room.speedText.text = _root.speed;
_root.room.room.skillText.text = _root.skill;
_root.room.room.mindText.text = _root.mind;
_root.room.room.spiritText.text = _root.spirit;
if (_root.might == 30) {
_root.room.room.mightExp.text = "MAX";
} else {
_root.room.room.mightExp.text = _root.expReq[_root.might];
}
if (_root.body == 30) {
_root.room.room.bodyExp.text = "MAX";
} else {
_root.room.room.bodyExp.text = _root.expReq[_root.body];
}
if (_root.speed == 30) {
_root.room.room.speedExp.text = "MAX";
} else {
_root.room.room.speedExp.text = _root.expReq[_root.speed];
}
if (_root.skill == 30) {
_root.room.room.skillExp.text = "MAX";
} else {
_root.room.room.skillExp.text = _root.expReq[_root.skill];
}
if (_root.mind == 30) {
_root.room.room.mindExp.text = "MAX";
} else {
_root.room.room.mindExp.text = _root.expReq[_root.mind];
}
if (_root.spirit == 30) {
_root.room.room.spiritExp.text = "MAX";
} else {
_root.room.room.spiritExp.text = _root.expReq[_root.spirit];
}
_root.room.room.expText.text = _root.experiencePoints;
};
mightButton.onRelease = function () {
if (_root.room.room.mightExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.mightExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.mightExp.text;
_root.might = _root.might + 1;
}
}
};
bodyButton.onRelease = function () {
if (_root.room.room.bodyExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.bodyExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.bodyExp.text;
_root.body = _root.body + 1;
}
}
};
speedButton.onRelease = function () {
if (_root.room.room.speedExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.speedExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.speedExp.text;
_root.speed = _root.speed + 1;
}
}
};
skillButton.onRelease = function () {
if (_root.room.room.skillExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.skillExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.skillExp.text;
_root.skill = _root.skill + 1;
}
}
};
mindButton.onRelease = function () {
if (_root.room.room.mindExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.mindExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.mindExp.text;
_root.mind = _root.mind + 1;
}
}
};
spiritButton.onRelease = function () {
if (_root.room.room.spiritExp.text != "MAX") {
if (_root.experiencePoints >= _root.room.room.spiritExp.text) {
clickSound = new Sound();
clickSound.attachSound("ambientClickSmall");
clickSound.start(0, 1);
_root.experiencePoints = _root.experiencePoints - _root.room.room.spiritExp.text;
_root.spirit = _root.spirit + 1;
}
}
};
continueButton.onRelease = function () {
_root.playerBattleLife = _root.body;
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
};
Symbol 457 MovieClip [bossWarning] Frame 1
yesButton.onRelease = function () {
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("fadeBasicStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("fadeBasicStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("fadeBasicStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("fadeBasicStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("fadeBasicStage5", "room", 10);
}
_root.empty.removeMovieClip();
};
noButton.onRelease = function () {
_root.empty.removeMovieClip();
};
Symbol 459 MovieClip [LastBossWarning] Frame 1
yesButton.onRelease = function () {
_root.room.attachMovie("lastBossStage", "room", 10);
_root.floorLevel = 25;
_root.empty.removeMovieClip();
};
noButton.onRelease = function () {
_root.empty.removeMovieClip();
};
Symbol 465 MovieClip [basicBattleWon] Frame 1
onEnterFrame = function () {
_root.room.room.experienceText.text = (_root.enemyExp + " ") + "experience points";
if (_root.itemNum == 0) {
_root.room.room.itemText.text = "no items";
} else if (_root.itemNum == 1) {
_root.room.room.itemText.text = "a minor mana potion";
} else if (_root.itemNum == 2) {
_root.room.room.itemText.text = "a light mana potion";
} else if (_root.itemNum == 3) {
_root.room.room.itemText.text = "a mana potion";
} else if (_root.itemNum == 4) {
_root.room.room.itemText.text = "a greater mana potion";
} else if (_root.itemNum == 5) {
_root.room.room.itemText.text = "a super mana potion";
} else if (_root.itemNum == 6) {
_root.room.room.itemText.text = "a scroll of recall";
} else if (_root.itemNum == 7) {
_root.room.room.itemText.text = "a magical lamp";
}
};
continueButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.experiencePoints = _root.experiencePoints + _root.enemyExp;
_root.playerBattleLife = _root.body;
if ((_root.itemNum == 1) && (_root.MMPNum < 99)) {
_root.MMPNum = _root.MMPNum + 1;
} else if ((_root.itemNum == 2) && (_root.LMPNum < 99)) {
_root.LMPNum = _root.LMPNum + 1;
} else if ((_root.itemNum == 3) && (_root.MPNum < 99)) {
_root.MPNum = _root.MPNum + 1;
} else if ((_root.itemNum == 4) && (_root.GMPNum < 99)) {
_root.GMPNum = _root.GMPNum + 1;
} else if ((_root.itemNum == 5) && (_root.SMPNum < 99)) {
_root.SMPNum = _root.SMPNum + 1;
} else if ((_root.itemNum == 6) && (_root.SORNum < 99)) {
_root.SORNum = _root.SORNum + 1;
} else if ((_root.itemNum == 7) && (_root.MLNum < 99)) {
_root.MLNum = _root.MLNum + 1;
}
if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicStage5", "room", 10);
}
};
Symbol 470 MovieClip [deathLost] Frame 1
playAgainButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.namelessBattle = false;
_root.charName = "Jamie";
_root.floorLevel = 0;
_root.body = 1;
_root.might = 1;
_root.speed = 1;
_root.skill = 1;
_root.mind = 1;
_root.spirit = 1;
_root.playerBattleLife = _root.body;
_root.playerBattleSpirit = _root.spirit;
_root.experiencePoints = 30;
_root.doorSection1 = false;
_root.doorSection2 = false;
_root.doorSection3 = false;
_root.doorSection4 = false;
_root.doorSection5 = false;
_root.MMPNum = 0;
_root.LMPNum = 0;
_root.MPNum = 0;
_root.GMPNum = 0;
_root.SMPNum = 0;
_root.SORNum = 0;
_root.MLNum = 0;
_root.room.attachMovie("intro", "room", 10);
};
Symbol 474 MovieClip [lastBattleWon] Frame 1
continueButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.playerBattleLife = _root.body;
_root.doorSection5 = true;
if (_root.namelessBattleComplete) {
_root.room.attachMovie("falseGodEnding", "room", 10);
} else if ((_root.might / _root.mind) >= 1.333) {
_root.room.attachMovie("brawlerEnding", "room", 10);
} else if (((_root.might / _root.mind) < 1.333) && ((_root.might / _root.mind) >= 0.666)) {
_root.room.attachMovie("mageWarriorEnding", "room", 10);
} else if ((_root.might / _root.mind) < 0.666) {
_root.room.attachMovie("sorcererEnding", "room", 10);
}
};
Symbol 504 MovieClip [items1] Frame 1
onEnterFrame = function () {
_root.room.room.MMPText.text = _root.MMPNum;
_root.room.room.LMPText.text = _root.LMPNum;
_root.room.room.MPText.text = _root.MPNum;
_root.room.room.GMPText.text = _root.GMPNum;
_root.room.room.SMPText.text = _root.SMPNum;
_root.room.room.SORText.text = _root.SORNum;
_root.room.room.MLText.text = _root.MLNum;
};
MMPButton.onRelease = function () {
if ((_root.MMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MMPNum = _root.MMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 2;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
LMPButton.onRelease = function () {
if ((_root.LMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.LMPNum = _root.LMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 4;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.LMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
MPButton.onRelease = function () {
if ((_root.MPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MPNum = _root.MPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 6;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
GMPButton.onRelease = function () {
if ((_root.GMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.GMPNum = _root.GMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 8;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.GMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SMPButton.onRelease = function () {
if ((_root.SMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.SMPNum = _root.SMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 10;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.SMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SORButton.onRelease = function () {
if (_root.SORNum > 0) {
_root.SORNum = _root.SORNum - 1;
_root.summonState = "SOR";
_root.room.attachMovie("fadeItems1", "room", 10);
}
};
MLButton.onRelease = function () {
if (_root.MLNum > 0) {
_root.MLNum = _root.MLNum - 1;
_root.namelessBattle = true;
_root.summonState = "ML";
_root.room.attachMovie("fadeItems1", "room", 10);
}
};
continueButton.onRelease = function () {
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel == 5) && (_root.doorSection1)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.floorLevel == 5) && (!_root.doorSection1)) {
_root.room.attachMovie("doorKeeperFlee1", "room", 10);
} else {
_root.room.attachMovie("basicStage1", "room", 10);
}
};
Symbol 515 MovieClip [items2] Frame 1
onEnterFrame = function () {
_root.room.room.MMPText.text = _root.MMPNum;
_root.room.room.LMPText.text = _root.LMPNum;
_root.room.room.MPText.text = _root.MPNum;
_root.room.room.GMPText.text = _root.GMPNum;
_root.room.room.SMPText.text = _root.SMPNum;
_root.room.room.SORText.text = _root.SORNum;
_root.room.room.MLText.text = _root.MLNum;
};
MMPButton.onRelease = function () {
if ((_root.MMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MMPNum = _root.MMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 2;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
LMPButton.onRelease = function () {
if ((_root.LMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.LMPNum = _root.LMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 4;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.LMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
MPButton.onRelease = function () {
if ((_root.MPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MPNum = _root.MPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 6;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
GMPButton.onRelease = function () {
if ((_root.GMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.GMPNum = _root.GMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 8;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.GMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SMPButton.onRelease = function () {
if ((_root.SMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.SMPNum = _root.SMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 10;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.SMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SORButton.onRelease = function () {
if (_root.SORNum > 0) {
_root.SORNum = _root.SORNum - 1;
_root.summonState = "SOR";
_root.room.attachMovie("fadeItems2", "room", 10);
}
};
MLButton.onRelease = function () {
if (_root.MLNum > 0) {
_root.MLNum = _root.MLNum - 1;
_root.namelessBattle = true;
_root.summonState = "ML";
_root.room.attachMovie("fadeItems2", "room", 10);
}
};
continueButton.onRelease = function () {
if ((_root.floorLevel == 10) && (_root.doorSection2)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.floorLevel == 10) && (!_root.doorSection2)) {
_root.room.attachMovie("doorKeeperFlee2", "room", 10);
} else {
_root.room.attachMovie("basicStage2", "room", 10);
}
};
Symbol 526 MovieClip [items3] Frame 1
onEnterFrame = function () {
_root.room.room.MMPText.text = _root.MMPNum;
_root.room.room.LMPText.text = _root.LMPNum;
_root.room.room.MPText.text = _root.MPNum;
_root.room.room.GMPText.text = _root.GMPNum;
_root.room.room.SMPText.text = _root.SMPNum;
_root.room.room.SORText.text = _root.SORNum;
_root.room.room.MLText.text = _root.MLNum;
};
MMPButton.onRelease = function () {
if ((_root.MMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MMPNum = _root.MMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 2;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
LMPButton.onRelease = function () {
if ((_root.LMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.LMPNum = _root.LMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 4;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.LMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
MPButton.onRelease = function () {
if ((_root.MPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MPNum = _root.MPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 6;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
GMPButton.onRelease = function () {
if ((_root.GMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.GMPNum = _root.GMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 8;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.GMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SMPButton.onRelease = function () {
if ((_root.SMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.SMPNum = _root.SMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 10;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.SMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SORButton.onRelease = function () {
if (_root.SORNum > 0) {
_root.SORNum = _root.SORNum - 1;
_root.summonState = "SOR";
_root.room.attachMovie("fadeItems3", "room", 10);
}
};
MLButton.onRelease = function () {
if (_root.MLNum > 0) {
_root.MLNum = _root.MLNum - 1;
_root.namelessBattle = true;
_root.summonState = "ML";
_root.room.attachMovie("fadeItems3", "room", 10);
}
};
continueButton.onRelease = function () {
if ((_root.floorLevel == 15) && (_root.doorSection3)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.floorLevel == 15) && (!_root.doorSection3)) {
_root.room.attachMovie("doorKeeperFlee3", "room", 10);
} else {
_root.room.attachMovie("basicStage3", "room", 10);
}
};
Symbol 537 MovieClip [items4] Frame 1
onEnterFrame = function () {
_root.room.room.MMPText.text = _root.MMPNum;
_root.room.room.LMPText.text = _root.LMPNum;
_root.room.room.MPText.text = _root.MPNum;
_root.room.room.GMPText.text = _root.GMPNum;
_root.room.room.SMPText.text = _root.SMPNum;
_root.room.room.SORText.text = _root.SORNum;
_root.room.room.MLText.text = _root.MLNum;
};
MMPButton.onRelease = function () {
if ((_root.MMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MMPNum = _root.MMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 2;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
LMPButton.onRelease = function () {
if ((_root.LMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.LMPNum = _root.LMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 4;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.LMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
MPButton.onRelease = function () {
if ((_root.MPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MPNum = _root.MPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 6;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
GMPButton.onRelease = function () {
if ((_root.GMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.GMPNum = _root.GMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 8;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.GMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SMPButton.onRelease = function () {
if ((_root.SMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.SMPNum = _root.SMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 10;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.SMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SORButton.onRelease = function () {
if (_root.SORNum > 0) {
_root.SORNum = _root.SORNum - 1;
_root.summonState = "SOR";
_root.room.attachMovie("fadeItems4", "room", 10);
}
};
MLButton.onRelease = function () {
if (_root.MLNum > 0) {
_root.MLNum = _root.MLNum - 1;
_root.namelessBattle = true;
_root.summonState = "ML";
_root.room.attachMovie("fadeItems4", "room", 10);
}
};
continueButton.onRelease = function () {
if ((_root.floorLevel == 20) && (_root.doorSection4)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.floorLevel == 20) && (!_root.doorSection4)) {
_root.room.attachMovie("doorKeeperFlee4", "room", 10);
} else {
_root.room.attachMovie("basicStage4", "room", 10);
}
};
Symbol 550 MovieClip [items5] Frame 1
onEnterFrame = function () {
_root.room.room.MMPText.text = _root.MMPNum;
_root.room.room.LMPText.text = _root.LMPNum;
_root.room.room.MPText.text = _root.MPNum;
_root.room.room.GMPText.text = _root.GMPNum;
_root.room.room.SMPText.text = _root.SMPNum;
_root.room.room.SORText.text = _root.SORNum;
_root.room.room.MLText.text = _root.MLNum;
};
MMPButton.onRelease = function () {
if ((_root.MMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MMPNum = _root.MMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 2;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
LMPButton.onRelease = function () {
if ((_root.LMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.LMPNum = _root.LMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 4;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.LMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
MPButton.onRelease = function () {
if ((_root.MPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.MPNum = _root.MPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 6;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.MPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
GMPButton.onRelease = function () {
if ((_root.GMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.GMPNum = _root.GMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 8;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.GMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SMPButton.onRelease = function () {
if ((_root.SMPNum > 0) && (_root.playerBattleSpirit < _root.spirit)) {
_root.SMPNum = _root.SMPNum - 1;
_root.playerBattleSpirit = _root.playerBattleSpirit + 10;
if (_root.playerBattleSpirit > _root.spirit) {
_root.playerBattleSpirit = _root.spirit;
}
pourSound = new Sound();
pourSound.attachSound("smallPour");
pourSound.start(0, 1);
} else if ((_root.SMPNum > 0) && (_root.playerBattleSpirit >= _root.spirit)) {
_root.attachMovie("manaWarning", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
}
};
SORButton.onRelease = function () {
if (_root.SORNum > 0) {
_root.SORNum = _root.SORNum - 1;
_root.summonState = "SOR";
_root.room.attachMovie("fadeItems5", "room", 10);
}
};
MLButton.onRelease = function () {
if (_root.MLNum > 0) {
_root.MLNum = _root.MLNum - 1;
_root.namelessBattle = true;
_root.summonState = "ML";
_root.room.attachMovie("fadeItems5", "room", 10);
}
};
continueButton.onRelease = function () {
_root.room.attachMovie("basicStage5", "room", 10);
};
Symbol 551 MovieClip [basementFightStage] Frame 1
stop();
statsButton.onRelease = function () {
_root.attachMovie("stats", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
helpButton.onRelease = function () {
_root.attachMovie("FAQ", "empty", 1);
_root.empty._x = 320;
_root.empty._y = 240;
};
musicPlayButton.onRelease = function () {
if (!_root.soundOn) {
_root.song.start();
_root.speaker.play();
_root.soundOn = true;
}
};
musicStopButton.onRelease = function () {
_root.song.stop();
_root.speaker.stop();
_root.soundOn = false;
};
_root.enemyBody = 30;
_root.enemyMight = 30;
_root.enemySpeed = 30;
_root.enemySkill = 30;
_root.enemyMind = 30;
_root.enemySpirit = 30;
_root.enemyBattleLife = _root.enemyBody;
_root.enemyBattleSpirit = _root.enemySpirit;
_root.playerBattleLife = _root.body;
onEnterFrame = function () {
_root.room.room.floorBoard.floorNumber.text = "Basement";
_root.room.room.playerEnergyBar.name.text = _root.charName;
_root.room.room.enemyEnergyBar.name.text = "Nameless";
};
attack.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.playerState = "attack";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
magic.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 0)) {
_root.playerState = "magic";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.mind)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
heal.onRelease = function () {
if ((_root.fightEnd && (_root.startFight)) && (_root.playerBattleSpirit > 1)) {
_root.playerState = "heal";
_root.fightEnd = false;
_root.playerAttack = true;
_root.enemyAttack = true;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpirit)) + 1;
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemyMind)) + 1;
} else {
_root.enemyState = "attack";
_root.playerInit = Math.floor(random(_root.spirit)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
}
if (_root.playerInit > _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.enemyAttack = false;
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
}
}
};
flee.onRelease = function () {
if (_root.fightEnd && (_root.startFight)) {
_root.fightEnd = false;
_root.enemyAttack = false;
_root.pDefense = Math.floor(_root.body / 2);
_root.mDefense = Math.floor(_root.spirit / 2);
if (((_root.enemyBody / _root.enemyBattleLife) >= 2) && (_root.enemyBattleSpirit > 1)) {
_root.enemyState = "heal";
} else if (((_root.enemyMight - _root.pDefense) < (_root.enemyMind - _root.mDefense)) && (_root.enemyBattleSpirit > 0)) {
_root.enemyState = "magic";
} else {
_root.enemyState = "attack";
}
_root.playerInit = Math.floor(random(_root.speed)) + 1;
_root.enemyInit = Math.floor(random(_root.enemySpeed)) + 1;
if (_root.playerInit > _root.enemyInit) {
_root.startFight = false;
_root.fightEnd = true;
_root.room.room.hero.attachMovie("fleePlayer", "hero", 10);
} else if (_root.playerInit < _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
} else if (_root.playerInit == _root.enemyInit) {
_root.room.room.villian.attachMovie("fadeEnemy", "villian", 10);
}
}
};
Instance of Symbol 40 MovieClip [hero] "hero" in Symbol 551 MovieClip [basementFightStage] Frame 1
onClipEvent (load) {
this.attachMovie("introPlayer", "hero", 10);
}
Instance of Symbol 39 MovieClip [villian] "villian" in Symbol 551 MovieClip [basementFightStage] Frame 1
onClipEvent (load) {
this.attachMovie("introEnemy", "villian", 10);
}
Symbol 554 MovieClip [fadeItems1] Frame 1
summon = new Sound();
summon.attachSound("warp");
summon.start(0, 1);
Symbol 554 MovieClip [fadeItems1] Frame 13
if (_root.summonState == "SOR") {
if (_root.doorSection1) {
if (_root.doorSection2) {
if (_root.doorSection3) {
if (_root.doorSection4) {
_root.floorLevel = 20;
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else {
_root.floorLevel = 15;
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
}
} else {
_root.floorLevel = 10;
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
}
} else {
_root.floorLevel = 5;
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
}
} else {
_root.floorLevel = 0;
_root.room.attachMovie("basementStage", "room", 10);
}
} else if (_root.summonState == "ML") {
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementFightStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
}
}
Symbol 557 MovieClip [fadeItems2] Frame 1
summon = new Sound();
summon.attachSound("warp");
summon.start(0, 1);
Symbol 557 MovieClip [fadeItems2] Frame 13
if (_root.summonState == "SOR") {
if (_root.doorSection1) {
if (_root.doorSection2) {
if (_root.doorSection3) {
if (_root.doorSection4) {
_root.floorLevel = 20;
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else {
_root.floorLevel = 15;
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
}
} else {
_root.floorLevel = 10;
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
}
} else {
_root.floorLevel = 5;
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
}
} else {
_root.floorLevel = 0;
_root.room.attachMovie("basementStage", "room", 10);
}
} else if (_root.summonState == "ML") {
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementFightStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
}
}
Symbol 560 MovieClip [fadeItems3] Frame 1
summon = new Sound();
summon.attachSound("warp");
summon.start(0, 1);
Symbol 560 MovieClip [fadeItems3] Frame 13
if (_root.summonState == "SOR") {
if (_root.doorSection1) {
if (_root.doorSection2) {
if (_root.doorSection3) {
if (_root.doorSection4) {
_root.floorLevel = 20;
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else {
_root.floorLevel = 15;
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
}
} else {
_root.floorLevel = 10;
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
}
} else {
_root.floorLevel = 5;
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
}
} else {
_root.floorLevel = 0;
_root.room.attachMovie("basementStage", "room", 10);
}
} else if (_root.summonState == "ML") {
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementFightStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
}
}
Symbol 563 MovieClip [fadeItems4] Frame 1
summon = new Sound();
summon.attachSound("warp");
summon.start(0, 1);
Symbol 563 MovieClip [fadeItems4] Frame 13
if (_root.summonState == "SOR") {
if (_root.doorSection1) {
if (_root.doorSection2) {
if (_root.doorSection3) {
if (_root.doorSection4) {
_root.floorLevel = 20;
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else {
_root.floorLevel = 15;
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
}
} else {
_root.floorLevel = 10;
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
}
} else {
_root.floorLevel = 5;
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
}
} else {
_root.floorLevel = 0;
_root.room.attachMovie("basementStage", "room", 10);
}
} else if (_root.summonState == "ML") {
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementFightStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
}
}
Symbol 566 MovieClip [fadeItems5] Frame 1
summon = new Sound();
summon.attachSound("warp");
summon.start(0, 1);
Symbol 566 MovieClip [fadeItems5] Frame 13
if (_root.summonState == "SOR") {
if (_root.doorSection1) {
if (_root.doorSection2) {
if (_root.doorSection3) {
if (_root.doorSection4) {
_root.floorLevel = 20;
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else {
_root.floorLevel = 15;
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
}
} else {
_root.floorLevel = 10;
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
}
} else {
_root.floorLevel = 5;
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
}
} else {
_root.floorLevel = 0;
_root.room.attachMovie("basementStage", "room", 10);
}
} else if (_root.summonState == "ML") {
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementFightStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicFightStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicFightStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicFightStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicFightStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicFightStage5", "room", 10);
} else if (_root.floorLevel == 5) {
_root.room.attachMovie("doorKeeperFight1", "room", 10);
} else if (_root.floorLevel == 10) {
_root.room.attachMovie("doorKeeperFight2", "room", 10);
} else if (_root.floorLevel == 15) {
_root.room.attachMovie("doorKeeperFight3", "room", 10);
} else if (_root.floorLevel == 20) {
_root.room.attachMovie("doorKeeperFight4", "room", 10);
}
}
Symbol 569 MovieClip [nameLessBattleWon] Frame 1
continueButton.onRelease = function () {
_root.startFight = false;
_root.fightEnd = true;
_root.playerBattleLife = _root.body;
_root.namelessBattle = false;
_root.namelessBattleComplete = true;
if (_root.floorLevel == 0) {
_root.room.attachMovie("basementStage", "room", 10);
} else if ((_root.floorLevel >= 1) && (_root.floorLevel <= 4)) {
_root.room.attachMovie("basicStage1", "room", 10);
} else if ((_root.floorLevel >= 6) && (_root.floorLevel <= 9)) {
_root.room.attachMovie("basicStage2", "room", 10);
} else if ((_root.floorLevel >= 11) && (_root.floorLevel <= 14)) {
_root.room.attachMovie("basicStage3", "room", 10);
} else if ((_root.floorLevel >= 16) && (_root.floorLevel <= 19)) {
_root.room.attachMovie("basicStage4", "room", 10);
} else if ((_root.floorLevel >= 21) && (_root.floorLevel <= 24)) {
_root.room.attachMovie("basicStage5", "room", 10);
} else if ((_root.doorSection1 == true) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperPoint1", "room", 10);
} else if ((_root.doorSection2 == true) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperPoint2", "room", 10);
} else if ((_root.doorSection3 == true) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperPoint3", "room", 10);
} else if ((_root.doorSection4 == true) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperPoint4", "room", 10);
} else if ((_root.doorSection1 == false) && (_root.floorLevel == 5)) {
_root.room.attachMovie("doorKeeperFlee1", "room", 10);
} else if ((_root.doorSection2 == false) && (_root.floorLevel == 10)) {
_root.room.attachMovie("doorKeeperFlee2", "room", 10);
} else if ((_root.doorSection3 == false) && (_root.floorLevel == 15)) {
_root.room.attachMovie("doorKeeperFlee3", "room", 10);
} else if ((_root.doorSection4 == false) && (_root.floorLevel == 20)) {
_root.room.attachMovie("doorKeeperFlee4", "room", 10);
}
};
Symbol 574 MovieClip [manaWarning] Frame 1
okayButton.onRelease = function () {
_root.empty.removeMovieClip();
};
Symbol 576 MovieClip [healEnemy] Frame 1
energizeSound = new Sound();
energizeSound.attachSound("energizeEdit");
energizeSound.start(0, 1);
Symbol 576 MovieClip [healEnemy] Frame 13
_root.enemyBattleSpirit = _root.enemyBattleSpirit - 2;
_root.pDefense = Math.floor(_root.enemyBody / 2);
_root.coreDamage = Math.floor(_root.enemySpirit / 2);
_root.randomDamage = Math.floor(random(_root.enemySpirit - _root.coreDamage)) + 1;
_root.damage = (_root.coreDamage + _root.randomDamage) - _root.pDefense;
if (_root.damage < 0) {
_root.damage = 0;
}
_root.enemyBattleLife = _root.enemyBattleLife + _root.damage;
if (_root.enemyBattleLife > _root.enemyBody) {
_root.enemyBattleLife = _root.enemyBody;
}
_root.room.room.villian.villian.healText.textHeal.text = _root.damage;
Symbol 576 MovieClip [healEnemy] Frame 16
if (_root.playerAttack) {
_root.playerAttack = false;
_root.room.room.hero.attachMovie("fadePlayer", "hero", 10);
} else if (!_root.enemyAttack) {
_root.fightEnd = true;
}
_root.room.room.villian.attachMovie("enemy", "villian", 10);
Symbol 578 MovieClip [gameSaved] Frame 1
okayButton.onRelease = function () {
_root.empty.removeMovieClip();
};
Symbol 602 MovieClip Frame 1
stop();