Frame 1
function itemHandler1(obj, item) {
getURL ("http://www.ustudios.net/fickludd");
}
var menuBeep = new Sound();
menuBeep.attachSound("Space Beep");
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("Fickludd's Homepage", itemHandler1);
myMenu.customItems.push(item1);
_root.menu = myMenu;
Frame 26
stop();
_global.simon = new Object();
_global.simon.health = 263;
_global.simon.maxHP = 263;
_global.simon.mana = 33;
_global.simon.maxMP = 33;
_global.simon.accuracy = 10;
_global.simon.defence = 3;
_global.simon.strength = 8;
_global.simon.skillExp = 0;
_global.simon.strExp = 0;
_global.simon.accExp = 0;
_global.simon.defExp = 0;
_global.simon.rHand = "Battle Spear";
_global.simon.lHand = "Wrist Shield";
_global.simon.skills = new Array("First Aid");
_global.simon.job = "UN special agent";
_global.carl = new Object();
_global.carl.health = 73;
_global.carl.maxHP = 100;
_global.carl.mana = 27;
_global.carl.maxMP = 30;
_global.carl.accuracy = 7;
_global.carl.armor = 2;
_global.carl.strength = 9;
_global.carl.skillExp = 0;
_global.carl.strExp = 0;
_global.carl.accExp = 0;
_global.carl.defExp = 0;
_global.carl.rHand = "PowerFist";
_global.carl.lHand = "Steelshield";
_global.carl.skills = new Array("Schmasch", "Glowing eyes", "Piano");
_global.misc = new Object();
_global.misc.party = new Array("simon");
_global.misc.inventory = new Array("Cannon", "Minigun", "Pistolwhip");
_global.misc.battlefield = new Array("BGvillage", "BGsnow", "BGsnow", "FGvillage");
_global.misc.currentLoc = new Array("chap0", 0, 0);
_global.misc.defeat = "Game Over";
_global.misc.battletype = new Array(1, 2, [["BaddieBoss1"]], false);
_global.sound = new Object();
_global.sound.worldMusicPos = 0;
_global.sound.worldMusic = new Sound();
_global.sound.worldMusic.attachSound("Winter");
_global.sound.battleMusic = new Sound();
_global.sound.battleMusic.attachSound("Battle");
_global.sound.bossMusic = new Sound();
_global.sound.bossMusic.attachSound("BossBattle");
_global.sound.victoryMusic = new Sound();
_global.sound.victoryMusic.attachSound("Victory");
_global.sms = function (arr) {
_root.attachMovie("sms", "sms_mc", 1950);
_root.smsBool = true;
_root.sms_mc.story = arr;
_root.sms_mc.point = 0;
_root.sms_mc.who_txt.text = arr[0][0];
_root.sms_mc.sms_txt.text = arr[0][1];
};
_global.LED = function (arr) {
_root.attachMovie("LED", "led_mc", 1949);
_root.led_mc.story = arr;
_root.led_mc.point = 0;
_root.led_mc.who_txt.text = arr[0][0];
_root.led_mc.led_txt.text = arr[0][1];
ledInterval = setInterval(function () {
_root.led_mc.nextText();
}, 3000);
};
_global.goto = function () {
_root.gotoAndPlay(_global.misc.currentLoc[0]);
_root.player_mc._x = _global.misc.currentLoc[1];
_root.xPos = _global.misc.currentLoc[1];
_root.player_mc._y = _global.misc.currentLoc[2];
_root.yPos = _global.misc.currentLoc[2];
var _local4 = _global.misc.currentLoc[3];
_root.walked = false;
if (_global.misc.battletype[3]) {
var _local3 = _global.misc.battletype[0] + Math.floor(Math.random() * _global.misc.battletype[1]);
enemyInterval = setInterval(function () {
if (!_root.smsBool) {
_global.misc.currentLoc = [_root.frame, _root.player_mc._x, _root.player_mc._y];
_global.sound.worldMusicPos = _global.sound.worldMusic.position;
_global.sound.worldMusic.stop();
_global.sound.battleMusic.start(0, 999);
_root.attachMovie("BattleIntro", "bi_mc", 3000);
}
}, _local3);
}
_global.sound.victoryMusic.stop();
_global.sound.worldMusic.start(_global.sound.worldMusicPos / 1000, 999);
_root.watchKeyBoard = new Object();
Key.addListener(watchKeyBoard);
_root.watchKeyBoard.onKeyDown = function () {
if (Key.getAscii() == 120) {
if (_root.smsBool) {
_root.sms_mc.nextText();
} else {
i = 0;
while (i < _root.doors.length) {
if (_root.doors[i].hitTest(_root.player_mc._x, _root.player_mc._y, true)) {
_root.doors[i].doIt();
break;
}
i++;
}
}
}
};
};
_global.removeFromArr = function (arr, who) {
kalle = 0;
while (kalle < arr.length) {
if (arr[kalle]._name == who) {
arr.splice(kalle, 1);
return(undefined);
}
kalle++;
}
};
fickludd();
var menuBeep = new Sound();
menuBeep.attachSound("Space Beep");
home_btn.onRelease = function () {
_root.menuBeep.start();
getURL ("http://www.ustudios.net/fickludd/index.html", "_blank");
};
AG_btn.onRelease = function () {
_root.menuBeep.start();
getURL ("http://armorgames.com", "_blank");
};
pmg_btn.onRelease = function () {
_root.menuBeep.start();
getURL ("http://armorgames.com", "_blank");
};
dfg_btn.onRelease = function () {
_root.menuBeep.start();
getURL ("http://armorgames.com/download.html", "_blank");
};
credits_btn.onRelease = function () {
_root.menuBeep.start();
_root.attachMovie("Blackscreen", "b_mc", 1);
_root.b_mc._alpha = 70;
_root.attachMovie("Credits", "c_mc", 2);
_root.attachMovie("Back button", "back_mc", 3);
_root.back_mc._x = 510;
_root.back_mc._y = 310;
_root.back_mc.onRollOver = function () {
_root.back_mc.gotoAndStop(2);
};
_root.back_mc.onRollOut = function () {
_root.back_mc.gotoAndStop(1);
};
_root.back_mc.onRelease = function () {
_root.menuBeep.start();
_root.b_mc.removeMovieClip();
_root.c_mc.removeMovieClip();
_root.back_mc.removeMovieClip();
};
};
controls_btn.onRelease = function () {
_root.menuBeep.start();
_root.attachMovie("Blackscreen", "b_mc", 1);
_root.b_mc._alpha = 70;
_root.attachMovie("Controls", "c_mc", 2);
_root.attachMovie("Back button", "back_mc", 3);
_root.back_mc._x = 510;
_root.back_mc._y = 310;
_root.back_mc.onRollOver = function () {
_root.back_mc.gotoAndStop(2);
};
_root.back_mc.onRollOut = function () {
_root.back_mc.gotoAndStop(1);
};
_root.back_mc.onRelease = function () {
_root.menuBeep.start();
_root.b_mc.removeMovieClip();
_root.c_mc.removeMovieClip();
_root.back_mc.removeMovieClip();
};
};
play_btn.onRelease = function () {
_root.menuBeep.start();
goto();
};
l_btn.onRelease = function () {
_root.menuBeep.start();
_root._quality = "LOW";
};
m_btn.onRelease = function () {
_root.menuBeep.start();
_root._quality = "MEDIUM";
};
h_btn.onRelease = function () {
_root.menuBeep.start();
_root._quality = "HIGH";
};
Frame 35
led_mc.remove();
Frame 68
stop();
back_btn.onRelease = function () {
_root.gotoAndPlay("Startup");
};
Frame 70
var i = 1;
sms_mc.removeMovieClip();
var xPos;
var yPos;
var walked = false;
var map0 = false;
var map1 = false;
var map2 = false;
var map3 = false;
Frame 259
stop();
sms([["Simon", "(There's something wrong...)"], ["n", "(... I'd better check the surveillance systems.)"]]);
this.onEnterFrame = function () {
if (!smsBool) {
_root.play();
delete this.onEnterFrame;
}
};
Frame 266
var compChecked = false;
xPos = 390;
yPos = 203;
Frame 267
stop();
player_mc._x = xPos;
player_mc._y = yPos;
l_mc._visible = false;
d0_mc._visible = false;
d1_mc._visible = false;
d2_mc._visible = false;
doors = new Array();
doors[0] = d0_mc;
doors[1] = d1_mc;
doors[2] = d2_mc;
ha._visible = false;
h._alpha = 0;
ha.onEnterFrame = function () {
if (this.hitTest(_root.player_mc)) {
if (_root.h._alpha <= 100) {
_root.h._alpha = _root.h._alpha + 20;
}
} else if (_root.h._alpha >= 0) {
_root.h._alpha = _root.h._alpha - 20;
}
};
Instance of Symbol 390 MovieClip [simon_walk] "player_mc" in Frame 267
onClipEvent (load) {
var speed = 5;
var optimisation = 1;
var dist = new Array(1, 330);
}
onClipEvent (load) {
var dir = 0;
var better = Math.floor((dist[1] - this._y) * 0.1);
var t = Math.pow(dist[0], better);
var s;
var i = 0;
this._xscale = 100 * t;
this._yscale = 100 * t;
stop();
}
onClipEvent (enterFrame) {
if (!_root.smsBool) {
if (i == optimisation) {
better = Math.floor((dist[1] - this._y) * 0.1);
t = Math.pow(dist[0], better);
s = speed * t;
this._xscale = 100 * t;
this._yscale = 100 * t;
i = 0;
} else {
i++;
}
if (Key.isDown(38)) {
dir = dir + 1;
if (!_root.l_mc.hitTest(this._x, this._y - s, true)) {
this._y = this._y - s;
} else if (!_root.l_mc.hitTest(this._x + (0.6 * s), this._y - (0.4 * s), true)) {
this._x = this._x + (0.6 * s);
this._y = this._y - (0.4 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.6 * s), this._y - (0.4 * s), true)) {
this._x = this._x - (0.6 * s);
this._y = this._y - (0.4 * s);
}
} else if (Key.isDown(40)) {
dir = dir + 2;
if (!_root.l_mc.hitTest(this._x, this._y + s, true)) {
this._y = this._y + s;
} else if (!_root.l_mc.hitTest(this._x + (0.6 * s), this._y + (0.4 * s), true)) {
this._x = this._x + (0.6 * s);
this._y = this._y + (0.4 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.6 * s), this._y + (0.4 * s), true)) {
this._x = this._x - (0.6 * s);
this._y = this._y + (0.4 * s);
}
}
if (Key.isDown(39)) {
dir = dir + 10;
if (!_root.l_mc.hitTest(this._x + s, this._y, true)) {
this._x = this._x + s;
} else if (!_root.l_mc.hitTest(this._x + (0.4 * s), this._y + (0.6 * s), true)) {
this._x = this._x + (0.4 * s);
this._y = this._y + (0.6 * s);
} else if (!_root.l_mc.hitTest(this._x + (0.4 * s), this._y - (0.6 * s), true)) {
this._x = this._x + (0.4 * s);
this._y = this._y - (0.6 * s);
}
} else if (Key.isDown(37)) {
dir = dir + 20;
if (!_root.l_mc.hitTest(this._x - s, this._y, true)) {
this._x = this._x - s;
} else if (!_root.l_mc.hitTest(this._x - (0.4 * s), this._y + (0.6 * s), true)) {
this._x = this._x - (0.4 * s);
this._y = this._y + (0.6 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.4 * s), this._y - (0.6 * s), true)) {
this._x = this._x - (0.4 * s);
this._y = this._y - (0.6 * s);
}
}
p.play();
_root.walked = true;
if (dir == 0) {
p.gotoAndStop("still");
} else if (dir == 1) {
gotoAndStop ("up");
} else if (dir == 2) {
gotoAndStop ("down");
} else if ((dir > 9) && (dir < 20)) {
gotoAndStop ("right");
} else {
gotoAndStop ("left");
}
dir = 0;
} else {
p.gotoAndStop("still");
dir = 0;
}
}
Instance of Symbol 516 MovieClip "d2_mc" in Frame 267
onClipEvent (load) {
doIt = function () {
if (!_root.map0) {
sms([["Simon", "(Oooh supplies! Wonder what hidden treasures they may hold?)"], ["s", "FOUND: \r1 phoenix down..."], ["s", "(...probably contaminated with H5N1)"], ["s", "(Common, this ain't a game and I wanna get back to sleep.)"]]);
_root.map0 = true;
}
};
}
Instance of Symbol 518 MovieClip "d1_mc" in Frame 267
onClipEvent (load) {
doIt = function () {
sms([["COMP", "*SYSTEM STATUS REPORT*\rHeat Camera SMI50023: OK\rOuter motion detector SMI50177: OK"], ["Simon", "(...no, everything seems to be in order...)"], ["s", "(...damn, I'm all spoked out. Better go out take a leak while I'm still up.)"]]);
_root.compChecked = true;
};
}
Instance of Symbol 520 MovieClip "d0_mc" in Frame 267
onClipEvent (load) {
doIt = function () {
if (_root.compChecked) {
_root.gotoAndStop("0.2");
}
};
}
Frame 277
stop();
var frame = "0.1att";
l_mc._visible = false;
d0_mc._visible = false;
d1_mc._visible = false;
d2_mc._visible = false;
doors = new Array();
doors[0] = d0_mc;
doors[1] = d1_mc;
doors[2] = d2_mc;
Instance of Symbol 516 MovieClip "d2_mc" in Frame 277
onClipEvent (load) {
doIt = function () {
if (!_root.d2) {
sms([["Simon", "(Oooh supplies! Wonder what hidden treasures they may hold?)"], ["s", "FOUND: \r1 phoenix down..."], ["s", "(...probably contaminated with H5N1)"], ["s", "(Common, this ain't a game and I don't have time to be fooling around)"]]);
_root.d2 = true;
}
};
}
Instance of Symbol 518 MovieClip "d1_mc" in Frame 277
onClipEvent (load) {
doIt = function () {
sms([["Computer", "*SYSTEM STATUS REPORT*\rHeat Camera SMI50023: OK\rOuter motion detector SMI50177: OK"], ["Simon", "(Still no alarms?!?)"], ["s", "(Someone's doing this by the book. I better get to the Ambassador before it's too late!)"]]);
};
}
Instance of Symbol 520 MovieClip "d0_mc" in Frame 277
onClipEvent (load) {
doIt = function () {
_root.xPos = 200;
_root.yPos = 300;
_root.gotoAndStop("0.3");
};
}
Frame 290
stop();
l_mc._visible = false;
d0_mc._visible = false;
d1_mc._visible = false;
doors = new Array();
doors[0] = d0_mc;
doors[1] = d1_mc;
removeMovieClip(sms_mc);
Instance of Symbol 524 MovieClip "vCam_mc" in Frame 290
onClipEvent (enterFrame) {
if (_root.player_mc._y < 175) {
this._y = _root.player_mc._y;
} else {
this._y = 175;
}
}
Instance of Symbol 390 MovieClip [simon_walk] "player_mc" in Frame 290
onClipEvent (load) {
var speed = 5;
var optimisation = 1;
var dist = new Array(0.992, 330);
}
onClipEvent (load) {
var dir = 0;
var better = Math.floor((dist[1] - this._y) * 0.1);
var t = Math.pow(dist[0], better);
var s;
var i = 0;
this._xscale = 100 * t;
this._yscale = 100 * t;
stop();
}
onClipEvent (enterFrame) {
if (!_root.smsBool) {
if (i == optimisation) {
better = Math.floor((dist[1] - this._y) * 0.1);
t = Math.pow(dist[0], better);
s = speed * t;
this._xscale = 100 * t;
this._yscale = 100 * t;
i = 0;
} else {
i++;
}
if (Key.isDown(38)) {
dir = dir + 1;
if (!_root.l_mc.hitTest(this._x, this._y - s, true)) {
this._y = this._y - s;
} else if (!_root.l_mc.hitTest(this._x + (0.6 * s), this._y - (0.4 * s), true)) {
this._x = this._x + (0.6 * s);
this._y = this._y - (0.4 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.6 * s), this._y - (0.4 * s), true)) {
this._x = this._x - (0.6 * s);
this._y = this._y - (0.4 * s);
}
} else if (Key.isDown(40)) {
dir = dir + 2;
if (!_root.l_mc.hitTest(this._x, this._y + s, true)) {
this._y = this._y + s;
} else if (!_root.l_mc.hitTest(this._x + (0.6 * s), this._y + (0.4 * s), true)) {
this._x = this._x + (0.6 * s);
this._y = this._y + (0.4 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.6 * s), this._y + (0.4 * s), true)) {
this._x = this._x - (0.6 * s);
this._y = this._y + (0.4 * s);
}
}
if (Key.isDown(39)) {
dir = dir + 10;
if (!_root.l_mc.hitTest(this._x + s, this._y, true)) {
this._x = this._x + s;
} else if (!_root.l_mc.hitTest(this._x + (0.4 * s), this._y + (0.6 * s), true)) {
this._x = this._x + (0.4 * s);
this._y = this._y + (0.6 * s);
} else if (!_root.l_mc.hitTest(this._x + (0.4 * s), this._y - (0.6 * s), true)) {
this._x = this._x + (0.4 * s);
this._y = this._y - (0.6 * s);
}
} else if (Key.isDown(37)) {
dir = dir + 20;
if (!_root.l_mc.hitTest(this._x - s, this._y, true)) {
this._x = this._x - s;
} else if (!_root.l_mc.hitTest(this._x - (0.4 * s), this._y + (0.6 * s), true)) {
this._x = this._x - (0.4 * s);
this._y = this._y + (0.6 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.4 * s), this._y - (0.6 * s), true)) {
this._x = this._x - (0.4 * s);
this._y = this._y - (0.6 * s);
}
}
p.play();
_root.walked = true;
if (dir == 0) {
p.gotoAndStop("still");
} else if (dir == 1) {
gotoAndStop ("up");
} else if (dir == 2) {
gotoAndStop ("down");
} else if ((dir > 9) && (dir < 20)) {
gotoAndStop ("right");
} else {
gotoAndStop ("left");
}
dir = 0;
} else {
p.gotoAndStop("still");
dir = 0;
}
}
Instance of Symbol 527 MovieClip "d1_mc" in Frame 290
onClipEvent (load) {
doIt = function () {
_root.gotoAndPlay("leak");
};
}
Instance of Symbol 520 MovieClip "d0_mc" in Frame 290
onClipEvent (load) {
doIt = function () {
_root.xPos = 140;
_root.yPos = 280;
_root.gotoAndStop("0.1");
};
}
Frame 375
_global.sound.worldMusic.stop();
Instance of Symbol 524 MovieClip in Frame 424
onClipEvent (enterFrame) {
if (_root.player_mc._y < 175) {
this._y = _root.player_mc._y;
} else {
this._y = 175;
}
}
Frame 425
stop();
_global.sound.worldMusic = new Sound();
_global.sound.worldMusic.attachSound("Danger2");
_global.sound.worldMusic.start(0, 999);
xPos = 295;
yPos = -105;
player_mc._x = xPos;
player_mc._y = yPos;
l_mc._visible = false;
d0_mc._visible = false;
d1_mc._visible = false;
sms([["Simon", "(Damn! We're beeing attacked!)"], ["s", "(I gotta get back to the Ambassador, time to put a move on and reach the main hall. I've got to call for help too!)"], ["HINT", "The main hall is south/south-west of here"]]);
this.onEnterFrame = function () {
if ((!smsBool) && (walked)) {
_root.play();
LED([["RADIO", "...............krrzz..............."], ["Simon", "...XD143 calling anyone who listens..."], ["s", "...This is an SOS, UN ambassador under attack!..."], ["s", "...Our position is 68.36.01 N, 24.00.57 W..."], ["s", "...We plead for immediate assistance..."], ["RADIO", "........kr.......krzrzz............"]]);
_global.misc.battlefield = new Array("BGvillage", "", "", "FGvillage");
_global.misc.battletype = new Array(4000, 25000, [["Baddie01"], ["Baddie01", "Baddie01"], ["Baddie01", "Baddie01", "Baddie01"]], true);
if (_global.misc.battletype[3]) {
var _local4 = _global.misc.battletype[0] + Math.floor(Math.random() * _global.misc.battletype[1]);
enemyInterval = setInterval(function () {
if (!_root.smsBool) {
_global.misc.currentLoc = [_root.frame, _root.player_mc._x, _root.player_mc._y];
_global.sound.worldMusicPos = _global.sound.worldMusic.position;
_global.sound.worldMusic.stop();
_global.sound.battleMusic.start(0, 999);
_root.attachMovie("BattleIntro", "bi_mc", 3000);
}
}, _local4);
}
delete this.onEnterFrame;
}
};
Instance of Symbol 524 MovieClip "vCam_mc" in Frame 425
onClipEvent (load) {
if (_root.player_mc._y < 175) {
this._y = _root.player_mc._y;
} else {
this._y = 175;
}
}
onClipEvent (enterFrame) {
if (_root.player_mc._y < 175) {
this._y = _root.player_mc._y;
} else {
this._y = 175;
}
}
Instance of Symbol 390 MovieClip [simon_walk] "player_mc" in Frame 425
onClipEvent (load) {
var speed = 5;
var optimisation = 1;
var dist = new Array(0.9915, 330);
}
onClipEvent (load) {
var dir = 0;
var better = Math.floor((dist[1] - this._y) * 0.1);
var t = Math.pow(dist[0], better);
var s;
var i = 0;
this._xscale = 100 * t;
this._yscale = 100 * t;
stop();
}
onClipEvent (enterFrame) {
if (!_root.smsBool) {
if (i == optimisation) {
better = Math.floor((dist[1] - this._y) * 0.1);
t = Math.pow(dist[0], better);
s = speed * t;
this._xscale = 100 * t;
this._yscale = 100 * t;
i = 0;
} else {
i++;
}
if (Key.isDown(38)) {
dir = dir + 1;
if (!_root.l_mc.hitTest(this._x, this._y - s, true)) {
this._y = this._y - s;
} else if (!_root.l_mc.hitTest(this._x + (0.6 * s), this._y - (0.4 * s), true)) {
this._x = this._x + (0.6 * s);
this._y = this._y - (0.4 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.6 * s), this._y - (0.4 * s), true)) {
this._x = this._x - (0.6 * s);
this._y = this._y - (0.4 * s);
}
} else if (Key.isDown(40)) {
dir = dir + 2;
if (!_root.l_mc.hitTest(this._x, this._y + s, true)) {
this._y = this._y + s;
} else if (!_root.l_mc.hitTest(this._x + (0.6 * s), this._y + (0.4 * s), true)) {
this._x = this._x + (0.6 * s);
this._y = this._y + (0.4 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.6 * s), this._y + (0.4 * s), true)) {
this._x = this._x - (0.6 * s);
this._y = this._y + (0.4 * s);
}
}
if (Key.isDown(39)) {
dir = dir + 10;
if (!_root.l_mc.hitTest(this._x + s, this._y, true)) {
this._x = this._x + s;
} else if (!_root.l_mc.hitTest(this._x + (0.4 * s), this._y + (0.6 * s), true)) {
this._x = this._x + (0.4 * s);
this._y = this._y + (0.6 * s);
} else if (!_root.l_mc.hitTest(this._x + (0.4 * s), this._y - (0.6 * s), true)) {
this._x = this._x + (0.4 * s);
this._y = this._y - (0.6 * s);
}
} else if (Key.isDown(37)) {
dir = dir + 20;
if (!_root.l_mc.hitTest(this._x - s, this._y, true)) {
this._x = this._x - s;
} else if (!_root.l_mc.hitTest(this._x - (0.4 * s), this._y + (0.6 * s), true)) {
this._x = this._x - (0.4 * s);
this._y = this._y + (0.6 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.4 * s), this._y - (0.6 * s), true)) {
this._x = this._x - (0.4 * s);
this._y = this._y - (0.6 * s);
}
}
p.play();
_root.walked = true;
if (dir == 0) {
p.gotoAndStop("still");
} else if (dir == 1) {
gotoAndStop ("up");
} else if (dir == 2) {
gotoAndStop ("down");
} else if ((dir > 9) && (dir < 20)) {
gotoAndStop ("right");
} else {
gotoAndStop ("left");
}
dir = 0;
} else {
p.gotoAndStop("still");
dir = 0;
}
}
Instance of Symbol 520 MovieClip "d1_mc" in Frame 425
onClipEvent (load) {
doIt = function () {
_root.xPos = 140;
_root.yPos = 280;
_root.gotoAndStop("0.1att");
};
}
Instance of Symbol 520 MovieClip "d0_mc" in Frame 425
onClipEvent (load) {
doIt = function () {
_root.xPos = 120;
_root.yPos = -190;
_global.misc.battletype = new Array(5000, 30000, [["Baddie02"], ["Baddie01", "Baddie01"], ["Baddie01", "Baddie02", "Baddie01"]], true);
_root.gotoAndStop("0.4");
};
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player_mc._x, _root.player_mc._y, true)) {
doIt();
}
}
Frame 426
stop();
var frame = "0.3";
player_mc._x = xPos;
player_mc._y = yPos;
l_mc._visible = false;
d0_mc._visible = false;
d1_mc._visible = false;
doors = new Array();
doors[1] = d1_mc;
Frame 440
stop();
var frame = "0.4";
player_mc._x = xPos;
player_mc._y = yPos;
l_mc._visible = false;
doors = new Array();
i = 0;
while (i < 4) {
_root[("d" + i) + "_mc"]._visible = false;
doors[i] = _root[("d" + i) + "_mc"];
i++;
}
Instance of Symbol 524 MovieClip "vCam_mc" in Frame 440
onClipEvent (load) {
if (_root.player_mc._y < -150) {
this._y = -150;
} else if (_root.player_mc._y > 575) {
this._y = 575;
} else {
this._y = _root.player_mc._y;
}
if (_root.player_mc._x < -423) {
this._x = -423;
} else if (_root.player_mc._x > 530) {
this._x = 530;
} else {
this._x = _root.player_mc._x;
}
}
onClipEvent (enterFrame) {
if (_root.player_mc._y < -100) {
this._y = -100;
} else if (_root.player_mc._y > 800) {
this._y = 800;
} else {
this._y = _root.player_mc._y;
}
if (_root.player_mc._x < -300) {
this._x = -300;
} else if (_root.player_mc._x > 750) {
this._x = 750;
} else {
this._x = _root.player_mc._x;
}
}
Instance of Symbol 390 MovieClip [simon_walk] "player_mc" in Frame 440
onClipEvent (load) {
var speed = 4;
var optimisation = 1;
var dist = new Array(1, 200);
}
onClipEvent (load) {
var dir = 0;
var better = Math.floor((dist[1] - this._y) * 0.1);
var t = Math.pow(dist[0], better);
var s;
var i = 0;
this._xscale = 100 * t;
this._yscale = 100 * t;
stop();
}
onClipEvent (enterFrame) {
if (!_root.smsBool) {
if (i == optimisation) {
better = Math.floor((dist[1] - this._y) * 0.1);
t = Math.pow(dist[0], better);
s = speed * t;
this._xscale = 100 * t;
this._yscale = 100 * t;
i = 0;
} else {
i++;
}
if (Key.isDown(38)) {
dir = dir + 1;
if (!_root.l_mc.hitTest(this._x, this._y - s, true)) {
this._y = this._y - s;
} else if (!_root.l_mc.hitTest(this._x + (0.6 * s), this._y - (0.4 * s), true)) {
this._x = this._x + (0.6 * s);
this._y = this._y - (0.4 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.6 * s), this._y - (0.4 * s), true)) {
this._x = this._x - (0.6 * s);
this._y = this._y - (0.4 * s);
}
} else if (Key.isDown(40)) {
dir = dir + 2;
if (!_root.l_mc.hitTest(this._x, this._y + s, true)) {
this._y = this._y + s;
} else if (!_root.l_mc.hitTest(this._x + (0.6 * s), this._y + (0.4 * s), true)) {
this._x = this._x + (0.6 * s);
this._y = this._y + (0.4 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.6 * s), this._y + (0.4 * s), true)) {
this._x = this._x - (0.6 * s);
this._y = this._y + (0.4 * s);
}
}
if (Key.isDown(39)) {
dir = dir + 10;
if (!_root.l_mc.hitTest(this._x + s, this._y, true)) {
this._x = this._x + s;
} else if (!_root.l_mc.hitTest(this._x + (0.4 * s), this._y + (0.6 * s), true)) {
this._x = this._x + (0.4 * s);
this._y = this._y + (0.6 * s);
} else if (!_root.l_mc.hitTest(this._x + (0.4 * s), this._y - (0.6 * s), true)) {
this._x = this._x + (0.4 * s);
this._y = this._y - (0.6 * s);
}
} else if (Key.isDown(37)) {
dir = dir + 20;
if (!_root.l_mc.hitTest(this._x - s, this._y, true)) {
this._x = this._x - s;
} else if (!_root.l_mc.hitTest(this._x - (0.4 * s), this._y + (0.6 * s), true)) {
this._x = this._x - (0.4 * s);
this._y = this._y + (0.6 * s);
} else if (!_root.l_mc.hitTest(this._x - (0.4 * s), this._y - (0.6 * s), true)) {
this._x = this._x - (0.4 * s);
this._y = this._y - (0.6 * s);
}
}
p.play();
_root.walked = true;
if (dir == 0) {
p.gotoAndStop("still");
} else if (dir == 1) {
gotoAndStop ("up");
} else if (dir == 2) {
gotoAndStop ("down");
} else if ((dir > 9) && (dir < 20)) {
gotoAndStop ("right");
} else {
gotoAndStop ("left");
}
dir = 0;
} else {
p.gotoAndStop("still");
dir = 0;
}
}
Instance of Symbol 556 MovieClip "d3_mc" in Frame 440
onClipEvent (load) {
doIt = function () {
_root.xPos = 455;
_root.yPos = 65;
_global.misc.battletype = new Array(5000, 30000, [["Baddie02", "Baddie02"], ["Baddie01", "Baddie02", "Baddie01"]], true);
_root.gotoAndStop("0.6");
};
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player_mc._x, _root.player_mc._y, true)) {
doIt();
}
}
Instance of Symbol 558 MovieClip "d1_mc" in Frame 440
onClipEvent (load) {
doIt = function () {
if (!_root.map1) {
sms([["ITEM", "FOUND:\rWeapon Maintenance Kit"]]);
_root.map1 = true;
}
};
}
Instance of Symbol 560 MovieClip "d2_mc" in Frame 440
onClipEvent (load) {
doIt = function () {
sms([["ITEM", "FOUND:\rEaster Egg - Fake egg containing chocolate and small toys."]]);
};
}
Instance of Symbol 562 MovieClip "d0_mc" in Frame 440
onClipEvent (load) {
doIt = function () {
_root.xPos = 300;
_root.yPos = 310;
_global.misc.battletype = new Array(5000, 30000, [["Baddie01"], ["Baddie01", "Baddie01"], ["Baddie01", "Baddie01", "Baddie01"]], true);
_root.gotoAndStop("0.3");
};
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player_mc._x, _root.player_mc._y, true)) {
doIt();
}
}
Frame 449
stop();
var frame = "0.6";
player_mc._x = xPos;
player_mc._y = yPos;
l_mc._visible = false;
doors = new Array();
i = 0;
while (i < 3) {
_root[("d" + i) + "_mc"]._visible = false;
doors[i] = _root[("d" + i) + "_mc"];
i++;
}
ha._visible = false;
h._alpha = 0;
ha.onEnterFrame = function () {
if (this.hitTest(_root.player_mc)) {
if (_root.h._alpha <= 100) {
_root.h._alpha = _root.h._alpha + 20;
}
} else if (_root.h._alpha >= 0) {
_root.h._alpha = _root.h._alpha - 20;
}
};
Instance of Symbol 524 MovieClip "vCam_mc" in Frame 449
onClipEvent (load) {
if (_root.player_mc._y > 605) {
this._y = 605;
} else {
this._y = _root.player_mc._y;
}
if (_root.player_mc._x < -210) {
this._x = -210;
} else if (_root.player_mc._x > 305) {
this._x = 305;
} else {
this._x = _root.player_mc._x;
}
}
onClipEvent (enterFrame) {
if (_root.player_mc._y > 605) {
this._y = 605;
} else {
this._y = _root.player_mc._y;
}
if (_root.player_mc._x < -210) {
this._x = -210;
} else if (_root.player_mc._x > 305) {
this._x = 305;
} else {
this._x = _root.player_mc._x;
}
}
Instance of Symbol 573 MovieClip "d2_mc" in Frame 449
onClipEvent (load) {
doIt = function () {
if (!_root.map3) {
sms([["ITEM", "FOUND:\rOld electronics"]]);
_root.map3 = true;
}
};
}
Instance of Symbol 575 MovieClip "d0_mc" in Frame 449
onClipEvent (load) {
doIt = function () {
_root.xPos = -560;
_root.yPos = 380;
_global.misc.battletype = new Array(5000, 30000, [["Baddie02"], ["Baddie01", "Baddie01"], ["Baddie01", "Baddie02", "Baddie01"]], true);
_root.gotoAndStop("0.4");
};
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player_mc._x, _root.player_mc._y, true)) {
doIt();
}
}
Instance of Symbol 579 MovieClip "d1_mc" in Frame 449
onClipEvent (load) {
doIt = function () {
_root.led_mc.remove();
clearInterval(_root.enemyInterval);
_global.misc.currentLoc = ["Startup", player_mc._x, player_mc._y];
_global.misc.battletype = new Array(4000, 2000, [["BaddieBoss1"]], false);
sms([["Simon", "(Great, I've reached the main hall. Now let's se if the ambassador is safe.)"], [".....", "Rrrrrrr-rrrrR"], ["Simon", "(Whoa! What is that thing!)"]]);
_root.onEnterFrame = function () {
if (!_root.smsBool) {
_global.sound.worldMusic.stop();
_global.sound.bossMusic.start(0, 999);
_global.misc.defeat = "outro";
_root.attachMovie("BattleIntro", bi_mc, 3000);
delete _root.onEnterFrame;
}
};
};
}
Frame 460
outroMusic = new Sound();
outroMusic.attachSound("Outro");
outroMusic.start();
b_mc.swapDepths(3000);
b_mc.onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha <= 3) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
var savefile = SharedObject.getLocal("ArtifissionChapter0");
savefile.data.items = [_root.map0, _root.map1, _root.map2, _root.map3];
savefile.flush();
LED([["???", "..........krrz..........krrrzzz....."], ["a", "...krrzz......XD14krzz....."], ["n", "...krzzz.......XD143....come...in..."], ["n", "..............krzzz.................."], ["s", "........way......krzrzz..ition..."], ["s", "........kr.......krzrzz............"]]);
Frame 754
b_mc._alpha = 0;
b_mc.onEnterFrame = function () {
this._alpha++;
if (this._alpha == 100) {
delete this.onEnterFrame;
}
};
Frame 857
led_mc.removeMovieClip();
Frame 858
b_mc.removeMovieClip();
Frame 1119
b2_mc.swapDepths(3000);
b2_mc.onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha <= 3) {
this.removeMovieClip();
}
};
_root.gotoAndPlay("Startup");
Frame 1120
function nextTurn() {
this.turn++;
if (turn >= orderOfAction.length) {
turn = 0;
}
whosTurn(turn);
}
function whosTurn(t) {
if (orderOfAction[t]._name.substr(0, 6) == "baddie") {
gotoAndPlay ("monster");
} else {
gotoAndPlay ("player");
}
}
function clearUp() {
i = 0;
while (i < enemies.length) {
enemies[i].removeMovieClip();
i++;
}
i = 0;
while (i < _global.misc.party.length) {
players[i].removeMovieClip();
this[_global.misc.party[i] + "Info_mc"].removeMovieClip();
i++;
}
removeMovieClip(choiseMenu_mc);
removeMovieClip(background_mc);
removeMovieClip(bgEffekt_mc);
removeMovieClip(fgEffekt_mc);
removeMovieClip(foreground_mc);
_global.sound.victoryMusic.stop();
_global.sound.defeatMusic.stop();
_global.sound.battleMusic.stop();
_global.sound.bossMusic.stop();
_global.sound.worldMusic.start();
Key.removeListener(watchKeyBoard);
}
function attack(d, r) {
var _local7;
var _local8;
if (d._name.substr(0, 6) == "baddie") {
_local7 = r.shdArmor + _global[r.myName].defence;
aProcent = r.shdArmorProcent;
var _local9 = Math.floor(((d.damage() - _local7) * (100 - aProcent)) / 100);
_global[r.myName].health = _global[r.myName].health - _local9;
_root.numberDmg(r, _local9, 1);
} else {
_local7 = r.armor;
aProcent = r.armorProcent;
_global[d.myName].strExp++;
_local8 = d.rhWeapon_mc.nbrOfAttacks;
var _local5 = 0;
while (_local5 < _local8) {
d.who = r;
var _local6 = d.rhWeapon_mc.damage() * _global[d.myName].strength;
var _local9 = Math.floor(((_local6 - _local7) * (100 - aProcent)) / 100);
r.health = r.health - _local9;
_root.numberDmg(r, _local9, 0);
_local5++;
}
if (d.lhWeapon_mc.action == "Attack") {
_local8 = d.lhWeapon_mc.nbrOfAttacks;
var _local6 = (d.lhWeapon_mc.damage() * _global[d.myName].strength) * 0.75;
var _local9 = Math.floor(((_local6 - _local7) * (100 - aProcent)) / 100);
r.health = r.health - _local9;
_root.numberDmg(r, _local9, 0);
}
}
}
function range(d, r, l, m) {
var _local5;
var _local9;
if (d._name.substr(0, 6) == "baddie") {
_local5 = r.shdArmor + _global[r.myName].defence;
aProcent = r.shdArmorProcent;
d.who = r;
var _local6 = Math.floor((((d.damage() - _local5) * (100 - aProcent)) / 100) * m);
_global[r.myName].health = _global[r.myName].health - _local6;
_root.numberDmg(r, _local6, 1);
} else {
_local5 = r.armor;
aProcent = r.armorProcent;
_global[d.myName].accExp++;
if (l) {
_local9 = d.lhWeapon_mc.nbrOfAttacks;
var _local7 = 0;
while (_local7 < _local9) {
d.who = r;
var _local8 = (d.lhWeapon_mc.damage() * _global[d.myName].accuracy) - _local5;
var _local6 = Math.floor((((_local8 - _local5) * (100 - aProcent)) / 100) * m);
_root.numberDmg(r, _local6, 0);
r.health = r.health - _local6;
_local7++;
}
} else {
_local9 = d.rhWeapon_mc.nbrOfAttacks;
var _local7 = 0;
while (_local7 < _local9) {
d.who = r;
var _local8 = (d.rhWeapon_mc.damage() * _global[d.myName].accuracy) - _local5;
var _local6 = Math.floor((((_local8 - _local5) * (100 - aProcent)) / 100) * m);
_root.numberDmg(r, _local6, 0);
r.health = r.health - _local6;
_local7++;
}
}
}
}
function numberDmg(who, n, c) {
this.attachMovie("damageNbr", "nbr" + _root.numberDepth, _root.numberDepth);
this["nbr" + _root.numberDepth]._x = who._x + Math.floor((Math.random() * 20) - 10);
this["nbr" + _root.numberDepth]._y = who._y + Math.floor((Math.random() * 20) - 10);
this["nbr" + _root.numberDepth].f.f_txt.text = n;
this["nbr" + _root.numberDepth].b.b_txt.text = n;
if (c < 0) {
_root["nbr" + _root.numberDepth].gotoAndPlay("green");
} else if (c > 0) {
_root["nbr" + _root.numberDepth].gotoAndPlay("red");
}
this.numberDepth++;
if (numberDepth > 1750) {
numberDepth = 1700;
}
}
stop();
sms_mc.removeMovieClip();
led_mc._x = 0;
led_mc._y = 0;
watchKeyBoard = new Object();
Key.addListener(watchKeyBoard);
var orderOfAction = new Array();
var turn = 0;
var enemies = new Array();
var maxNbrOfEnemies = 2;
var players = new Array();
var tempArray = new Array();
var tempChoise = "empty";
var playerChoises = new Array();
var happening = false;
var vd = false;
this.attachMovie(_global.misc.battlefield[0], "background_mc", 1);
this.attachMovie(_global.misc.battlefield[1], "bgEffekt_mc", 2);
bgEffekt_mc._yscale = 50;
bgEffekt_mc._alpha = 50;
bgEffekt_mc.gotoAndPlay(100);
this.attachMovie(_global.misc.battlefield[2], "fgEffekt_mc", 500);
this.attachMovie(_global.misc.battlefield[3], "foreground_mc", 1000);
var rSet = Math.floor(Math.random() * _global.misc.battletype[2].length);
var tArr = _global.misc.battletype[2][rSet];
if (tArr.length == 1) {
this.attachMovie(tArr[0], "baddieBoss_mc", 50);
baddieBoss_mc._x = 400;
baddieBoss_mc.posX = baddieBoss_mc._x;
baddieBoss_mc._y = 150;
baddieBoss_mc.posY = baddieBoss_mc._y;
baddieBoss_mc.posD = 50;
baddieBoss_mc.onEnterFrame = function () {
this.health = this.maxHP;
delete this.onEnterFrame;
};
tempArray.push(baddieBoss_mc);
enemies.push(baddieBoss_mc);
} else {
i = 0;
while (i < tArr.length) {
this.attachMovie(tArr[i], ("baddie" + i) + "_mc", 50 + (i * 2));
this[("baddie" + i) + "_mc"]._x = (400 + ((80 / (tArr.length - 1)) * i)) + Math.floor((Math.random() * 10) - 5);
this[("baddie" + i) + "_mc"].posX = this[("baddie" + i) + "_mc"]._x;
this[("baddie" + i) + "_mc"]._y = (130 + ((40 / (tArr.length - 1)) * i)) + Math.floor((Math.random() * 10) - 5);
this[("baddie" + i) + "_mc"].posY = this[("baddie" + i) + "_mc"]._y;
this[("baddie" + i) + "_mc"].posD = 50 + (i * 2);
this[("baddie" + i) + "_mc"].idle.gotoAndPlay(Math.floor(Math.random() * 5) + (i * 7));
this[("baddie" + i) + "_mc"].onEnterFrame = function () {
this.health = this.maxHP;
delete this.onEnterFrame;
};
tempArray.push(_root[("baddie" + i) + "_mc"]);
enemies.push(_root[("baddie" + i) + "_mc"]);
i++;
}
}
i = 0;
while (i < _global.misc.party.length) {
var myName = _global.misc.party[i];
this.attachMovie(myName + "_battle", myName + "_mc", 120 - (i * 2));
this[myName + "_mc"]._x = 50 + (50 * i);
this[myName + "_mc"].posX = this[myName + "_mc"]._x;
this[myName + "_mc"]._y = 150 - (30 * i);
this[myName + "_mc"].posY = this[myName + "_mc"]._y;
this[myName + "_mc"].myName = this.myName;
this[myName + "_mc"].attachMovie(_global[myName].lHand, "lhWeapon_mc", 0);
this[myName + "_mc"].attachMovie(_global[myName].rHand, "rhWeapon_mc", 1);
tempArray.push(this[myName + "_mc"]);
players.push(this[myName + "_mc"]);
_root.attachMovie("BattleInfo", myName + "Info_mc", 1890 + i);
_root[myName + "Info_mc"].currchar = myName;
_root[myName + "Info_mc"]._x = 300;
_root[myName + "Info_mc"]._y = 290 - (40 * i);
i++;
}
while (tempArray.length > 0) {
r = Math.floor(Math.random() * tempArray.length);
orderOfAction.push(tempArray[r]);
tempArray.splice(r, 1);
}
watchKeyBoard.onKeyDown = function () {
if (Key.getCode() == 38) {
pointer_mc.moveUp();
pointer_mc.update();
}
if (Key.getCode() == 40) {
pointer_mc.moveDown();
pointer_mc.update();
}
if (Key.getAscii() == 120) {
if (vd) {
vd_mc.clearUp();
} else {
pointer_mc.takeAction();
}
}
if (Key.getAscii() == 97) {
if (_root.pointer_mc.currentArr == _root.skillsMenu_mc.skillsList) {
_root.pointer_mc.newArr(_root.playerChoises);
removeMovieClip(_root.skillsMenu_mc);
} else if (_root.pointer_mc.currentArr != _root.playerChoises) {
_root.tempChoise = "cancel";
}
}
};
var numberDepth = 1700;
Frame 1121
stop();
if ((orderOfAction[turn].shdArmor + orderOfAction[turn].shdArmorProcent) > 0) {
orderOfAction[turn].shdArmor = 0;
orderOfAction[turn].shdArmorProcent = 0;
orderOfAction[turn].who.shdArmor = 0;
orderOfAction[turn].who.shdArmorProcent = 0;
orderOfAction[turn].who.shielder = "";
orderOfAction[turn].gotoAndPlay("idle");
}
attachMovie("Choise_menu", "choiseMenu_mc", 1900);
choiseMenu_mc._x = 15;
choiseMenu_mc._y = 220;
var temp = orderOfAction[_root.turn].rhWeapon_mc.action;
choiseMenu_mc.choise0_mc.attachMovie(temp, "action", 1);
temp = _root.orderOfAction[_root.turn].lhWeapon_mc.action;
choiseMenu_mc.choise1_mc.attachMovie(temp, "action", 1);
temp = "Skills";
choiseMenu_mc.choise2_mc.attachMovie(temp, "action", 1);
i = 0;
while (i < 4) {
_root.playerChoises[i] = _root.choiseMenu_mc[("choise" + i) + "_mc"];
i++;
}
attachMovie("Pointer", "pointer_mc", 2000);
pointer_mc._x = _root.choiseMenu_mc._x + _root.choiseMenu_mc.choise0_mc._x;
pointer_mc._y = _root.choiseMenu_mc._y + _root.choiseMenu_mc.choise0_mc._y;
pointer_mc.onEnterFrame = function () {
this.newArr(_root.playerChoises);
delete this.onEnterFrame;
};
Frame 1127
stop();
_root.choiseMenu_mc._visible = false;
_root.skillsMenu_mc._visible = false;
_root.pointer_mc._visible = false;
Frame 1134
stop();
orderOfAction[turn].takeTurn();
Frame 1141
var deaths = 0;
i = 0;
while (i < enemies.length) {
if (enemies[i].health <= 0) {
enemies[i].gotoAndPlay("dying");
deaths++;
removeFromArr(_root.orderOfAction, enemies[i]._name);
removeFromArr(_root.enemies, enemies[i]._name);
}
i++;
}
i = 0;
while (i < players.length) {
if (_global[players[i].myName].health <= 0) {
players[i].gotoAndPlay("dying");
removeFromArr(_root.orderOfAction, players[i]._name);
removeFromArr(_root.players, players[i]._name);
}
i++;
}
Frame 1142
play();
Frame 1143
if ((deaths <= 0) && (!happening)) {
nextFrame();
} else {
prevFrame();
}
Frame 1144
stop();
removeMovieClip(choiseMenu_mc);
removeMovieClip(skillsMenu_mc);
removeMovieClip(pointer_mc);
if (_global.simon.health <= 0) {
gotoAndPlay ("defeat");
} else if (enemies.length <= 0) {
gotoAndPlay ("victory");
} else {
nextTurn();
}
Frame 1147
stop();
_global.sound.battleMusic.stop();
_global.sound.bossMusic.stop();
_global.sound.victoryMusic.start(0, 999);
attachMovie("Victory-Defeat", "vd_mc", 3000);
vd = true;
Frame 1153
b_mc.swapDepths(3000);
b_mc._alpha = 0;
b_mc.onEnterFrame = function () {
if (this._alpha < 98) {
trace(_global.sound.battleMusic.getVolume());
_global.sound.battleMusic.setVolume(_global.sound.battleMusic.getVolume() - 2);
this._alpha = this._alpha + 2;
} else {
_global.sound.battleMusic.stop();
_global.sound.bossMusic.stop();
this._alpha = 100;
delete this.onEnterFrame;
}
};
Frame 1239
clearUp();
_global.sound.worldMusic.stop();
b_mc.removeMovieClip();
_global.sound.battleMusic.setVolume(100);
trace(_global.misc.defeat);
_root.gotoAndPlay(_global.misc.defeat);
Symbol 5 MovieClip [Pointer] Frame 1
var point;
var currentArr;
update = function () {
_x = (currentArr[point]._x + currentArr[point]._parent._x);
_y = (currentArr[point]._y + currentArr[point]._parent._y);
};
moveUp = function () {
point--;
if (point < 0) {
point = currentArr.length - 1;
}
update();
};
moveDown = function () {
point++;
if (point == currentArr.length) {
point = 0;
}
update();
};
takeAction = function () {
if (currentArr[point]._name.substr(0, 6) == "choise") {
currentArr[point].action.doIt();
} else {
_root.tempChoise = currentArr[point]._name;
}
};
newArr = function (arr) {
this.currentArr = arr;
this.point = 0;
this.update();
};
Symbol 9 MovieClip [Attack] Frame 1
stop();
var monster;
doIt = function () {
_root.pointer_mc.newArr(_root.enemies);
gotoAndPlay (2);
};
Symbol 9 MovieClip [Attack] Frame 2
if (_root.tempChoise == "cancel") {
_root.tempChoise = "empty";
_root.pointer_mc.newArr(_root.playerChoises);
gotoAndStop (1);
} else if (_root.tempChoise.substr(0, 6) == "baddie") {
monster = _root.tempChoise;
_root.pointer_mc.removeMovieClip();
_root.tempChoise = "empty";
gotoAndPlay (4);
}
Symbol 9 MovieClip [Attack] Frame 3
gotoAndPlay (2);
Symbol 9 MovieClip [Attack] Frame 4
hero = _root.orderOfAction[_root.turn];
hero.who = _root[monster];
fickludd();
hero.gotoAndPlay("attacking");
_root.gotoAndStop("paction");
Symbol 36 MovieClip Frame 1
_root.happening = true;
Symbol 36 MovieClip Frame 13
_parent._x = _parent.who._x - 50;
_parent._y = _parent.who._y + 10;
Symbol 36 MovieClip Frame 21
_root.attack(_parent, _parent.who);
_root.gotoAndPlay("check");
_parent.who.gotoAndPlay("hurting");
Symbol 36 MovieClip Frame 30
_parent._x = _parent.posX;
_parent._y = _parent.posY;
Symbol 36 MovieClip Frame 35
_root.happening = false;
_parent.gotoAndStop("idle");
Symbol 39 MovieClip Frame 1
if ((_parent.shdArmor + _parent.shdArmorProcent) > 0) {
gotoAndPlay (10);
}
Symbol 39 MovieClip Frame 6
_parent.gotoAndPlay("idle");
Symbol 39 MovieClip Frame 16
_parent.gotoAndPlay("shielding");
Symbol 65 MovieClip Frame 1
_root.happening = true;
Symbol 65 MovieClip Frame 50
_root.tempChoise = "skill";
_root.gotoAndPlay("check");
Symbol 65 MovieClip Frame 60
_root.happening = false;
_parent.gotoAndPlay("idle");
Symbol 66 MovieClip Frame 1
_root.happening = true;
Symbol 66 MovieClip Frame 45
_parent.gotoAndStop("dead");
_root.happening = false;
Symbol 67 MovieClip [simon_battle] Frame 1
var who;
var shdArmorProcent = 0;
var shdArmor = 0;
var shielder;
Symbol 67 MovieClip [simon_battle] Frame 2
stop();
Symbol 67 MovieClip [simon_battle] Frame 10
stop();
Symbol 67 MovieClip [simon_battle] Frame 20
stop();
Symbol 67 MovieClip [simon_battle] Frame 30
stop();
Symbol 67 MovieClip [simon_battle] Frame 40
stop();
Symbol 67 MovieClip [simon_battle] Frame 50
stop();
Symbol 67 MovieClip [simon_battle] Frame 60
stop();
Symbol 67 MovieClip [simon_battle] Frame 70
stop();
Symbol 76 MovieClip [PowerFist] Frame 1
stop();
var d = 5;
damage = function () {
return(d + (Math.random() * 2));
};
var nbrOfAttacks = 1;
var action = "Attack";
var desc = "Combatfist in titan alloy.";
Symbol 76 MovieClip [PowerFist] Frame 6
stop();
damage_txt.text = d;
NoA_txt.text = nbrOfAttacks;
Symbol 78 MovieClip [SteelShield] Frame 1
var armor = 4;
var armorProcent = 15;
var action = "Shield";
Symbol 81 MovieClip [Range] Frame 1
stop();
var monster;
doIt = function () {
trace("select your target");
_root.pointer_mc.newArr(_root.enemies);
gotoAndPlay (3);
};
Symbol 81 MovieClip [Range] Frame 3
if (_root.tempChoise == "cancel") {
_root.tempChoise = "empty";
_root.pointer_mc.newArr(_root.playerChoises);
gotoAndStop (1);
} else if (_root.tempChoise.substr(0, 6) == "baddie") {
monster = _root.tempChoise;
_root.tempChoise = "empty";
gotoAndPlay (5);
}
Symbol 81 MovieClip [Range] Frame 4
gotoAndPlay (2);
Symbol 81 MovieClip [Range] Frame 5
stop();
hero = _root.orderOfAction[_root.turn];
var nbrOfAttacks;
trace("in damaging part");
if (hero.rhWeapon_mc.action == "Range") {
_root.range(hero, _root[monster], false, 1);
if (hero.lhWeapon_mc.action == "Range") {
gotoAndPlay (7);
} else {
hero.gotoAndPlay("attacking");
_root.gotoAndStop("paction");
}
} else {
_root.range(hero, _root[monster], true, 1);
}
Symbol 81 MovieClip [Range] Frame 7
if (_root.tempChoise == "cancel") {
trace("i cancel");
_root.tempChoise = "empty";
_root.pointer_mc.newArr(_root.playerChoises);
gotoAndStop (1);
} else if (_root.tempChoise.substr(0, 6) == "baddie") {
monster = _root.tempChoise;
_root.tempChoise = "empty";
gotoAndPlay (9);
}
Symbol 81 MovieClip [Range] Frame 8
gotoAndPlay (7);
Symbol 81 MovieClip [Range] Frame 9
_root.range(hero, _root[monster], true, 0.5);
hero.gotoAndPlay("attacking");
_root.gotoAndStop("paction");
Symbol 84 MovieClip [Shield] Frame 1
stop();
var ally;
doIt = function () {
trace("select your target");
_root.pointer_mc.newArr(_root.players);
gotoAndPlay (2);
};
Symbol 84 MovieClip [Shield] Frame 2
if (_root.tempChoise == "cancel") {
_root.tempChoise = "empty";
_root.pointer_mc.newArr(_root.playerChoises);
gotoAndStop (1);
} else if ((_root.tempChoise != "empty") && (_root.tempChoise.length > 3)) {
ally = _root.tempChoise;
_root.tempChoise = "empty";
gotoAndPlay (4);
}
Symbol 84 MovieClip [Shield] Frame 3
gotoAndPlay (2);
Symbol 84 MovieClip [Shield] Frame 4
trace("in shielding part");
var armProcent = 0;
var arm = 0;
hero = _root.orderOfAction[_root.turn];
if (hero.lhWeapon_mc.action == "Shield") {
arm = arm + hero.lhWeapon_mc.armor;
armProcent = armProcent + hero.lhWeapon_mc.armorProcent;
if (hero.rhWeapon_mc.action == "Shield") {
arm = arm + (hero.rhWeapon_mc.armor / 2);
if (hero.rhWeapon_mc.armorProcent > hero.lhWeapon_mc.armorProcent) {
armProcent = hero.rhWeapon_mc.armorProcent;
}
}
}
if (hero.rhWeapon_mc.action == "Shield") {
arm = arm + hero.rhWeapon_mc.armor;
armProcent = armProcent + hero.rhWeapon_mc.armorProcent;
}
var arm2 = Math.floor(arm);
var arm2Procent = Math.floor(armProcent);
hero.who = _root[ally];
hero.shdArmor = arm2;
hero.shdArmorProcent = arm2Procent;
hero.shielder = hero;
_root[ally].shdArmor = arm2;
_root[ally].shdArmorProcent = arm2Procent;
_root[ally].shielder = hero;
_global[hero.myName].defExp++;
hero.gotoAndPlay("shielding");
_root.choiseMenu_mc._visible = false;
_root.skillsMenu_mc._visible = false;
_root.pointer_mc._visible = false;
_root.gotoAndPlay("check");
Symbol 97 MovieClip Frame 1
_root.happening = true;
Symbol 97 MovieClip Frame 85
_root.happening = false;
_parent.stance = 2;
_root.gotoAndPlay("check");
_parent.gotoAndPlay("idle2");
Symbol 103 MovieClip Frame 1
_root.happening = true;
Symbol 103 MovieClip Frame 16
_root.attachMovie("HitExplosion", "expl_mc", 300);
_root.expl_mc._x = _parent.who._x + 20;
_root.expl_mc._y = _parent.who._y;
Symbol 103 MovieClip Frame 21
_root.range(_parent, _parent.who, false, 1);
_parent.who.gotoAndPlay("hurting");
_root.gotoAndPlay("check");
Symbol 103 MovieClip Frame 77
_root.happening = false;
_parent.stance = 1;
_parent.gotoAndPlay("idle");
Symbol 104 MovieClip Frame 15
_root.deaths--;
_parent.removeMovieClip();
Symbol 105 MovieClip Frame 6
if (_parent.stance == 1) {
_parent.gotoAndPlay("idle");
} else {
_parent.gotoAndPlay("idle2");
}
Symbol 106 MovieClip [Baddie02] Frame 1
function takeTurn() {
if (stance == 1) {
gotoAndPlay ("loading");
} else {
var _local2 = Math.floor(Math.random() * _root.players.length);
who = _root.players[_local2];
gotoAndPlay ("attacking");
}
}
var maxHP = 63;
var nbrOfAttacks = 1;
var armor = 2;
var armorProcent = 0;
var who;
var health;
var stance = 1;
damage = function () {
fickludd();
return(100 + (Math.random() * 3));
};
Symbol 106 MovieClip [Baddie02] Frame 2
stop();
Symbol 106 MovieClip [Baddie02] Frame 10
gotoAndPlay (1);
Symbol 106 MovieClip [Baddie02] Frame 11
stop();
Symbol 106 MovieClip [Baddie02] Frame 21
stop();
Symbol 106 MovieClip [Baddie02] Frame 31
stop();
Symbol 106 MovieClip [Baddie02] Frame 41
stop();
Symbol 106 MovieClip [Baddie02] Frame 51
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 3
stop();
Symbol 113 MovieClip Frame 10
play();
Symbol 113 MovieClip Frame 11
play();
Symbol 114 MovieClip Frame 1
_root.happening = true;
Symbol 114 MovieClip Frame 13
_parent.who.gotoAndPlay("hurting");
Symbol 114 MovieClip Frame 20
_root.range(_parent, _parent.who, false, 1);
_parent.who.gotoAndPlay("hurting");
_root.gotoAndPlay("check");
Instance of Symbol 113 MovieClip in Symbol 114 MovieClip Frame 20
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 114 MovieClip Frame 43
_root.happening = false;
_parent.gotoAndPlay(1);
Symbol 115 MovieClip Frame 15
_root.deaths--;
_parent.removeMovieClip();
Symbol 116 MovieClip Frame 6
_parent.gotoAndPlay(1);
Symbol 117 MovieClip [Baddie01] Frame 1
function takeTurn() {
var _local2 = Math.floor(Math.random() * _root.players.length);
who = _root.players[_local2];
gotoAndPlay ("attacking");
}
stop();
var maxHP = 47;
var nbrOfAttacks = 1;
var armor = 2;
var armorProcent = 0;
var who;
var health;
damage = function () {
fickludd();
return(11 + (Math.random() * 3));
};
Symbol 117 MovieClip [Baddie01] Frame 7
gotoAndPlay (1);
Symbol 117 MovieClip [Baddie01] Frame 8
stop();
Symbol 117 MovieClip [Baddie01] Frame 26
stop();
Symbol 117 MovieClip [Baddie01] Frame 39
stop();
Symbol 117 MovieClip [Baddie01] Frame 45
gotoAndPlay (1);
Symbol 120 MovieClip [Skills] Frame 1
stop();
doIt = function () {
_root.attachMovie("Choise_menu", "skillsMenu_mc", 1930);
_root.skillsMenu_mc._x = 30;
_root.skillsMenu_mc._y = 230;
_root.skillsMenu_mc.skillsList = new Array();
var _local3;
i = 0;
while (i < 4) {
_local3 = _global[_root.orderOfAction[_root.turn].myName].skills[i];
_root.skillsMenu_mc[("choise" + i) + "_mc"].attachMovie(_local3, "action", 1);
_root.skillsMenu_mc.skillsList[i] = _root.skillsMenu_mc[("choise" + i) + "_mc"];
i++;
}
_root.pointer_mc.newArr(_root.skillsMenu_mc.skillsList);
};
Symbol 122 MovieClip [Schmasch] Frame 1
function doIt() {
var _local4 = 1;
var _local3;
i = 0;
while (i < 4) {
_local3 = _global[_root.orderOfAction[_root.turn].myName].skills[i];
_root.choiseMenu_mc[("choise" + i) + "_mc"].attachMovie(_local3, _local3 + "_mc", _local4++);
_root.choiseMenu_mc[("choise" + i) + "_mc"].action = _root.choiseMenu_mc[("choise" + i) + "_mc"][_local3 + "_mc"];
_root.pointer_mc.point = 0;
i++;
}
}
stop();
Symbol 127 MovieClip [First Aid] Frame 1
stop();
var ally;
var hero = _root.orderOfAction[_root.turn];
if (_global[hero.myName].mana < 6) {
gotoAndStop ("no mana");
}
doIt = function () {
if (_global[hero.myName].mana > 5) {
trace("select your target");
_root.pointer_mc.newArr(_root.players);
gotoAndPlay (2);
} else {
trace("no mana");
}
};
Symbol 127 MovieClip [First Aid] Frame 2
if (_root.tempChoise == "cancel") {
_root.tempChoise = "empty";
_root.pointer_mc.newArr(_root.skillsMenu_mc.skillsList);
gotoAndStop (1);
} else if (_root.tempChoise != "empty") {
ally = _root.tempChoise;
_root.tempChoise = "empty";
gotoAndPlay (4);
}
Symbol 127 MovieClip [First Aid] Frame 3
gotoAndPlay (2);
Symbol 127 MovieClip [First Aid] Frame 4
hero.gotoAndPlay("conjuring");
_root.gotoAndStop("paction");
fickludd();
Symbol 127 MovieClip [First Aid] Frame 5
if (_root.tempChoise == "skill") {
_root.tempChoise = "empty";
gotoAndPlay (7);
}
Symbol 127 MovieClip [First Aid] Frame 6
gotoAndPlay (5);
Symbol 127 MovieClip [First Aid] Frame 7
trace("doing the first aid");
trace(_global[_root[ally].myName].health);
var heal = ((_global[hero.myName].maxMP * 4) + Math.floor(Math.random() * 6));
_global[_root[ally].myName].health = _global[_root[ally].myName].health + heal;
_global[hero.myName].mana = _global[hero.myName].mana - 6;
_root.numberDmg(_root[ally], heal, -1);
Symbol 129 MovieClip [Roar] Frame 1
function doIt() {
var _local4 = 1;
var _local3;
i = 0;
while (i < 4) {
_local3 = _global[_root.orderOfAction[_root.turn].myName].skills[i];
_root.choiseMenu_mc[("choise" + i) + "_mc"].attachMovie(_local3, _local3 + "_mc", _local4++);
_root.choiseMenu_mc[("choise" + i) + "_mc"].action = _root.choiseMenu_mc[("choise" + i) + "_mc"][_local3 + "_mc"];
_root.pointer_mc.point = 0;
i++;
}
}
stop();
Symbol 131 MovieClip [Piano] Frame 1
function doIt() {
var _local4 = 1;
var _local3;
i = 0;
while (i < 4) {
_local3 = _global[_root.orderOfAction[_root.turn].myName].skills[i];
_root.choiseMenu_mc[("choise" + i) + "_mc"].attachMovie(_local3, _local3 + "_mc", _local4++);
_root.choiseMenu_mc[("choise" + i) + "_mc"].action = _root.choiseMenu_mc[("choise" + i) + "_mc"][_local3 + "_mc"];
_root.pointer_mc.point = 0;
i++;
}
}
stop();
Symbol 142 MovieClip [BattleInfo] Frame 1
var tempHP = _global[currchar].health;
var tempMP = _global[currchar].mana;
Symbol 142 MovieClip [BattleInfo] Frame 2
if (_global[currchar].health < 0) {
_global[currchar].health = 0;
} else if (_global[currchar].health > _global[currchar].maxHP) {
_global[currchar].health = _global[currchar].maxHP;
}
if (_global[currchar].mana < 0) {
_global[currchar].mana = 0;
} else if (_global[currchar].mana > _global[currchar].maxMP) {
_global[currchar].mana = _global[currchar].maxMP;
}
var diff = (tempHP - _global[currchar].health);
if (diff != 0) {
tempHP = tempHP - (diff / 10);
if (Math.abs(diff) < 0.1) {
tempHP = _global[currchar].health;
}
}
diff = tempMP - _global[currchar].mana;
if (diff != 0) {
tempMP = tempMP - (diff / 10);
if (Math.abs(diff) < 0.1) {
tempMP = _global[currchar].mana;
}
}
hp_txt.text = _global[currchar].health;
hpmax_txt.text = _global[currchar].maxHP;
healthbar_mc._xscale = (_global[currchar].health / _global[currchar].maxHP) * 100;
healthbar2_mc._xscale = (tempHP / _global[currchar].maxHP) * 100;
mp_txt.text = _global[currchar].mana;
mpmax_txt.text = _global[currchar].maxMP;
manabar_mc._xscale = (_global[currchar].mana / _global[currchar].maxMP) * 100;
manabar2_mc._xscale = (tempMP / _global[currchar].maxMP) * 100;
Symbol 142 MovieClip [BattleInfo] Frame 3
gotoAndPlay (2);
Symbol 148 MovieClip [BGsnow] Frame 181
gotoAndPlay (1);
Symbol 152 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_parent.rhWeapon_mc.action == "Shield") && (_parent.lhWeapon_mc.action != "Shield")) {
_parent.rhWeapon_mc._name = "lhWeapon_mc";
_parent.lhWeapon_mc._name = "rhWeapon_mc";
_parent.lhWeapon_mc.swapDepths(_parent.rhWeapon_mc);
}
if ((_parent.lhWeapon_mc.action == "Attack") && (_parent.rhWeapon_mc.action != "Attack")) {
_parent.rhWeapon_mc._name = "lhWeapon_mc";
_parent.lhWeapon_mc._name = "rhWeapon_mc";
_parent.lhWeapon_mc.swapDepths(_parent.rhWeapon_mc);
}
_parent.rhWeapon_mc._x = this._x;
_parent.rhWeapon_mc._y = this._y;
};
Symbol 154 MovieClip Frame 1
this.onEnterFrame = function () {
_parent.lhWeapon_mc._x = this._x;
_parent.lhWeapon_mc._y = this._y;
};
Symbol 163 MovieClip [carl_battle] Frame 1
var who;
Symbol 163 MovieClip [carl_battle] Frame 8
gotoAndPlay (1);
Symbol 163 MovieClip [carl_battle] Frame 13
leftHand_mc.swapDepths(lhWeapon_mc);
this._x = who._x - 80;
this._y = who._y;
Symbol 163 MovieClip [carl_battle] Frame 20
leftHand_mc.swapDepths(lhWeapon_mc);
this._x = this.posX;
this._y = this.posY;
Symbol 163 MovieClip [carl_battle] Frame 26
_root.gotoAndPlay("check");
gotoAndPlay (1);
Symbol 163 MovieClip [carl_battle] Frame 31
stop();
Symbol 163 MovieClip [carl_battle] Frame 39
stop();
Symbol 163 MovieClip [carl_battle] Frame 47
stop();
Symbol 163 MovieClip [carl_battle] Frame 53
stop();
Symbol 171 MovieClip [sms] Frame 1
_root.led_mc._visible = false;
sms_txt.selectable = false;
who_txt.selectable = false;
var story;
var point;
this._x = _root.vCam_mc._x - (_root.vCam_mc._width / 2);
this._y = _root.vCam_mc._y - (_root.vCam_mc._height / 2);
this.onEnterFrame = function () {
this._x = _root.vCam_mc._x - (_root.vCam_mc._width / 2);
this._y = _root.vCam_mc._y - (_root.vCam_mc._height / 2);
};
nextText = function () {
this.point++;
if (point == story.length) {
_root.led_mc._visible = true;
_root.smsBool = false;
this.removeMovieClip();
} else {
sms_txt.text = story[point][1];
if (story[point][0].length > 2) {
who_txt.text = story[point][0];
}
}
};
Symbol 176 MovieClip [Battle Spear] Frame 1
stop();
this._visible = false;
var d = 5;
damage = function () {
return(d + (Math.random() * 2));
};
var nbrOfAttacks = 1;
var action = "Attack";
var desc = "Battle spear in lightweight steel";
Symbol 176 MovieClip [Battle Spear] Frame 6
stop();
damage_txt.text = d;
NoA_txt.text = nbrOfAttacks;
Symbol 190 MovieClip [Victory-Defeat] Frame 1
function clearUp() {
_root.clearUp();
goto();
this.removeMovieClip();
}
i = 0;
while (i < _global.misc.party.length) {
this.attachMovie("Victory-Defeat-info", _global.misc.party[i], i + 1);
this[_global.misc.party[i]]._x = 155;
this[_global.misc.party[i]]._y = 45 + (126 * i);
i++;
}
var who;
var strPlus = 0;
var accPlus = 0;
var defPlus = 0;
var tempDisp = "";
str = function () {
if (who.strExp > (who.strength * 3)) {
who.strExp = who.strExp - (who.strength * 3);
who.strength++;
strPlus++;
str();
}
};
acc = function () {
if (who.accExp > (who.accuracy * 4)) {
who.accExp = who.accExp - (who.accuracy * 4);
who.accuracy++;
accPlus++;
acc();
}
};
def = function () {
if (who.defExp > (who.defence * 2)) {
who.defExp = who.defExp - (who.defence * 2);
who.defence++;
defPlus++;
def();
}
};
i = 0;
while (i < _global.misc.party.length) {
who = _global[_global.misc.party[i]];
str();
acc();
def();
if (strPlus > 0) {
tempDisp = tempDisp + (("Strength +" + strPlus) + "\r");
strPlus = 0;
}
if (accPlus > 0) {
tempDisp = tempDisp + (("Accuracy +" + accPlus) + "\r");
accPlus = 0;
}
if (defPlus > 0) {
tempDisp = tempDisp + (("Defence +" + defPlus) + "\r");
defPlus = 0;
}
if (tempDisp == "") {
this[_global.misc.party[i]].gains_txt.text = "You feel no improvement";
} else {
this[_global.misc.party[i]].gains_txt.text = tempDisp;
}
tempDisp = "";
i++;
}
Symbol 207 MovieClip Frame 17
gotoAndPlay ("high");
Symbol 207 MovieClip Frame 26
gotoAndPlay ("med");
Symbol 207 MovieClip Frame 38
gotoAndPlay ("low");
Symbol 219 MovieClip [Victory-Defeat-info] Frame 1
stop();
var currchar = this._name;
var hpOfMax = ((_global[currchar].health / _global[currchar].maxHP) * 100);
healthbar_mc._xscale = hpOfMax;
hp_txt.text = _global[currchar].health;
hpmax_txt.text = _global[currchar].maxHP;
mp_txt.text = _global[currchar].mana;
mpmax_txt.text = _global[currchar].maxMP;
manabar_mc._xscale = (_global[currchar].mana / _global[currchar].maxMP) * 100;
rHand_txt.text = _global[currchar].rHand;
lHand_txt.text = _global[currchar].lHand;
if (hpOfMax < 35) {
EKG_mc.gotoAndPlay("low");
} else if (hpOfMax < 70) {
EKG_mc.gotoAndPlay("med");
} else {
EKG_mc.gotoAndPlay("high");
}
var str = _global[currchar].strength;
var acc = _global[currchar].accuracy;
var def = _global[currchar].defence;
var temp;
if (str > acc) {
temp = str;
} else {
temp = acc;
}
if (def > temp) {
temp = def;
}
statscale_txt.text = temp;
attackbar_mc._yscale = (str / temp) * 100;
rangebar_mc._yscale = (acc / temp) * 100;
shieldbar_mc._yscale = (def / temp) * 100;
if ((str / temp) < 0.4) {
attackText_mc._y = attackText_mc._y - ((str / temp) * 100);
}
if ((acc / temp) < 0.4) {
rangeText_mc._y = rangeText_mc._y - ((acc / temp) * 100);
}
if ((def / temp) < 0.4) {
shieldText_mc._y = shieldText_mc._y - ((def / temp) * 100);
}
Symbol 222 MovieClip Frame 60
_parent.jump();
delete _parent.onEnterFrame;
_parent._x = 0;
_parent._y = 0;
Symbol 222 MovieClip Frame 75
_root.whosTurn(0);
_parent.removeMovieClip();
Symbol 223 MovieClip [BattleIntro] Frame 1
function jump() {
_root.smsBool = false;
_root.vCam_mc.resetStage();
_root.gotoAndPlay("battle");
}
stop();
_root.smsBool = true;
clearInterval(_root.enemyInterval);
Key.removeListener(_root.watchKeyBoard);
this._x = _root.vCam_mc._x - (_root.vCam_mc._width / 2);
this._y = _root.vCam_mc._y - (_root.vCam_mc._height / 2);
this.onEnterFrame = function () {
this._x = _root.vCam_mc._x - (_root.vCam_mc._width / 2);
this._y = _root.vCam_mc._y - (_root.vCam_mc._height / 2);
};
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 25
stop();
Symbol 239 MovieClip Frame 1
_root.happening = true;
Symbol 239 MovieClip Frame 37
_parent.who.gotoAndPlay("hurting");
Instance of Symbol 113 MovieClip in Symbol 239 MovieClip Frame 37
onClipEvent (load) {
gotoAndPlay (10);
}
Instance of Symbol 113 MovieClip in Symbol 239 MovieClip Frame 37
onClipEvent (load) {
gotoAndPlay (11);
}
Symbol 239 MovieClip Frame 42
_parent.who.gotoAndPlay("hurting");
Symbol 239 MovieClip Frame 47
_parent.who.gotoAndPlay("hurting");
Symbol 239 MovieClip Frame 52
_parent.who.gotoAndPlay("hurting");
Symbol 239 MovieClip Frame 56
_parent.who.gotoAndPlay("hurting");
Symbol 239 MovieClip Frame 60
_parent.who.gotoAndPlay("hurting");
Symbol 239 MovieClip Frame 64
_root.range(_parent, _parent.who, false, 1);
_parent.who.gotoAndPlay("hurting");
_root.gotoAndPlay("check");
Symbol 239 MovieClip Frame 105
_root.happening = false;
_parent.gotoAndPlay("idle");
Symbol 240 MovieClip Frame 1
_root.happening = true;
Symbol 240 MovieClip Frame 36
_parent._x = _parent.who._x + 40;
_parent._y = _parent.who._y - 10;
_parent.swapDepths(_parent.who.getDepth() + 1);
Symbol 240 MovieClip Frame 41
_parent.who.gotoAndPlay("hurting");
Symbol 240 MovieClip Frame 61
_root.attack(_parent, _parent.who);
_parent.who.gotoAndPlay("hurting");
_root.gotoAndPlay("check");
Symbol 240 MovieClip Frame 77
_parent._x = _parent.posX;
_parent._y = _parent.posY;
_parent.swapDepths(_parent.posD);
Symbol 240 MovieClip Frame 98
_root.happening = false;
_parent.gotoAndPlay("idle");
Symbol 280 MovieClip Frame 50
stop();
Symbol 282 MovieClip Frame 1
_root.happening = true;
_parent.swapDepths(200);
Symbol 282 MovieClip Frame 59
body.gotoAndPlay(2);
Symbol 282 MovieClip Frame 91
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 95
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 99
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 103
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 107
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 111
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 115
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 119
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 123
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 127
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 131
_parent.who.gotoAndPlay("hurting");
Symbol 282 MovieClip Frame 136
_root.range(_parent, _parent.who, false, 1);
_parent.who.gotoAndPlay("hurting");
_root.gotoAndPlay("check");
Symbol 282 MovieClip Frame 148
body.gotoAndPlay(28);
Symbol 282 MovieClip Frame 214
_root.happening = false;
_parent.swapDepths(_parent.posD);
_parent.gotoAndPlay("idle");
Symbol 303 MovieClip Frame 69
_root.deaths--;
stop();
_parent.removeMovieClip();
Symbol 304 MovieClip Frame 13
_parent.gotoAndPlay("idle");
Symbol 305 MovieClip [BaddieBoss1] Frame 1
function takeTurn() {
var _local2 = Math.floor(Math.random() * _root.players.length);
who = _root.players[_local2];
if (attack3 > 5) {
if (!aText) {
LED([["Termin", "Target resisting conventional elimination"], ["t", "Switching to [PAW] Prototype Adaptive Weapon"]]);
aText = true;
_root.bossInterval = setInterval(function () {
_root.led_mc.remove();
gotoAndPlay ("attacking2");
clearInterval(_root.bossInterval);
}, 5999);
} else {
gotoAndPlay ("attacking2");
}
} else {
_local2 = Math.floor(Math.random() * 2);
gotoAndPlay("attacking" + _local2);
}
attack3++;
}
var maxHP = 1200;
var nbrOfAttacks = 1;
var armor = 5;
var armorProcent = 0;
var who;
var health;
var attack3 = 0;
var aText = false;
damage = function () {
fickludd();
if (_currentframe == 10) {
return(17 + (Math.random() * 6));
}
if (_currentframe == 30) {
return(((attack3 - 5) * 20) + (Math.random() * 7));
}
return(25 + (Math.random() * 10));
};
Symbol 305 MovieClip [BaddieBoss1] Frame 2
stop();
Symbol 305 MovieClip [BaddieBoss1] Frame 9
gotoAndPlay (1);
Symbol 305 MovieClip [BaddieBoss1] Frame 10
stop();
Symbol 305 MovieClip [BaddieBoss1] Frame 20
stop();
Symbol 305 MovieClip [BaddieBoss1] Frame 30
stop();
Symbol 305 MovieClip [BaddieBoss1] Frame 40
stop();
Symbol 305 MovieClip [BaddieBoss1] Frame 50
stop();
Symbol 305 MovieClip [BaddieBoss1] Frame 59
gotoAndPlay (1);
Symbol 310 MovieClip [damageNbr] Frame 25
this.removeMovieClip();
Symbol 310 MovieClip [damageNbr] Frame 50
this.removeMovieClip();
Symbol 310 MovieClip [damageNbr] Frame 75
this.removeMovieClip();
Symbol 316 MovieClip [LED] Frame 1
led_txt.selectable = false;
who_txt.selectable = false;
var story;
var point = 0;
this._x = _root.vCam_mc._x - (_root.vCam_mc._width / 2);
this._y = _root.vCam_mc._y - (_root.vCam_mc._height / 2);
nextText = function () {
point++;
if (point == story.length) {
point = 0;
}
led_txt.text = story[point][1];
if (story[point][0].length > 2) {
who_txt.text = story[point][0];
}
};
remove = function () {
clearInterval(_root.ledInterval);
_root.led_mc.removeMovieClip();
};
Symbol 326 MovieClip [HitExplosion] Frame 9
this.removeMovieClip();
Symbol 330 MovieClip [Wrist Shield] Frame 1
stop();
this._visible = false;
var armor = 4;
var armorProcent = 80;
var action = "Shield";
var desc = "Energy Shield attached on the wrist";
Symbol 330 MovieClip [Wrist Shield] Frame 6
stop();
damage_txt.text = d;
NoA_txt.text = nbrOfAttacks;
Symbol 364 MovieClip Frame 17
gotoAndPlay (1);
Symbol 378 MovieClip Frame 17
gotoAndPlay (1);
Symbol 389 MovieClip Frame 17
gotoAndPlay (1);
Symbol 393 MovieClip [Back button] Frame 1
stop();
Symbol 393 MovieClip [Back button] Frame 2
stop();
Symbol 396 MovieClip [Choise] Frame 1
stop();
Symbol 396 MovieClip [Choise] Frame 2
stop();
Symbol 411 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 418 MovieClip Frame 81
_parent.play();
Symbol 424 MovieClip Frame 1
i = 0;
while (i++) {
this[i].gotoAndPlay(i);
i < 5;
}
Symbol 424 MovieClip Frame 2
stop();
Instance of Symbol 426 MovieClip in Symbol 429 MovieClip Frame 27
/* no clip actions */
Symbol 431 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 431 MovieClip Frame 2
gotoAndPlay (1);
Symbol 431 MovieClip Frame 3
b_btn.onRelease = function () {
_root.menuBeep.start();
play();
};
Symbol 431 MovieClip Frame 4
stop();
Symbol 431 MovieClip Frame 154
_root.play();
Symbol 438 MovieClip Frame 1
stop();
Symbol 481 Button
on (release) {
if (c_mc._currentframe == 9) {
c_mc.gotoAndPlay("Sizedown");
} else {
c_mc.gotoAndPlay("Fickludd");
}
}
Symbol 524 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local5 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local5);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local5;
_parent._yscale = 100 * _local4;
_root.led_mc._x = this._x - (this._width / 2);
_root.led_mc._y = this._y - (this._height / 2);
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = function () {
camControl();
};
camControl();
this.onUnload = resetStage;
Symbol 539 MovieClip Frame 112
stop();
Symbol 549 MovieClip Frame 8
f1.gotoAndPlay(5);
Symbol 549 MovieClip Frame 30
stop();
Symbol 586 Button
on (release) {
getURL ("http://www.ustudios.net/fickludd/index.html", "_blank");
}
Symbol 590 MovieClip Frame 295
stop();