Frame 1
function nextSceneFun() {
gotoAndStop (2);
}
stop();
stage.showMenu = false;
i = 1;
max = 60;
x = getProperty("fire", _x);
Instance of Symbol 12 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.b_loaded = _root.getBytesLoaded();
_root.b_total = _root.getBytesTotal();
_root.percent = Math.round((_root.b_loaded / _root.b_total) * 100);
this._width = _root.percent * 5;
if (_root.percent == 100) {
_root.nextSceneFun();
}
}
Instance of Symbol 19 MovieClip "cursor" in Frame 1
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 2
nextFrame();
Instance of Symbol 19 MovieClip "cursor" in Frame 2
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 3
mySharedObject = SharedObject.getLocal("savedObject");
_root.SavedGameExist = mySharedObject.data.SaveGame;
if ((!_root.SavedGameExist) == 1) {
LoadingButton.enabled = false;
} else if (_root.SavedGameExist == 1) {
LoadingButton.enabled = true;
}
Frame 6
function dealDamage() {
if (_root.miss == 3) {
_root.damage2._visible = true;
_root.damage2.play();
_root.subtractDMG = "miss...";
} else {
_root.adding = (Math.random() * 50) + 1;
_root.adding = Math.round(_root.adding);
_root.weapona = _root.weapon + 1;
_root.adding = _root.adding * _root.weapona;
_root.damage2._visible = true;
_root.damage2.play();
_root.subtractDMG = 0;
_root.subtractDMG = _root.subtractDMG + _root.level;
_root.subtractDMG = _root.subtractDMG + _root.damageAdd;
_root.subtractDMG = _root.subtractDMG * _root.weapon;
_root.subtractDMG = _root.subtractDMG + _root.level;
_root.subtractDMG = _root.subtractDMG + _root.adding;
_root.subtractDMG = _root.subtractDMG * _root.concentrations;
if (_root.magicka > 0) {
_root.boomer = _root.magicka * 10;
_root.subtractDMG = _root.subtractDMG * _root.boomer;
}
_root.enemyhp = _root.enemyhp - _root.subtractDMG;
}
}
function enemyDeal() {
function omgdie() {
_root.gotoAndStop(3);
tellTarget ("_root") {
gotoAndStop ("lost");
};
gotoAndStop (8);
}
if (_root.miss == 3) {
_root.damage1._visible = true;
_root.damage1.play();
_root.subtractDMG = "miss...";
} else {
_root.enemyConCen = _root.enemyConCen + 1;
_root.adding = (Math.random() * 50) + 1;
_root.adding = _root.adding * _root.enemylevel;
_root.adding = (_root.adding = _root.adding / 2);
_root.adding = Math.round(_root.adding);
_root.damage1._visible = true;
_root.damage1.play();
_root.subtractDMG = 0;
_root.subtractDMG = _root.subtractDMG + _root.enemylevel;
_root.subtractDMG = _root.subtractDMG * _root.weapon;
_root.subtractDMG = _root.subtractDMG + _root.adding;
_root.subtractDMG = _root.subtractDMG / _root.level;
_root.subtractDMG = Math.ceil(_root.subtractDMG);
_root.subtractDMG = _root.subtractDMG * _root.enemyConCen;
if (_root.protection == 1) {
swordx = new Sound();
swordx.attachSound("swordx");
swordx.start();
_root.subtractDMG = _root.subtractDMG / 50;
_root.protection = 0;
_root.subtractDMG = Math.ceil(_root.subtractDMG);
}
}
}
stop();
_root.oldlevel = _root.level;
_root.protection = 0;
_root.enemyTurn = 0;
_root.castmagi = 0;
_root.enemyConCen = 0;
_root.magicka = 0;
_root.concentrations = 1;
_root.enemyhp = _root.enemylevel * 100;
_root.enemyhp = _root.enemyhp * _root.level;
_root.enemyhp = _root.enemyhp * _root.level;
_root.enemyhp = (_root.enemyhp * _root.level) / 2;
_root.enemyhp = (_root.enemyhp = _root.enemyhp + 249);
Instance of Symbol 92 MovieClip "redball" in Frame 6
onClipEvent (enterFrame) {
if (_root.hp1 > _root.maxhp1) {
_root.hp1 = _root.maxhp1;
}
if (_root.hp1 < 1) {
tellTarget ("_root") {
gotoAndStop ("lost");
};
gotoAndStop (8);
_root.omgdie();
}
}
Instance of Symbol 187 MovieClip "blueball" in Frame 6
onClipEvent (enterFrame) {
if (_root.enemyTurn == 1) {
_root.enemyaction = (Math.random() * 10) + 1;
_root.enemyaction = Math.round(_root.enemyaction);
if (_root.enemyaction == 1) {
_root.enemyTurn = 0;
this.gotoAndStop(3);
} else if (_root.enemyaction == 2) {
_root.enemyTurn = 0;
this.gotoAndStop(3);
} else if (_root.enemyaction == 3) {
_root.enemyTurn = 0;
this.gotoAndStop(5);
} else if (_root.enemyaction == 4) {
_root.enemyTurn = 0;
this.gotoAndStop(3);
} else if (_root.enemyaction == 5) {
_root.enemyTurn = 0;
this.gotoAndStop(4);
} else if (_root.enemyaction == 6) {
_root.enemyTurn = 0;
this.gotoAndStop(3);
} else if (_root.enemyaction == 7) {
_root.enemyTurn = 0;
this.gotoAndStop(4);
} else if (_root.enemyaction == 8) {
_root.enemyTurn = 0;
this.gotoAndStop(5);
} else if (_root.enemyaction == 9) {
_root.enemyTurn = 0;
this.gotoAndStop(5);
} else if (_root.enemyaction == 10) {
_root.enemyTurn = 0;
this.gotoAndStop(4);
} else if (_root.enemyaction == 11) {
_root.enemyTurn = 0;
this.gotoAndStop(5);
}
}
if (_root.enemyhp < 1) {
_root.gainExp = _root.enemylevel * 1000;
_root.gainCred = _root.enemylevel * 1000;
_root.gainCred = _root.gainCred + 150;
_root.nextFrame();
}
}
Instance of Symbol 190 MovieClip "damage2" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 190 MovieClip "damage1" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 224 MovieClip "magicclip" in Frame 6
onClipEvent (load) {
_root.magicclip._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.magicka == 1) && (_root.castmagi == 1)) {
this.gotoAndStop(1);
_root.magicclip.inner.play();
} else if ((_root.magicka == 2) && (_root.castmagi == 1)) {
this.gotoAndStop(2);
_root.magicclip.inner.play();
} else if ((_root.magicka == 3) && (_root.castmagi == 1)) {
this.gotoAndStop(3);
_root.magicclip.inner.play();
} else if ((_root.magicka == 4) && (_root.castmagi == 1)) {
this.gotoAndStop(4);
_root.magicclip.inner.play();
} else if ((_root.magicka == 5) && (_root.castmagi == 1)) {
this.gotoAndStop(5);
_root.magicclip.inner.play();
}
}
Instance of Symbol 19 MovieClip "cursor" in Frame 6
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 7
_root.credits = _root.credits + _root.gaincred;
_root.exp = _root.exp + _root.gainExp;
_root.oldexp = _root.exp - _root.gainExp;
_root.oldcreds = _root.credits - _root.gaincred;
_root.nextLevel = _root.level * 750;
_root.nextLevel = _root.nextLevel + (_root.level * 2);
_root.nextLevel = _root.nextLevel * 1.15;
_root.nextLevel = Math.ceil(_root.nextLevel);
if (_root.exp >= _root.nextLevel) {
_root.level = _root.level + 1;
}
Frame 9
nextFrame();
Instance of Symbol 19 MovieClip "cursor" in Frame 9
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 10
function startUpNewFight() {
stopAllSounds();
_root.hp1 = _root.maxhp1;
gotoAndStop (6);
tellTarget ("_root") {
gotoAndStop ("smack");
};
}
function saveFunction() {
mySharedObject = SharedObject.getLocal("savedObject");
mySharedObject.data.SaveGame = 1;
mySharedObject.data.name1 = _root.name1;
mySharedObject.data.name2 = _root.name2;
mySharedObject.data.name3 = _root.name3;
mySharedObject.data.enemylevel = _root.enemylevel;
mySharedObject.data.maxhp1 = _root.maxhp1;
mySharedObject.data.maxhp2 = _root.maxhp2;
mySharedObject.data.maxhp3 = _root.maxhp3;
mySharedObject.data.level = _root.level;
mySharedObject.data.weapon = _root.weapon;
mySharedObject.data.swords1 = _root.swords1;
mySharedObject.data.swords2 = _root.swords2;
mySharedObject.data.swords3 = _root.swords3;
mySharedObject.data.swords4 = _root.swords4;
mySharedObject.data.swords5 = _root.swords5;
mySharedObject.data.charges1 = _root.charges1;
mySharedObject.data.charges2 = _root.charges2;
mySharedObject.data.charges3 = _root.charges3;
mySharedObject.data.charges4 = _root.charges4;
mySharedObject.data.charges5 = _root.charges5;
mySharedObject.data.items1 = _root.items1;
mySharedObject.data.items2 = _root.items2;
mySharedObject.data.items3 = _root.items3;
mySharedObject.data.items4 = _root.items4;
mySharedObject.data.items5 = _root.items5;
mySharedObject.data.exp = _root.exp;
mySharedObject.data.credits = _root.credits;
mySharedObject.flush();
}
function resetFunction() {
hs_name = _root.hs_name;
hs_score = _root.level;
hs_function = "add";
getURL ((("http://www.eviludy.net/highscores/battleHiScore.php?function=add&name=" + hs_name) + "&score=") + hs_score, "_blank");
mySharedObject = SharedObject.getLocal("savedObject");
mySharedObject.data.SaveGame = 0;
mySharedObject.data.name1 = 0;
mySharedObject.data.name2 = 0;
mySharedObject.data.name3 = 0;
mySharedObject.data.enemylevel = 0;
mySharedObject.data.maxhp1 = 0;
mySharedObject.data.maxhp2 = 0;
mySharedObject.data.maxhp3 = 0;
mySharedObject.data.level = 0;
mySharedObject.data.weapon = 0;
mySharedObject.data.swords1 = 0;
mySharedObject.data.swords2 = 0;
mySharedObject.data.swords3 = 0;
mySharedObject.data.swords4 = 0;
mySharedObject.data.swords5 = 0;
mySharedObject.data.charges1 = 0;
mySharedObject.data.charges2 = 0;
mySharedObject.data.charges3 = 0;
mySharedObject.data.charges4 = 0;
mySharedObject.data.charges5 = 0;
mySharedObject.data.items1 = 0;
mySharedObject.data.items2 = 0;
mySharedObject.data.items3 = 0;
mySharedObject.data.items4 = 0;
mySharedObject.data.items5 = 0;
mySharedObject.data.exp = 0;
mySharedObject.data.credits = 0;
mySharedObject.flush();
gotoAndStop (3);
tellTarget ("_root") {
gotoAndStop ("mainmenu");
};
}
Symbol 5 MovieClip Frame 1
scale = Number(random(50)) + 30;
setProperty(_target, _x , (Number(../:x) + Number(random(12))) - 6);
setProperty(_target, _yscale , scale);
Symbol 6 MovieClip Frame 1
i = 1;
max = 75;
x = getProperty("fire", _x);
Symbol 6 MovieClip Frame 3
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
Symbol 6 MovieClip Frame 5
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
gotoAndPlay (2);
Symbol 19 MovieClip Frame 1
stop();
Symbol 38 Button
on (release) {
_root.name1 = "Red ball #1";
_root.name2 = "None";
_root.name3 = "None";
_root.enemylevel = 1;
_root.maxhp1 = 500;
_root.maxhp2 = 0;
_root.maxhp3 = 0;
_root.hp1 = 500;
_root.hp2 = 0;
_root.hp3 = 0;
_root.level = 1;
_root.weapon = 0;
_root.swords1 = 1;
_root.swords2 = 0;
_root.swords3 = 0;
_root.swords4 = 0;
_root.swords5 = 0;
_root.charges1 = 1;
_root.charges2 = 1;
_root.charges3 = 1;
_root.charges4 = 1;
_root.charges5 = 1;
_root.items1 = 1;
_root.items2 = 0;
_root.items3 = 0;
_root.items4 = 0;
_root.items5 = 0;
_root.exp = 0;
_root.credits = 0;
stopAllSounds();
gotoAndPlay (6);
}
Symbol 39 Button
on (release) {
_root.name1 = mySharedObject.data.name1;
_root.name2 = mySharedObject.data.name2;
_root.name3 = mySharedObject.data.name3;
_root.enemylevel = mySharedObject.data.enemylevel;
_root.maxhp1 = mySharedObject.data.maxhp1;
_root.maxhp2 = mySharedObject.data.maxhp2;
_root.maxhp3 = mySharedObject.data.maxhp3;
_root.level = mySharedObject.data.level;
_root.weapon = mySharedObject.data.weapon;
_root.swords1 = mySharedObject.data.swords1;
_root.swords2 = mySharedObject.data.swords2;
_root.swords3 = mySharedObject.data.swords3;
_root.swords4 = mySharedObject.data.swords4;
_root.swords5 = mySharedObject.data.swords5;
_root.charges1 = mySharedObject.data.charges1;
_root.charges2 = mySharedObject.data.charges2;
_root.charges3 = mySharedObject.data.charges3;
_root.charges4 = mySharedObject.data.charges4;
_root.charges5 = mySharedObject.data.charges5;
_root.items1 = mySharedObject.data.items1;
_root.items2 = mySharedObject.data.items2;
_root.items3 = mySharedObject.data.items3;
_root.items4 = mySharedObject.data.items4;
_root.items5 = mySharedObject.data.items5;
_root.exp = mySharedObject.data.exp;
_root.credits = mySharedObject.data.credits;
stopAllSounds();
gotoAndStop (9);
}
Symbol 40 Button
on (release) {
nextFrame();
}
Symbol 41 Button
on (release) {
stopAllSounds();
gotoAndStop (5);
}
Symbol 42 Button
on (release) {
getURL ("http://www.eviludy.net", "_blank");
}
Symbol 43 Button
on (release) {
getURL ("http://www.eviludy.net/highscores/battleHiScore.php", "_blank");
}
Symbol 46 Button
on (release) {
prevFrame();
}
Symbol 52 Button
on (release) {
stopAllSounds();
gotoAndStop (2);
}
Instance of Symbol 67 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
this._visible = false;
_root.damageAdd = 0;
} else if (_root.weapon == 1) {
this._visible = true;
this.gotoAndStop(1);
_root.damageAdd = 100;
} else if (_root.weapon == 2) {
this._visible = true;
this.gotoAndStop(2);
_root.damageAdd = 150;
} else if (_root.weapon == 3) {
this._visible = true;
this.gotoAndStop(3);
_root.damageAdd = 250;
} else if (_root.weapon == 4) {
this._visible = true;
this.gotoAndStop(4);
_root.damageAdd = 500;
} else if (_root.weapon == 5) {
this._visible = true;
this.gotoAndStop(5);
_root.damageAdd = 1000;
}
}
Instance of Symbol 67 MovieClip in Symbol 73 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
this._visible = false;
_root.damageAdd = 0;
} else if (_root.weapon == 1) {
this._visible = true;
this.gotoAndStop(1);
_root.damageAdd = 100;
} else if (_root.weapon == 2) {
this._visible = true;
this.gotoAndStop(2);
_root.damageAdd = 150;
} else if (_root.weapon == 3) {
this._visible = true;
this.gotoAndStop(3);
_root.damageAdd = 250;
} else if (_root.weapon == 4) {
this._visible = true;
this.gotoAndStop(4);
_root.damageAdd = 500;
} else if (_root.weapon == 5) {
this._visible = true;
this.gotoAndStop(5);
_root.damageAdd = 1000;
}
}
Symbol 73 MovieClip Frame 15
_root.miss = (Math.random() * 11) + 1;
_root.miss = Math.round(_root.miss);
if (_root.miss == 3) {
_root.dealDamage();
_root.blueball.gotoAndStop(1);
} else {
_root.dealDamage();
_root.blueball.gotoAndStop(2);
}
Symbol 73 MovieClip Frame 45
_root.enemyTurn = 1;
_root.concentrations = 1;
_root.redball.gotoAndStop(1);
Instance of Symbol 67 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
this._visible = false;
_root.damageAdd = 0;
} else if (_root.weapon == 1) {
this._visible = true;
this.gotoAndStop(1);
_root.damageAdd = 100;
} else if (_root.weapon == 2) {
this._visible = true;
this.gotoAndStop(2);
_root.damageAdd = 150;
} else if (_root.weapon == 3) {
this._visible = true;
this.gotoAndStop(3);
_root.damageAdd = 250;
} else if (_root.weapon == 4) {
this._visible = true;
this.gotoAndStop(4);
_root.damageAdd = 500;
} else if (_root.weapon == 5) {
this._visible = true;
this.gotoAndStop(5);
_root.damageAdd = 1000;
}
}
Symbol 78 MovieClip Frame 70
_root.enemyTurn = 1;
_root.concentrations = _root.concentrations + 1;
_root.redball.gotoAndStop(1);
Instance of Symbol 67 MovieClip in Symbol 82 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
this._visible = false;
_root.damageAdd = 0;
} else if (_root.weapon == 1) {
this._visible = true;
this.gotoAndStop(1);
_root.damageAdd = 100;
} else if (_root.weapon == 2) {
this._visible = true;
this.gotoAndStop(2);
_root.damageAdd = 150;
} else if (_root.weapon == 3) {
this._visible = true;
this.gotoAndStop(3);
_root.damageAdd = 250;
} else if (_root.weapon == 4) {
this._visible = true;
this.gotoAndStop(4);
_root.damageAdd = 500;
} else if (_root.weapon == 5) {
this._visible = true;
this.gotoAndStop(5);
_root.damageAdd = 1000;
}
}
Symbol 82 MovieClip Frame 60
_root.enemyTurn = 1;
_root.concentrations = _root.concentrations * 2;
_root.redball.gotoAndStop(1);
Instance of Symbol 67 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
this._visible = false;
_root.damageAdd = 0;
} else if (_root.weapon == 1) {
this._visible = true;
this.gotoAndStop(1);
_root.damageAdd = 100;
} else if (_root.weapon == 2) {
this._visible = true;
this.gotoAndStop(2);
_root.damageAdd = 150;
} else if (_root.weapon == 3) {
this._visible = true;
this.gotoAndStop(3);
_root.damageAdd = 250;
} else if (_root.weapon == 4) {
this._visible = true;
this.gotoAndStop(4);
_root.damageAdd = 500;
} else if (_root.weapon == 5) {
this._visible = true;
this.gotoAndStop(5);
_root.damageAdd = 1000;
}
}
Symbol 84 MovieClip Frame 60
_root.enemyTurn = 1;
_root.concentrations = _root.concentrations * 5;
_root.redball.gotoAndStop(1);
Instance of Symbol 67 MovieClip in Symbol 85 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
this._visible = false;
_root.damageAdd = 0;
} else if (_root.weapon == 1) {
this._visible = true;
this.gotoAndStop(1);
_root.damageAdd = 100;
} else if (_root.weapon == 2) {
this._visible = true;
this.gotoAndStop(2);
_root.damageAdd = 150;
} else if (_root.weapon == 3) {
this._visible = true;
this.gotoAndStop(3);
_root.damageAdd = 250;
} else if (_root.weapon == 4) {
this._visible = true;
this.gotoAndStop(4);
_root.damageAdd = 500;
} else if (_root.weapon == 5) {
this._visible = true;
this.gotoAndStop(5);
_root.damageAdd = 1000;
}
}
Symbol 85 MovieClip Frame 5
_root.hp1 = _root.hp1 - _root.subtractDMG;
Symbol 85 MovieClip Frame 10
_root.redball.gotoAndStop(1);
Instance of Symbol 67 MovieClip in Symbol 90 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
this._visible = false;
_root.damageAdd = 0;
} else if (_root.weapon == 1) {
this._visible = true;
this.gotoAndStop(1);
_root.damageAdd = 100;
} else if (_root.weapon == 2) {
this._visible = true;
this.gotoAndStop(2);
_root.damageAdd = 150;
} else if (_root.weapon == 3) {
this._visible = true;
this.gotoAndStop(3);
_root.damageAdd = 250;
} else if (_root.weapon == 4) {
this._visible = true;
this.gotoAndStop(4);
_root.damageAdd = 500;
} else if (_root.weapon == 5) {
this._visible = true;
this.gotoAndStop(5);
_root.damageAdd = 1000;
}
}
Symbol 90 MovieClip Frame 25
_root.hp1 = _root.hp1 + _root.healing;
_root.enemyTurn = 1;
_root.redball.gotoAndStop(1);
Instance of Symbol 67 MovieClip in Symbol 91 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
this._visible = false;
_root.damageAdd = 0;
} else if (_root.weapon == 1) {
this._visible = true;
this.gotoAndStop(1);
_root.damageAdd = 100;
} else if (_root.weapon == 2) {
this._visible = true;
this.gotoAndStop(2);
_root.damageAdd = 150;
} else if (_root.weapon == 3) {
this._visible = true;
this.gotoAndStop(3);
_root.damageAdd = 250;
} else if (_root.weapon == 4) {
this._visible = true;
this.gotoAndStop(4);
_root.damageAdd = 500;
} else if (_root.weapon == 5) {
this._visible = true;
this.gotoAndStop(5);
_root.damageAdd = 1000;
}
}
Symbol 91 MovieClip Frame 40
_root.castmagi = 1;
_root.magicclip._visible = true;
_root.magicclip.inner.play();
_root.redball.gotoAndStop(1);
Symbol 92 MovieClip Frame 1
stop();
Symbol 111 Button
on (rollOver) {
_root.overtext = "Special Attack";
_root.cursor.gotoAndStop(2);
}
on (rollOut) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
}
on (release) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
gotoAndStop (3);
}
Symbol 113 Button
on (rollOver) {
_root.overtext = "Defend";
_root.cursor.gotoAndStop(2);
}
on (rollOut) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
}
on (release) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
_root.protection = 1;
_root.enemyTurn = 1;
_root.buttons._visible = false;
}
Symbol 114 Button
on (rollOver) {
_root.overtext = "Concentration";
_root.cursor.gotoAndStop(2);
}
on (rollOut) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
}
on (release) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
if ((_root.concentrations > 9) && (_root.concentrations < 120)) {
_root.buttons._visible = false;
_root.redball.gotoAndStop("uberconcentrate");
} else if (_root.concentrations > 119) {
_root.buttons._visible = false;
_root.redball.gotoAndStop("uberuberconc");
} else {
_root.buttons._visible = false;
_root.redball.gotoAndStop("concentrate");
}
}
Symbol 116 Button
on (rollOver) {
_root.overtext = "Use Item";
_root.cursor.gotoAndStop(2);
}
on (rollOut) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
}
on (release) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
gotoAndStop (4);
}
Symbol 117 Button
on (rollOver) {
_root.overtext = "Attack!";
_root.cursor.gotoAndStop(2);
}
on (rollOut) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
}
on (release) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
_root.buttons._visible = false;
_root.redball.gotoAndStop("attack");
}
Symbol 119 Button
on (rollOver) {
_root.overtext = "Equip";
_root.cursor.gotoAndStop(2);
}
on (rollOut) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
}
on (release) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
gotoAndStop (2);
}
Symbol 121 Button
on (rollOver) {
_root.overtext = "Escape!";
_root.cursor.gotoAndStop(2);
}
on (rollOut) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
}
Symbol 125 Button
on (release) {
if (_root.swords1 == 1) {
_root.weapon = 1;
_root.buttons.gotoAndStop(1);
}
}
Symbol 126 Button
on (release) {
if (_root.swords2 == 1) {
_root.weapon = 2;
_root.buttons.gotoAndStop(1);
}
}
Symbol 127 Button
on (release) {
if (_root.swords3 == 1) {
_root.weapon = 3;
_root.buttons.gotoAndStop(1);
}
}
Symbol 128 Button
on (release) {
if (_root.swords4 == 1) {
_root.weapon = 4;
_root.buttons.gotoAndStop(1);
}
}
Symbol 129 Button
on (release) {
if (_root.swords5 == 1) {
_root.weapon = 5;
_root.buttons.gotoAndStop(1);
}
}
Symbol 140 Button
on (rollOver) {
_root.overtext = "Go Back";
_root.cursor.gotoAndStop(2);
}
on (rollOut) {
_root.overtext = " ";
_root.cursor.gotoAndStop(1);
}
on (release) {
gotoAndStop (1);
}
Symbol 142 Button
on (release) {
if (_root.charges1 > 0) {
_root.charges1 = _root.charges1 - 1;
_root.redball.gotoAndStop("usemagic");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
_root.magicka = 1;
}
}
Symbol 143 Button
on (release) {
if (_root.charges2 > 0) {
_root.charges2 = _root.charges2 - 1;
_root.redball.gotoAndStop("usemagic");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
_root.magicka = 2;
}
}
Symbol 144 Button
on (release) {
if (_root.charges3 > 0) {
_root.charges3 = _root.charges3 - 1;
_root.redball.gotoAndStop("usemagic");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
_root.magicka = 3;
}
}
Symbol 145 Button
on (release) {
if (_root.charges4 > 0) {
_root.charges4 = _root.charges4 - 1;
_root.redball.gotoAndStop("usemagic");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
_root.magicka = 4;
}
}
Symbol 146 Button
on (release) {
if (_root.charges5 > 0) {
_root.charges5 = _root.charges5 - 1;
_root.redball.gotoAndStop("usemagic");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
_root.magicka = 5;
}
}
Symbol 158 Button
on (release) {
_root.healing = 100;
}
on (release) {
if (_root.items1 > 0) {
_root.items1 = _root.items1 - 1;
_root.redball.gotoAndStop("potionuse");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
}
}
Symbol 159 Button
on (release) {
_root.healing = 500;
}
on (release) {
if (_root.items2 > 0) {
_root.items2 = _root.items2 - 1;
_root.redball.gotoAndStop("potionuse");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
}
}
Symbol 160 Button
on (release) {
_root.healing = 1000;
}
on (release) {
if (_root.items3 > 0) {
_root.items3 = _root.items3 - 1;
_root.redball.gotoAndStop("potionuse");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
}
}
Symbol 161 Button
on (release) {
_root.healing = 5000;
}
on (release) {
if (_root.items4 > 0) {
_root.items4 = _root.items4 - 1;
_root.redball.gotoAndStop("potionuse");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
}
}
Symbol 162 Button
on (release) {
_root.healing = 15000;
}
on (release) {
if (_root.items5 > 0) {
_root.items5 = _root.items5 - 1;
_root.redball.gotoAndStop("potionuse");
_root.buttons.gotoAndStop(1);
_root.buttons._visible = false;
}
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 20
_root.blueball.gotoAndStop(1);
Symbol 181 MovieClip Frame 17
_root.miss = (Math.random() * 9) + 1;
_root.miss = Math.round(_root.miss);
if (_root.miss == 3) {
_root.enemyDeal();
_root.redball.gotoAndStop(1);
} else {
_root.enemyDeal();
_root.redball.gotoAndStop("gethit");
}
Symbol 181 MovieClip Frame 28
_root.buttons._visible = true;
_root.enemyConCen = 0;
_root.blueball.gotoAndStop(1);
Symbol 185 MovieClip Frame 30
_root.enemyhp = _root.enemyhp * 1.25;
_root.enemyhp = Math.ceil(_root.enemyhp);
Symbol 185 MovieClip Frame 60
_root.buttons._visible = true;
_root.blueball.gotoAndStop(1);
Symbol 186 MovieClip Frame 10
_root.enemyConCen = _root.enemyConCen + 1;
Symbol 186 MovieClip Frame 20
_root.enemyConCen = _root.enemyConCen + 1;
Symbol 186 MovieClip Frame 40
_root.buttons._visible = true;
_root.blueball.gotoAndStop(1);
Symbol 187 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 30
_root.damage1._visible = false;
_root.damage2._visible = false;
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 44
_root.miss = (Math.random() * 35) + 1;
_root.miss = Math.round(_root.miss);
if (_root.miss == 3) {
_root.dealDamage();
_root.blueball.gotoAndStop(1);
} else {
_root.dealDamage();
_root.blueball.gotoAndStop(2);
}
Symbol 198 MovieClip Frame 79
_root.enemyTurn = 1;
_root.magicka = 0;
_root.magicclip._visible = false;
_root.castmagi = 0;
_root.redball.gotoAndStop(1);
_root.magicclip.gotoAndStop(1);
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 4
_root.miss = (Math.random() * 35) + 1;
_root.miss = Math.round(_root.miss);
if (_root.miss == 3) {
_root.dealDamage();
_root.blueball.gotoAndStop(1);
} else {
_root.dealDamage();
_root.blueball.gotoAndStop(2);
}
Symbol 205 MovieClip Frame 19
_root.enemyTurn = 1;
_root.magicka = 0;
_root.magicclip._visible = false;
_root.castmagi = 0;
_root.redball.gotoAndStop(1);
_root.magicclip.gotoAndStop(1);
Symbol 206 MovieClip Frame 1
i = 1;
max = 25;
x = getProperty("fire", _x);
Symbol 206 MovieClip Frame 2
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
Symbol 206 MovieClip Frame 3
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
gotoAndPlay (2);
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 22
_root.miss = (Math.random() * 35) + 1;
_root.miss = Math.round(_root.miss);
if (_root.miss == 3) {
_root.dealDamage();
_root.blueball.gotoAndStop(1);
} else {
_root.dealDamage();
_root.blueball.gotoAndStop(2);
}
Symbol 211 MovieClip Frame 80
_root.enemyTurn = 1;
_root.magicka = 0;
_root.magicclip._visible = false;
_root.castmagi = 0;
_root.redball.gotoAndStop(1);
_root.magicclip.gotoAndStop(1);
Symbol 215 MovieClip Frame 1
i = 1;
max = 25;
x = getProperty("fire", _x);
Symbol 215 MovieClip Frame 2
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
Symbol 215 MovieClip Frame 3
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
gotoAndPlay (2);
Symbol 219 MovieClip Frame 25
_root.miss = (Math.random() * 35) + 1;
_root.miss = Math.round(_root.miss);
if (_root.miss == 3) {
_root.dealDamage();
_root.blueball.gotoAndStop(1);
} else {
_root.dealDamage();
_root.blueball.gotoAndStop(2);
}
Symbol 219 MovieClip Frame 80
_root.enemyTurn = 1;
_root.magicka = 0;
_root.magicclip._visible = false;
_root.castmagi = 0;
_root.redball.gotoAndStop(1);
_root.magicclip.gotoAndStop(1);
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 90
_root.miss = (Math.random() * 35) + 1;
_root.miss = Math.round(_root.miss);
if (_root.miss == 3) {
_root.dealDamage();
_root.blueball.gotoAndStop(1);
} else {
_root.dealDamage();
_root.blueball.gotoAndStop(2);
}
Symbol 223 MovieClip Frame 110
_root.enemyTurn = 1;
_root.magicka = 0;
_root.magicclip._visible = false;
_root.castmagi = 0;
_root.redball.gotoAndStop(1);
_root.magicclip.gotoAndStop(1);
Symbol 224 MovieClip Frame 1
stop();
Symbol 230 Button
on (release) {
getURL ("http://www.eviludy.net", "_blank");
}
Symbol 245 Button
on (release) {
stopAllSounds();
gotoAndPlay (9);
}
Symbol 252 Button
on (release) {
stopAllSounds();
gotoAndStop (2);
}
Symbol 258 Button
on (release) {
_root.saveFunction();
_root.box.gotoAndStop(2);
}
Symbol 260 Button
on (release) {
_root.box.gotoAndStop(7);
}
Symbol 262 Button
on (release) {
_root.box.gotoAndStop(3);
}
Symbol 264 Button
on (release) {
_root.box.gotoAndStop(4);
}
Symbol 266 Button
on (release) {
_root.box.gotoAndStop(5);
}
Symbol 268 Button
on (release) {
_root.box.gotoAndStop(6);
}
Symbol 276 Button
on (release) {
if (_root.credits >= 250) {
_root.credits = _root.credits - 250;
_root.swords1 = _root.swords1 + 1;
}
}
Symbol 278 Button
on (release) {
if (_root.credits >= 500) {
_root.credits = _root.credits - 500;
_root.swords2 = _root.swords2 + 1;
}
}
Symbol 280 Button
on (release) {
if (_root.credits >= 1000) {
_root.credits = _root.credits - 1000;
_root.swords3 = _root.swords3 + 1;
}
}
Symbol 282 Button
on (release) {
if (_root.credits >= 2500) {
_root.credits = _root.credits - 2500;
_root.swords4 = _root.swords4 + 1;
}
}
Symbol 284 Button
on (release) {
if (_root.credits >= 5000) {
_root.credits = _root.credits - 5000;
_root.swords5 = _root.swords5 + 1;
}
}
Symbol 293 Button
on (release) {
if (_root.credits >= 50) {
_root.credits = _root.credits - 50;
_root.items1 = _root.items1 + 1;
}
}
Symbol 295 Button
on (release) {
if (_root.credits >= 100) {
_root.credits = _root.credits - 100;
_root.items2 = _root.items2 + 1;
}
}
Symbol 297 Button
on (release) {
if (_root.credits >= 150) {
_root.credits = _root.credits - 150;
_root.items3 = _root.items3 + 1;
}
}
Symbol 299 Button
on (release) {
if (_root.credits >= 250) {
_root.credits = _root.credits - 250;
_root.items4 = _root.items4 + 1;
}
}
Symbol 301 Button
on (release) {
if (_root.credits >= 500) {
_root.credits = _root.credits - 500;
_root.items5 = _root.items5 + 1;
}
}
Symbol 307 Button
on (release) {
if (_root.credits >= 5000) {
_root.credits = _root.credits - 5000;
_root.charges1 = _root.charges1 + 1;
}
}
Symbol 309 Button
on (release) {
if (_root.credits >= 15000) {
_root.credits = _root.credits - 15000;
_root.charges2 = _root.charges2 + 1;
}
}
Symbol 311 Button
on (release) {
if (_root.credits >= 25000) {
_root.credits = _root.credits - 25000;
_root.charges3 = _root.charges3 + 1;
}
}
Symbol 313 Button
on (release) {
if (_root.credits >= 50000) {
_root.credits = _root.credits - 50000;
_root.charges4 = _root.charges4 + 1;
}
}
Symbol 315 Button
on (release) {
if (_root.credits >= 99999) {
_root.credits = _root.credits - 99999;
_root.charges5 = _root.charges5 + 1;
}
}
Symbol 326 Button
on (release) {
_root.newlevel = Number(_root.newenemylevel);
if ((_root.newlevel > 0) && (_root.newlevel < 99999999)) {
_root.enemylevel = _root.newenemylevel;
_root.startUpNewFight();
} else if ((!_root.newlevel) > 0) {
_root.newenemylevel = 999000000000;
_root.enemylevel = _root.newenemylevel;
_root.startUpNewFight();
}
}
Symbol 333 Button
on (release) {
_root.resetFunction();
}
Symbol 336 MovieClip Frame 1
stop();