Frame 5
function start_main_game() {
gotoAndPlay (1);
}
var loadAmount = _totalframes;
_root.testbbb = _framesloaded;
if (_framesloaded == loadAmount) {
gotoAndPlay (6);
} else {
if (_framesloaded >= 3000) {
_root.stream_mc._visible = true;
} else {
_root.stream_mc._visible = false;
}
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
bytesLoadedOutput = loaded;
bytesTotalOutput = total;
percentOutput = percent + "%";
loadBar._width = loadBarHousing._width * (percent / 100);
gotoAndPlay (4);
}
Frame 6
stop();
Frame 7
_root.skin = "weapons_inspector";
Frame 286
gotoAndPlay (287);
Frame 288
gotoAndStop (289);
Frame 289
function key_check(number) {
if ((_root.key_check_pos == 1) && (number == 79)) {
_root.key_check_pos++;
}
if ((_root.key_check_pos == 2) && (number == 76)) {
_root.key_check_pos++;
}
if ((_root.key_check_pos == 3) && (number == 68)) {
_root.key_check_pos++;
}
if ((_root.key_check_pos == 4) && (number == 83)) {
gotoAndPlay (908);
}
if (_root.key_check_pos > 4) {
_root.key_check_pos = 0;
}
}
testaaa = _root._height;
testbbb = _root._width;
_root.key_check_pos = 1;
stop();
Instance of Symbol 557 MovieClip in Frame 289
onClipEvent (enterFrame) {
if (_root.key_back_up != false) {
if (Key.isDown(79)) {
_root.key_check(79);
_root.key_back_up = false;
}
if (Key.isDown(76)) {
_root.key_check(76);
_root.key_back_up = false;
}
if (Key.isDown(68)) {
_root.key_check(68);
_root.key_back_up = false;
}
if (Key.isDown(83)) {
_root.key_check(83);
_root.key_back_up = false;
}
}
}
onClipEvent (keyUp) {
_root.key_back_up = true;
}
Instance of Symbol 564 MovieClip in Frame 289
on (press) {
if (_root.instructions._currentframe == 1) {
_root.freeze_action = true;
_root.instructions.gotoAndStop(2);
} else if (_root.instructions._currentframe > 1) {
_root.freeze_action = false;
_root.instructions.gotoAndStop(1);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Frame 294
function set_slimespots(direction, working_position) {
checker = _root.map_array[working_position];
if ((checker != "tubeA") && (checker != "tubeB")) {
if (((checker != "wumpus") && (checker != "pit")) && (checker != "wumpus&pit")) {
generic = "gamescreen.mc" + working_position;
tellTarget (generic) {
gotoAndStop ("slimespot");
};
_root.map_array[working_position] = "slimespot";
}
} else {
if (direction == "up") {
if (checker == "tubeA") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
set_slimespots("right", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
set_slimespots("left", working_position);
}
}
if (direction == "left") {
if (checker == "tubeA") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
set_slimespots("down", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
set_slimespots("up", working_position);
}
}
if (direction == "down") {
if (checker == "tubeB") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
set_slimespots("right", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
set_slimespots("left", working_position);
}
}
if (direction == "right") {
if (checker == "tubeB") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
set_slimespots("down", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
set_slimespots("up", working_position);
}
}
}
}
function set_bloodspots1(direction, working_position) {
checker = _root.map_array[working_position];
if ((checker != "tubeA") && (checker != "tubeB")) {
if ((((((checker != "wumpus") && (checker != "pit")) && (checker != "wumpus&pit")) && (checker != "slimespot")) && (checker != "bloodypit")) && (checker != "bloodspot&slimespot")) {
generic = "gamescreen.mc" + working_position;
tellTarget (generic) {
gotoAndStop ("bloodspot");
};
_root.map_array[working_position] = "bloodspot";
_root.bloodspot1_array[_root.bloodspot1_count] = working_position;
_root.bloodspot1_count++;
}
if (checker == "slimespot") {
generic = "gamescreen.mc" + working_position;
tellTarget (generic) {
gotoAndStop ("bloodspot&slimespot");
};
_root.map_array[working_position] = "bloodspot&slimespot";
_root.bloodspot1_array[_root.bloodspot1_count] = working_position;
_root.bloodspot1_count++;
}
if (checker == "pit") {
generic = "gamescreen.mc" + working_position;
tellTarget (generic) {
gotoAndStop ("bloodypit");
};
_root.map_array[working_position] = "bloodypit";
_root.bloodspot1_array[_root.bloodspot1_count] = working_position;
_root.bloodspot1_count++;
}
if (checker == "wumpus") {
_root.bloodspot1_array[_root.bloodspot1_count] = working_position;
_root.bloodspot1_count++;
}
if (checker == "wumpus&pit") {
_root.bloodspot1_array[_root.bloodspot1_count] = working_position;
_root.bloodspot1_count++;
}
if (checker == "bloodspot&slimespot") {
_root.bloodspot1_array[_root.bloodspot1_count] = working_position;
_root.bloodspot1_count++;
}
if (checker == "bloodypit") {
_root.bloodspot1_array[_root.bloodspot1_count] = working_position;
_root.bloodspot1_count++;
}
checker = _root.map_array[working_position];
got_already = false;
j = 0;
while (j < _root.tertiary_array.length) {
tertiary_checker = _root.tertiary_array[j];
if (working_position == tertiary_checker) {
got_already = true;
}
j++;
}
if (got_already == false) {
if (((checker != "pit") && (checker != "wumpus&pit")) && (checker != "bloodypit")) {
_root.tertiary_array[_root.tertiary_count] = working_position;
_root.tertiary_count++;
}
}
} else {
if (direction == "up") {
if (checker == "tubeA") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
set_bloodspots1("right", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
set_bloodspots1("left", working_position);
}
}
if (direction == "left") {
if (checker == "tubeA") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
set_bloodspots1("down", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
set_bloodspots1("up", working_position);
}
}
if (direction == "down") {
if (checker == "tubeB") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
set_bloodspots1("right", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
set_bloodspots1("left", working_position);
}
}
if (direction == "right") {
if (checker == "tubeB") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
set_bloodspots1("down", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
set_bloodspots1("up", working_position);
}
}
}
}
function set_bloodspots2(direction, working_position) {
checker = _root.map_array[working_position];
if ((checker != "tubeA") && (checker != "tubeB")) {
if ((((((checker != "wumpus") && (checker != "pit")) && (checker != "wumpus&pit")) && (checker != "slimespot")) && (checker != "bloodypit")) && (checker != "bloodspot&slimespot")) {
generic = "gamescreen.mc" + working_position;
tellTarget (generic) {
gotoAndStop ("bloodspot");
};
_root.map_array[working_position] = "bloodspot";
}
if (checker == "slimespot") {
generic = "gamescreen.mc" + working_position;
tellTarget (generic) {
gotoAndStop ("bloodspot&slimespot");
};
_root.map_array[working_position] = "bloodspot&slimespot";
}
if (checker == "pit") {
generic = "gamescreen.mc" + working_position;
tellTarget (generic) {
gotoAndStop ("bloodypit");
};
_root.map_array[working_position] = "bloodypit";
}
checker = _root.map_array[working_position];
got_already = false;
j = 0;
while (j < _root.tertiary_array.length) {
tertiary_checker = _root.tertiary_array[j];
if ((working_position == tertiary_checker) || (working_position == _root.rand_wumpus)) {
got_already = true;
}
j++;
}
if (got_already == false) {
if (((checker != "pit") && (checker != "wumpus&pit")) && (checker != "bloodypit")) {
if (_root.from_a_pit == false) {
_root.tertiary_array[_root.tertiary_count] = working_position;
_root.tertiary_count++;
}
}
}
} else {
if (direction == "up") {
if (checker == "tubeA") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
set_bloodspots2("right", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
set_bloodspots2("left", working_position);
}
}
if (direction == "left") {
if (checker == "tubeA") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
set_bloodspots2("down", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
set_bloodspots2("up", working_position);
}
}
if (direction == "down") {
if (checker == "tubeB") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
set_bloodspots2("right", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
set_bloodspots2("left", working_position);
}
}
if (direction == "right") {
if (checker == "tubeB") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
set_bloodspots2("down", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
set_bloodspots2("up", working_position);
}
}
}
}
function move_up() {
position = player_position;
is_legal = _root.check_legal(position, "up");
if (is_legal == true) {
_root.set_position(position, "up");
_root.move_sound();
} else {
_root.illegal_move_sound();
}
}
function move_left() {
position = player_position;
is_legal = _root.check_legal(position, "left");
if (is_legal == true) {
_root.set_position(position, "left");
_root.move_sound();
} else {
_root.illegal_move_sound();
}
}
function move_down() {
position = player_position;
is_legal = _root.check_legal(position, "down");
if (is_legal == true) {
_root.set_position(position, "down");
_root.move_sound();
} else {
_root.illegal_move_sound();
}
}
function move_right() {
position = player_position;
is_legal = _root.check_legal(position, "right");
if (is_legal == true) {
_root.set_position(position, "right");
_root.move_sound();
} else {
_root.illegal_move_sound();
}
}
function check_legal(position, direction) {
checker = _root.map_array[position];
if ((checker != "tubeA") && (checker != "tubeB")) {
return(true);
}
if (checker == "tubeA") {
if (_root.player_tube_position == "top") {
if ((direction == "left") || (direction == "up")) {
return(true);
}
return(false);
}
if (_root.player_tube_position == "bottom") {
if ((direction == "right") || (direction == "down")) {
return(true);
}
return(false);
}
}
if (checker == "tubeB") {
if (_root.player_tube_position == "top") {
if ((direction == "right") || (direction == "up")) {
return(true);
}
return(false);
}
if (_root.player_tube_position == "bottom") {
if ((direction == "left") || (direction == "down")) {
return(true);
}
return(false);
}
}
}
function set_position(position, direction) {
if (direction == "up") {
position = position - 8;
if (position < 0) {
position = position + 48;
}
}
if (direction == "left") {
position = position - 1;
if ((((((position == -1) || (position == 7)) || (position == 15)) || (position == 23)) || (position == 31)) || (position == 39)) {
position = position + 8;
}
}
if (direction == "down") {
position = position + 8;
if (position > 47) {
position = position - 48;
}
}
if (direction == "right") {
position = position + 1;
if ((((((position == 8) || (position == 16)) || (position == 24)) || (position == 32)) || (position == 40)) || (position == 48)) {
position = position - 8;
}
}
_root.player_position = position;
generic = "gamescreen.mc" + position;
_root.gamescreen.player_mc._x = getProperty(generic, _x);
_root.gamescreen.player_mc._y = getProperty(generic, _y);
if (_root.blindfold == true) {
i = 0;
while (i < 48) {
space_mc = "gamescreen.mc" + i;
tellTarget (space_mc) {
setProperty("top", _visible , false);
setProperty("bottom", _visible , false);
};
setProperty(space_mc, _visible , false);
i++;
}
}
checker = _root.map_array[position];
original_x = getProperty(generic, _x);
original_y = getProperty(generic, _y);
if (checker == "tubeA") {
if ((direction == "down") || (direction == "right")) {
_root.player_tube_position = "top";
tellTarget (generic) {
setProperty("top", _visible , true);
};
_root.gamescreen.player_mc._x = original_x - _root.player_offset;
_root.gamescreen.player_mc._y = original_y - _root.player_offset;
} else {
_root.player_tube_position = "bottom";
tellTarget (generic) {
setProperty("bottom", _visible , true);
};
_root.gamescreen.player_mc._x = original_x + _root.player_offset;
_root.gamescreen.player_mc._y = original_y + _root.player_offset;
}
}
if (checker == "tubeB") {
if ((direction == "down") || (direction == "left")) {
_root.player_tube_position = "top";
tellTarget (generic) {
setProperty("top", _visible , true);
};
_root.gamescreen.player_mc._x = original_x + _root.player_offset;
_root.gamescreen.player_mc._y = original_y - _root.player_offset;
} else {
_root.player_tube_position = "bottom";
tellTarget (generic) {
setProperty("bottom", _visible , true);
};
_root.gamescreen.player_mc._x = original_x - _root.player_offset;
_root.gamescreen.player_mc._y = original_y + _root.player_offset;
}
}
if (checker == "wumpus") {
stopAllSounds();
_root.gamescreen.gotoAndPlay("wumpus_death1");
}
if (((checker == "wumpus&pit") || (checker == "pit")) || (checker == "bloodypit")) {
stopAllSounds();
_root.gamescreen.gotoAndPlay("pit_death");
}
if (_root.player_score < 5) {
if ((checker == "slimespot") && (slimespot_notice == false)) {
slimespot_notice = true;
if (_root.skin == "weapons_inspector") {
stopAllSounds();
_root.sc_bloodspot_notice.gotoAndStop(1);
_root.sc_slimespot_notice.gotoAndPlay(2);
}
}
if ((checker == "bloodspot") && (bloodspot_notice == false)) {
bloodspot_notice = true;
if (_root.skin == "weapons_inspector") {
stopAllSounds();
_root.sc_slimespot_notice.gotoAndStop(1);
_root.sc_bloodspot_notice.gotoAndPlay(2);
}
}
if (((checker == "bloodspot&slimespot") && (bloodspot_notice == false)) && (slimespot_notice == false)) {
bloodspot_notice = true;
slimespot_notice = true;
if (_root.skin == "weapons_inspector") {
stopAllSounds();
_root.sc_slimespot_notice.gotoAndStop(1);
_root.sc_bloodspot_notice.gotoAndStop(1);
_root.sc_both_notice.gotoAndPlay(2);
}
}
if (((checker == "bloodspot&slimespot") && (bloodspot_notice == false)) && (slimespot_notice == true)) {
bloodspot_notice = true;
slimespot_notice = true;
if (_root.skin == "weapons_inspector") {
stopAllSounds();
_root.sc_slimespot_notice.gotoAndStop(1);
_root.sc_bloodspot_notice.gotoAndPlay(2);
}
}
if (((checker == "bloodspot&slimespot") && (bloodspot_notice == true)) && (slimespot_notice == false)) {
bloodspot_notice = true;
slimespot_notice = true;
if (_root.skin == "weapons_inspector") {
stopAllSounds();
_root.sc_slimespot_notice.gotoAndPlay(2);
_root.sc_bloodspot_notice.gotoAndStop(1);
}
}
}
setProperty(generic, _visible , true);
if (_root.blindfold == true) {
_root.gamescreen.bat1._visible = false;
_root.gamescreen.bat2._visible = false;
}
if (position == _root.rand_bat1) {
_root.gamescreen.bat1._visible = true;
_root.bat1_counter++;
if (bat1_counter == 2) {
_root.bat_pickup(1);
}
if (bat1_counter > 2) {
rand1 = Math.round(random(5));
if (rand1 == 0) {
_root.bat_pickup(1);
}
}
}
if (position == _root.rand_bat2) {
_root.gamescreen.bat2._visible = true;
_root.bat2_counter++;
if (bat2_counter == 2) {
_root.bat_pickup(2);
}
if (bat2_counter > 2) {
rand1 = Math.round(random(5));
if (rand1 == 0) {
_root.bat_pickup(2);
}
}
}
}
function fire_arrow(direction, working_position) {
checker = _root.map_array[working_position];
if ((checker != "tubeA") && (checker != "tubeB")) {
if ((checker == "wumpus") || (checker == "wumpus&pit")) {
_root.outcome = "hit";
} else {
_root.outcome = "miss";
}
_root.gamescreen.gotoAndPlay("arrow");
} else {
if (direction == "up") {
if (checker == "tubeA") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
fire_arrow("right", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
fire_arrow("left", working_position);
}
}
if (direction == "left") {
if (checker == "tubeA") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
fire_arrow("down", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
fire_arrow("up", working_position);
}
}
if (direction == "down") {
if (checker == "tubeB") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
fire_arrow("right", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
fire_arrow("left", working_position);
}
}
if (direction == "right") {
if (checker == "tubeB") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
fire_arrow("down", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
fire_arrow("up", working_position);
}
}
}
}
function bat_pickup(num) {
generic = "gamescreen.bat" + num;
_root.current_bat = num;
tellTarget (generic) {
if (_root.skin == "weapons_inspector") {
stopAllSounds();
}
gotoAndPlay (2);
};
}
function drop_player() {
if (_root.express == true) {
checker = "tubeA";
do {
position = Math.round(random(48));
checker = _root.map_array[position];
} while ((checker == "tubeA") || (checker == "tubeB"));
}
_root.bat_red_flag = true;
if (_root.express == false) {
do {
position = Math.round(random(48));
checker = _root.map_array[position];
if ((checker != "tubeA") && (checker != "tubeB")) {
_root.bat_red_flag = false;
} else {
_root.bat_loop_count = 0;
rand_tube_position = Math.round(random(2));
if (rand_tube_position == 0) {
if (checker == "tubeA") {
direction = "down";
_root.bat_loop_checker("down", position);
}
if (checker == "tubeB") {
direction = "up";
_root.bat_loop_checker("up", position);
}
}
if (rand_tube_position == 1) {
if (checker == "tubeA") {
direction = "up";
_root.bat_loop_checker("up", position);
}
if (checker == "tubeB") {
direction = "down";
_root.bat_loop_checker("down", position);
}
}
}
} while (_root.bat_red_flag == true);
}
_root.efgh = _root.bat_red_flag;
_root.abcd = safe_bat_position;
_root.player_position = position;
generic = "gamescreen.mc" + position;
_root.gamescreen.player_mc._x = getProperty(generic, _x);
_root.gamescreen.player_mc._y = getProperty(generic, _y);
checker = _root.map_array[position];
original_x = getProperty(generic, _x);
original_y = getProperty(generic, _y);
if (checker == "tubeA") {
if ((direction == "down") || (direction == "right")) {
_root.player_tube_position = "top";
tellTarget (generic) {
setProperty("top", _visible , true);
};
_root.gamescreen.player_mc._x = original_x - _root.player_offset;
_root.gamescreen.player_mc._y = original_y - _root.player_offset;
} else {
_root.player_tube_position = "bottom";
tellTarget (generic) {
setProperty("bottom", _visible , true);
};
_root.gamescreen.player_mc._x = original_x + _root.player_offset;
_root.gamescreen.player_mc._y = original_y + _root.player_offset;
}
}
if (checker == "tubeB") {
if ((direction == "down") || (direction == "left")) {
_root.player_tube_position = "top";
tellTarget (generic) {
setProperty("top", _visible , true);
};
_root.gamescreen.player_mc._x = original_x + _root.player_offset;
_root.gamescreen.player_mc._y = original_y - _root.player_offset;
} else {
_root.player_tube_position = "bottom";
tellTarget (generic) {
setProperty("bottom", _visible , true);
};
_root.gamescreen.player_mc._x = original_x - _root.player_offset;
_root.gamescreen.player_mc._y = original_y + _root.player_offset;
}
}
if (checker == "wumpus") {
_root.bat_death_wumpus = true;
}
if (((checker == "wumpus&pit") || (checker == "pit")) || (checker == "bloodypit")) {
_root.bat_death_pit = true;
}
setProperty(generic, _visible , true);
}
function redistribute_bat(num) {
if (num == 1) {
do {
_root.rand_bat1 = Math.round(random(48));
checker = _root.map_array[rand_bat1];
} while (((((checker == "tubeA") || (checker == "tubeB")) || (rand_bat1 == _root.rand_bat2)) || (checker == "wumpus&pit")) || (checker == "wumpus"));
generic = "gamescreen.mc" + rand_bat1;
xcoords_bat1 = getProperty(generic, _x);
ycoords_bat1 = getProperty(generic, _y);
_root.gamescreen.bat1._visible = false;
_root.gamescreen.bat1._x = xcoords_bat1;
_root.gamescreen.bat1._y = ycoords_bat1;
}
if (num == 2) {
do {
_root.rand_bat2 = Math.round(random(48));
checker = _root.map_array[rand_bat2];
} while (((((checker == "tubeA") || (checker == "tubeB")) || (rand_bat2 == _root.rand_bat1)) || (checker == "wumpus&pit")) || (checker == "wumpus"));
generic = "gamescreen.mc" + rand_bat2;
xcoords_bat2 = getProperty(generic, _x);
ycoords_bat2 = getProperty(generic, _y);
_root.gamescreen.bat2._visible = false;
_root.gamescreen.bat2._x = xcoords_bat2;
_root.gamescreen.bat2._y = ycoords_bat2;
}
}
function express_move(direction, working_position) {
checker = _root.map_array[working_position];
if ((checker != "tubeA") && (checker != "tubeB")) {
_root.set_position(working_position, "none");
} else {
if (direction == "up") {
if (checker == "tubeA") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
express_move("right", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
express_move("left", working_position);
}
}
if (direction == "left") {
if (checker == "tubeA") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
express_move("down", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
express_move("up", working_position);
}
}
if (direction == "down") {
if (checker == "tubeB") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
express_move("right", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
express_move("left", working_position);
}
}
if (direction == "right") {
if (checker == "tubeB") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
express_move("down", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
express_move("up", working_position);
}
}
}
}
function set_tertiary(direction, working_position) {
checker = _root.map_array[working_position];
if ((checker != "tubeA") && (checker != "tubeB")) {
checker = _root.map_array[working_position];
got_already = false;
j = 0;
while (j < _root.tertiary_array.length) {
tertiary_checker = _root.tertiary_array[j];
if ((working_position == tertiary_checker) || (working_position == _root.rand_wumpus)) {
got_already = true;
}
j++;
}
if (got_already == false) {
if (((checker != "pit") && (checker != "wumpus&pit")) && (checker != "bloodypit")) {
_root.tertiary_array[_root.tertiary_count] = working_position;
_root.tertiary_count++;
if ((checker != "slimespot") && (checker != "bloodspot&slimespot")) {
generic = "gamescreen.mc" + working_position;
tellTarget (generic) {
gotoAndStop ("safe");
};
_root.map_array[working_position] = "safe";
}
}
}
} else {
if (direction == "up") {
if (checker == "tubeA") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
set_tertiary("right", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
set_tertiary("left", working_position);
}
}
if (direction == "left") {
if (checker == "tubeA") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
set_tertiary("down", working_position);
}
if (checker == "tubeB") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
set_tertiary("up", working_position);
}
}
if (direction == "down") {
if (checker == "tubeB") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
set_tertiary("right", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
set_tertiary("left", working_position);
}
}
if (direction == "right") {
if (checker == "tubeB") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
set_tertiary("down", working_position);
}
if (checker == "tubeA") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
set_tertiary("up", working_position);
}
}
}
}
function bat_loop_checker(direction, working_position) {
_root.bat_red_flag = false;
checker = _root.map_array[working_position];
if ((checker != "tubeA") && (checker != "tubeB")) {
} else {
_root.bat_loop_count++;
if (_root.bat_loop_count > 20) {
_root.ttt++;
_root.bat_loop_count = 0;
_root.bat_red_flag = true;
}
if (direction == "up") {
if (checker == "tubeA") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
if (_root.bat_red_flag == false) {
bat_loop_checker("right", working_position);
}
}
if (checker == "tubeB") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
if (_root.bat_red_flag == false) {
bat_loop_checker("left", working_position);
}
}
}
if (direction == "left") {
if (checker == "tubeA") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
if (_root.bat_red_flag == false) {
bat_loop_checker("down", working_position);
}
}
if (checker == "tubeB") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
if (_root.bat_red_flag == false) {
bat_loop_checker("up", working_position);
}
}
}
if (direction == "down") {
if (checker == "tubeB") {
working_position = working_position + 1;
if ((((((working_position == 8) || (working_position == 16)) || (working_position == 24)) || (working_position == 32)) || (working_position == 40)) || (working_position == 48)) {
working_position = working_position - 8;
}
if (_root.bat_red_flag == false) {
bat_loop_checker("right", working_position);
}
}
if (checker == "tubeA") {
working_position = working_position - 1;
if ((((((working_position == -1) || (working_position == 7)) || (working_position == 15)) || (working_position == 23)) || (working_position == 31)) || (working_position == 39)) {
working_position = working_position + 8;
}
if (_root.bat_red_flag == false) {
bat_loop_checker("left", working_position);
}
}
}
if (direction == "right") {
if (checker == "tubeB") {
working_position = working_position + 8;
if (working_position > 47) {
working_position = working_position - 48;
}
if (_root.bat_red_flag == false) {
bat_loop_checker("down", working_position);
}
}
if (checker == "tubeA") {
working_position = working_position - 8;
if (working_position < 0) {
working_position = working_position + 48;
}
if (_root.bat_red_flag == false) {
bat_loop_checker("up", working_position);
}
}
}
}
}
function move_sound() {
_root.sc_step.gotoAndPlay(2);
}
function illegal_move_sound() {
_root.sc_illegal_move.gotoAndPlay(2);
}
function fanfare_sound() {
_root.sc_fanfare.gotoAndPlay(2);
}
function refresh() {
if (_root.death_sequence != true) {
if (_root.bat_death_wumpus == true) {
_root.death_sequence = true;
_root.gamescreen.gotoAndPlay("wumpus_death1");
}
if (_root.bat_death_pit == true) {
_root.death_sequence = true;
_root.gamescreen.gotoAndPlay("pit_death");
}
}
if (_root.freeze_action == false) {
if (Key.isDown(38)) {
_root.attempt_up();
}
if (Key.isDown(37)) {
_root.attempt_left();
}
if (Key.isDown(40)) {
_root.attempt_down();
}
if (Key.isDown(39)) {
_root.attempt_right();
}
if (Key.isDown(32) || (Key.isDown(81))) {
_root.attempt_fire();
}
if ((((((!Key.isDown(39)) && (!Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(40))) && (!Key.isDown(32))) && (!Key.isDown(81))) {
key_resetted = true;
}
}
}
function attempt_up() {
if (key_resetted == true) {
if (_root.firing_mode == false) {
if (_root.express == false) {
_root.move_up();
key_resetted = false;
} else {
position = _root.player_position;
is_legal = _root.check_legal(position, "up");
if (is_legal == true) {
position = position - 8;
if (position < 0) {
position = position + 48;
}
_root.express_move("up", position);
_root.move_sound();
key_resetted = false;
}
}
} else {
position = _root.player_position;
is_legal = _root.check_legal(position, "up");
if (is_legal == true) {
position = position - 8;
if (position < 0) {
position = position + 48;
}
_root.arrow_direction = "up";
_root.fire_arrow("up", position);
}
}
}
}
function attempt_left() {
if (key_resetted == true) {
if (_root.firing_mode == false) {
if (_root.express == false) {
_root.move_left();
key_resetted = false;
} else {
position = _root.player_position;
is_legal = _root.check_legal(position, "left");
if (is_legal == true) {
position = position - 1;
if ((((((position == -1) || (position == 7)) || (position == 15)) || (position == 23)) || (position == 31)) || (position == 39)) {
position = position + 8;
}
_root.express_move("left", position);
_root.move_sound();
key_resetted = false;
}
}
} else {
position = _root.player_position;
is_legal = _root.check_legal(position, "left");
if (is_legal == true) {
position = position - 1;
if ((((((position == -1) || (position == 7)) || (position == 15)) || (position == 23)) || (position == 31)) || (position == 39)) {
position = position + 8;
}
_root.arrow_direction = "left";
_root.fire_arrow("left", position);
}
}
}
}
function attempt_down() {
if (key_resetted == true) {
if (_root.firing_mode == false) {
if (_root.express == false) {
_root.move_down();
key_resetted = false;
} else {
position = _root.player_position;
is_legal = _root.check_legal(position, "down");
if (is_legal == true) {
position = position + 8;
if (position > 47) {
position = position - 48;
}
_root.express_move("down", position);
_root.move_sound();
key_resetted = false;
}
}
} else {
position = _root.player_position;
is_legal = _root.check_legal(position, "down");
if (is_legal == true) {
position = position + 8;
if (position > 47) {
position = position - 48;
}
_root.arrow_direction = "down";
_root.fire_arrow("down", position);
}
}
}
}
function attempt_right() {
if (key_resetted == true) {
if (_root.firing_mode == false) {
if (_root.express == false) {
_root.move_right();
key_resetted = false;
} else {
position = _root.player_position;
is_legal = _root.check_legal(position, "right");
if (is_legal == true) {
position = position + 1;
if ((((((position == 8) || (position == 16)) || (position == 24)) || (position == 32)) || (position == 40)) || (position == 48)) {
position = position - 8;
}
_root.express_move("right", position);
_root.move_sound();
key_resetted = false;
}
}
} else {
position = _root.player_position;
is_legal = _root.check_legal(position, "right");
if (is_legal == true) {
position = position + 1;
if ((((((position == 8) || (position == 16)) || (position == 24)) || (position == 32)) || (position == 40)) || (position == 48)) {
position = position - 8;
}
_root.arrow_direction = "right";
_root.fire_arrow("right", position);
}
}
}
}
function attempt_fire() {
if (key_resetted == true) {
if (_root.firing_mode == false) {
_root.firing_mode = true;
tellTarget ("gamescreen.player_mc") {
gotoAndStop (2);
};
} else {
_root.firing_mode = false;
_root.outcome = "nothing";
tellTarget ("gamescreen.player_mc") {
gotoAndStop (1);
};
}
key_resetted = false;
}
}
function unlock_old_school() {
gotoAndPlay (908);
}
if (game_session_started != true) {
game_session_started = true;
player_score = 0;
wumpus_score = 0;
wumpus_score1 = 0;
wumpus_score2 = 0;
pit_score = 0;
_root.gamescreen.grid._visible = false;
_root.gamescreen.grid_labels._visible = false;
}
stopAllSounds();
instructions.gotoAndStop(1);
_root.gamescreen.grid._visible = false;
_root.gamescreen.grid_labels._visible = false;
key_resetted = true;
player_offset = 10;
player_position_set = false;
firing_mode = false;
bat1_counter = 0;
bat2_counter = 0;
slimespot_notice = false;
bloodspot_notice = false;
freeze_action = false;
_root.death_sequence = false;
_root.bat_death_wumpus = false;
_root.bat_death_pit = false;
if (_root.skin == "weapons_inspector") {
if (_root.player_score < 10) {
_root.kill_meter.gotoAndStop(_root.player_score + 1);
}
if (_root.player_score >= 10) {
_root.kill_meter.gotoAndStop(11);
}
}
board = "safe";
if (_root.difficulty_level == "easy") {
total_tubes = 9;
}
if (_root.difficulty_level == "hard") {
total_tubes = 22;
}
if (_root.difficulty_level == "pro") {
total_tubes = 29;
}
additional_tubes = Math.round(random(4)) + 1;
total_tubes = total_tubes + additional_tubes;
_root.map_array = new array();
i = 0;
while (i < 48) {
_root.map_array[i] = "empty";
i++;
}
i = 0;
while (i < _root.total_tubes) {
rand1 = Math.round(random(2));
if (rand1 == 0) {
_root.map_array[i] = "tubeA";
} else {
_root.map_array[i] = "tubeB";
}
i++;
}
tertiary_array = new array();
tertiary_count = 0;
bloodspot1_array = new array("empty", "empty", "empty", "empty");
bloodspot1_count = 0;
i = 0;
while (i < 500) {
rand1 = Math.round(random(48));
rand2 = Math.round(random(48));
temp = map_array[rand2];
map_array[rand2] = map_array[rand1];
map_array[rand1] = temp;
i++;
}
rand_pit1 = Math.round(random(48));
map_array[rand_pit1] = "pit";
pit_location = rand_pit1;
rand_pit2 = rand_pit1;
do {
rand_pit2 = Math.round(random(48));
} while (rand_pit2 == rand_pit1);
map_array[rand_pit2] = "pit";
rand_wumpus = Math.round(random(48));
map_array[rand_wumpus] = "wumpus";
if (rand_wumpus == rand_pit1) {
map_array[rand_wumpus] = "wumpus&pit";
}
if (rand_wumpus == rand_pit2) {
map_array[rand_wumpus] = "wumpus&pit";
}
wumpus_location = rand_wumpus;
position = rand_pit1 - 8;
if (position < 0) {
position = position + 48;
}
_root.set_slimespots("up", position);
position = rand_pit1 - 1;
if ((((((position == -1) || (position == 7)) || (position == 15)) || (position == 23)) || (position == 31)) || (position == 39)) {
position = position + 8;
}
_root.set_slimespots("left", position);
position = rand_pit1 + 8;
if (position > 47) {
position = position - 48;
}
_root.set_slimespots("down", position);
position = rand_pit1 + 1;
if ((((((position == 8) || (position == 16)) || (position == 24)) || (position == 32)) || (position == 40)) || (position == 48)) {
position = position - 8;
}
_root.set_slimespots("right", position);
position = rand_pit2 - 8;
if (position < 0) {
position = position + 48;
}
_root.set_slimespots("up", position);
position = rand_pit2 - 1;
if ((((((position == -1) || (position == 7)) || (position == 15)) || (position == 23)) || (position == 31)) || (position == 39)) {
position = position + 8;
}
_root.set_slimespots("left", position);
position = rand_pit2 + 8;
if (position > 47) {
position = position - 48;
}
_root.set_slimespots("down", position);
position = rand_pit2 + 1;
if ((((((position == 8) || (position == 16)) || (position == 24)) || (position == 32)) || (position == 40)) || (position == 48)) {
position = position - 8;
}
_root.set_slimespots("right", position);
position = rand_wumpus - 8;
if (position < 0) {
position = position + 48;
}
_root.set_bloodspots1("up", position);
position = rand_wumpus - 1;
if ((((((position == -1) || (position == 7)) || (position == 15)) || (position == 23)) || (position == 31)) || (position == 39)) {
position = position + 8;
}
_root.set_bloodspots1("left", position);
position = rand_wumpus + 8;
if (position > 47) {
position = position - 48;
}
_root.set_bloodspots1("down", position);
position = rand_wumpus + 1;
if ((((((position == 8) || (position == 16)) || (position == 24)) || (position == 32)) || (position == 40)) || (position == 48)) {
position = position - 8;
}
_root.set_bloodspots1("right", position);
i = 0;
while (i < 4) {
_root.from_a_pit = false;
pit_check = _root.map_array[bloodspot1_array[i]];
if (pit_check == "bloodypit") {
_root.from_a_pit = true;
}
position = bloodspot1_array[i] - 8;
if (position < 0) {
position = position + 48;
}
_root.set_bloodspots2("up", position);
_root.from_a_pit = false;
pit_check = _root.map_array[bloodspot1_array[i]];
if (pit_check == "bloodypit") {
_root.from_a_pit = true;
}
position = bloodspot1_array[i] - 1;
if ((((((position == -1) || (position == 7)) || (position == 15)) || (position == 23)) || (position == 31)) || (position == 39)) {
position = position + 8;
}
_root.set_bloodspots2("left", position);
_root.from_a_pit = false;
pit_check = _root.map_array[bloodspot1_array[i]];
if (pit_check == "bloodypit") {
_root.from_a_pit = true;
}
position = bloodspot1_array[i] + 8;
if (position > 47) {
position = position - 48;
}
_root.set_bloodspots2("down", position);
_root.from_a_pit = false;
pit_check = _root.map_array[bloodspot1_array[i]];
if (pit_check == "bloodypit") {
_root.from_a_pit = true;
}
position = bloodspot1_array[i] + 1;
if ((((((position == 8) || (position == 16)) || (position == 24)) || (position == 32)) || (position == 40)) || (position == 48)) {
position = position - 8;
}
_root.set_bloodspots2("right", position);
i++;
}
i = 0;
while (i < tertiary_array.length) {
position = tertiary_array[i] - 8;
if (position < 0) {
position = position + 48;
}
_root.set_tertiary("up", position);
position = tertiary_array[i] - 1;
if ((((((position == -1) || (position == 7)) || (position == 15)) || (position == 23)) || (position == 31)) || (position == 39)) {
position = position + 8;
}
_root.set_tertiary("left", position);
position = tertiary_array[i] + 8;
if (position > 47) {
position = position - 48;
}
_root.set_tertiary("down", position);
position = tertiary_array[i] + 1;
if ((((((position == 8) || (position == 16)) || (position == 24)) || (position == 32)) || (position == 40)) || (position == 48)) {
position = position - 8;
}
_root.set_tertiary("right", position);
i++;
}
i = 0;
while (i < 48) {
generic = "gamescreen.mc" + i;
_root.frame_label = _root.map_array[i];
tellTarget (generic) {
if (_root.frame_label == "tubeA") {
gotoAndStop ("tubeA");
}
if (_root.frame_label == "tubeB") {
gotoAndStop ("tubeB");
}
if (_root.frame_label == "wumpus") {
gotoAndStop ("wumpus");
}
if (_root.frame_label == "pit") {
gotoAndStop ("pit");
}
if (_root.frame_label == "wumpus&pit") {
gotoAndStop ("wumpus&pit");
}
if (_root.frame_label == "slimespot") {
gotoAndStop ("slimespot");
}
if (_root.frame_label == "bloodspot") {
gotoAndStop ("bloodspot");
}
if (_root.frame_label == "bloodspot&slimespot") {
gotoAndStop ("bloodspot&slimespot");
}
if (_root.frame_label == "bloodypit") {
gotoAndStop ("bloodypit");
}
if (_root.frame_label == "safe") {
gotoAndStop ("safe");
}
};
i++;
}
i = 0;
while (i < 48) {
generic = "gamescreen.mc" + i;
tellTarget (generic) {
setProperty("top", _visible , false);
setProperty("bottom", _visible , false);
};
setProperty(generic, _visible , false);
i++;
}
safe_position = false;
i = 0;
while (i < 48) {
checker = _root.map_array[i];
if (((((((((checker != "wumpus") && (checker != "wumpus&pit")) && (checker != "pit")) && (checker != "slimespot")) && (checker != "bloodypit")) && (checker != "bloodspot&slimespot")) && (checker != "bloodspot")) && (checker != "tubeA")) && (checker != "tubeB")) {
safe_position = true;
break;
}
i++;
}
if (safe_position == false) {
board = "unsafe";
gotoAndPlay (293);
}
wumpus_accessible = true;
i = 0;
while (i < 48) {
checker = _root.map_array[i];
if (checker == "empty") {
wumpus_accessible = false;
}
i++;
}
if (wumpus_accessible == false) {
board = "unsafe";
gotoAndPlay (293);
}
player_position_set = false;
i = 0;
while (i < 500) {
rand_player = Math.round(random(48));
player_position = rand_player;
checker = _root.map_array[rand_player];
if (((((((((checker != "wumpus") && (checker != "wumpus&pit")) && (checker != "pit")) && (checker != "slimespot")) && (checker != "bloodypit")) && (checker != "bloodspot&slimespot")) && (checker != "bloodspot")) && (checker != "tubeA")) && (checker != "tubeB")) {
player_position_set = true;
break;
}
i++;
}
if (player_position_set == false) {
board = "unsafe";
gotoAndPlay (293);
}
generic = "gamescreen.mc" + player_position;
_root.gamescreen.player_mc._x = getProperty(generic, _x);
_root.gamescreen.player_mc._y = getProperty(generic, _y);
setProperty(generic, _visible , true);
do {
rand_bat1 = Math.round(random(48));
checker = _root.map_array[rand_bat1];
} while ((((checker == "tubeA") || (checker == "tubeB")) || (checker == "wumpus&pit")) || (checker == "wumpus"));
do {
rand_bat2 = Math.round(random(48));
checker = _root.map_array[rand_bat2];
} while (((((checker == "tubeA") || (checker == "tubeB")) || (rand_bat2 == rand_bat1)) || (checker == "wumpus&pit")) || (checker == "wumpus"));
generic = "gamescreen.mc" + rand_bat1;
xcoords_bat1 = getProperty(generic, _x);
ycoords_bat1 = getProperty(generic, _y);
generic = "gamescreen.mc" + rand_bat2;
xcoords_bat2 = getProperty(generic, _x);
ycoords_bat2 = getProperty(generic, _y);
_root.gamescreen.bat1._visible = false;
_root.gamescreen.bat2._visible = false;
_root.gamescreen.bat1._x = xcoords_bat1;
_root.gamescreen.bat1._y = ycoords_bat1;
_root.gamescreen.bat2._x = xcoords_bat2;
_root.gamescreen.bat2._y = ycoords_bat2;
if (board == "safe") {
_root.freeze_action = false;
_root.fanfare_sound();
}
Instance of Symbol 575 MovieClip in Frame 294
onClipEvent (load) {
previous_time = getTimer();
}
onClipEvent (enterFrame) {
_root.refresh();
}
onClipEvent (mouseDown) {
if (_root.freeze_action == false) {
if (_root.gamescreen.hitTest(_root._xmouse, _root._ymouse, false)) {
mouse_x = _root.gamescreen._xmouse;
mouse_y = _root.gamescreen._ymouse;
player_x = _root.gamescreen.player_mc._x;
player_y = _root.gamescreen.player_mc._y;
if ((mouse_x < player_x) && (mouse_y < player_y)) {
if ((player_x - mouse_x) > (player_y - mouse_y)) {
_root.attempt_left();
} else {
_root.attempt_up();
}
}
if ((mouse_x > player_x) && (mouse_y < player_y)) {
if ((mouse_x - player_x) > (player_y - mouse_y)) {
_root.attempt_right();
} else {
_root.attempt_up();
}
}
if ((mouse_x < player_x) && (mouse_y > player_y)) {
if ((player_x - mouse_x) > (mouse_y - player_y)) {
_root.attempt_left();
} else {
_root.attempt_down();
}
}
if ((mouse_x > player_x) && (mouse_y > player_y)) {
if ((mouse_x - player_x) > (mouse_y - player_y)) {
_root.attempt_right();
} else {
_root.attempt_down();
}
}
}
}
}
Instance of Symbol 593 MovieClip "kill_meter" in Frame 294
onClipEvent (load) {
if (_root.skin == "classic") {
this._visible = false;
}
}
Instance of Symbol 595 MovieClip "killometerlabel" in Frame 294
onClipEvent (load) {
if (_root.skin == "classic") {
this._visible = false;
}
}
Instance of Symbol 564 MovieClip in Frame 294
on (press) {
if (_root.cut_scene_in_progress != true) {
if (_root.instructions._currentframe == 1) {
_root.freeze_action = true;
_root.instructions.gotoAndStop(2);
} else if (_root.instructions._currentframe > 1) {
_root.freeze_action = false;
_root.instructions.gotoAndStop(1);
}
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 611 MovieClip in Frame 294
on (press) {
if (_root.freeze_action == false) {
_root.attempt_fire();
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 613 MovieClip in Frame 294
onClipEvent (load) {
if (_root.skin == "classic") {
this._visible = false;
}
}
Frame 295
stop();
Frame 305
function show_map() {
if (_root.gamescreen._visible == false) {
_root.gamescreen._visible = true;
_root.gamescreen.grid._visible = false;
_root.gamescreen.grid_labels._visible = false;
i = 0;
while (i < 48) {
generic = "gamescreen.mc" + i;
_root.frame_label = _root.map_array[i];
tellTarget (generic) {
if (_root.frame_label == "tubeA") {
gotoAndStop ("tubeA");
}
if (_root.frame_label == "tubeB") {
gotoAndStop ("tubeB");
}
if (_root.frame_label == "wumpus") {
gotoAndStop ("wumpus");
}
if (_root.frame_label == "pit") {
gotoAndStop ("pit");
}
if (_root.frame_label == "wumpus&pit") {
gotoAndStop ("wumpus&pit");
}
if (_root.frame_label == "slimespot") {
gotoAndStop ("slimespot");
}
if (_root.frame_label == "bloodspot") {
gotoAndStop ("bloodspot");
}
if (_root.frame_label == "bloodspot&slimespot") {
gotoAndStop ("bloodspot&slimespot");
}
if (_root.frame_label == "bloodypit") {
gotoAndStop ("bloodypit");
}
if (_root.frame_label == "safe") {
gotoAndStop ("safe");
}
};
i++;
}
i = 0;
while (i < 48) {
generic = "gamescreen.mc" + i;
tellTarget (generic) {
setProperty("top", _visible , true);
setProperty("bottom", _visible , true);
};
setProperty(generic, _visible , true);
i++;
}
_root.gamescreen.player_mc._visible = false;
generic = "gamescreen.mc" + rand_bat1;
xcoords_bat1 = getProperty(generic, _x);
ycoords_bat1 = getProperty(generic, _y);
generic = "gamescreen.mc" + rand_bat2;
xcoords_bat2 = getProperty(generic, _x);
ycoords_bat2 = getProperty(generic, _y);
_root.gamescreen.bat1._x = xcoords_bat1;
_root.gamescreen.bat1._y = ycoords_bat1;
_root.gamescreen.bat2._x = xcoords_bat2;
_root.gamescreen.bat2._y = ycoords_bat2;
} else {
_root.gamescreen._visible = false;
}
}
gamescreen._visible = false;
gamescreen.player_mc._visible = false;
gamescreen.bat1._visible = false;
gamescreen.bat2._visible = false;
if (_root.player_score < 10) {
_root.kill_meter.gotoAndStop(_root.player_score + 1);
}
if (_root.player_score >= 10) {
_root.kill_meter.gotoAndStop(11);
}
if ((_root.player_score == 10) && (_root.skin == "weapons_inspector")) {
if (_root.credits_roll != true) {
gotoAndPlay (312);
}
}
stop();
stop();
Instance of Symbol 672 MovieClip in Frame 305
on (press) {
_root.show_map();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 678 MovieClip in Frame 305
on (press) {
_root.freeze_action = false;
_parent.gotoAndPlay("main_menu");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 685 MovieClip in Frame 305
on (press) {
_parent.gotoAndPlay("game_start");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 564 MovieClip in Frame 305
on (press) {
if (_root.instructions._currentframe == 1) {
_root.freeze_action = true;
_root.instructions.gotoAndStop(2);
} else if (_root.instructions._currentframe > 1) {
_root.instructions.gotoAndStop(1);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Frame 312
play();
Frame 902
stop();
Frame 906
stop();
Frame 907
stop();
Frame 908
_root.skin = "classic";
Frame 1029
splash_screen.butbecareful._visible = true;
Frame 1141
_root.skin = "classic";
Frame 1249
_root.skin = "classic";
gotoAndStop (289);
Symbol 13 Button
on (release) {
getURL ("http://www.section8studios.com/", "_blank");
}
Symbol 35 Button
on (release) {
gotoAndPlay (7);
}
Symbol 38 Button
on (press) {
gotoAndPlay (287);
}
Symbol 83 Button
on (press) {
_root.difficulty_level = "easy";
set_menu1_invisible();
wumpus_easy._visible = true;
}
Symbol 84 Button
on (press) {
_root.difficulty_level = "hard";
set_menu1_invisible();
wumpus_hard._visible = true;
}
Symbol 85 Button
on (press) {
_root.difficulty_level = "pro";
set_menu1_invisible();
wumpus_pro._visible = true;
}
Symbol 86 Button
on (press) {
_root.blindfold = false;
_root.express = false;
set_menu2_invisible();
wumpus_normal._visible = true;
}
Symbol 87 Button
on (press) {
_root.blindfold = true;
_root.express = false;
set_menu2_invisible();
wumpus_blindfold._visible = true;
}
Symbol 88 Button
on (press) {
_root.blindfold = false;
_root.express = true;
set_menu2_invisible();
wumpus_express._visible = true;
}
Symbol 89 Button
on (press) {
_root.blindfold = true;
_root.express = true;
set_menu2_invisible();
wumpus_blindfoldexpress._visible = true;
}
Symbol 91 Button
on (press) {
_parent.gotoAndPlay("game_start");
}
Symbol 100 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 100 MovieClip Frame 10
stop();
Symbol 100 MovieClip Frame 20
stop();
Symbol 100 MovieClip Frame 30
stop();
Symbol 100 MovieClip Frame 40
stop();
Symbol 104 Button
on (press) {
if (_root.freeze_action != true) {
_parent.gotoAndPlay("game_start");
}
}
Symbol 117 Button
on (press) {
_root.difficulty_level = "easy";
set_menu1_invisible();
wumpus_easy._visible = true;
}
Symbol 118 Button
on (press) {
_root.difficulty_level = "hard";
set_menu1_invisible();
wumpus_hard._visible = true;
}
Symbol 119 Button
on (press) {
_root.difficulty_level = "pro";
set_menu1_invisible();
wumpus_pro._visible = true;
}
Symbol 120 Button
on (press) {
_root.blindfold = false;
_root.express = false;
set_menu2_invisible();
wumpus_normal._visible = true;
}
Symbol 121 Button
on (press) {
_root.blindfold = true;
_root.express = false;
set_menu2_invisible();
wumpus_blindfold._visible = true;
}
Symbol 122 Button
on (press) {
_root.blindfold = false;
_root.express = true;
set_menu2_invisible();
wumpus_express._visible = true;
}
Symbol 123 Button
on (press) {
_root.blindfold = true;
_root.express = true;
set_menu2_invisible();
wumpus_blindfoldexpress._visible = true;
}
Symbol 124 MovieClip Frame 1
if (_root.skin == "classic") {
gotoAndStop (2);
} else {
gotoAndStop (10);
}
Symbol 124 MovieClip Frame 2
function set_menu1_invisible() {
wumpus_easy._visible = false;
wumpus_hard._visible = false;
wumpus_pro._visible = false;
}
function set_menu2_invisible() {
wumpus_normal._visible = false;
wumpus_blindfold._visible = false;
wumpus_express._visible = false;
wumpus_blindfoldexpress._visible = false;
}
_root.difficulty_level = "easy";
_root.blindfold = false;
_root.express = false;
set_menu1_invisible();
set_menu2_invisible();
wumpus_easy._visible = true;
wumpus_normal._visible = true;
stop();
Symbol 124 MovieClip Frame 10
function set_menu1_invisible() {
wumpus_easy._visible = false;
wumpus_hard._visible = false;
wumpus_pro._visible = false;
}
function set_menu2_invisible() {
wumpus_normal._visible = false;
wumpus_blindfold._visible = false;
wumpus_express._visible = false;
wumpus_blindfoldexpress._visible = false;
}
_root.difficulty_level = "easy";
_root.blindfold = false;
_root.express = false;
set_menu1_invisible();
set_menu2_invisible();
wumpus_easy._visible = true;
wumpus_normal._visible = true;
stop();
Symbol 132 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 136 Button
on (press) {
nextFrame();
}
Symbol 141 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 141 MovieClip Frame 10
stop();
Symbol 141 MovieClip Frame 20
stop();
Symbol 141 MovieClip Frame 30
stop();
Symbol 141 MovieClip Frame 40
stop();
Symbol 146 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 146 MovieClip Frame 10
stop();
Symbol 146 MovieClip Frame 20
stop();
Symbol 146 MovieClip Frame 40
stop();
Symbol 151 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 151 MovieClip Frame 10
stop();
Symbol 151 MovieClip Frame 20
stop();
Symbol 151 MovieClip Frame 30
stop();
Symbol 151 MovieClip Frame 40
stop();
Symbol 155 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 155 MovieClip Frame 10
stop();
Symbol 155 MovieClip Frame 20
stop();
Symbol 155 MovieClip Frame 30
stop();
Symbol 155 MovieClip Frame 40
stop();
Symbol 159 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 159 MovieClip Frame 10
stop();
Symbol 159 MovieClip Frame 20
stop();
Symbol 159 MovieClip Frame 30
stop();
Symbol 159 MovieClip Frame 40
stop();
Symbol 162 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 162 MovieClip Frame 10
stop();
Symbol 162 MovieClip Frame 20
stop();
Symbol 162 MovieClip Frame 30
stop();
Symbol 162 MovieClip Frame 40
stop();
Symbol 166 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 166 MovieClip Frame 10
stop();
Symbol 166 MovieClip Frame 20
stop();
Symbol 166 MovieClip Frame 30
stop();
Symbol 166 MovieClip Frame 40
stop();
Symbol 170 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 170 MovieClip Frame 10
stop();
Symbol 170 MovieClip Frame 20
stop();
Symbol 170 MovieClip Frame 30
stop();
Symbol 170 MovieClip Frame 40
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 5
stop();
Symbol 171 MovieClip Frame 15
stop();
Symbol 171 MovieClip Frame 25
stop();
Symbol 175 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 175 MovieClip Frame 20
stop();
Symbol 175 MovieClip Frame 30
stop();
Symbol 175 MovieClip Frame 40
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
gotoAndPlay(_root.skin);
Symbol 184 MovieClip Frame 10
_root.freeze_action = true;
_root.gamescreen.player_mc._visible = false;
play();
Symbol 184 MovieClip Frame 38
num = _root.current_bat;
_root.redistribute_bat(num);
_root.gamescreen.player_mc._visible = true;
_root.drop_player();
_root.freeze_action = false;
gotoAndStop (1);
Symbol 184 MovieClip Frame 53
_root.freeze_action = true;
_root.gamescreen.player_mc._visible = false;
play();
Symbol 184 MovieClip Frame 87
num = _root.current_bat;
_root.redistribute_bat(num);
_root.gamescreen.player_mc._visible = true;
_root.drop_player();
_root.freeze_action = false;
gotoAndStop (1);
Symbol 209 MovieClip Frame 1
gotoAndPlay(_root.skin);
stop();
Symbol 211 Button
on (press) {
prevFrame();
}
Symbol 217 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 217 MovieClip Frame 10
stop();
Symbol 217 MovieClip Frame 20
stop();
Symbol 217 MovieClip Frame 30
stop();
Symbol 217 MovieClip Frame 40
stop();
Symbol 277 MovieClip Frame 1
gotoAndPlay(_root.skin);
stop();
Symbol 277 MovieClip Frame 10
play();
Symbol 277 MovieClip Frame 36
gotoAndPlay (10);
Symbol 277 MovieClip Frame 40
play();
Symbol 277 MovieClip Frame 53
gotoAndPlay (40);
Symbol 277 MovieClip Frame 60
stop();
Symbol 277 MovieClip Frame 70
play();
Symbol 277 MovieClip Frame 93
gotoAndPlay (70);
Symbol 284 MovieClip Frame 24
gotoAndPlay (5);
Symbol 290 MovieClip Frame 1
gotoAndPlay(_root.skin);
stop();
Symbol 290 MovieClip Frame 10
play();
Symbol 290 MovieClip Frame 36
gotoAndPlay (10);
Symbol 290 MovieClip Frame 40
play();
Symbol 290 MovieClip Frame 53
gotoAndPlay (40);
Symbol 290 MovieClip Frame 60
stop();
Symbol 290 MovieClip Frame 70
stop();
Symbol 290 MovieClip Frame 73
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 2
play();
Symbol 296 MovieClip Frame 73
gotoAndStop (1);
Symbol 304 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
gotoAndPlay(_root.skin);
stop();
Symbol 314 MovieClip Frame 2
sc_wumpus_death.gotoAndPlay(2);
play();
Symbol 314 MovieClip Frame 71
_root.wumpus_score++;
_root.wumpus_score1++;
_root.game_result = "wumpus1";
_root.gotoAndPlay("menu");
stop();
Symbol 314 MovieClip Frame 85
_root.cut_scene_in_progress = true;
if ((_root.wumpus_score1 == 0) || ((_root.wumpus_score1 % 3) == 0)) {
play();
} else {
gotoAndPlay (282);
}
Symbol 314 MovieClip Frame 354
_root.cut_scene_in_progress = false;
_root.wumpus_score++;
_root.wumpus_score1++;
_root.game_result = "wumpus1";
_root.gotoAndPlay("menu");
stop();
Symbol 433 MovieClip Frame 1
gotoAndPlay(_root.skin);
stop();
Symbol 433 MovieClip Frame 2
sc_wumpus_death.gotoAndPlay(2);
play();
Symbol 433 MovieClip Frame 71
_root.wumpus_score++;
_root.wumpus_score2++;
_root.game_result = "wumpus2";
_root.gotoAndPlay("menu");
stop();
Symbol 433 MovieClip Frame 80
_root.cut_scene_in_progress = true;
if ((_root.wumpus_score2 == 0) || ((_root.wumpus_score2 % 3) == 0)) {
play();
} else {
gotoAndPlay (242);
}
Symbol 433 MovieClip Frame 351
if ((_root.wumpus_score2 == 0) || ((_root.wumpus_score2 % 3) == 0)) {
play();
} else {
gotoAndPlay (774);
}
Symbol 433 MovieClip Frame 774
_root.cut_scene_in_progress = false;
_root.wumpus_score++;
_root.wumpus_score2++;
_root.game_result = "wumpus2";
_root.gotoAndPlay("menu");
stop();
Symbol 448 MovieClip Frame 1
gotoAndPlay(_root.skin);
stop();
Symbol 448 MovieClip Frame 2
stopAllSounds();
play();
Symbol 448 MovieClip Frame 61
_root.pit_score++;
_root.game_result = "pit";
_root.gotoAndPlay("menu");
stop();
Symbol 448 MovieClip Frame 70
_root.cut_scene_in_progress = true;
play();
Symbol 448 MovieClip Frame 128
_root.cut_scene_in_progress = false;
_root.pit_score++;
_root.game_result = "pit";
_root.gotoAndPlay("menu");
stop();
Symbol 450 MovieClip Frame 1
stop();
Symbol 450 MovieClip Frame 2
play();
Symbol 450 MovieClip Frame 11
gotoAndStop (1);
Symbol 478 MovieClip Frame 1
gotoAndPlay(_root.skin);
stop();
Symbol 478 MovieClip Frame 2
sc_arrow.gotoAndPlay(2);
if (_root.arrow_direction == "up") {
gotoAndPlay (51);
}
if (_root.arrow_direction == "left") {
gotoAndPlay (13);
}
if (_root.arrow_direction == "down") {
gotoAndPlay (70);
}
if (_root.arrow_direction == "right") {
gotoAndPlay (32);
}
Symbol 478 MovieClip Frame 31
if (_root.outcome == "hit") {
_root.gamescreen.gotoAndPlay("got_it");
}
if (_root.outcome == "miss") {
_root.gamescreen.gotoAndPlay("wumpus_death2");
}
stop();
Symbol 478 MovieClip Frame 50
if (_root.outcome == "hit") {
_root.gamescreen.gotoAndPlay("got_it");
}
if (_root.outcome == "miss") {
_root.gamescreen.gotoAndPlay("wumpus_death2");
}
stop();
Symbol 478 MovieClip Frame 69
if (_root.outcome == "hit") {
_root.gamescreen.gotoAndPlay("got_it");
}
if (_root.outcome == "miss") {
_root.gamescreen.gotoAndPlay("wumpus_death2");
}
stop();
Symbol 478 MovieClip Frame 88
if (_root.outcome == "hit") {
_root.gamescreen.gotoAndPlay("got_it");
}
if (_root.outcome == "miss") {
_root.gamescreen.gotoAndPlay("wumpus_death2");
}
stop();
Symbol 478 MovieClip Frame 100
_root.cut_scene_in_progress = true;
rand1 = Math.round(random(100));
if ((rand1 < 50) || ((_root.wumpus_score + _root.player_score) == 0)) {
play();
} else {
gotoAndPlay (136);
}
Symbol 478 MovieClip Frame 197
if (_root.outcome == "hit") {
_root.gamescreen.gotoAndPlay("got_it");
}
if (_root.outcome == "miss") {
_root.gamescreen.gotoAndPlay("wumpus_death2");
}
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
play();
Symbol 480 MovieClip Frame 61
_root.player_score++;
_root.game_result = "player";
_root.gotoAndPlay("menu");
Symbol 480 MovieClip Frame 100
gotoAndStop (1);
Symbol 503 MovieClip Frame 1
gotoAndPlay(_root.skin);
stop();
Symbol 503 MovieClip Frame 2
sc_got_it.gotoAndPlay(2);
if (_root.arrow_direction == "up") {
gotoAndPlay (32);
}
if (_root.arrow_direction == "left") {
gotoAndPlay (42);
}
if (_root.arrow_direction == "down") {
gotoAndPlay (11);
}
if (_root.arrow_direction == "right") {
gotoAndPlay (21);
}
Symbol 503 MovieClip Frame 20
stop();
Symbol 503 MovieClip Frame 31
stop();
Symbol 503 MovieClip Frame 41
stop();
Symbol 503 MovieClip Frame 52
stop();
Symbol 503 MovieClip Frame 70
_root.cut_scene_in_progress = true;
if ((_root.player_score == 0) || ((_root.player_score % 3) == 0)) {
play();
} else {
gotoAndPlay (232);
}
Symbol 503 MovieClip Frame 354
_root.cut_scene_in_progress = false;
_root.player_score++;
_root.game_result = "player";
_root.gotoAndPlay("menu");
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 10
_root.freeze_action = true;
stop();
Symbol 504 MovieClip Frame 25
_root.freeze_action = true;
stop();
Symbol 504 MovieClip Frame 39
_root.freeze_action = true;
stop();
Symbol 504 MovieClip Frame 54
_root.freeze_action = true;
stop();
Symbol 504 MovieClip Frame 64
_root.freeze_action = true;
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 10
gotoAndStop (1);
Symbol 512 MovieClip Frame 15
play();
Symbol 512 MovieClip Frame 32
stop();
Symbol 512 MovieClip Frame 33
play();
Symbol 512 MovieClip Frame 50
stop();
Symbol 512 MovieClip Frame 51
play();
Symbol 512 MovieClip Frame 68
stop();
Symbol 512 MovieClip Frame 69
play();
Symbol 512 MovieClip Frame 86
stop();
Symbol 517 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 517 MovieClip Frame 5
stop();
Symbol 517 MovieClip Frame 15
stop();
Symbol 524 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 524 MovieClip Frame 5
stop();
Symbol 524 MovieClip Frame 15
stop();
Symbol 537 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 537 MovieClip Frame 5
stop();
Symbol 537 MovieClip Frame 15
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
play();
Symbol 543 MovieClip Frame 15
gotoAndStop (1);
Symbol 552 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 552 MovieClip Frame 5
stop();
Symbol 552 MovieClip Frame 15
stop();
Symbol 554 Button
on (press) {
_root.freeze_action = false;
this.gotoAndStop(1);
}
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 2
stop();
Symbol 555 MovieClip Frame 3
instr_spot1.gotoAndStop("safe");
instr_spot2.gotoAndStop("wumpus");
instr_spot3.gotoAndStop("bloodspot");
instr_spot4.gotoAndStop("pit");
instr_spot5.gotoAndStop("slimespot");
instr_spot6.gotoAndStop("safe");
stop();
Symbol 555 MovieClip Frame 4
function navigate(working_space) {
frame_label = arrow_key_array[arrow_key_array_pos];
arrow_keys_mc.gotoAndPlay(frame_label);
arrow_key_array_pos++;
if (arrow_key_array_pos >= arrow_key_array.length) {
arrow_key_array_pos = 1;
}
space = "instr_gamescreen.mc" + working_space;
xcoords = getProperty(space, _x);
ycoords = getProperty(space, _y);
instr_gamescreen.player_mc._x = xcoords;
instr_gamescreen.player_mc._y = ycoords;
offset = 10;
if (working_space == 46) {
instr_gamescreen.player_mc._x = instr_gamescreen.player_mc._x - offset;
instr_gamescreen.player_mc._y = instr_gamescreen.player_mc._y - offset;
}
if ((working_space == 9) || (working_space == 31)) {
instr_gamescreen.player_mc._x = instr_gamescreen.player_mc._x + offset;
instr_gamescreen.player_mc._y = instr_gamescreen.player_mc._y - offset;
}
if ((working_space == 11) || (working_space == 45)) {
instr_gamescreen.player_mc._x = instr_gamescreen.player_mc._x + offset;
instr_gamescreen.player_mc._y = instr_gamescreen.player_mc._y + offset;
}
if (((working_space == 12) || (working_space == 23)) || (working_space == 43)) {
instr_gamescreen.player_mc._x = instr_gamescreen.player_mc._x - offset;
instr_gamescreen.player_mc._y = instr_gamescreen.player_mc._y + offset;
}
}
instr_gamescreen.grid._visible = false;
instr_gamescreen.grid_labels._visible = false;
instr_gamescreen.player_mc._visible = true;
instr_gamescreen.player_mc.gotoAndPlay(1);
instr_gamescreen.bat1._visible = false;
instr_gamescreen.bat2._visible = false;
i = 0;
while (i < 48) {
generic = "instr_gamescreen.mc" + i;
tellTarget (generic) {
gotoAndStop ("safe");
};
setProperty(generic, _visible , true);
i++;
}
i = 0;
while (i < 48) {
generic = "instr_gamescreen.mc" + i;
if (((((((((i == 2) || (i == 6)) || (i == 11)) || (i == 14)) || (i == 28)) || (i == 32)) || (i == 40)) || (i == 45)) || (i == 46)) {
tellTarget (generic) {
gotoAndStop ("tubeA");
};
}
if ((((((((((((((((i == 0) || (i == 9)) || (i == 12)) || (i == 17)) || (i == 23)) || (i == 24)) || (i == 25)) || (i == 26)) || (i == 30)) || (i == 31)) || (i == 34)) || (i == 35)) || (i == 36)) || (i == 37)) || (i == 43)) || (i == 47)) {
tellTarget (generic) {
gotoAndStop ("tubeB");
};
}
i++;
}
arrow_key_array = new Array("still", "down", "right", "down", "right", "up", "right", "down", "right", "right", "right", "down", "right", "down", "left", "left", "down", "left", "down", "left", "left", "up", "left", "left", "down");
arrow_key_array_pos = 0;
stop();
Instance of Symbol 291 MovieClip "instr_player_mc" in Symbol 555 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
counter = 0;
navigation_pos = 0;
navigation_array = new array(1, 9, 10, 18, 19, 11, 12, 20, 21, 22, 23, 31, 24, 32, 39, 38, 46, 45, 5, 4, 3, 43, 42, 41);
}
onClipEvent (enterFrame) {
if (counter == 0) {
working_space = navigation_array[navigation_pos];
_parent.navigate(working_space);
counter = 18;
navigation_pos++;
if (navigation_pos >= navigation_array.length) {
navigation_pos = 0;
}
} else {
counter--;
}
}
Symbol 555 MovieClip Frame 5
instr_gamescreen.player_mc._visible = false;
instr_gamescreen.grid_labels._visible = false;
instr_gamescreen.bat1._visible = false;
instr_gamescreen.bat2._visible = false;
i = 0;
while (i < 48) {
generic = "instr_gamescreen.mc" + i;
tellTarget (generic) {
gotoAndStop ("safe");
};
setProperty(generic, _visible , true);
i++;
}
i = 0;
while (i < 48) {
generic = "instr_gamescreen.mc" + i;
if ((i == 1) || (i == 28)) {
tellTarget (generic) {
gotoAndStop ("pit");
};
}
if (((((i == 11) || (i == 18)) || (i == 25)) || (i == 32)) || (i == 35)) {
tellTarget (generic) {
gotoAndStop ("tubeA");
};
}
if ((((((i == 0) || (i == 6)) || (i == 9)) || (i == 26)) || (i == 30)) || (i == 45)) {
tellTarget (generic) {
gotoAndStop ("tubeB");
};
}
if ((((((((i == 2) || (i == 10)) || (i == 20)) || (i == 27)) || (i == 29)) || (i == 36)) || (i == 40)) || (i == 41)) {
tellTarget (generic) {
gotoAndStop ("slimespot");
};
}
i++;
}
stop();
Symbol 555 MovieClip Frame 6
instr_gamescreen.player_mc._visible = false;
instr_gamescreen.grid_labels._visible = false;
instr_gamescreen.bat1._visible = false;
instr_gamescreen.bat2._visible = false;
i = 0;
while (i < 48) {
generic = "instr_gamescreen.mc" + i;
tellTarget (generic) {
gotoAndStop ("safe");
};
setProperty(generic, _visible , true);
i++;
}
i = 0;
while (i < 48) {
generic = "instr_gamescreen.mc" + i;
if (i == 10) {
tellTarget (generic) {
gotoAndStop ("wumpus");
};
}
if (((((i == 0) || (i == 8)) || (i == 11)) || (i == 16)) || (i == 40)) {
tellTarget (generic) {
gotoAndStop ("tubeA");
};
}
if (((((i == 21) || (i == 28)) || (i == 42)) || (i == 44)) || (i == 45)) {
tellTarget (generic) {
gotoAndStop ("tubeB");
};
}
if ((((((((((((i == 1) || (i == 2)) || (i == 3)) || (i == 4)) || (i == 9)) || (i == 17)) || (i == 18)) || (i == 19)) || (i == 23)) || (i == 26)) || (i == 41)) || (i == 43)) {
tellTarget (generic) {
gotoAndStop ("bloodspot");
};
}
i++;
}
stop();
Symbol 555 MovieClip Frame 7
function navigate(working_space) {
frame_label = arrow_key_array[arrow_key_array_pos];
arrow_keys_mc.gotoAndPlay(frame_label);
arrow_key_array_pos++;
if (arrow_key_array_pos == 4) {
instr_gamescreen.player_mc.gotoAndPlay(2);
spacebar_mc.gotoAndPlay(2);
}
if (arrow_key_array_pos >= arrow_key_array.length) {
arrow_key_array_pos = 1;
instr_gamescreen.player_mc.gotoAndStop(1);
}
space = "instr_gamescreen.mc" + working_space;
xcoords = getProperty(space, _x);
ycoords = getProperty(space, _y);
instr_gamescreen.player_mc._x = xcoords;
instr_gamescreen.player_mc._y = ycoords;
offset = 10;
}
instr_gamescreen.player_mc._visible = true;
instr_gamescreen.grid_labels._visible = false;
instr_gamescreen.bat1._visible = false;
instr_gamescreen.bat2._visible = false;
i = 0;
while (i < 48) {
generic = "instr_gamescreen.mc" + i;
setProperty(generic, _visible , false);
i++;
}
i = 0;
while (i < 48) {
generic = "instr_gamescreen.mc" + i;
if ((((((((((i == 2) || (i == 9)) || (i == 10)) || (i == 12)) || (i == 20)) || (i == 21)) || (i == 29)) || (i == 36)) || (i == 43)) || (i == 44)) {
tellTarget (generic) {
gotoAndStop ("safe");
};
setProperty(generic, _visible , true);
}
if (((((i == 11) || (i == 26)) || (i == 27)) || (i == 28)) || (i == 42)) {
tellTarget (generic) {
gotoAndStop ("tubeA");
};
setProperty(generic, _visible , true);
}
if (i == 3) {
tellTarget (generic) {
gotoAndStop ("tubeB");
};
setProperty(generic, _visible , true);
instr_gamescreen.mc3.top._visible = false;
}
if (((((((((i == 1) || (i == 16)) || (i == 17)) || (i == 18)) || (i == 19)) || (i == 25)) || (i == 34)) || (i == 35)) || (i == 41)) {
tellTarget (generic) {
gotoAndStop ("bloodspot");
};
setProperty(generic, _visible , true);
}
if (i == 8) {
tellTarget (generic) {
gotoAndStop ("slimespot");
};
setProperty(generic, _visible , true);
}
if (i == 24) {
tellTarget (generic) {
gotoAndStop ("bloodspot&slimespot");
};
setProperty(generic, _visible , true);
}
i++;
}
arrow_key_array = new Array("still", "up", "left", "still", "left", "still", "still", "still");
arrow_key_array_pos = 0;
stop();
Instance of Symbol 291 MovieClip "instr_player_mc2" in Symbol 555 MovieClip Frame 7
onClipEvent (load) {
this._visible = false;
counter = 0;
navigation_pos = 0;
navigation_array = new array(43, 35, 34, 34, 34, 34, 34);
}
onClipEvent (enterFrame) {
if (counter == 0) {
working_space = navigation_array[navigation_pos];
_parent.navigate(working_space);
counter = 18;
navigation_pos++;
if (navigation_pos >= navigation_array.length) {
navigation_pos = 0;
}
} else {
counter--;
}
}
Symbol 562 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 562 MovieClip Frame 10
stop();
Symbol 562 MovieClip Frame 25
stop();
Symbol 563 MovieClip Frame 5
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 2
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 2
play();
Symbol 565 MovieClip Frame 4
gotoAndStop (1);
Symbol 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 2
play();
Symbol 566 MovieClip Frame 4
gotoAndStop (1);
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 2
play();
Symbol 567 MovieClip Frame 40
gotoAndStop (1);
Symbol 569 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 2
if (_root.player_score == 0) {
_root.freeze_action = true;
}
play();
Symbol 569 MovieClip Frame 55
if (_root.player_score == 0) {
_root.freeze_action = false;
}
gotoAndStop (1);
Symbol 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 2
if (_root.player_score == 0) {
_root.freeze_action = true;
}
play();
Symbol 571 MovieClip Frame 49
if (_root.player_score == 0) {
_root.freeze_action = false;
}
gotoAndStop (1);
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 2
if (_root.player_score == 0) {
_root.freeze_action = true;
}
play();
Symbol 573 MovieClip Frame 92
if (_root.player_score == 0) {
_root.freeze_action = false;
}
gotoAndStop (1);
Symbol 580 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 580 MovieClip Frame 10
stop();
Symbol 580 MovieClip Frame 20
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 2
stop();
Symbol 593 MovieClip Frame 3
stop();
Symbol 593 MovieClip Frame 4
stop();
Symbol 593 MovieClip Frame 5
stop();
Symbol 593 MovieClip Frame 6
stop();
Symbol 593 MovieClip Frame 7
stop();
Symbol 593 MovieClip Frame 8
stop();
Symbol 593 MovieClip Frame 9
stop();
Symbol 593 MovieClip Frame 10
stop();
Symbol 593 MovieClip Frame 11
stop();
Symbol 599 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 599 MovieClip Frame 10
stop();
Symbol 599 MovieClip Frame 20
stop();
Symbol 607 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 607 MovieClip Frame 10
stop();
Symbol 607 MovieClip Frame 25
stop();
Symbol 610 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 610 MovieClip Frame 10
stop();
Symbol 610 MovieClip Frame 25
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 2
stop();
Symbol 644 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 644 MovieClip Frame 10
stop();
Symbol 644 MovieClip Frame 20
stop();
Symbol 644 MovieClip Frame 30
stop();
Symbol 644 MovieClip Frame 40
stop();
Symbol 654 MovieClip Frame 1
if (_root.game_result == "player") {
gotoAndPlay (5);
}
if ((_root.game_result == "wumpus1") || (_root.game_result == "wumpus2")) {
gotoAndPlay (15);
}
if (_root.game_result == "pit") {
gotoAndPlay (25);
}
stop();
Symbol 654 MovieClip Frame 5
stop();
Symbol 654 MovieClip Frame 15
stop();
Symbol 654 MovieClip Frame 25
stop();
Symbol 665 MovieClip Frame 1
if (_root.game_result == "player") {
gotoAndStop (5);
}
if (_root.game_result == "wumpus1") {
gotoAndStop (15);
}
if (_root.game_result == "wumpus2") {
gotoAndStop (25);
}
if (_root.game_result == "pit") {
gotoAndStop (35);
}
stop();
Symbol 665 MovieClip Frame 5
stop();
Symbol 665 MovieClip Frame 15
stop();
Symbol 665 MovieClip Frame 25
stop();
Symbol 665 MovieClip Frame 35
stop();
Symbol 666 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 669 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 669 MovieClip Frame 10
stop();
Symbol 669 MovieClip Frame 25
stop();
Symbol 671 MovieClip Frame 5
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 2
stop();
Symbol 675 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 675 MovieClip Frame 10
stop();
Symbol 675 MovieClip Frame 25
stop();
Symbol 677 MovieClip Frame 5
stop();
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 2
stop();
Symbol 681 MovieClip Frame 1
gotoAndStop(_root.skin);
stop();
Symbol 681 MovieClip Frame 10
stop();
Symbol 681 MovieClip Frame 25
stop();
Symbol 684 MovieClip Frame 5
stop();
Symbol 685 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 2
stop();
Symbol 690 MovieClip Frame 10
stop();
Symbol 702 Button
on (press) {
_root.credits_roll = true;
_root.freeze_action = false;
gotoAndStop (289);
}
Symbol 710 MovieClip Frame 1
stop();
Instance of Symbol 705 MovieClip "butbecareful" in Symbol 710 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 713 Button
on (press) {
_root.skin = "classic";
gotoAndStop (289);
}