Frame 1
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();
var soundOn = true;
soundicon.onRelease = function () {
soundOn = !soundOn;
if (!soundOn) {
music.gotoAndStop(1);
} else if (gameMode == 1) {
music.gotoAndStop("story");
} else {
music.gotoAndStop("game");
}
};
function sitelock(urls_allowed) {
lock = true;
for (x in urls_allowed) {
if (_url.indexOf(urls_allowed[x]) > 0) {
lock = false;
}
}
if (lock) {
gotoAndStop ("sitelock");
}
return(lock);
}
stop();
gFaded = false;
_root.kongregateServices.connect();
var playerName = _root.kongregateServices.getUsername();
if (playerName == undefined) {
playerName = "Player";
}
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Stage.showMenu = false;
Stage.scaleMode = "noScale";
startbtn._visible = false;
urls_allowed = [".armorgames.com", "dDevelopers"];
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) {
if (!sitelock(urls_allowed)) {
makeFade("assets");
}
_level0.onEnterFrame = null;
}
}
} 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) {
if (!sitelock(urls_allowed)) {
makeFade("assets");
}
_level0.onEnterFrame = null;
}
};
is = 1;
while (is <= 3) {
thisSuspect = _level0["suspect" + is];
thisSuspect.head.eyes.gotoAndStop(randbtwn(1, 5));
thisSuspect.head.gotoAndStop(randbtwn(1, 7));
thisSuspect.head.hair.gotoAndStop(randbtwn(1, 19));
thisSuspect.body.gotoAndStop(randbtwn(1, 13));
is++;
}
welcomeTxt = ("Welcome " + playerName) + "!";
Frame 2
stop();
soundicon.onRelease = function () {
toggleSound();
};
_level0.onEnterFrame = function () {
stop();
};
newRound = true;
var gDay = 1;
var gTotalCash = 0;
var gDiffLevel = 1;
var caseDone = new Array();
var photoDiff = new Array();
var itemBought = new Array();
click_sound = new Sound(this);
click_sound.attachSound("click2");
cash_sound = new Sound(this);
cash_sound.attachSound("cashregister");
Frame 3
var nerdook_skip = 0;
_level0.onEnterFrame = function () {
nerdook_skip = nerdook_skip + 1;
if (nerdook_skip >= 60) {
gotoAndStop ("main");
}
if (Key.isDown(32)) {
if (!pds) {
pds = true;
gotoAndStop ("main");
}
} else {
pds = false;
}
};
Frame 4
function loadData() {
mData = SharedObject.getLocal(g_dataFile);
lastScore1 = mData.data.lastScore1;
lastScore2 = mData.data.lastScore2;
lastScore3 = mData.data.lastScore3;
mi = 1;
while (mi <= 5) {
_level0["stat" + mi] = mData.data["stat" + mi];
mi++;
}
acCompleted = 0;
mi = 1;
while (mi <= 15) {
_level0["ac" + dd(mi)] = mData.data["ac" + dd(mi)];
if (_level0["ac" + dd(mi)]) {
acCompleted = acCompleted + 1;
}
mi++;
}
ii = 1;
while (ii <= 8) {
itemBought[ii] = mData.data["itemBought" + ii];
ii++;
}
ii = 1;
while (ii <= 11) {
caseDone[ii] = mData.data["caseDone" + ii];
photoDiff[ii] = mData.data["photoDiff" + ii];
ii++;
}
gTotalCash = mData.data.gTotalCash;
gDay = mData.data.gDay;
gDiffLevel = mData.data.gDiffLevel;
topCash = mData.data.topCash;
mData.flush();
}
function saveGame() {
mData = SharedObject.getLocal(g_dataFile);
mData.data.lastScore1 = lastScore1;
mData.data.lastScore2 = lastScore2;
mData.data.lastScore3 = lastScore3;
mi = 1;
while (mi <= 5) {
mData.data["stat" + mi] = _level0["stat" + mi];
mi++;
}
mi = 1;
while (mi <= 15) {
mData.data["ac" + dd(mi)] = _level0["ac" + dd(mi)];
mi++;
}
ii = 1;
while (ii <= 8) {
mData.data["itemBought" + ii] = itemBought[ii];
ii++;
}
ii = 1;
while (ii <= 11) {
mData.data["caseDone" + ii] = caseDone[ii];
mData.data["photoDiff" + ii] = photoDiff[ii];
ii++;
}
mData.data.gTotalCash = gTotalCash;
mData.data.gDay = gDay;
mData.data.gDiffLevel = gDiffLevel;
mData.data.topCash = topCash;
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;
}
if (mData.data.stat1 == undefined) {
mi = 1;
while (mi <= 5) {
mData.data["stat" + mi] = 0;
mi++;
}
mi = 1;
while (mi <= 15) {
mData.data["ac" + dd(mi)] = false;
mi++;
}
}
if (mData.data.itemBought1 == undefined) {
ii = 1;
while (ii <= 8) {
mData.data["itemBought" + ii] = false;
ii++;
}
var _local1 = new Array();
_local1[0] = 1;
_local1[1] = 2;
_local1[2] = 2;
_local1[3] = 2;
_local1[4] = 3;
_local1[5] = 3;
_local1[6] = 3;
_local1[7] = 3;
_local1[8] = 4;
_local1[9] = 4;
_local1[10] = 5;
ii = 1;
while (ii <= 11) {
mData.data["caseDone" + ii] = false;
mData.data["photoDiff" + ii] = spitOne(_local1);
ii++;
}
mData.data.gTotalCash = 0;
mData.data.gDay = 1;
mData.data.gDiffLevel = 1;
}
if (mData.data.topCash == undefined) {
mData.data.topCash = 0;
}
loadData();
mData.flush();
}
function randomize(anyclip) {
anyclip.head.eyes.gotoAndStop(randbtwn(1, 10));
anyclip.head.gotoAndStop(randbtwn(1, 7));
anyclip.head.hair.gotoAndStop(randbtwn(1, 25));
}
g_dataFile = "g_cluesweep_01";
var gCash = 0;
var gMission = 0;
var acCompleted = 0;
gFaded = false;
_level0.onEnterFrame = function () {
stop();
};
refreshSaveSlot();
loadData();
defaultMsg = "Welcome to ClueSweeper! Click on an option to select it.";
menuMsg = defaultMsg;
quickGame = false;
multiPlayer = false;
aiMode = false;
numCases = 1;
topscoretxt = "Top Score:\r$" + topCash;
Frame 5
_level0.onEnterFrame = function () {
stop();
};
Frame 6
function resetAll() {
mData = SharedObject.getLocal(g_dataFile);
ii = 1;
while (ii <= 8) {
mData.data["itemBought" + ii] = false;
ii++;
}
var _local1 = new Array();
_local1[0] = 1;
_local1[1] = 2;
_local1[2] = 2;
_local1[3] = 2;
_local1[4] = 3;
_local1[5] = 3;
_local1[6] = 3;
_local1[7] = 3;
_local1[8] = 4;
_local1[9] = 4;
_local1[10] = 5;
ii = 1;
while (ii <= 11) {
mData.data["caseDone" + ii] = false;
mData.data["photoDiff" + ii] = spitOne(_local1);
ii++;
}
mData.data.gTotalCash = 0;
mData.data.gDay = 1;
mData.data.gDiffLevel = 1;
loadData();
mData.flush();
makeFade("start");
}
var diffLevels = new Array();
diffLevels[1] = "Very Easy";
diffLevels[2] = "Easy";
diffLevels[3] = "Normal";
diffLevels[4] = "Difficult";
diffLevels[5] = "Finale";
var cityLocs = new Array();
cityLocs[1] = "Highrise";
cityLocs[2] = "Hotel";
cityLocs[3] = "Park";
cityLocs[4] = "Docks";
cityLocs[5] = "Warehouse";
cityLocs[6] = "Alleys";
cityLocs[7] = "Office";
cityLocs[8] = "House";
cityLocs[9] = "Apartment";
cityLocs[10] = "Mansion";
cityLocs[11] = "Mall";
_level0.warningbox._visible = false;
btn01.gotoAndStop(2);
acCompleted = 0;
refreshSaveSlot();
loadData();
resetbtn.onRelease = function () {
mData.clear();
refreshSaveSlot();
scoredisplay = "Cash: $0";
};
achbtn.onRelease = function () {
makeFade("achievement");
};
averageScore = mRn(((lastScore1 + lastScore2) + lastScore3) / 3);
scoredisplay = "Cash: $" + gTotalCash;
acLongTxt = acCompleted + "/15";
var doneEasy = 0;
var doneMedium = 0;
var doneHard = 0;
if ((((ac01 && (ac04)) && (ac07)) && (ac10)) && (ac13)) {
doneEasy = 1;
}
if ((((ac02 && (ac05)) && (ac08)) && (ac11)) && (ac14)) {
doneMedium = 1;
}
if ((((ac03 && (ac06)) && (ac09)) && (ac12)) && (ac15)) {
doneHard = 1;
}
_root.kongregateStats.submit("s1_score", gTotalCash);
_root.kongregateStats.submit("s2_achievements", acCompleted);
_root.kongregateStats.submit("c1_easy", doneEasy);
_root.kongregateStats.submit("c2_medium", doneMedium);
_root.kongregateStats.submit("c3_hard", doneHard);
casebubble._visible = false;
if (newRound) {
newRound = false;
ph = 1;
while (ph <= 11) {
ph++;
}
}
ph = 1;
while (ph <= 11) {
var thisPhoto = pics["photo" + dd(ph)];
thisPhoto.difficulty = photoDiff[ph];
thisPhoto.stars.gotoAndStop(thisPhoto.difficulty);
thisPhoto.cross._visible = caseDone[ph];
thisPhoto.difftxt = diffLevels[thisPhoto.difficulty];
if (thisPhoto.difficulty > gDiffLevel) {
thisPhoto.frame.gotoAndStop(2);
thisPhoto.cross._visible = true;
thisPhoto.cross.gotoAndStop(2);
thisPhoto.difftxt = "LOCKED!";
}
randomize(thisPhoto);
thisPhoto.index = ph;
thisPhoto.onRollOver = function () {
if (this.difftxt != "LOCKED!") {
this.gotoAndStop(2);
this.swapDepths(999);
}
casebubble._visible = true;
casebubble.difftxt = this.difftxt;
casebubble.txt = cityLocs[this.index];
};
thisPhoto.onRollOut = function () {
this.gotoAndStop(1);
casebubble._visible = false;
};
thisPhoto.onRelease = function () {
if (this.difftxt != "LOCKED!") {
caseNumber = this.index;
gCurDiff = this.difficulty;
makeFade("game");
}
};
ph++;
}
_level0.onEnterFrame = function () {
casebubble._x = _xmouse;
casebubble._y = _ymouse;
};
Frame 7
function renameSuspects() {
suspectName = new Array();
i = 0;
suspectName[i] = "SIBLING";
i++;
suspectName[i] = "COLLEAGUE";
i++;
suspectName[i] = "NEIGHBOUR";
i++;
suspectName[i] = "ASSOCIATE";
i++;
suspectName[i] = "BUTLER";
i++;
suspectName[i] = "LOVER";
i++;
suspectName[i] = "SPOUSE";
i++;
suspectName[i] = "COUSIN";
i++;
suspectName[i] = "FRIEND";
i++;
suspectName[i] = "VISITOR";
i++;
suspectName[i] = "PASTOR";
i++;
suspectName[i] = "LAWYER";
i++;
suspectName[i] = "DOCTOR";
i++;
suspectName[i] = "STRANGER";
i++;
suspectName[i] = "ORPHAN";
i++;
suspectName[i] = "HIRED HELP";
i++;
suspectName[i] = "REPORTER";
i++;
suspectName[i] = "THIEF";
i++;
suspectName[i] = "TOURIST";
i++;
suspectName[i] = "TRAVELLER";
i++;
suspectName[i] = "CLERK";
i++;
suspectName[i] = "NURSE";
i++;
suspectName[i] = "STUDENT";
i++;
suspectName[i] = "ASSISTANT";
i++;
suspectName[i] = "PROFESSIONAL";
i++;
suspectName[i] = "GARDENER";
i++;
npcName = new Array();
i = 0;
npcName[i] = "MAYOR";
i++;
npcName[i] = "COMMISSIONER";
i++;
npcName[i] = "TYCOON";
i++;
npcName[i] = "SOCIALITE";
i++;
npcName[i] = "GENERAL";
i++;
npcName[i] = "MINISTER";
i++;
npcName[i] = "CEO";
i++;
}
function generateTraits(anynum) {
masterTraits = new Array();
i = 0;
masterTraits[i] = "Paranoid";
i++;
masterTraits[i] = "Very Intelligent";
i++;
masterTraits[i] = "Unusually Agile";
i++;
masterTraits[i] = "Addicted to Gambling";
i++;
masterTraits[i] = "A Chain Smoker";
i++;
masterTraits[i] = "Extremely Strong";
i++;
masterTraits[i] = "A Meticulous Planner";
i++;
masterTraits[i] = "Deep In Debt";
i++;
masterTraits[i] = "Brutally Violent";
i++;
masterTraits[i] = "Addicted to Painkillers";
i++;
masterTraits[i] = "Hiding a Dark Secret";
i++;
masterTraits[i] = "An Alcoholic";
i++;
masterTraits[i] = "An Escaped Fugitive";
i++;
masterTraits[i] = "A Convicted Felon";
i++;
masterTraits[i] = "Afraid of the Victim";
i++;
masterTraits[i] = "Having an Affair";
i++;
masterTraits[i] = "A Hired Assassin";
i++;
masterTraits[i] = "An Expert with Firearms";
i++;
masterTraits[i] = "An Expert with Knives";
i++;
masterTraits[i] = "Suffering from Depression";
i++;
masterTraits[i] = "Jealous of the Victim";
i++;
masterTraits[i] = "A Religious Fanatic";
i++;
masterTraits[i] = "A Greedy Person";
i++;
masterTraits[i] = "A Schizophrenic";
i++;
masterTraits[i] = "A Beneficiary of the Death";
i++;
masterTraits[i] = "Quarreling with The Victim";
i++;
masterTraits[i] = "A Sociopathic Psychopath";
i++;
masterTraits[i] = "A Master of Disguise";
i++;
masterTraits[i] = "The Victim's Business Partner";
i++;
masterTraits[i] = "Furious at the Victim";
i++;
masterTraits[i] = "Obsessed with the Victim";
i++;
masterTraits[i] = "A Con Artist";
i++;
masterTraits[i] = "An Art Collector";
i++;
masterTraits[i] = "A Gifted Musician";
i++;
masterTraits[i] = "A Hypochondriac";
i++;
masterTraits[i] = "Linked to the Underworld";
i++;
masterTraits[i] = "A Stalker";
i++;
if (gCurDiff == 5) {
masterTraits = new Array();
i = 0;
masterTraits[i] = "A Secret Cult Leader";
i++;
masterTraits[i] = "A Megalomaniac";
i++;
masterTraits[i] = "Embezzling Money";
i++;
masterTraits[i] = "A Closet Pervert";
i++;
masterTraits[i] = "Having a Secret Affair";
i++;
masterTraits[i] = "Short Tempered";
i++;
masterTraits[i] = "An Underworld Criminal";
i++;
masterTraits[i] = "A Cigar Smoker";
i++;
masterTraits[i] = "Politically Corrupt";
i++;
masterTraits[i] = "Running a Massive Scam";
i++;
masterTraits[i] = "An Impostor";
i++;
masterTraits[i] = "Terminally Ill";
i++;
}
suspectTraits = new Array();
var _local1 = 0;
while (_local1 < anynum) {
suspectTraits[_local1] = spitOne(masterTraits);
_local1++;
}
}
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++;
var suspectTraits = new Array();
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) {
if (!multiPlayer) {
gCash = gCash + amt;
cashTxt = "$" + gCash;
} else {
_level0[("p" + pTurn) + "_cash"] = _level0[("p" + pTurn) + "_cash"] + amt;
multiBox[("p" + pTurn) + "_score"] = "$" + _level0[("p" + pTurn) + "_cash"];
}
}
function makeSuspects() {
renameSuspects();
sp = 1;
while (sp <= 6) {
var _local2 = _level0["suspect" + sp];
_local2.sName = spitOne(suspectName);
if (gCurDiff == 5) {
_local2.sName = spitOne(npcName);
}
if (numSuspects < sp) {
_local2._visible = false;
_level0["sName" + sp] = "";
} else {
_level0["sName" + sp] = "The \r" + _local2.sName;
}
_local2.sTrait1 = suspectTraits[randbtwn(0, suspectTraits.length - 1)];
_local2.sTrait2 = _local2.sTrait1;
_local2.cross._visible = false;
_local2.highlight._visible = false;
while (_local2.sTrait2 == _local2.sTrait1) {
_local2.sTrait2 = suspectTraits[randbtwn(0, suspectTraits.length - 1)];
}
_local2.trait1Known = false;
_local2.trait2Known = false;
randomize(_local2);
if (_local2.sName == "PASTOR") {
_local2.body.gotoAndStop(14);
}
if (randbtwn(1, 10) <= 5) {
_local2.sHand = "Right-handed";
} else {
_local2.sHand = "Left-handed";
}
_local2.onRollOver = function () {
this.highlight._visible = true;
suspectbox._visible = true;
suspectbox._x = _xmouse;
suspectbox._y = _ymouse;
suspectbox.txt = (((((("The " + this.sName) + " is:") + newline) + "-") + this.sHand) + newline) + "-";
if (this.trait1Known || (gameEnded)) {
suspectbox.txt = suspectbox.txt + this.sTrait1;
} else {
suspectbox.txt = suspectbox.txt + "???";
}
suspectbox.txt = suspectbox.txt + "\r-";
if (this.trait2Known || (gameEnded)) {
suspectbox.txt = suspectbox.txt + this.sTrait2;
} else {
suspectbox.txt = suspectbox.txt + "???";
}
};
_local2.onRollOut = function () {
suspectbox._visible = false;
this.highlight._visible = false;
};
_local2.onRelease = function () {
if (!gameEnded) {
if (solveMode) {
gameEnded = true;
if (this == theMurderer) {
gameWon = true;
addCash(25);
if (!multiPlayer) {
popup.gotoAndStop("win");
popup.txt = ("Congratulations! You have successfully identified the " + theMurderer.sName) + " as the Murderer!";
if (gCurDiff == 5) {
popup.txt = ("Congratulations! You have successfully identified the " + theMurderer.sName) + " as the Criminal Mastermind!";
}
popup.txt = popup.txt + ("\rTime Bonus: +$" + (gTime * (gCurDiff * 2)));
addCash(gTime * (gCurDiff * 2));
if (gWeaponFound) {
popup.txt = popup.txt + "\rMurder Weapon Found: +$25";
}
if (gRewardFound) {
popup.txt = popup.txt + "\rLarge Reward: +$15";
addCash(15);
}
} else {
popup.gotoAndStop("multiplayer_win");
if (pTurn == 1) {
popup.txt = "The Detective";
} else {
popup.txt = "The Inspector";
}
popup.txt = popup.txt + ((" successfully identified the " + theMurderer.sName) + " as the Murderer! (+$25)");
addCash(25);
popup.p1_score = multiBox.p1_score;
popup.p2_score = multiBox.p2_score;
}
if (itemBought[5] && (!quickGame)) {
addCash(100);
popup.txt = popup.txt + "\rCamera: +$100";
}
if (!multiPlayer) {
popup.txt = popup.txt + ("\rFinal Score: $" + gCash);
}
} else if (!multiPlayer) {
popup.gotoAndStop("lose");
popup.txt = ("You have accused the wrong Suspect. The real Murderer is the " + theMurderer.sName) + "!";
if (gCurDiff == 5) {
popup.txt = ("You have accused the wrong Suspect. The real Criminal Mastermind is the " + theMurderer.sName) + "!";
}
if (!quickGame) {
if (itemBought[4]) {
popup.txt = popup.txt + "\r(-$100)";
addCash(-100);
} else {
popup.txt = popup.txt + "\r(-$250)";
addCash(-250);
}
}
} else {
popup.gotoAndStop("multiplayer_win");
if (pTurn == 1) {
popup.txt = "The Detective";
} else {
popup.txt = "The Inspector";
}
popup.txt = popup.txt + ((" identified the wrong suspect! (-$25) The real Murderer was the " + theMurderer.sName) + "!");
addCash(-25);
popup.p1_score = multiBox.p1_score;
popup.p2_score = multiBox.p2_score;
}
} else {
this.cross._visible = !this.cross._visible;
}
}
};
sp++;
}
}
if (!quickGame) {
gDay = gDay + 1;
gCash = 0;
}
saveGame();
cashTxt = "$" + gCash;
warningbox2._visible = false;
if (multiPlayer) {
pTurn = 1;
p1_score = "$0";
p2_score = "$0";
p1_cash = 0;
p2_cash = 0;
cashTxt = "Duel Mode";
}
aiUnlock = false;
aiCount = 60;
if (!quickGame) {
titleTxt = "the investigation";
} else {
titleTxt = "Case #" + numCases;
}
if (!multiPlayer) {
multiBox._visible = false;
} else {
multiBox._visible = true;
}
var gTime = 45;
var gTimeSpent = 0;
var gCluesFound = 0;
var gWeaponFound = false;
var gCombo = 0;
var gRewardFound = false;
var gFlagToggled = false;
var clueLongTxt = "The Murderer is:\r";
if (gCurDiff == 5) {
clueLongTxt = "The Criminal Mastermind is:\r";
}
var numSuspects = 6;
var solveMode = false;
var flagMode = false;
var lockPopup = true;
var gameWon = false;
var gameEnded = false;
suspectbox._visible = false;
gMission = gMission + 1;
generateTraits(12);
gWidth = 9;
gHeight = 9;
gSpecial = 5;
gHerrings = 4;
gReveal = 0;
if (quickGame) {
gCurDiff = randbtwn(1, 4);
}
if (multiPlayer) {
gCurDiff = 4;
}
if (gCurDiff == 1) {
numSuspects = 3;
gWidth = 5;
gHeight = 5;
gSpecial = 0;
gHerrings = 0;
} else if (gCurDiff == 2) {
numSuspects = 4;
gWidth = 7;
gHeight = 7;
gSpecial = 2;
gHerrings = 2;
} else if (gCurDiff == 3) {
numSuspects = 5;
gWidth = 8;
gHeight = 8;
gSpecial = 3;
gHerrings = 3;
} else if (gCurDiff == 4) {
numSuspects = 6;
gWidth = 9;
gHeight = 9;
gSpecial = 4;
gHerrings = 5;
} else if (gCurDiff == 5) {
numSuspects = 6;
gWidth = 9;
gHeight = 9;
gSpecial = 4;
gHerrings = 8;
}
if (quickGame) {
gHerrings = 5;
}
if (multiPlayer) {
gSpecial = 0;
}
if (!quickGame) {
if (itemBought[1]) {
gReveal = gReveal + 1;
}
if (itemBought[2]) {
gReveal = gReveal + 2;
}
if (itemBought[3]) {
gReveal = gReveal + 3;
}
}
gTime = Math.round((0.6 * gWidth) * gHeight);
if (!quickGame) {
if (itemBought[6]) {
gTime = gTime + 1;
}
if (itemBought[7]) {
gTime = gTime + 4;
}
}
generateTraits(numSuspects * 2);
var gClues = (numSuspects * 2);
theMurderer = _level0["suspect" + randbtwn(1, numSuspects)];
tx = 1;
while (tx <= gWidth) {
ty = 1;
while (ty <= gHeight) {
stage.attachMovie("inv_tile", (("tile" + tx) + "") + ty, (ty * 10) + tx);
thisTile = stage[(("tile" + tx) + "") + ty];
thisTile._x = (((tx - 1) * 30) + 25) + ((9 - gWidth) * 15);
thisTile._y = (((ty - 1) * 30) + 40) + ((9 - gHeight) * 15);
thisTile.opened = false;
thisTile.flagged = false;
thisTile.type = "blank";
thisTile.num = 0;
thisTile.onRollOver = function () {
if (!this.opened) {
if (!this.flagged) {
if (((!gameEnded) && (!solveMode)) && (!lockPopup)) {
this.swapDepths(1000);
this.gotoAndStop(2);
if (!flagMode) {
popup.gotoAndStop(1);
if (multiPlayer) {
popup.gotoAndStop("multiplayer");
}
}
}
} else {
this.swapDepths(1000);
this.gotoAndStop("flag_over");
}
} else if ((((!lockPopup) && (!gameEnded)) && (!solveMode)) && (!flagMode)) {
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;
} else if (this.type == "danger") {
popup.gotoAndStop("special_quick");
popup.txt = this.txt;
popup.txt2 = this.txt2;
}
}
};
thisTile.onRollOut = function () {
if (!this.opened) {
if (!this.flagged) {
this.gotoAndStop(1);
} else {
this.gotoAndStop("flag");
}
}
};
thisTile.onRelease = function () {
if ((((!lockPopup) && (!gameEnded)) && (!solveMode)) && (((!aiMode) || (pTurn == 1)) || (aiUnlock))) {
if (!this.opened) {
if (flagMode) {
if (!this.flagged) {
this.flagged = true;
this.gotoAndStop("flag");
} else {
this.flagged = false;
this.gotoAndStop(1);
}
} else if ((gTime > 0) && (!this.flagged)) {
gTime = gTime - 1;
gTimeSpent = gTimeSpent + 1;
this.opened = true;
click_sound.start();
if (this.type == "blank") {
this.gotoAndStop("blank");
if (!multiPlayer) {
if (this.num == "") {
popup.gotoAndStop("blank2");
} else {
addCash(this.num + gCombo);
popup.gotoAndStop("blank1");
}
} else if (this.num != "") {
addCash(this.num);
}
} else if (this.type == "clue") {
addCash(5);
gCluesFound = gCluesFound + 1;
this.gotoAndStop("clue");
clueLongTxt = clueLongTxt + (this.sumtxt + newline);
if (!multiPlayer) {
lockPopup = true;
popup.gotoAndStop("clue");
popup.txt = this.txt;
}
} else if (this.type == "special") {
this.gotoAndStop("special" + this.thisIndex);
if (!multiPlayer) {
lockPopup = true;
popup.gotoAndStop("special");
popup.txt = this.txt;
popup.txt2 = this.txt2;
}
if (this.thisIndex == 1) {
gTime = gTime + 5;
} else if (this.thisIndex == 2) {
gRewardFound = true;
} else if (this.thisIndex == 4) {
gCombo = 1;
} else if (this.thisIndex == 5) {
gTime = gTime - 2;
if (gTime < 0) {
gTime = 0;
}
}
} else if (this.type == "danger") {
this.gotoAndStop("danger");
if (!multiPlayer) {
lockPopup = true;
popup.gotoAndStop("special");
popup.txt = this.txt;
popup.txt2 = this.txt2;
if (itemBought[8] && (!quickGame)) {
gTime = gTime - 1;
} else {
gTime = gTime - 3;
}
if (gTime < 0) {
gTime = 0;
}
} else {
addCash(-5);
}
} else if (this.type == "weapon") {
addCash(25);
gWeaponFound = true;
this.gotoAndStop("weapon");
if (!multiPlayer) {
lockPopup = true;
popup.gotoAndStop("weapon");
}
} else if (this.type == "clue2") {
addCash(10);
gCluesFound = gCluesFound + 1;
this.gotoAndStop("clue2");
clueLongTxt = clueLongTxt + (this.sumtxt + newline);
if (!multiPlayer) {
lockPopup = true;
popup.gotoAndStop("clue2");
popup.txt = this.txt;
}
} else if (this.type == "clue3") {
addCash(10);
gCluesFound = gCluesFound + 1;
this.gotoAndStop("clue3");
_level0["suspect" + this.thisIndex][("trait" + this.trait) + "Known"] = true;
if (!multiPlayer) {
lockPopup = true;
popup.gotoAndStop("clue3");
popup.txt = this.txt;
}
}
if (multiPlayer) {
this.border.gotoAndStop(pTurn + 1);
pTurn = pTurn + 1;
if (pTurn > 2) {
pTurn = 1;
}
multiTurn.gotoAndPlay("p" + pTurn);
}
} else if (gTime <= 0) {
lockPopup = true;
popup.gotoAndStop("notime");
}
} else {
if (flagMode) {
flagMode = false;
flagbtn.gotoAndStop(1);
}
if (this.type == "victim") {
lockPopup = true;
if (!quickGame) {
popup.gotoAndStop("lady");
} else {
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++;
}
var uniqueSuspects = false;
while (!uniqueSuspects) {
makeSuspects();
uniqueSuspects = true;
sn = 2;
while (sn <= numSuspects) {
checkSuspect = _level0["suspect" + sn];
stn = 1;
while (stn < sn) {
tempSuspect = _level0["suspect" + stn];
if (tempSuspect.sHand == checkSuspect.sHand) {
if (((tempSuspect.sTrait1 == checkSuspect.sTrait1) && (tempSuspect.sTrait2 == checkSuspect.sTrait2)) || ((tempSuspect.sTrait1 == checkSuspect.sTrait2) && (tempSuspect.sTrait2 == checkSuspect.sTrait1))) {
uniqueSuspects = false;
}
}
stn++;
}
sn++;
}
}
if (gCurDiff != 5) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
thisTile = stage[(("tile" + rx) + "") + ry];
thisTile.type = "victim";
thisTile.opened = true;
thisTile.gotoAndStop("victim");
}
lockPopup = true;
st = 1;
while (st == 1) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
thisTile.type = "weapon";
st = st + 1;
}
}
st = 1;
while (st <= gClues) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
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 is " + thisTrait) + "!";
if (gCurDiff == 5) {
thisTile.txt = ("The clue indicates that the Criminal Mastermind is " + thisTrait) + "!";
}
thisTile.sumtxt = "-" + thisTrait;
} else {
thisTile.type = "clue";
thisTile.txt = ("The clue indicates that the Murderer is NOT " + thisTrait) + ".";
if (gCurDiff == 5) {
thisTile.txt = ("The clue indicates that the Criminal Mastermind is NOT " + thisTrait) + "!";
}
thisTile.sumtxt = "-NOT " + thisTrait;
}
st = st + 1;
}
}
st = 1;
while (st == 1) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
thisTile.type = "clue2";
thisTile.txt = ("The clue indicates that the Murderer is " + theMurderer.sHand) + "!";
if (gCurDiff == 5) {
thisTile.txt = ("The clue indicates that the Criminal Mastermind is " + theMurderer.sHand) + "!";
}
thisTile.sumtxt = "-" + theMurderer.sHand;
st = st + 1;
gClues = gClues + 1;
}
}
st = 1;
while (st <= numSuspects) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
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 the " + _level0["suspect" + st].sName) + " is ") + thisTrait) + "!";
st = st + 1;
gClues = gClues + 1;
}
}
st = 1;
while (st <= numSuspects) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
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 the " + _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;
}
}
specialTileIndex = new Array();
specialTileIndex[0] = 1;
specialTileIndex[1] = 2;
specialTileIndex[2] = 3;
specialTileIndex[3] = 4;
st = 1;
while (st <= gSpecial) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
thisTile = stage[(("tile" + rx) + "") + ry];
if (thisTile.type == "blank") {
thisTile.type = "special";
thisTile.thisIndex = spitOne(specialTileIndex);
thisTile.txt = specialTiles[thisTile.thisIndex];
thisTile.txt2 = specialTileDesc[thisTile.thisIndex];
if (thisTile.thisIndex == 3) {
thisTile.txt2 = ("You discovered that the " + innocentGuy.sName) + " is innocent and has an Airtight Alibi!";
}
st = st + 1;
}
}
st = 1;
while (st <= gReveal) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
thisTile = stage[(("tile" + rx) + "") + ry];
if ((thisTile.type == "blank") && (!thisTile.opened)) {
thisTile.opened = true;
thisTile.gotoAndStop("blank");
st = st + 1;
}
}
tx = 1;
while (tx <= gWidth) {
ty = 1;
while (ty <= gHeight) {
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 < gWidth)) {
otherTiles[ot] = stage[(("tile" + (tx + 1)) + "") + (ty - 1)];
ot++;
}
if (tx > 1) {
otherTiles[ot] = stage[(("tile" + (tx - 1)) + "") + (ty + 0)];
ot++;
}
if (tx < gWidth) {
otherTiles[ot] = stage[(("tile" + (tx + 1)) + "") + (ty + 0)];
ot++;
}
if ((ty < gHeight) && (tx > 1)) {
otherTiles[ot] = stage[(("tile" + (tx - 1)) + "") + (ty + 1)];
ot++;
}
if (ty < gHeight) {
otherTiles[ot] = stage[(("tile" + (tx + 0)) + "") + (ty + 1)];
ot++;
}
if ((ty < gHeight) && (tx < gWidth)) {
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++;
}
st = 1;
while (st <= gHerrings) {
rx = randbtwn(1, gWidth);
ry = randbtwn(1, gHeight);
thisTile = stage[(("tile" + rx) + "") + ry];
if ((thisTile.type == "blank") && (!thisTile.opened)) {
thisTile.type = "danger";
thisTile.txt = specialTiles[5];
if (multiPlayer) {
thisTile.txt2 = "The Red Herring you found has cost you $5!";
} else if (itemBought[8] && (!quickGame)) {
thisTile.txt2 = "The Red Herring you found has cost you 1 additional Time!";
} else {
thisTile.txt2 = "The Red Herring you found has cost you 3 additional Time!";
}
st = st + 1;
}
}
clockicon.onRollOver = function () {
if ((((!gameEnded) && (!solveMode)) && (!lockPopup)) && (!flagMode)) {
popup.gotoAndStop("clock");
this.gotoAndStop(2);
}
};
clockicon.onRollOut = function () {
if ((((!gameEnded) && (!solveMode)) && (!lockPopup)) && (!flagMode)) {
popup.gotoAndStop(1);
if (multiPlayer) {
popup.gotoAndStop("multiplayer");
}
this.gotoAndStop(1);
}
};
flagbtn.onRollOver = function () {
if ((((!gameEnded) && (!solveMode)) && (!lockPopup)) && (!flagMode)) {
this.gotoAndStop(2);
popup.gotoAndStop("flag_quick");
}
};
flagbtn.onRollOut = function () {
if ((((!gameEnded) && (!solveMode)) && (!lockPopup)) && (!flagMode)) {
this.gotoAndStop(1);
popup.gotoAndStop(1);
if (multiPlayer) {
popup.gotoAndStop("multiplayer");
}
}
};
flagbtn.onRelease = function () {
if (!gFlagToggled) {
gFlagToggled = true;
flagMode = true;
} else {
gFlagToggled = false;
flagMode = false;
}
};
cluebtn.onRelease = function () {
if ((((!gameEnded) && (!solveMode)) && (!lockPopup)) && (!flagMode)) {
lockPopup = true;
popup.gotoAndStop("clue_sum");
popup.txt = clueLongTxt;
popup.txt2 = (("Clues found: " + gCluesFound) + "/") + gClues;
this.gotoAndStop(1);
} else if (popup.txt == clueLongTxt) {
popup.gotoAndStop(1);
if (multiPlayer) {
popup.gotoAndStop("multiplayer");
}
lockPopup = false;
}
};
cluebtn.onRollOver = function () {
if ((((!gameEnded) && (!solveMode)) && (!lockPopup)) && (!flagMode)) {
popup.gotoAndStop("clue_quick");
}
this.gotoAndStop(2);
};
cluebtn.onRollOut = function () {
if ((((!gameEnded) && (!solveMode)) && (!lockPopup)) && (!flagMode)) {
popup.gotoAndStop(1);
if (multiPlayer) {
popup.gotoAndStop("multiplayer");
}
}
this.gotoAndStop(1);
};
solvebtn.onRelease = function () {
if (!gameEnded) {
solveMode = !solveMode;
if (solveMode) {
popup.gotoAndStop("solve");
lockPopup = true;
} else {
popup.gotoAndStop(1);
if (multiPlayer) {
popup.gotoAndStop("multiplayer");
}
lockPopup = false;
}
}
};
popup.onRelease = function () {
if (gameEnded) {
if (!multiPlayer) {
makeFade("end");
} else {
if (p1_cash >= p2_cash) {
mWinner = 1;
} else {
mWinner = 2;
}
makeFade("multi_end");
}
} else if (lockPopup) {
popup.gotoAndStop(1);
if (multiPlayer) {
popup.gotoAndStop("multiplayer");
}
lockPopup = false;
}
};
var victimName = "";
victimName = vname1[randbtwn(0, 5)] + vname2[randbtwn(0, vname2.length - 1)];
var victimDeath = "";
if (!quickGame) {
victimDeath = (((deathtype1[randbtwn(0, deathtype1.length - 1)] + " at the ") + cityLocs[caseNumber]) + "!") + newline;
} else {
victimDeath = ((deathtype1[randbtwn(0, deathtype1.length - 1)] + " ") + deathtype2[randbtwn(0, deathtype2.length - 1)]) + newline;
}
var fulldTxt = (((((victimName + " was found dead, ") + victimDeath) + " ") + numSuspects) + " suspects have been identified.");
var scoresCallback = function (result) {
if (result.success) {
randindex = randbtwn(0, result.list.length - 1);
random_name = result.list[randindex].username;
random_score = result.list[randindex].score;
scoreLoaded = true;
}
};
var scoreLoaded = false;
if (quickGame) {
_root.kongregateScores.requestList(scoresCallback, this);
if (scoreLoaded) {
fulldTxt = fulldTxt + (((("\rRandom Top 100: \r" + random_name) + " ($") + random_score) + ")");
}
}
if (!quickGame) {
if (gCurDiff == 1) {
fulldTxt = (((((("So, you're the world famous Detective " + playerName) + "?") + newline) + newline) + "There is a strange murder case at the ") + cityLocs[caseNumber]) + " that I think you might be interested in... come back to me once you've cracked it.";
} else if (gCurDiff == 2) {
fulldTxt = (((((("Well, Detective " + playerName) + ", you're better than I expected. Some suspicious evidence from your previous case seem linked to the case at the ") + cityLocs[caseNumber]) + ".") + newline) + newline) + "Find out more about this case, there could be more than meets the eye...";
} else if (gCurDiff == 3) {
fulldTxt = (((((("It seems we're getting close to the truth, Detective.\r\rAnother strange murder case at the " + cityLocs[caseNumber]) + ": the victim was found ") + deathtype1[randbtwn(0, deathtype1.length - 1)]) + "!") + newline) + newline) + "Something smells fishy about this case...";
} else if (gCurDiff == 4) {
fulldTxt = ((("Some of the evidence you found didn't quite add up: I have a feeling that all these cases are somehow connected!\r\rHead for the " + cityLocs[caseNumber]) + ", another victim has been found, ") + deathtype1[randbtwn(0, deathtype1.length - 1)]) + "...";
} else if (gCurDiff == 5) {
fulldTxt = ("This is it!\r\rBased on the evidence you collected, all of the previous suspects were working for somebody high up in the city!\r\rGo quickly to the " + cityLocs[caseNumber]) + "... find out who is the Criminal Mastermind!";
}
}
if (!quickGame) {
popup.gotoAndStop("lady");
} else {
popup.gotoAndStop("intro");
}
popup.txt = fulldTxt;
_level0.onEnterFrame = function () {
flagicon._visible = flagMode;
flagicon._x = _xmouse;
flagicon._y = _ymouse;
if (Key.isDown(16)) {
flagMode = true;
} else if (!gFlagToggled) {
flagMode = false;
}
if (suspectbox._visible) {
suspectbox._x = _xmouse;
suspectbox._y = _ymouse;
}
if (multiPlayer) {
multiBox.turnbox.gotoAndStop(pTurn);
}
if (aiMode && (pTurn == 2)) {
aiCount = aiCount - 1;
aiTilePrefered = null;
aiCurrentPreference = 0;
aiRandomCount = 0;
if (aiCount <= 0) {
tileFound = false;
while (!tileFound) {
rtx = randbtwn(1, gWidth);
rty = randbtwn(1, gHeight);
aiTile = stage[(("tile" + rtx) + "") + rty];
if (!aiTile.opened) {
aiRandomCount = aiRandomCount + 1;
aiPreference = 0;
var _local1 = new Array();
ot = 0;
tx = rtx;
ty = rty;
if ((ty > 1) && (tx > 1)) {
_local1[ot] = stage[(("tile" + (tx - 1)) + "") + (ty - 1)];
ot++;
}
if (ty > 1) {
_local1[ot] = stage[(("tile" + (tx + 0)) + "") + (ty - 1)];
ot++;
}
if ((ty > 1) && (tx < gWidth)) {
_local1[ot] = stage[(("tile" + (tx + 1)) + "") + (ty - 1)];
ot++;
}
if (tx > 1) {
_local1[ot] = stage[(("tile" + (tx - 1)) + "") + (ty + 0)];
ot++;
}
if (tx < gWidth) {
_local1[ot] = stage[(("tile" + (tx + 1)) + "") + (ty + 0)];
ot++;
}
if ((ty < gHeight) && (tx > 1)) {
_local1[ot] = stage[(("tile" + (tx - 1)) + "") + (ty + 1)];
ot++;
}
if (ty < gHeight) {
_local1[ot] = stage[(("tile" + (tx + 0)) + "") + (ty + 1)];
ot++;
}
if ((ty < gHeight) && (tx < gWidth)) {
_local1[ot] = stage[(("tile" + (tx + 1)) + "") + (ty + 1)];
ot++;
}
rot = 0;
while (rot <= ot) {
if (_local1[rot].opened) {
aiPreference = aiPreference + _local1[rot].num;
}
rot++;
}
if (aiTilePrefered == null) {
aiTilePrefered = aiTile;
aiCurrentPreference = aiPreference;
} else if (aiPreference > aiCurrentPreference) {
aiTilePrefered = aiTile;
aiCurrentPreference = aiPreference;
}
if (aiRandomCount == 5) {
if (gTime > 0) {
aiUnlock = true;
aiTilePrefered.flagged = false;
aiTilePrefered.onRelease();
aiUnlock = false;
} else {
solveMode = true;
theMurderer.onRelease();
}
aiCount = 60;
tileFound = true;
}
}
}
}
}
};
if (multiPlayer) {
lockPopup = false;
popup.gotoAndStop("multiplayer");
} else {
multiTurn._visible = false;
}
Instance of Symbol 254 MovieClip "flagbtn" in Frame 7
on (keyPress "<Space>") {
if (!_level0.gFlagToggled) {
_level0.gFlagToggled = true;
_level0.flagMode = true;
} else {
_level0.gFlagToggled = false;
_level0.flagMode = false;
}
}
Frame 8
achNames = new Array();
achIndex = 1;
achNames[achIndex] = "Case Solver I";
achIndex++;
achNames[achIndex] = "Case Solver II";
achIndex++;
achNames[achIndex] = "Case Solver III";
achIndex++;
achNames[achIndex] = "Quick Thinker I";
achIndex++;
achNames[achIndex] = "Quick Thinker II";
achIndex++;
achNames[achIndex] = "Quick Thinker III";
achIndex++;
achNames[achIndex] = "Evidence Collector I";
achIndex++;
achNames[achIndex] = "Evidence Collector II";
achIndex++;
achNames[achIndex] = "Evidence Collector III";
achIndex++;
achNames[achIndex] = "Highly Rewarded I";
achIndex++;
achNames[achIndex] = "Highly Rewarded II";
achIndex++;
achNames[achIndex] = "Highly Rewarded III";
achIndex++;
achNames[achIndex] = "Obsessive Compulsive I";
achIndex++;
achNames[achIndex] = "Obsessive Compulsive II";
achIndex++;
achNames[achIndex] = "Obsessive Compulsive III";
achIndex++;
function checkAchievement(acstat, acvalue, acnum) {
if (acstat >= acvalue) {
if (_level0["ac" + dd(acnum)] == false) {
_level0["ac" + dd(acnum)] = true;
acDone = true;
if (acLong != "") {
acLong = acLong + ", ";
}
acLong = acLong + achNames[acnum];
}
}
}
mname = "Mission " + gMission;
clueTxt = (gCluesFound + "/") + gClues;
if (gWeaponFound) {
weaponTxt = "Yes";
} else {
weaponTxt = "No";
}
if (!quickGame) {
shopbtn._visible = true;
} else {
shopbtn._visible = false;
}
if (!quickGame) {
gTotalCash = gTotalCash + gCash;
if (gTotalCash < 0) {
gTotalCash = 0;
}
}
if (gameWon) {
solvedTxt = "Yes";
if (!quickGame) {
var thisPhoto = pics["photo" + dd(caseNumber)];
caseDone[caseNumber] = true;
if ((gCurDiff >= gDiffLevel) && (gCurDiff < 4)) {
gDiffLevel = gDiffLevel + 1;
}
var allDone = true;
cn = 1;
while (cn <= 11) {
if ((!caseDone[cn]) && (photoDiff[cn] != 5)) {
allDone = false;
}
cn++;
}
if (allDone) {
gDiffLevel = 5;
}
}
} else {
solvedTxt = "No";
}
if (!quickGame) {
actxt = "No new achievements.";
acDone = false;
acLong = "";
if (gameWon) {
stat1 = stat1 + 1;
} else {
stat1 = 0;
}
checkAchievement(stat1, 1, 1);
checkAchievement(stat1, 3, 2);
checkAchievement(stat1, 7, 3);
} else {
actxt = numCases + " cases completed!";
}
if ((gCurDiff >= 3) && (!quickGame)) {
if ((gTime >= 15) && (gameWon)) {
stat2 = stat2 + 1;
} else {
stat2 = 0;
}
checkAchievement(stat2, 1, 4);
checkAchievement(stat2, 3, 5);
checkAchievement(stat2, 7, 6);
if (gWeaponFound && (gameWon)) {
stat3 = stat3 + 1;
} else {
stat3 = 0;
}
checkAchievement(stat3, 1, 7);
checkAchievement(stat3, 3, 8);
checkAchievement(stat3, 7, 9);
if (gCash >= 300) {
stat4 = stat4 + 1;
} else {
stat4 = 0;
}
checkAchievement(stat4, 1, 10);
checkAchievement(stat4, 3, 11);
checkAchievement(stat4, 7, 12);
if (gCluesFound == gClues) {
stat5 = stat5 + 1;
}
checkAchievement(stat5, 1, 13);
checkAchievement(stat5, 3, 14);
checkAchievement(stat5, 7, 15);
if (acDone) {
actxt = "Achievements completed!\r";
actxt = actxt + acLong;
}
}
if (!quickGame) {
scoredisplay = "Cash: $" + gTotalCash;
} else {
scoredisplay = "";
}
saveGame();
Frame 9
achNames = new Array();
achIndex = 1;
achNames[achIndex] = "Case Solver I";
achIndex++;
achNames[achIndex] = "Case Solver II";
achIndex++;
achNames[achIndex] = "Case Solver III";
achIndex++;
achNames[achIndex] = "Quick Thinker I";
achIndex++;
achNames[achIndex] = "Quick Thinker II";
achIndex++;
achNames[achIndex] = "Quick Thinker III";
achIndex++;
achNames[achIndex] = "Evidence Collector I";
achIndex++;
achNames[achIndex] = "Evidence Collector II";
achIndex++;
achNames[achIndex] = "Evidence Collector III";
achIndex++;
achNames[achIndex] = "Highly Rewarded I";
achIndex++;
achNames[achIndex] = "Highly Rewarded II";
achIndex++;
achNames[achIndex] = "Highly Rewarded III";
achIndex++;
achNames[achIndex] = "Obsessive Compulsive I";
achIndex++;
achNames[achIndex] = "Obsessive Compulsive II";
achIndex++;
achNames[achIndex] = "Obsessive Compulsive III";
achIndex++;
achDesc = new Array();
achIndex = 1;
achDesc[achIndex] = "Successfully solve a Murder.";
achIndex++;
achDesc[achIndex] = "Successfully solve 3 Murders in a row.";
achIndex++;
achDesc[achIndex] = "Successfully solve 7 Murders in a row.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) with at least 15 Time remaining.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) with at least 15 Time remaining, 3 games in a row.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) with at least 15 Time remaining, 7 games in a row.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) after finding the Murder Weapon in a game.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) after finding the Murder Weapon, 3 games in a row.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) after finding the Weapon, 7 games in a row.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) with at least $300.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) with at least $300, 3 games in a row.";
achIndex++;
achDesc[achIndex] = "Solve a Murder (of at least 3 Star difficulty) with at least $300, 7 games in a row.";
achIndex++;
achDesc[achIndex] = "Collect all the clues in a game (of at least 3 Star difficulty).";
achIndex++;
achDesc[achIndex] = "Collect all the clues in 3 games (of at least 3 Star difficulty).";
achIndex++;
achDesc[achIndex] = "Collect all the clues in 7 games (of at least 3 Star difficulty).";
achIndex++;
function resetAchievements() {
mData = SharedObject.getLocal(g_dataFile);
mi = 1;
while (mi <= 5) {
mData.data["stat" + mi] = 0;
mi++;
}
mi = 1;
while (mi <= 15) {
mData.data["ac" + dd(mi)] = false;
mi++;
}
mData.flush();
loadGame();
makeFade("menu");
}
warningbox3._visible = false;
achpopup._visible = false;
aci = 1;
while (aci <= 15) {
thisAc = _level0["acb" + dd(aci)];
thisAc.txt = aci;
thisAc.acnum = Math.floor((aci - 0.5) / 3) + 1;
if (_level0["ac" + dd(aci)]) {
thisAc.gotoAndStop(3);
}
thisAc.onRollOver = function () {
achpopup._visible = true;
achpopup.ach_title = achNames[this.txt];
achpopup.ach_desc = (((achDesc[this.txt] + newline) + newline) + "Currently: ") + _level0["stat" + this.acnum];
if (_level0["ac" + dd(this.txt)]) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(2);
}
};
thisAc.onRollOut = function () {
achpopup._visible = false;
achpopup.ach_title = "";
achpopup.ach_desc = "";
if (_level0["ac" + dd(this.txt)]) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
};
aci++;
}
_level0.onEnterFrame = function () {
achpopup._x = _xmouse;
achpopup._y = _ymouse;
};
Frame 10
var pItems = new Array();
var pCost = new Array();
var pDesc = new Array();
shop_title = "";
shop_desc = "Select items to purchase.\rPurchased items grant special bonuses during gameplay.";
pItems[1] = "Magnifying Glass";
pCost[1] = 150;
pDesc[1] = "You automatically reveal 1 Tile for free before each case.";
pItems[2] = "Fingerprint Kit";
pCost[2] = 500;
pDesc[2] = "You automatically reveal 2 Tiles for free before each case.";
pItems[3] = "Shadowy Informant";
pCost[3] = 900;
pDesc[3] = "You automatically reveal 3 Tiles for free before each case.";
pItems[4] = "Wall Safe";
pCost[4] = 350;
pDesc[4] = "You only lose $100 when you accuse the wrong suspect.";
pItems[5] = "Camera";
pCost[5] = 250;
pDesc[5] = "You gain an additional $100 for each succesful case.";
pItems[6] = "Telephone";
pCost[6] = 150;
pDesc[6] = "You start with 1 more Time than usual.";
pItems[7] = "Convertible";
pCost[7] = 1000;
pDesc[7] = "You start with 4 more Time than usual.";
pItems[8] = "Lie Detector";
pCost[8] = 1200;
pDesc[8] = "Red Herrings cost only 1 Time instead of 3.";
pi = 1;
while (pi <= 8) {
thisBox = items["purch" + pi];
thisBox.index = pi;
thisBox.txt = pItems[pi];
thisBox.txt2 = "$" + pCost[pi];
thisBox.txt3 = pDesc[pi];
thisBox.purchased = itemBought[pi];
if (thisBox.purchased) {
thisBox.gotoAndStop(3);
}
thisBox.onRollOver = function () {
if (!this.purchased) {
this.gotoAndStop(2);
}
shop_title = this.txt;
shop_desc = this.txt3;
this.swapDepths(9999);
};
thisBox.onRollOut = function () {
if (!this.purchased) {
this.gotoAndStop(1);
}
shop_title = "";
shop_desc = "Select items to purchase.\rPurchased items grant special bonuses during gameplay.";
};
thisBox.onRelease = function () {
if (!this.purchased) {
if (gTotalCash >= pCost[this.index]) {
gTotalCash = gTotalCash - pCost[this.index];
this.gotoAndStop(3);
this.purchased = true;
cash_sound.start();
scoredisplay = "Cash: $" + gTotalCash;
itemBought[this.index] = true;
saveGame();
}
}
};
pi++;
}
Frame 11
if (gDay < 10) {
gDay = 10;
}
finalscore = ("Time taken: " + gDay) + " days";
_root.kongregateStats.submit("s3_daysTaken", gDay);
if (gDay <= 12) {
congratsTxt = "Great job! You are a gifted Cluesweeper!";
} else {
congratsTxt = "Let's see if you can do better next time!";
}
Frame 13
finalscoretxtbox = "Final Score: $" + gCash;
if (gCash > topCash) {
topCash = gCash;
resultTxt = "A new high score!";
_root.kongregateStats.submit("s4_topScore", topCash);
_root.kongregateScores.submit(topCash);
saveGame();
} else {
resultTxt = "Nice job! Try and do better next time!";
}
Frame 14
var witty1 = new Array();
i = 0;
witty1[i] = "Elementary, my dear Inspector!";
i++;
witty1[i] = "Once again, logic triumphs over emotions!";
i++;
witty1[i] = "Hehe, how do you like them apples!";
i++;
witty1[i] = "Thank you, thank you, I win... again!";
i++;
witty1[i] = "I am JUST THAT GOOD!";
i++;
witty1[i] = "Keep trying, some day you will be a winner like me.";
i++;
witty1[i] = "Resistance is futile, I am far superior!";
i++;
witty1[i] = "Nyahahahahahah!!!";
i++;
witty1[i] = "Ooo, were you even trying?!?";
i++;
witty1[i] = "I win! Was there ever any doubt?";
i++;
witty1[i] = "That's what you get when you mess with the BEST!";
i++;
witty1[i] = "Tee hee hee! I won~~~~";
i++;
var witty2 = new Array();
i = 0;
witty2[i] = "You just got lucky!";
i++;
witty2[i] = "I demand a rematch!";
i++;
witty2[i] = "I am rubber, you are glue.";
i++;
witty2[i] = "I'll get you next time...";
i++;
witty2[i] = "There's nothing to gloat about!";
i++;
witty2[i] = "*sulk*";
i++;
witty2[i] = ":( Come over here, so I can punch you.";
i++;
witty2[i] = "sigh~!";
i++;
witty2[i] = "I'll beat you one day!";
i++;
witty2[i] = "I bet you cheated!";
i++;
witty2[i] = "No fair! This game is bugged!!";
i++;
witty2[i] = "It's okay, I was aiming for second place.";
i++;
witty2[i] = "The next murder mystery victim is gonna be YOU...";
i++;
witty2[i] = "Oh shut up.";
i++;
mname = "Mission " + gMission;
clueTxt = (gCluesFound + "/") + gClues;
if (gWeaponFound) {
weaponTxt = "Yes";
} else {
weaponTxt = "No";
}
if (gameWon) {
solvedTxt = "Yes";
} else {
solvedTxt = "No";
}
if (mWinner == 1) {
mainTxt = "Detective Wins!";
speech1 = spitOne(witty1);
speech2 = spitOne(witty2);
} else {
mainTxt = "Inspector Wins!";
speech1 = spitOne(witty2);
speech2 = spitOne(witty1);
}
Instance of Symbol 505 MovieClip in Frame 15
on (release) {
getURL ("http://www.kongregate.com", "_blank");
}
Frame 16
_level0.onEnterFrame = function () {
stop();
};
stop();
Instance of Symbol 507 MovieClip in Frame 16
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 7 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 11
_level0.gotoAndStop(this.nextframe);
Symbol 27 MovieClip Frame 12
_level0.gFaded = false;
Symbol 43 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 100 MovieClip [inv_tile] Frame 1
stop();
Symbol 116 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 119 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 119 MovieClip Frame 218
_root.nextFrame();
Symbol 131 MovieClip Frame 30
stop();
Symbol 137 Button
on (release) {
quickGame = false;
multiPlayer = false;
aiMode = false;
makeFade("menu");
}
on (rollOver) {
menuMsg = "Start a new Story Mode: can YOU reach the Finale?";
}
on (rollOut) {
menuMsg = defaultMsg;
}
Symbol 140 Button
on (release) {
makeFade("help");
}
on (rollOver) {
menuMsg = "If you've never played Minesweeper before, click here!";
}
on (rollOut) {
menuMsg = defaultMsg;
}
Symbol 143 Button
on (release) {
quickGame = true;
multiPlayer = false;
aiMode = false;
makeFade("game");
}
on (rollOver) {
menuMsg = "Solve an endless series of cases! Can you beat the Top Score?";
}
on (rollOut) {
menuMsg = defaultMsg;
}
Symbol 146 Button
on (release) {
gotoAndStop ("main2");
}
on (rollOver) {
menuMsg = "Detective vs Inspector! Play against a human or an AI!";
}
on (rollOut) {
menuMsg = defaultMsg;
}
Symbol 151 Button
on (release) {
quickGame = true;
multiPlayer = true;
aiMode = true;
makeFade("game");
}
on (rollOver) {
menuMsg = "Play Duel Mode against an AI opponent!";
}
on (rollOut) {
menuMsg = defaultMsg;
}
Symbol 154 Button
on (release) {
quickGame = true;
multiPlayer = true;
aiMode = false;
makeFade("game");
}
on (rollOver) {
menuMsg = "Play Duel Mode against a human opponent!";
}
on (rollOut) {
menuMsg = defaultMsg;
}
Symbol 157 Button
on (release) {
gotoAndStop ("main");
}
on (rollOver) {
menuMsg = "Return to the main menu.";
}
on (rollOut) {
menuMsg = defaultMsg;
}
Symbol 166 Button
on (release) {
makeFade("shop");
}
Symbol 168 Button
on (release) {
_level0.warningbox._visible = true;
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 204 Button
on (release) {
_level0.resetAll();
}
Symbol 206 Button
on (release) {
_level0.warningbox._visible = false;
}
Symbol 216 Button
on (release) {
makeFade("main");
}
Symbol 221 MovieClip Frame 1
stop();
Symbol 235 Button
on (release) {
_level0.warningbox2._visible = true;
}
Symbol 242 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 26
stop();
Symbol 383 MovieClip Frame 56
stop();
Symbol 385 Button
on (release) {
if (!_level0.quickGame) {
_level0.makeFade("menu");
} else {
_level0.makeFade("main");
}
}
Symbol 386 Button
on (release) {
_level0.warningbox2._visible = false;
}
Symbol 390 MovieClip Frame 1
if (!_level0.quickGame) {
warningbox = "You will lose a day of investigation!";
} else {
warningbox = "This will return you to the Main Menu!";
}
Symbol 403 Button
on (release) {
if (quickGame) {
if (gameWon) {
numCases = numCases + 1;
_level0.makeFade("game");
} else {
_level0.makeFade("endquick");
}
} else if ((gCurDiff == 5) && (gameWon)) {
_level0.makeFade("win");
} else {
_level0.makeFade("menu");
}
}
Symbol 415 Button
on (release) {
_level0.makeFade("menu");
}
Symbol 416 Button
on (release) {
_level0.warningbox3._visible = true;
}
Symbol 418 Button
on (release) {
_level0.resetAchievements();
}
Symbol 419 Button
on (release) {
_level0.warningbox3._visible = false;
}
Symbol 430 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 1
stop();
Symbol 452 Button
on (release) {
mData = SharedObject.getLocal(g_dataFile);
ii = 1;
while (ii <= 8) {
mData.data["itemBought" + ii] = false;
ii++;
}
var difSet = new Array();
difSet[0] = 1;
difSet[1] = 2;
difSet[2] = 2;
difSet[3] = 2;
difSet[4] = 3;
difSet[5] = 3;
difSet[6] = 3;
difSet[7] = 3;
difSet[8] = 4;
difSet[9] = 4;
difSet[10] = 5;
ii = 1;
while (ii <= 11) {
mData.data["caseDone" + ii] = false;
mData.data["photoDiff" + ii] = spitOne(difSet);
ii++;
}
mData.data.gTotalCash = 0;
mData.data.gDay = 1;
mData.data.gDiffLevel = 1;
loadData();
mData.flush();
makeFade("main");
}
Symbol 483 Button
on (release) {
_level0.makeFade("main");
}
Symbol 494 Button
on (release) {
_level0.makeFade("main");
}