Frame 1
stop();
_root.kongregateServices.connect();
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Stage.showMenu = false;
Stage.scaleMode = "noScale";
startbtn._visible = false;
var pct = 0;
var iP = 1;
while (iP <= 10) {
p[iP] = false;
iP++;
}
var soundOn = true;
_level0.onEnterFrame = function () {
if (Key.isDown(32)) {
if (!p[5]) {
p[5] = true;
if (pct == 100) {
nextFrame();
}
}
} else {
p[5] = false;
}
if (pct < 100) {
pct = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
var _local2 = Math.round(_level0.pct);
startmsg = "Loading... " + _local2;
} else {
pct = 100;
startmsg = "Press Spacebar to start!";
startbtn._visible = true;
}
};
startbtn.onRelease = function () {
if (pct == 100) {
nextFrame();
}
};
Frame 2
function checkTM() {
if (Key.isDown(84)) {
if (!p[9]) {
p[9] = true;
toggleQuality();
}
} else {
p[9] = false;
}
if (Key.isDown(77)) {
if (!p[10]) {
p[10] = true;
toggleSound();
}
} else {
p[10] = false;
}
}
function toggleQuality() {
if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "MEDIUM";
}
qualitybox.gotoAndStop(_quality);
}
function toggleSound() {
if (soundOn) {
soundOn = false;
soundicon.gotoAndStop(2);
gSound = new Sound();
gSound.setVolume(0);
} else {
soundOn = true;
soundicon.gotoAndStop(1);
gSound = new Sound();
gSound.setVolume(100);
}
}
function makeFade(nextframe) {
if (nextframe != "") {
if (!gFaded) {
gFaded = true;
bigfader.nextframe = nextframe;
bigfader.gotoAndPlay("out");
} else {
gFaded = false;
}
}
}
function objCompare(objA, objB) {
if ((thisObj.objclass == objA) && (tempObj.objclass == thisObj.objB)) {
aObj = thisObj;
bObj = tempObj;
return(true);
}
if ((thisObj.objclass == objB) && (tempObj.objclass == thisObj.objA)) {
bObj = thisObj;
aObj = tempObj;
return(true);
}
return(false);
}
function displayLongTime(seconds) {
var _local4 = 0;
var _local1 = 0;
var _local3 = 0;
if (seconds > 0) {
while (seconds >= 60) {
seconds = seconds - 60;
_local1 = _local1 + 1;
}
}
_local4 = seconds;
if (_local1 > 0) {
while (_local1 >= 60) {
_local1 = _local1 - 60;
_local3 = _local3 + 1;
}
}
if (_local1 < 10) {
_local1 = "0" + _local1;
}
if (_local4 < 10) {
_local4 = "0" + _local4;
}
return((((_local3 + ":") + _local1) + ":") + _local4);
}
function dd(ddnum) {
if (ddnum < 10) {
return("0" + ddnum);
}
return(ddnum);
}
function td(ddnum) {
if (ddnum < 10) {
return("00" + ddnum);
}
if (ddnum < 100) {
return("0" + ddnum);
}
return(ddnum);
}
function randbtwn(min, max) {
return(mRn(mRd() * (max - min)) + min);
}
function streamDialog(srcvar, destvar) {
destvar = srcvar.slice(0, Math.min(dCount, srcvar.length));
dCount = dCount + 1;
if (dCount >= (srcvar.length + 60)) {
return(false);
}
return(true);
}
function spawnObject(objname, objclass, pos_x, pos_y, lyroffset) {
var _local4 = false;
var _local3;
dind = 0;
while (dind <= objCount) {
var _local1;
_local1 = stage["obj" + dd(dind)];
if (_local1.isDead) {
_local4 = true;
_local1.removeMovieClip();
stage.attachMovie(objname, "obj" + dd(dind), dind + lyroffset);
_local3 = stage["obj" + dd(dind)];
_local3.isDead = false;
_local3._visible = true;
_local3.defLayer = dind + lyroffset;
_local3.swapDepths(dind + lyroffset);
dind = objCount + 999;
}
dind++;
}
if (!_local4) {
stage.attachMovie(objname, "obj" + dd(objCount), objCount + lyroffset);
_local3 = stage["obj" + dd(objCount)];
_local3.isDead = false;
_local3.index = objCount;
_local3.defLayer = objCount + lyroffset;
objCount = objCount + 1;
}
_local3._x = pos_x;
_local3._y = pos_y;
_local3.objname = objname;
_local3.objclass = objclass;
return(_local3);
}
function removeObject(anyobj) {
anyobj.isDead = true;
anyobj._visible = false;
if (anyobj.index == (objCount - 1)) {
var _local1 = objCount - 1;
while (_local1 >= 1) {
var _local2 = stage["obj" + dd(_local1)];
if (_local2.isDead) {
removeMovieClip(_local2);
objCount = objCount - 1;
} else {
_local1 = -1;
}
_local1--;
}
}
}
function attachEffect(anyped, effectname) {
stage.attachMovie(effectname, "sfx" + dd(fxCount), fxCount + 10000);
var _local1 = stage["sfx" + dd(fxCount)];
fxCount = fxCount + 1;
if (fxCount > 20) {
fxCount = 0;
}
_local1._x = anyped._x;
_local1._y = anyped._y;
_local1._rotation = randbtwn(0, 360);
}
function floatWords(anyped, wordtxt) {
stage.attachMovie("floatwords", "sfx" + dd(fxCount), fxCount + 10000);
var _local1 = stage["sfx" + dd(fxCount)];
_local1.word.txt = wordtxt;
fxCount = fxCount + 1;
if (fxCount > 20) {
fxCount = 0;
}
_local1._x = anyped._x;
_local1._y = anyped._y;
}
function generateRandomColor(rBase, rRand, gBase, gRand, bBase, bRand) {
var _local5 = rBase + random(rRand);
var _local6 = gBase + random(gRand);
var _local4 = bBase + random(bRand);
var _local2 = _local5.toString(16);
if (_local5 < 16) {
_local2 = "0" + _local2;
}
var _local1 = _local6.toString(16);
if (_local6 < 16) {
_local1 = "0" + _local1;
}
var _local3 = _local4.toString(16);
if (_local4 < 16) {
_local3 = "0" + _local3;
}
var _local8 = (_local2 + _local1) + _local3;
var _local7 = parseInt(_local8, 16);
return(_local7);
}
function spitOne(anyarray) {
var _local1 = randbtwn(0, anyarray.length - 1);
var _local3 = anyarray[_local1];
anyarray.splice(_local1, 1);
return(_local3);
}
mRn = Math.round;
mRd = Math.random;
mSq = Math.sqrt;
mPw = Math.pow;
mMx = Math.max;
mMn = Math.min;
mAt = Math.atan;
mPi = Math.PI;
mSi = Math.sin;
mCo = Math.cos;
mFl = Math.floor;
mAb = Math.abs;
var dTxt = "";
var dCount = 0;
var gFaded = false;
var p = new Array();
soundicon.onRelease = function () {
soundOn = !soundOn;
if (!soundOn) {
music.gotoAndStop(1);
} else if (gameMode == 1) {
music.gotoAndStop("story");
} else {
music.gotoAndStop("game");
}
};
nextFrame();
Frame 3
stop();
p[5] = true;
_level0.onEnterFrame = function () {
loadVariablesNum ("nerdlock.txt", 0);
if (Key.isDown(32)) {
if (!p[5]) {
p[5] = true;
if (_level0.glock == "2105") {
_level0.nextFrame();
} else {
_level0.makeFade("pirated");
}
}
} else {
p[5] = false;
}
};
Frame 4
function loadData() {
mData = SharedObject.getLocal(g_dataFile);
lastScore1 = mData.data.lastScore1;
lastScore2 = mData.data.lastScore2;
lastScore3 = mData.data.lastScore3;
mData.flush();
}
function saveGame() {
mData = SharedObject.getLocal(g_dataFile);
mData.data.lastScore1 = lastScore1;
mData.data.lastScore2 = lastScore2;
mData.data.lastScore3 = lastScore3;
mData.flush();
}
function refreshSaveSlot() {
mData = SharedObject.getLocal(g_dataFile);
if (mData.data.lastScore1 == undefined) {
mData.data.lastScore1 = 0;
mData.data.lastScore2 = 0;
mData.data.lastScore3 = 0;
}
loadData();
mData.flush();
}
g_dataFile = "g_cluesweep_01";
var sSlot = 0;
var gCash = 0;
var gMission = 0;
btn01.gotoAndStop(2);
refreshSaveSlot();
startbtn.onRelease = function () {
makeFade("game");
};
resetbtn.onRelease = function () {
lastScore1 = 0;
lastScore2 = 0;
lastScore3 = 0;
saveGame();
scoredisplay = "Average Score: $0";
};
averageScore = mRn(((lastScore1 + lastScore2) + lastScore3) / 3);
scoredisplay = "Average Score: $" + averageScore;
_root.kongregateStats.submit("s1_score", averageScore);
Frame 5
vname1 = new Array();
vname1[0] = "Ms ";
vname1[1] = "Mr ";
vname1[2] = "Mr ";
vname1[3] = "Mrs ";
vname1[4] = "Sir ";
vname1[5] = "Lord ";
vname2 = new Array();
i = 0;
vname2[i] = "Brown";
i++;
vname2[i] = "Smith";
i++;
vname2[i] = "Wayne";
i++;
vname2[i] = "Gerald";
i++;
vname2[i] = "Pitts";
i++;
vname2[i] = "Peach";
i++;
vname2[i] = "Peacock";
i++;
vname2[i] = "Jefferson";
i++;
vname2[i] = "Jacobs";
i++;
vname2[i] = "Robinson";
i++;
vname2[i] = "Carter";
i++;
vname2[i] = "Joseph";
i++;
vname2[i] = "Samson";
i++;
vname2[i] = "Walter";
i++;
deathtype1 = new Array();
i = 0;
deathtype1[i] = " brutally strangled ";
i++;
deathtype1[i] = " with multiple stab wounds ";
i++;
deathtype1[i] = " poisoned ";
i++;
deathtype1[i] = " shot several times ";
i++;
deathtype1[i] = " shot in the head ";
i++;
deathtype1[i] = " shot through the heart ";
i++;
deathtype1[i] = " slashed to death ";
i++;
deathtype1[i] = " horribly mangled ";
i++;
deathtype1[i] = " burned to death ";
i++;
deathtype1[i] = " suffocated with a pillow ";
i++;
deathtype1[i] = " strangled with a rope ";
i++;
deathtype1[i] = " bludgeoned to death ";
i++;
deathtype1[i] = " assassinated with a high calibre rifle ";
i++;
deathtype1[i] = " with a broken neck ";
i++;
deathtype2 = new Array();
i = 0;
deathtype2[i] = "in the mansion.";
i++;
deathtype2[i] = "at the office.";
i++;
deathtype2[i] = "in the garden.";
i++;
deathtype2[i] = "in a shady motel.";
i++;
deathtype2[i] = "in a warehouse down by the docks.";
i++;
deathtype2[i] = "in a luxury hotel room.";
i++;
deathtype2[i] = "by the fireplace.";
i++;
deathtype2[i] = "in a car.";
i++;
deathtype2[i] = "under a bridge.";
i++;
deathtype2[i] = "by the roadside.";
i++;
deathtype2[i] = "in an empty alley.";
i++;
deathtype2[i] = "in the bedroom.";
i++;
deathtype2[i] = "in the kitchen.";
i++;
deathtype2[i] = "in the study.";
i++;
deathtype2[i] = "in the hallway.";
i++;
suspectName = new Array();
i = 0;
suspectName[i] = "The SIBLING";
i++;
suspectName[i] = "The COLLEAGUE";
i++;
suspectName[i] = "The NEIGHBOUR";
i++;
suspectName[i] = "The ASSOCIATE";
i++;
suspectName[i] = "The BUTLER";
i++;
suspectName[i] = "The LOVER";
i++;
suspectName[i] = "The SPOUSE";
i++;
suspectName[i] = "The COUSIN";
i++;
suspectName[i] = "The FRIEND";
i++;
suspectName[i] = "The VISITOR";
i++;
suspectName[i] = "The PASTOR";
i++;
suspectName[i] = "The LAWYER";
i++;
suspectName[i] = "The DOCTOR";
i++;
suspectName[i] = "The STRANGER";
i++;
suspectName[i] = "The ORPHAN";
i++;
suspectName[i] = "The HIRED HELP";
i++;
suspectName[i] = "The WITNESS";
i++;
suspectTraits = new Array();
i = 0;
suspectTraits[i] = "Paranoid";
i++;
suspectTraits[i] = "A Convicted Felon";
i++;
suspectTraits[i] = "Very Intelligent";
i++;
suspectTraits[i] = "Unusually Agile";
i++;
suspectTraits[i] = "Very Rich";
i++;
suspectTraits[i] = "A Chain Smoker";
i++;
suspectTraits[i] = "Extremely Strong";
i++;
suspectTraits[i] = "A Meticulous Planner";
i++;
suspectTraits[i] = "An Expert at Lockpicking";
i++;
suspectTraits[i] = "Deep In Debt";
i++;
suspectTraits[i] = "Brutally Violent";
i++;
suspectTraits[i] = "Addicted to Drugs";
i++;
suspectTraits[i] = "Hiding a Dark Secret";
i++;
suspectTraits[i] = "Bearing a Grudge Against the Victim";
i++;
suspectTraits[i] = "An Alcoholic";
i++;
specialTileIndex = new Array();
specialTileIndex[0] = 1;
specialTileIndex[1] = 2;
specialTileIndex[2] = 3;
specialTileIndex[3] = 4;
specialTileIndex[4] = 5;
specialTiles = new Array();
specialTiles[1] = "Search Warrant";
specialTiles[2] = "Large Reward";
specialTiles[3] = "Airtight Alibi";
specialTiles[4] = "High Profile";
specialTiles[5] = "Red Herring";
specialTileDesc = new Array();
specialTileDesc[1] = "Having a Search Warrant gives you 5 additional Time to look for clues.";
specialTileDesc[2] = "The Large Reward gives you an additional $15 if you successfully solve the case.";
specialTileDesc[3] = "Airtight Alibi";
specialTileDesc[4] = "A High Profile case gives you an additional $1 income from numbered tiles!";
specialTileDesc[5] = "The Red Herring you found has cost you 2 additional Time.";
function addCash(amt) {
gCash = gCash + amt;
cashTxt = "$" + gCash;
}
var gTime = 45;
var gClues = 12;
var gTimeSpent = 0;
var gCluesFound = 0;
var gWeaponFound = false;
var gCombo = 0;
var gRewardFound = false;
var numSuspects = 6;
var solveMode = false;
var lockPopup = true;
var gameWon = false;
var gameEnded = false;
theMurderer = _level0["suspect" + randbtwn(1, numSuspects)];
gMission = gMission + 1;
tx = 1;
while (tx <= 9) {
ty = 1;
while (ty <= 9) {
stage.attachMovie("inv_tile", (("tile" + tx) + "") + ty, (ty * 10) + tx);
thisTile = stage[(("tile" + tx) + "") + ty];
thisTile._x = ((tx - 1) * 30) + 25;
thisTile._y = ((ty - 1) * 30) + 50;
thisTile.opened = false;
thisTile.type = "blank";
thisTile.num = 0;
thisTile.onRollOver = function () {
if (!this.opened) {
if (((!gameEnded) && (!solveMode)) && (!lockPopup)) {
this.swapDepths(1000);
this.gotoAndStop(2);
popup.gotoAndStop(1);
}
} else if (((!lockPopup) && (!gameEnded)) && (!solveMode)) {
if (this.type == "clue") {
popup.gotoAndStop("clue_quick1");
popup.txt = this.txt;
} else if (this.type == "clue2") {
popup.gotoAndStop("clue_quick2");
popup.txt = this.txt;
} else if (this.type == "clue3") {
popup.gotoAndStop("clue_quick3");
popup.txt = this.txt;
} else if (this.type == "victim") {
popup.gotoAndStop("victim_quick");
} else if (this.type == "blank") {
if (this.num == "") {
popup.gotoAndStop("blank2");
} else {
popup.gotoAndStop("blank1");
}
} else if (this.type == "special") {
popup.gotoAndStop("special_quick");
popup.txt = this.txt;
popup.txt2 = this.txt2;
}
}
};
thisTile.onRollOut = function () {
if (!this.opened) {
this.gotoAndStop(1);
}
};
thisTile.onRelease = function () {
if (((!lockPopup) && (!gameEnded)) && (!solveMode)) {
if (!this.opened) {
if (gTime > 0) {
gTime = gTime - 1;
gTimeSpent = gTimeSpent + 1;
this.opened = true;
if (this.type == "blank") {
this.gotoAndStop("blank");
if (this.num == "") {
popup.gotoAndStop("blank2");
} else {
addCash(this.num + gCombo);
popup.gotoAndStop("blank1");
}
} else if (this.type == "clue") {
addCash(5);
gCluesFound = gCluesFound + 1;
lockPopup = true;
this.gotoAndStop("clue");
popup.gotoAndStop("clue");
popup.txt = this.txt;
} else if (this.type == "special") {
lockPopup = true;
this.gotoAndStop("special" + this.thisIndex);
popup.gotoAndStop("special");
popup.txt = this.txt;
popup.txt2 = this.txt2;
if (this.thisIndex == 1) {
gTime = gTime + 5;
} else if (this.thisIndex == 2) {
gCombo = 1;
} else if (this.thisIndex == 4) {
gRewardFound = true;
} else if (this.thisIndex == 5) {
gTime = gTime - 2;
if (gTime < 0) {
gTime = 0;
}
}
} else if (this.type == "weapon") {
addCash(25);
gWeaponFound = true;
lockPopup = true;
this.gotoAndStop("weapon");
popup.gotoAndStop("weapon");
} else if (this.type == "clue2") {
addCash(10);
gCluesFound = gCluesFound + 1;
lockPopup = true;
this.gotoAndStop("clue2");
popup.gotoAndStop("clue2");
popup.txt = this.txt;
} else if (this.type == "clue3") {
addCash(10);
gCluesFound = gCluesFound + 1;
lockPopup = true;
this.gotoAndStop("clue3");
popup.gotoAndStop("clue3");
popup.txt = this.txt;
_level0["suspect" + this.thisIndex][("trait" + this.trait) + "Known"] = true;
}
} else {
lockPopup = true;
popup.gotoAndStop("notime");
}
} else if (this.type == "victim") {
lockPopup = true;
popup.gotoAndStop("intro");
popup.txt = fulldTxt;
} else if (this.type == "clue") {
lockPopup = true;
popup.gotoAndStop("clue");
popup.txt = this.txt;
} else if (this.type == "clue2") {
lockPopup = true;
popup.gotoAndStop("clue2");
popup.txt = this.txt;
} else if (this.type == "clue3") {
lockPopup = true;
popup.gotoAndStop("clue3");
popup.txt = this.txt;
} else if (this.type == "weapon") {
lockPopup = true;
this.gotoAndStop("weapon");
popup.gotoAndStop("weapon");
}
}
};
ty++;
}
tx++;
}
sp = 1;
while (sp <= 6) {
if (numSuspects < sp) {
thisSuspect._visible = false;
}
var thisSuspect = _level0["suspect" + sp];
thisSuspect.sName = spitOne(suspectName);
thisSuspect.sTrait1 = suspectTraits[randbtwn(0, suspectTraits.length - 1)];
thisSuspect.sTrait2 = thisSuspect.sTrait1;
thisSuspect._alpha = 50;
thisSuspect.cross._visible = false;
while (thisSuspect.sTrait2 == thisSuspect.sTrait1) {
thisSuspect.sTrait2 = suspectTraits[randbtwn(0, suspectTraits.length - 1)];
}
thisSuspect.trait1Known = false;
thisSuspect.trait2Known = false;
thisSuspect.head.eyes.gotoAndStop(randbtwn(1, 5));
thisSuspect.head.gotoAndStop(randbtwn(1, 13));
thisSuspect.body.gotoAndStop(randbtwn(1, 13));
if (thisSuspect.sName == "The PASTOR") {
thisSuspect.body.gotoAndStop(14);
}
if (randbtwn(1, 10) <= 6) {
thisSuspect.sHand = "Right-handed";
} else {
thisSuspect.sHand = "Left-handed";
}
thisSuspect.onRollOver = function () {
this._alpha = 100;
sName = this.sName;
if ((!gameEnded) && (!lockPopup)) {
if (!solveMode) {
popup.gotoAndStop("suspect");
} else {
popup.gotoAndStop("suspect2");
}
popup.txt = (((((this.sName + " is:") + newline) + "-") + this.sHand) + newline) + "-";
if (this.trait1Known) {
popup.txt = popup.txt + this.sTrait1;
} else {
popup.txt = popup.txt + "???";
}
popup.txt = popup.txt + "\r-";
if (this.trait2Known) {
popup.txt = popup.txt + this.sTrait2;
} else {
popup.txt = popup.txt + "???";
}
}
};
thisSuspect.onRollOut = function () {
this._alpha = 50;
sName = "";
if (((!gameEnded) && (!solveMode)) && (!lockPopup)) {
popup.gotoAndStop(1);
} else if (((!gameEnded) && (solveMode)) && (!lockPopup)) {
popup.gotoAndStop("solve");
}
};
thisSuspect.onRelease = function () {
if (!gameEnded) {
if (solveMode) {
gameEnded = true;
if (this == theMurderer) {
gameWon = true;
popup.gotoAndStop("win");
popup.txt = ("Congratulations! You have successfully identified " + theMurderer.sName) + " as the Murderer!";
popup.txt = popup.txt + ("\rTime Bonus: +$" + (gTime * 3));
addCash(gTime * 3);
if (gWeaponFound) {
popup.txt = popup.txt + "\rMurder Weapon Found: +$25";
}
if (gRewardFound) {
popup.txt = popup.txt + "\rLarge Reward: +$15";
addCash(15);
}
addCash(25);
popup.txt = popup.txt + ("\rFinal Score: $" + gCash);
} else {
popup.gotoAndStop("lose");
popup.txt = ("You have accused the wrong Suspect. The real Murderer was " + theMurderer.sName) + "! (-$25)";
addCash(-25);
if (gCash < 0) {
gCash = 0;
}
}
} else {
this.cross._visible = !this.cross._visible;
}
}
};
sp++;
}
rx = randbtwn(1, 9);
ry = randbtwn(1, 9);
thisTile = stage[(("tile" + rx) + "") + ry];
thisTile.type = "victim";
thisTile.opened = true;
thisTile.gotoAndStop("victim");
lockPopup = true;
st = 1;
while (st == 1) {
rx = randbtwn(1, 9);
ry = randbtwn(1, 9);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
thisTile.type = "weapon";
st = st + 1;
}
}
st = 1;
while (st <= gClues) {
rx = randbtwn(1, 9);
ry = randbtwn(1, 9);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
var thisTrait = spitOne(suspectTraits);
if ((thisTrait == theMurderer.sTrait1) || (thisTrait == theMurderer.sTrait2)) {
thisTile.type = "clue2";
thisTile.txt = ("The clue indicates that the Murderer was " + thisTrait) + "!";
} else {
thisTile.type = "clue";
thisTile.txt = ("The clue indicates that the Murderer was NOT " + thisTrait) + ".";
}
st = st + 1;
}
}
st = 1;
while (st == 1) {
rx = randbtwn(1, 9);
ry = randbtwn(1, 9);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
thisTile.type = "clue2";
thisTile.txt = ("The clue indicates that the Murderer was " + theMurderer.sHand) + "!";
st = st + 1;
gClues = gClues + 1;
}
}
st = 1;
while (st <= numSuspects) {
rx = randbtwn(1, 9);
ry = randbtwn(1, 9);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
thisTile.type = "clue3";
var thisTrait = _level0["suspect" + st].sTrait1;
thisTile.thisIndex = st;
thisTile.trait = 1;
thisTile.txt = ((("The clue indicates that " + _level0["suspect" + st].sName) + " is ") + thisTrait) + "!";
st = st + 1;
gClues = gClues + 1;
}
}
st = 1;
while (st <= numSuspects) {
rx = randbtwn(1, 9);
ry = randbtwn(1, 9);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
thisTile.type = "clue3";
var thisTrait = _level0["suspect" + st].sTrait2;
thisTile.thisIndex = st;
thisTile.trait = 2;
thisTile.txt = ((("The clue indicates that " + _level0["suspect" + st].sName) + " is ") + thisTrait) + "!";
st = st + 1;
gClues = gClues + 1;
}
}
var innocentGuy;
st = 1;
while (st <= 1) {
sus = randbtwn(1, numSuspects);
if (_level0["suspect" + sus] != theMurderer) {
innocentGuy = _level0["suspect" + sus];
st = st + 1;
}
}
st = 1;
while (st <= 5) {
rx = randbtwn(1, 9);
ry = randbtwn(1, 9);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
thisTile.type = "special";
thisTile.thisIndex = st;
thisTile.txt = specialTiles[thisTile.thisIndex];
thisTile.txt2 = specialTileDesc[thisTile.thisIndex];
if (thisTile.thisIndex == 3) {
thisTile.txt2 = ("You discovered that " + innocentGuy.sName) + " is innocent and has an Airtight Alibi!";
}
st = st + 1;
}
}
st = 1;
while (st <= 5) {
rx = randbtwn(1, 9);
ry = randbtwn(1, 9);
thisTile = stage[(("tile" + rx) + "") + ry];
if ((thisTile.type == "blank") && (!thisTile.opened)) {
thisTile.opened = true;
thisTile.gotoAndStop("blank");
st = st + 1;
}
}
tx = 1;
while (tx <= 9) {
ty = 1;
while (ty <= 9) {
thisTile = stage[(("tile" + tx) + "") + ty];
var otherTiles = new Array();
ot = 0;
if ((ty > 1) && (tx > 1)) {
otherTiles[ot] = stage[(("tile" + (tx - 1)) + "") + (ty - 1)];
ot++;
}
if (ty > 1) {
otherTiles[ot] = stage[(("tile" + (tx + 0)) + "") + (ty - 1)];
ot++;
}
if ((ty > 1) && (tx < 9)) {
otherTiles[ot] = stage[(("tile" + (tx + 1)) + "") + (ty - 1)];
ot++;
}
if (tx > 1) {
otherTiles[ot] = stage[(("tile" + (tx - 1)) + "") + (ty + 0)];
ot++;
}
if (tx < 9) {
otherTiles[ot] = stage[(("tile" + (tx + 1)) + "") + (ty + 0)];
ot++;
}
if ((ty < 9) && (tx > 1)) {
otherTiles[ot] = stage[(("tile" + (tx - 1)) + "") + (ty + 1)];
ot++;
}
if (ty < 9) {
otherTiles[ot] = stage[(("tile" + (tx + 0)) + "") + (ty + 1)];
ot++;
}
if ((ty < 9) && (tx < 9)) {
otherTiles[ot] = stage[(("tile" + (tx + 1)) + "") + (ty + 1)];
ot++;
}
ott = 0;
while (ott < otherTiles.length) {
if (otherTiles[ott].type != "blank") {
thisTile.num = thisTile.num + 1;
}
ott++;
}
if (thisTile.num == 0) {
thisTile.num = "";
}
ty++;
}
tx++;
}
clockicon.onRollOver = function () {
if (((!gameEnded) && (!solveMode)) && (!lockPopup)) {
popup.gotoAndStop("clock");
}
};
clockicon.onRollOut = function () {
if (((!gameEnded) && (!solveMode)) && (!lockPopup)) {
popup.gotoAndStop(1);
}
};
solvebtn.onRelease = function () {
solveMode = !solveMode;
if (solveMode) {
popup.gotoAndStop("solve");
} else {
popup.gotoAndStop(1);
}
};
var victimName = "";
victimName = vname1[randbtwn(0, 5)] + vname2[randbtwn(0, vname2.length - 1)];
var victimDeath = "";
victimDeath = deathtype1[randbtwn(0, deathtype1.length - 1)] + deathtype2[randbtwn(0, deathtype2.length - 1)];
var fulldTxt = (((((victimName + " was found dead, ") + victimDeath) + " ") + numSuspects) + " suspects have been identified.");
popup.gotoAndStop("intro");
popup.txt = fulldTxt;
Frame 6
mname = "Mission " + gMission;
clueTxt = (gCluesFound + "/") + gClues;
if (gWeaponFound) {
weaponTxt = "Yes";
} else {
weaponTxt = "No";
}
if (gameWon) {
solvedTxt = "Yes";
} else {
solvedTxt = "No";
}
lastScore3 = lastScore2;
lastScore2 = lastScore1;
lastScore1 = gCash;
saveGame();
Instance of Symbol 217 MovieClip in Frame 7
on (release) {
getURL ("http://www.kongregate.com", "_blank");
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 11
_level0.gotoAndStop(this.nextframe);
Symbol 15 MovieClip Frame 12
_level0.gFaded = false;
Symbol 31 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 71 MovieClip [inv_tile] Frame 1
stop();
Symbol 87 Button
on (release) {
_level0.makeFade("menu");
}
Symbol 89 MovieClip Frame 30
stop();
Symbol 146 Button
on (release) {
_level0.popup.gotoAndStop(1);
_level0.lockPopup = false;
}
Symbol 184 Button
on (release) {
_level0.makeFade("end");
}
Symbol 191 MovieClip Frame 1
stop();