Frame 1
Stage.showMenu = false;
_focusrect = false;
grid = new Array(6);
x = 0;
while (x < 6) {
grid[x] = new Array(5);
x++;
}
x = 0;
while (x < 6) {
y = 0;
while (y < 5) {
grid[x][y] = {};
grid[x][y].cpu = attachMovie("computer", ("cpu" + x) + y, x + (y * 6));
grid[x][y].cpu._x = (x * 80) + 45;
grid[x][y].cpu._y = (y * 80) + 32;
grid[x][y].cpu._xscale = (grid[x][y].cpu._yscale = 20);
grid[x][y].cpu.xpos = x;
grid[x][y].cpu.ypos = y;
grid[x][y].person = attachMovie("person", ("person" + x) + y, (x + (y * 6)) + 50);
grid[x][y].person._x = (x * 80) + 23;
grid[x][y].person._y = (y * 80) + 40;
grid[x][y].person._xscale = (grid[x][y].person._yscale = 32);
grid[x][y].person.mult = x + 10;
grid[x][y].person.xpos = x;
grid[x][y].person.ypos = y;
switch (y) {
case 0 :
grid[x][y].person.lmult = 100;
break;
case 1 :
grid[x][y].person.lmult = 30;
break;
case 2 :
grid[x][y].person.lmult = 10;
break;
case 3 :
grid[x][y].person.lmult = 3;
break;
case 4 :
grid[x][y].person.lmult = 1;
}
grid[x][y].ibutton = attachMovie("ibutton", ("ibutton" + x) + y, (x + (y * 6)) + 1000);
grid[x][y].ibutton._x = (x * 80) + 40;
grid[x][y].ibutton._y = (y * 80) + 40;
grid[x][y].ibutton.xpos = x;
grid[x][y].ibutton.ypos = y;
y++;
}
x++;
}
instructions = attachMovie("instructions", "inst", 5000);
instructions._x = 240;
instructions._y = 200;
instructions._visible = false;
loser = attachMovie("loser", "lost", 4998);
loser._x = 240;
loser._y = 200;
loser._visible = false;
winner = attachMovie("winner", "won", 4999);
winner._x = 240;
winner._y = 200;
winner._visible = false;
intro = attachMovie("intro", "intro", 4997);
intro._x = 240;
intro._y = 200;
score = 1000;
timer = 0;
Frame 2
stop();
base = 40;
vis = 0;
pwned = 0;
donce = true;
lostcount = 30;
wincount = 30;
x = 0;
while (x < 6) {
y = 0;
while (y < 5) {
grid[x][y].cpu.post = "";
grid[x][y].person.gotoAndStop(1);
grid[x][y].person.up = false;
grid[x][y].person.pwned = false;
grid[x][y].person.ready = false;
grid[x][y].person.saged.removeMovieClip();
grid[x][y].ibutton.pwned.removeMovieClip();
grid[x][y].ibutton.fs.removeMovieClip();
grid[x][y].person.fs.removeMovieClip();
y++;
}
x++;
}
Frame 3
stop();
Instance of Symbol 10 MovieClip in Frame 3
onClipEvent (enterFrame) {
with (_root) {
timer++;
if (score >= 10000000) {
timer--;
if ((wincount == 29) && (((timer + score) % 2) == 0)) {
timer++;
}
wincount--;
if (wincount == 29) {
winner._visible = true;
winner.play();
}
if (wincount == 0) {
winner.fscore = score + "get";
winner.ftime = timer;
r1 = int(score / 10) % 10;
r2 = int(timer / 10) % 10;
switch (r1) {
case 0 :
winner.frank = "Quantum ";
break;
case 1 :
winner.frank = "Champion ";
break;
case 2 :
winner.frank = "Golden ";
break;
case 3 :
winner.frank = "Mighty ";
break;
case 4 :
winner.frank = "Uber ";
break;
case 5 :
winner.frank = "Supreme ";
break;
case 6 :
winner.frank = "Uncanny ";
break;
case 7 :
winner.frank = "Mega ";
break;
case 8 :
winner.frank = "Galactic ";
break;
case 9 :
winner.frank = "Power ";
}
switch (r2) {
case 0 :
winner.frank = winner.frank + "Genius";
break;
case 1 :
winner.frank = winner.frank + "Warrior";
break;
case 2 :
winner.frank = winner.frank + "Rockstar";
break;
case 3 :
winner.frank = winner.frank + "Cowboy";
break;
case 4 :
winner.frank = winner.frank + "Professor";
break;
case 5 :
winner.frank = winner.frank + "Sherpa";
break;
case 6 :
winner.frank = winner.frank + "Guru";
break;
case 7 :
winner.frank = winner.frank + "Brainiac";
break;
case 8 :
winner.frank = winner.frank + "Master";
break;
case 9 :
winner.frank = winner.frank + "Eagle";
}
gotoAndStop("gameinit");
}
}
if ((timer % 10) == 0) {
base++;
}
if ((pwned == 0) && (score < (base * 8))) {
lostcount--;
if (lostcount == 0) {
loser._visible = true;
gotoAndStop("gameinit");
}
}
if ((random((vis * 5) + 10) == 0) && (vis < 10)) {
do {
x = random(6);
y = random(5);
if ((score < (base * 1000)) && (y <= 0)) {
y = random(4) + 1;
}
if ((score < (base * 300)) && (y <= 1)) {
y = random(3) + 2;
}
if ((score < (base * 100)) && (y <= 2)) {
y = random(2) + 3;
}
if ((score < (base * 30)) && (y <= 3)) {
y = Math.min(random(3) + 3, 4);
}
} while (grid[x][y].person.up == true);
grid[x][y].person.play();
grid[x][y].person.wait = 0;
grid[x][y].person.up = true;
grid[x][y].person.p.getval = Math.min((base * grid[x][y].person.mult) * grid[x][y].person.lmult, 5000000);
grid[x][y].person.bumplikely = 150 + random(75);
grid[x][y].person.bumpdir = -1;
grid[x][y].person.sagelikely = 300 + random(100);
grid[x][y].person.sagecount = 0;
vis++;
rtype = "?";
choice = random(100);
if (choice < 20) {
rtype = "!";
}
if (((choice == 0) && (donce == true)) && (y >= 3)) {
rtype = "D";
donce = false;
}
grid[x][y].person.p.poster = rtype;
}
}
}
Symbol 11 MovieClip [person] Frame 1
stop();
p._y = 180;
Symbol 11 MovieClip [person] Frame 2
p._y = int(p._y * 0.8);
Symbol 11 MovieClip [person] Frame 3
if (p._y != 0) {
gotoAndPlay (2);
} else {
bprob = 0;
sprob = 0;
bumpcheck = 1;
mistag = false;
choice = random(23);
if ((p.poster != "?") && (choice == 22)) {
choice = random(22);
}
if (choice < 7) {
ptype = "[A]";
} else if (choice < 13) {
ptype = "[L]";
sagelikely = sagelikely + (100 + random(50));
} else if (choice < 18) {
ptype = "[G]";
bumpcheck = -1;
} else if (choice < 22) {
ptype = "[H]";
bprob = 1;
if (random(3) == 0) {
mistag = true;
sprob = 2;
}
} else if (p.poster == "?") {
ptype = "CP";
bprob = 2;
bumplikely = bumplikely - 75;
sagelikely = sagelikely - 150;
}
_root.grid[xpos][ypos].cpu.post = ptype;
if (p.poster == "!") {
bprob++;
sprob++;
sagelikely = bumplikely + 50;
}
if (p.poster == "D") {
bprob = bprob + 1;
sagelikely = sagelikely + 100;
bumpcheck = -1;
mistag = false;
}
}
Symbol 11 MovieClip [person] Frame 4
stop();
ready = true;
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip [person] Frame 4
onClipEvent (enterFrame) {
if (_parent.wait == 0) {
with (_parent) {
if (ptype != "CP") {
p.getval = int(p.getval * 0.999);
} else {
p.getval = int(p.getval * 1.001) + 5;
}
if (Math.min(random(bumplikely), random(bumplikely)) <= bprob) {
p.getval = int(p.getval * (1 + (((random(3) + 3) * (random(3) + 3)) / 100)));
if (p.getval > 9999999) {
p.getval = 9999999 /* 0x98967F */;
}
temp = attachMovie("bump", "bump" + _root.timer, 5);
temp._x = 80 + random(21);
temp._y = random(21);
temp._rotation = random(61) - 30;
} else if (random(sagelikely) <= sprob) {
sagecount++;
p.getval = int(p.getval * (1 - ((((sagecount / 2) * (random(3) + 3)) * (random(3) + 3)) / 100)));
temp = attachMovie("sage", "sage" + _root.timer, 5);
temp._x = 80 + random(21);
temp._y = random(21);
temp._rotation = random(61) - 30;
}
if (mistag && (sagecount == 2)) {
mistag = false;
sagelikely = 21;
bumplikely = 500;
saged = attachMovie("mistag", "saged", 1000);
saged._x = 56;
saged._y = -45;
}
if ((ptype == "CP") && (sagecount == 1)) {
p.getval = 0;
}
if (p.getval <= 0) {
p.getval = 0;
if (ptype == "CP") {
saged = attachMovie("banned", "saged", 1000);
} else {
saged = attachMovie("saged", "saged", 1000);
}
saged._x = 60;
saged._y = 15;
if (pwned) {
fss = _root.grid[xpos][ypos].ibutton.attachMovie("fss", "fs", 1000);
fss._xscale = (fss._yscale = 20);
fss.profit = _root.grid[xpos][ypos].ibutton.cost * -1;
_root.pwned--;
}
ready = false;
pwned = false;
_root.grid[xpos][ypos].ibutton.pwned.removeMovieClip();
wait = 20;
}
bumplikely = bumplikely + bumpdir;
if (bumplikely == 20) {
bumpdir = 1;
bumplikely = 21;
}
if ((bumpdir == 1) && (bumplikely == 150)) {
bumpdir = bumpcheck;
bumpcheck = 1;
}
sagelikely = sagelikely - 1;
if (sagelikely == 20) {
sagelikely = 21;
}
}
} else {
_parent.wait--;
}
if (_parent.wait == 2) {
_parent.saged.removeMovieClip();
_parent.play();
_root.grid[_parent.xpos][_parent.ypos].cpu.post = "";
}
}
Symbol 11 MovieClip [person] Frame 5
p._y = int((p._y * 1.2) + 2);
Symbol 11 MovieClip [person] Frame 6
if (p._y >= 180) {
gotoAndStop (1);
_root.grid[xpos][ypos].person.up = false;
_root.vis--;
_root.grid[xpos][ypos].ibutton.fs.removeMovieClip();
_root.grid[xpos][ypos].person.fs.removeMovieClip();
donce = true;
} else {
gotoAndPlay (5);
}
Symbol 14 Button
on (release) {
_root.stopclick = 3;
if (_root.grid[xpos][ypos].person.ready && (_root.score < 10000000)) {
if (_root.grid[xpos][ypos].person.pwned == false) {
cost = _root.grid[xpos][ypos].person.p.getval;
if (cost <= _root.score) {
_root.score = _root.score - cost;
_root.grid[xpos][ypos].person.pwned = true;
_root.pwned++;
_root.grid[xpos][ypos].ibutton.attachMovie("pwned", "pwned", 1000);
} else {
_root.grid[xpos][ypos].ibutton.attachMovie("toomuch", "toomuch", 1200);
}
} else {
price = _root.grid[xpos][ypos].person.p.getval;
_root.score = _root.score + price;
_root.grid[xpos][ypos].person.pwned = false;
_root.pwned--;
_root.grid[xpos][ypos].ibutton.pwned.removeMovieClip();
_root.grid[xpos][ypos].person.wait = 20;
_root.grid[xpos][ypos].person.ready = false;
fs = _root.grid[xpos][ypos].ibutton.attachMovie("fs", "fs", 1000);
fs._xscale = (fs._yscale = 20);
fs.profit = price - cost;
if (fs.profit >= 0) {
fs.profit = "+" + fs.profit;
}
}
}
}
Symbol 26 MovieClip [winner] Frame 1
stop();
Symbol 26 MovieClip [winner] Frame 30
stop();
Symbol 38 MovieClip [sage] Frame 15
this.removeMovieClip();
Symbol 40 MovieClip [bump] Frame 15
this.removeMovieClip();
Symbol 56 MovieClip [toomuch] Frame 10
this.removeMovieClip();
Symbol 65 Button
on (release) {
stopclick = 3;
instructions._visible = false;
loser._visible = false;
winner._visible = false;
intro._visible = false;
winner.gotoAndStop(1);
score = 1000;
timer = 0;
play();
}
Symbol 69 Button
on (release) {
instructions._visible = true;
}
Symbol 75 Button
on (release) {
if (score < 10000000) {
stopclick--;
}
if (stopclick == 0) {
gotoAndStop (2);
}
}