Frame 1
var VERSION = 0.1;
dial = new Array();
dial[1] = new Array("undefined text... sorry 'bout that", 1);
dial[11] = new Array("Link, did you hear that? It sounded like an earthquake!", "I wonder what happened...", 2);
dial[12] = new Array("Second conversation?", "Yes, it's working fine.", 2);
dial[21] = new Array("Heyya Link, how's it going?", "It's certainly a nice day outside!", 2);
dial[1001] = new Array("undefined!!!", 1);
dial[1002] = new Array("undefined!!!", 1);
dial[1003] = new Array("You found a blue rupee!\nThat's worth 5 rupees.", "Why someone would use a whole chest to store this, you don't know, but you'll take it anyway.", 2);
dial[1004] = new Array("You found a small key!\nUse it to unlock one door.\nIt can only be used in this dungeon.", 1);
dial[1005] = new Array("You found a yellow rupee!\nThat's worth 10 rupees.", "It's not worth much, but its golden colour\nsure looks nice!", 2);
dial[1006] = new Array("undefined!!!", 1);
dial[1007] = new Array("undefined!!!", 1);
dial[1008] = new Array("You found a Piece of Heart!\nCollecting four of these will give you an extra heart container!", 1);
dial[1009] = new Array("You found a... Well... umm...", "You're not sure what this is, but let's keep it anyway.", 2);
dial[1010] = new Array("You found 20 rupees! Lucky!", 1);
dial[1011] = new Array("undefined!!!", 1);
dial[1012] = new Array("undefined!!!", 1);
dial[1013] = new Array("You found a small key!\nUse it to unlock one door.", "It can only be used in this dungeon.", 2);
dial[1014] = new Array("You found 100 rupees!\nYour face is beaming!", 1);
dial[1015] = new Array("You found 10 rupees!\nNot too shabby!", 1);
var treasure = new Array(0, 0, "20R", "key", "5R", 0, 0, "PoH", "PoM", "20R", 0, 0, "key", "100R", "10R", 0, "20R", 0);
room = new Array();
room1 = new Array();
room1[0] = new Array(101, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 101, 0, 0, 0, 0, 0, 0);
room1[1] = new Array(105, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 109, 0, 0, 0, 0, 0, 0);
room1[2] = new Array(110, 111, 7, 32, 32, 32, 32, 8, 32, 32, 32, 32, 112, 113, 0, 0, 0, 0, 0, 0);
room1[3] = new Array(110, 111, 32, 0, 0, 0, 0, 32, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room1[4] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room1[5] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room1[6] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room1[7] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room1[8] = new Array(114, 115, 116, 117, 118, 116, 119, 120, 125, 116, 117, 118, 126, 127, 0, 0, 0, 0, 0, 0);
room1[9] = new Array(101, 128, 129, 130, 131, 129, 132, 133, 134, 129, 130, 131, 135, 101, 0, 0, 0, 0, 0, 0);
room1[10] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 0, 0, 0, 0, 0);
room2 = new Array();
room2[0] = new Array(9, 0, 0, 0, 0, 9, 169, 170, 171, 0, 9, 0, 0, 0, 0, 9, 0, 0, 0, 0);
room2[1] = new Array(0, 0, 169, 170, 171, 0, 172, 173, 174, 169, 170, 171, 0, 0, 0, 0, 0, 169, 170, 171);
room2[2] = new Array(0, 0, 172, 173, 174, 0, 0, 0, 0, 172, 173, 174, 169, 170, 171, 169, 170, 171, 173, 174);
room2[3] = new Array(0, 0, 175, 176, 142, 143, 143, 143, 146, 175, 176, 177, 172, 173, 174, 172, 173, 174, 176, 177);
room2[4] = new Array(169, 170, 171, 0, 147, 148, 149, 150, 151, 152, 0, 0, 175, 176, 177, 175, 176, 177, 0, 0);
room2[5] = new Array(172, 173, 174, 0, 153, 154, 155, 158, 159, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
room2[6] = new Array(175, 176, 177, 0, 156, 164, 157, 161, 162, 163, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0);
room2[7] = new Array(169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 0, 178, 178, 41, 0, 0, 0, 0, 0, 0);
room2[8] = new Array(172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 178, 178, 178, 0, 41, 0, 0, 0, 0, 0);
room2[9] = new Array(175, 176, 177, 0, 0, 0, 0, 0, 0, 0, 178, 178, 178, 0, 0, 0, 0, 169, 170, 171);
room2[10] = new Array(9, 169, 170, 171, 0, 9, 0, 0, 0, 0, 9, 0, 0, 0, 0, 9, 0, 172, 173, 174);
room2[11] = new Array(0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 482, 0, 0, 0, 0, 0, 0, 175, 176, 177);
room2[12] = new Array(0, 175, 173, 174, 0, 0, 0, 0, 179, 179, 179, 0, 70, 179, 0, 0, 0, 169, 170, 171);
room2[13] = new Array(0, 0, 169, 170, 171, 0, 0, 0, 179, 179, 179, 0, 0, 0, 0, 0, 0, 172, 173, 174);
room2[14] = new Array(0, 0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177);
room2[15] = new Array(0, 169, 170, 171, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0);
room2[16] = new Array(0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0);
room2[17] = new Array(0, 175, 176, 177, 0, 0, 0, 0, 0, 0, 169, 170, 171, 172, 173, 174, 175, 169, 170, 171);
room2[18] = new Array(0, 169, 170, 171, 180, 0, 180, 169, 170, 171, 172, 173, 174, 175, 176, 177, 0, 172, 173, 174);
room2[19] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30);
room3 = new Array();
room3[0] = new Array(9, 169, 170, 171, 0, 9, 0, 169, 170, 171, 9, 0, 0, 0, 0, 9, 169, 170, 171, 169);
room3[1] = new Array(171, 172, 173, 174, 0, 0, 0, 172, 173, 174, 169, 170, 171, 169, 170, 171, 172, 173, 174, 172);
room3[2] = new Array(174, 175, 176, 177, 169, 170, 171, 175, 176, 177, 172, 173, 174, 172, 173, 174, 175, 176, 177, 175);
room3[3] = new Array(177, 0, 0, 0, 172, 173, 174, 0, 0, 0, 175, 176, 177, 175, 176, 177, 0, 169, 170, 171);
room3[4] = new Array(0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174);
room3[5] = new Array(0, 0, 0, 0, 0, 142, 143, 144, 145, 146, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177);
room3[6] = new Array(0, 0, 0, 0, 0, 147, 148, 149, 150, 151, 152, 0, 0, 0, 0, 0, 0, 169, 170, 171);
room3[7] = new Array(0, 0, 0, 0, 0, 153, 154, 155, 158, 159, 160, 0, 0, 0, 0, 0, 0, 172, 173, 174);
room3[8] = new Array(0, 0, 0, 0, 0, 156, 164, 157, 161, 162, 163, 0, 0, 0, 0, 0, 0, 175, 176, 177);
room3[9] = new Array(171, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
room3[10] = new Array(174, 0, 9, 0, 0, 9, 0, 0, 0, 0, 9, 0, 0, 0, 0, 9, 0, 0, 0, 0);
room3[11] = new Array(177, 169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 142, 143, 145, 145, 146, 0, 0, 0, 0);
room3[12] = new Array(0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 147, 148, 149, 150, 151, 152, 0, 0, 0);
room3[13] = new Array(0, 169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 153, 154, 155, 158, 159, 160, 0, 169, 170);
room3[14] = new Array(0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 156, 165, 157, 161, 162, 163, 0, 172, 173);
room3[15] = new Array(0, 175, 176, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170);
room3[16] = new Array(0, 0, 169, 170, 171, 169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 0);
room3[17] = new Array(170, 171, 172, 173, 174, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171);
room3[18] = new Array(173, 174, 175, 176, 177, 175, 176, 177, 169, 170, 171, 169, 170, 171, 0, 0, 0, 172, 173, 174);
room3[19] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 172, 173, 174, 169, 170, 171, 0, 0, 30);
room4 = new Array();
room4[0] = new Array(5, 0, 0, 0, 0, 5, 199, 195, 199, 199, 5, 0, 0, 0, 0, 5, 0, 196, 195, 196);
room4[1] = new Array(0, 0, 0, 0, 0, 0, 195, 199, 195, 199, 0, 0, 0, 0, 0, 0, 0, 195, 196, 195);
room4[2] = new Array(0, 0, 0, 0, 0, 0, 199, 195, 199, 199, 0, 0, 0, 0, 0, 0, 0, 196, 195, 196);
room4[3] = new Array(0, 0, 0, 0, 0, 0, 195, 199, 195, 199, 0, 0, 0, 0, 0, 0, 0, 195, 196, 195);
room4[4] = new Array(0, 0, 0, 0, 0, 0, 206, 195, 199, 199, 0, 0, 0, 0, 0, 0, 0, 196, 195, 196);
room4[5] = new Array(191, 190, 191, 190, 191, 190, 206, 199, 195, 199, 0, 0, 0, 0, 0, 0, 0, 195, 196, 195);
room4[6] = new Array(190, 191, 190, 191, 190, 191, 190, 206, 199, 199, 0, 0, 0, 0, 0, 0, 0, 196, 195, 196);
room4[7] = new Array(191, 190, 191, 190, 191, 190, 191, 190, 206, 199, 0, 0, 0, 0, 0, 0, 0, 195, 196, 195);
room4[8] = new Array(190, 191, 190, 191, 190, 191, 190, 191, 190, 206, 0, 0, 0, 0, 0, 0, 0, 196, 195, 196);
room4[9] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 196, 195);
room4[10] = new Array(5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 196, 195, 196);
room4[11] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 196, 195);
room4[12] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 196);
room4[13] = new Array(169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 196, 195);
room4[14] = new Array(172, 173, 174, 169, 170, 171, 0, 0, 0, 0, 0, 0, 169, 170, 171, 172, 173, 174, 195, 196);
room4[15] = new Array(175, 176, 177, 172, 173, 174, 169, 170, 171, 169, 170, 171, 172, 173, 174, 175, 176, 177, 196, 195);
room4[16] = new Array(0, 0, 0, 175, 176, 177, 172, 173, 174, 172, 173, 174, 175, 176, 177, 0, 0, 196, 195, 196);
room4[17] = new Array(0, 0, 0, 0, 0, 0, 175, 176, 177, 175, 176, 177, 0, 0, 0, 0, 0, 195, 196, 195);
room4[18] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 195, 196);
room4[19] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 196, 30);
room5 = new Array();
room5[0] = new Array(101, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 101, 0, 0, 0, 0, 0, 0);
room5[1] = new Array(105, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 109, 0, 0, 0, 0, 0, 0);
room5[2] = new Array(110, 111, 7, 0, 0, 0, 0, 8, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room5[3] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room5[4] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room5[5] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room5[6] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room5[7] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 0);
room5[8] = new Array(114, 115, 116, 117, 118, 116, 119, 120, 125, 116, 117, 118, 126, 127, 0, 0, 0, 0, 0, 0);
room5[9] = new Array(101, 128, 129, 130, 131, 129, 132, 133, 134, 129, 130, 131, 135, 101, 0, 0, 0, 0, 0, 0);
room5[10] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 0, 0, 0, 0, 0);
room6 = new Array();
room6[0] = new Array(6, 169, 170, 171, 180, 6, 169, 170, 171, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 0);
room6[1] = new Array(0, 172, 173, 174, 0, 0, 172, 173, 174, 169, 170, 171, 169, 170, 171, 0, 0, 0, 0, 0);
room6[2] = new Array(0, 175, 176, 177, 0, 0, 175, 176, 177, 172, 173, 174, 172, 173, 174, 169, 170, 171, 169, 0);
room6[3] = new Array(169, 170, 171, 0, 0, 0, 0, 0, 0, 175, 176, 177, 175, 176, 177, 172, 173, 174, 172, 0);
room6[4] = new Array(172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 175, 176, 177, 175, 0);
room6[5] = new Array(175, 176, 177, 0, 0, 0, 0, 0, 169, 170, 171, 0, 172, 173, 174, 0, 0, 0, 0, 0);
room6[6] = new Array(0, 0, 169, 170, 171, 0, 0, 0, 172, 173, 174, 0, 175, 176, 177, 0, 0, 169, 170, 0);
room6[7] = new Array(0, 0, 172, 173, 174, 0, 0, 0, 175, 176, 177, 0, 0, 169, 170, 171, 0, 172, 173, 0);
room6[8] = new Array(0, 0, 175, 176, 177, 0, 0, 169, 170, 171, 0, 0, 0, 172, 173, 174, 0, 175, 176, 0);
room6[9] = new Array(0, 169, 170, 171, 0, 0, 0, 172, 173, 174, 0, 0, 0, 175, 176, 177, 0, 169, 170, 0);
room6[10] = new Array(6, 172, 173, 174, 178, 6, 0, 175, 176, 177, 6, 0, 0, 0, 0, 6, 0, 172, 173, 0);
room6[11] = new Array(0, 175, 176, 177, 178, 178, 178, 178, 0, 0, 0, 0, 0, 169, 170, 171, 0, 175, 176, 0);
room6[12] = new Array(169, 170, 171, 0, 178, 178, 178, 178, 0, 0, 0, 0, 0, 172, 173, 174, 169, 170, 171, 0);
room6[13] = new Array(172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 172, 173, 174, 0);
room6[14] = new Array(175, 176, 177, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 175, 176, 177, 0);
room6[15] = new Array(0, 169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0, 0);
room6[16] = new Array(0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0, 0, 0);
room6[17] = new Array(0, 175, 176, 177, 169, 170, 171, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 0, 0, 0);
room6[18] = new Array(0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0);
room6[19] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30);
room7 = new Array();
room7[0] = new Array(6, 0, 0, 0, 169, 170, 171, 0, 0, 6, 0, 0, 169, 170, 171, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 0);
room7[1] = new Array(0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
room7[2] = new Array(0, 169, 170, 171, 175, 176, 177, 0, 0, 0, 0, 0, 175, 176, 177, 169, 170, 171, 169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 0);
room7[3] = new Array(0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 6, 172, 173, 174, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0);
room7[4] = new Array(0, 175, 176, 177, 0, 6, 0, 0, 0, 0, 172, 173, 174, 0, 0, 175, 176, 177, 175, 176, 177, 169, 170, 171, 0, 0, 0, 0, 0);
room7[5] = new Array(169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0);
room7[6] = new Array(172, 173, 174, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 178, 178, 0, 70, 0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0, 0);
room7[7] = new Array(175, 176, 0, 0, 0, 0, 0, 0, 172, 173, 174, 6, 70, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 6, 0, 0);
room7[8] = new Array(169, 170, 171, 0, 0, 0, 0, 0, 175, 176, 177, 0, 0, 70, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0);
room7[9] = new Array(172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 175, 176, 177, 0, 0, 0, 0, 0);
room7[10] = new Array(175, 176, 177, 0, 6, 0, 0, 0, 0, 6, 70, 0, 0, 0, 70, 172, 172, 173, 174, 6, 0, 0, 169, 170, 171, 0, 6, 0, 0);
room7[11] = new Array(0, 169, 170, 171, 0, 0, 0, 0, 178, 178, 178, 0, 70, 0, 0, 0, 0, 176, 177, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0);
room7[12] = new Array(0, 172, 173, 174, 0, 0, 0, 0, 178, 178, 178, 0, 0, 6, 169, 170, 171, 0, 0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0);
room7[13] = new Array(0, 175, 176, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 6, 0, 0, 0, 178, 178, 169, 170, 171, 0, 0, 0);
room7[14] = new Array(0, 0, 0, 169, 170, 171, 0, 0, 0, 0, 0, 0, 169, 170, 171, 176, 177, 0, 0, 0, 0, 178, 178, 172, 173, 174, 0, 0, 0);
room7[15] = new Array(0, 0, 0, 172, 173, 174, 169, 170, 171, 169, 170, 171, 172, 173, 174, 0, 0, 0, 0, 0, 0, 178, 178, 175, 176, 177, 0, 0, 0);
room7[16] = new Array(0, 0, 0, 175, 176, 177, 172, 173, 174, 172, 173, 174, 175, 176, 177, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 169, 170, 171, 0);
room7[17] = new Array(0, 0, 0, 0, 0, 0, 175, 176, 177, 175, 176, 177, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0);
room7[18] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 0, 0, 169, 170, 171, 169, 170, 171, 0, 0, 0, 175, 176, 177, 0);
room7[19] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30);
room8 = new Array();
room8[0] = new Array(6, 0, 0, 0, 0, 6, 0, 0, 0, 0, 169, 170, 171, 0, 0, 6, 169, 170, 171, 169, 170, 171, 6, 0, 0, 6, 169, 170, 171, 0);
room8[1] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 178, 178, 178, 172, 173, 174, 172, 173, 174, 0, 0, 0, 0, 172, 173, 174, 0);
room8[2] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 178, 178, 178, 175, 176, 177, 175, 176, 177, 0, 0, 0, 0, 175, 176, 177, 0);
room8[3] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 6, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 169, 170, 171, 0, 0, 169, 170, 171);
room8[4] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0, 172, 173, 174, 0, 0, 172, 173, 174);
room8[5] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 0, 0, 169, 170, 171, 0, 0, 175, 176, 177, 0, 175, 176, 177, 0, 0, 175, 176, 177);
room8[6] = new Array(0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 70, 0, 172, 173, 174, 434, 0, 169, 170, 171, 0, 0, 0, 0, 0, 169, 170, 171, 0);
room8[7] = new Array(0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 175, 176, 177, 0, 0, 172, 173, 174, 0, 169, 170, 171, 0, 172, 173, 174, 0);
room8[8] = new Array(0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 0, 0, 70, 0, 0, 0, 0, 0, 175, 176, 177, 0, 172, 173, 174, 0, 175, 176, 177, 169);
room8[9] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 175, 176, 177, 169, 170, 171, 0, 172);
room8[10] = new Array(6, 0, 0, 0, 0, 6, 0, 0, 172, 173, 174, 0, 0, 0, 0, 169, 170, 171, 172, 173, 174, 0, 0, 0, 0, 172, 173, 174, 0, 175);
room8[11] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 0, 70, 0, 0, 172, 173, 174, 175, 176, 177, 169, 170, 171, 0, 175, 176, 177, 0, 169);
room8[12] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 172, 173, 174, 0, 178, 0, 0, 0, 172);
room8[13] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 6, 0, 0, 0, 169, 170, 171, 0, 0, 6, 175, 176, 169, 170, 171, 0, 169, 170, 171);
room8[14] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 0, 172, 173, 174, 0, 172, 173, 174);
room8[15] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0, 0, 175, 176, 177, 178, 175, 176, 177);
room8[16] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 169, 170, 171);
room8[17] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174);
room8[18] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0, 0, 0, 0, 0, 169, 170, 171, 169, 170, 171, 169, 170, 171, 175, 176, 177);
room8[19] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30);
room9 = new Array();
room9[0] = new Array(6, 0, 0, 0, 0, 0, 0, 169, 170, 171, 169, 170, 171, 0, 0, 0, 0, 0, 169, 170);
room9[1] = new Array(0, 0, 0, 0, 169, 170, 171, 172, 173, 174, 172, 173, 174, 0, 0, 0, 0, 0, 172, 173);
room9[2] = new Array(0, 0, 0, 0, 172, 173, 174, 175, 176, 177, 175, 176, 177, 0, 0, 0, 0, 6, 175, 176);
room9[3] = new Array(0, 0, 0, 0, 175, 176, 177, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 169);
room9[4] = new Array(0, 0, 0, 169, 170, 171, 0, 0, 6, 0, 0, 0, 0, 0, 178, 0, 0, 0, 0, 172);
room9[5] = new Array(0, 0, 0, 172, 173, 174, 0, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175);
room9[6] = new Array(0, 0, 0, 175, 176, 177, 0, 0, 0, 178, 0, 169, 170, 171, 0, 0, 178, 0, 169, 170);
room9[7] = new Array(0, 169, 170, 171, 0, 0, 0, 0, 0, 0, 0, 172, 173, 174, 0, 0, 0, 0, 172, 173);
room9[8] = new Array(0, 172, 173, 174, 0, 31, 31, 0, 178, 0, 0, 175, 176, 177, 178, 0, 0, 0, 175, 176);
room9[9] = new Array(0, 175, 176, 177, 0, 25, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 171, 0);
room9[10] = new Array(0, 0, 181, 185, 182, 184, 183, 182, 184, 186, 178, 0, 0, 0, 0, 6, 172, 173, 174, 0);
room9[11] = new Array(0, 0, 194, 188, 189, 190, 191, 191, 192, 201, 0, 0, 0, 0, 0, 0, 175, 176, 177, 0);
room9[12] = new Array(0, 6, 187, 195, 11, 11, 11, 11, 196, 197, 6, 0, 0, 0, 169, 170, 171, 0, 0, 0);
room9[13] = new Array(0, 0, 187, 195, 11, 11, 11, 11, 196, 197, 0, 169, 170, 171, 172, 173, 174, 0, 0, 0);
room9[14] = new Array(0, 0, 187, 195, 11, 11, 11, 11, 196, 201, 0, 172, 173, 174, 175, 176, 177, 0, 0, 0);
room9[15] = new Array(0, 0, 194, 195, 11, 11, 11, 11, 196, 197, 0, 175, 176, 177, 0, 0, 169, 170, 171, 0);
room9[16] = new Array(0, 0, 187, 202, 204, 204, 204, 204, 206, 201, 169, 170, 171, 0, 0, 0, 172, 173, 174, 0);
room9[17] = new Array(0, 0, 207, 208, 209, 210, 211, 212, 210, 213, 172, 173, 174, 0, 0, 0, 175, 176, 177, 0);
room9[18] = new Array(0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 175, 176, 177, 0, 0, 0, 0, 0, 0, 0);
room9[19] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30);
room10 = new Array();
room10[0] = new Array(101, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 101);
room10[1] = new Array(105, 106, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 108, 109);
room10[2] = new Array(110, 111, 7, 0, 0, 0, 0, 8, 0, 0, 0, 0, 112, 113);
room10[3] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113);
room10[4] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113);
room10[5] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113);
room10[6] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113);
room10[7] = new Array(110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 113);
room10[8] = new Array(114, 115, 116, 117, 118, 116, 119, 121, 125, 116, 117, 118, 126, 127);
room10[9] = new Array(101, 128, 129, 130, 131, 129, 132, 133, 134, 129, 130, 131, 135, 101);
room10[10] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30);
room11 = new Array();
room11[0] = new Array(182, 183, 184, 185, 184, 184, 183, 185, 183, 185, 186, 190, 0);
room11[1] = new Array(210, 187, 188, 189, 188, 188, 189, 188, 188, 189, 195, 191);
room11[2] = new Array(209, 212, 5, 0, 0, 0, 0, 5, 0, 5, 197, 192);
room11[3] = new Array(207, 213, 0, 0, 0, 0, 0, 0, 0, 0, 197, 193);
room11[4] = new Array(209, 232, 0, 0, 0, 0, 0, 0, 0, 0, 196, 191);
room11[5] = new Array(208, 213, 0, 0, 0, 2, 0, 0, 0, 0, 196, 192);
room11[6] = new Array(207, 212, 0, 0, 0, 0, 0, 0, 0, 0, 197, 193);
room11[7] = new Array(209, 213, 0, 0, 0, 0, 0, 0, 0, 0, 196, 191);
room11[8] = new Array(209, 211, 205, 205, 204, 205, 204, 205, 205, 204, 203, 194);
room11[9] = new Array(206, 202, 200, 201, 200, 199, 201, 201, 200, 201, 199, 198);
room11[10] = new Array(206, 202, 200, 201, 200, 199, 201, 201, 200, 201, 199, 198, 30);
room12 = new Array();
room12[0] = new Array(182, 183, 184, 184, 185, 185, 184, 185, 185, 184, 185, 184, 185, 186, 190, 0);
room12[1] = new Array(210, 187, 188, 189, 188, 189, 188, 215, 188, 188, 189, 188, 188, 195, 191);
room12[2] = new Array(208, 212, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 5, 197, 192);
room12[3] = new Array(209, 212, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 191);
room12[4] = new Array(208, 213, 0, 0, 0, 73, 0, 0, 0, 0, 73, 0, 0, 196, 191);
room12[5] = new Array(209, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 197, 193);
room12[6] = new Array(207, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 192);
room12[7] = new Array(209, 212, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 197, 191);
room12[8] = new Array(207, 213, 0, 0, 73, 0, 0, 0, 0, 0, 0, 0, 0, 196, 192);
room12[9] = new Array(209, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 193);
room12[10] = new Array(208, 213, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0, 5, 197, 192);
room12[11] = new Array(207, 211, 205, 204, 205, 204, 205, 205, 205, 204, 204, 205, 204, 203, 194);
room12[12] = new Array(206, 202, 200, 199, 199, 200, 201, 201, 200, 199, 199, 201, 200, 199, 198);
room12[13] = new Array(206, 202, 200, 199, 199, 200, 201, 201, 200, 199, 199, 201, 200, 199, 198, 30);
room13 = new Array();
room13[0] = new Array(182, 183, 183, 184, 185, 184, 183, 185, 183, 183, 184, 185, 183, 184, 185, 184, 183, 184, 186, 190, 0);
room13[1] = new Array(210, 187, 188, 189, 189, 188, 189, 188, 189, 188, 188, 188, 188, 189, 188, 189, 188, 189, 195, 191);
room13[2] = new Array(209, 212, 180, 5, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 180, 196, 191);
room13[3] = new Array(208, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 197, 193);
room13[4] = new Array(209, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 191);
room13[5] = new Array(209, 212, 0, 0, 0, 0, 0, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 197, 193);
room13[6] = new Array(207, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 71, 0, 0, 0, 0, 223, 192);
room13[7] = new Array(207, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 191);
room13[8] = new Array(209, 237, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 0, 0, 0, 195, 192);
room13[9] = new Array(207, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 192);
room13[10] = new Array(208, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 196, 191);
room13[11] = new Array(207, 212, 0, 0, 0, 0, 0, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 197, 193);
room13[12] = new Array(208, 212, 5, 73, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 0, 197, 191);
room13[13] = new Array(207, 212, 0, 0, 0, 0, 0, 0, 0, 71, 0, 0, 0, 0, 0, 0, 0, 0, 196, 192);
room13[14] = new Array(208, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 192);
room13[15] = new Array(209, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 197, 193);
room13[16] = new Array(207, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 192);
room13[17] = new Array(208, 212, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 196, 193);
room13[18] = new Array(209, 211, 204, 205, 204, 205, 204, 205, 205, 204, 204, 205, 204, 205, 227, 204, 204, 205, 203, 194);
room13[19] = new Array(206, 202, 199, 201, 199, 200, 201, 199, 200, 199, 201, 199, 201, 200, 199, 201, 200, 201, 199, 198);
room13[20] = new Array(206, 202, 199, 201, 199, 200, 201, 199, 200, 199, 201, 199, 201, 200, 199, 201, 200, 201, 199, 198, 30);
room14 = new Array();
room14[0] = new Array(182, 185, 183, 183, 184, 183, 183, 183, 184, 185, 183, 185, 183, 184, 184, 186, 190, 0);
room14[1] = new Array(210, 187, 188, 189, 188, 188, 189, 189, 188, 188, 188, 188, 189, 189, 188, 188, 191);
room14[2] = new Array(208, 212, 5, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 5, 32, 195, 193);
room14[3] = new Array(208, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 193);
room14[4] = new Array(209, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 197, 191);
room14[5] = new Array(209, 212, 0, 0, 0, 0, 0, 75, 75, 0, 0, 0, 0, 0, 0, 220, 193);
room14[6] = new Array(207, 213, 0, 0, 0, 0, 75, 0, 0, 75, 0, 0, 0, 0, 0, 197, 192);
room14[7] = new Array(209, 212, 0, 0, 0, 0, 75, 0, 0, 75, 0, 32, 0, 0, 0, 196, 191);
room14[8] = new Array(207, 212, 0, 0, 0, 0, 0, 75, 75, 0, 0, 0, 0, 0, 0, 196, 193);
room14[9] = new Array(207, 212, 5, 0, 0, 5, 0, 0, 5, 0, 0, 5, 0, 5, 0, 197, 191);
room14[10] = new Array(209, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 192);
room14[11] = new Array(209, 235, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 191);
room14[12] = new Array(209, 213, 5, 0, 0, 0, 5, 0, 0, 0, 5, 0, 5, 0, 0, 197, 191);
room14[13] = new Array(209, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 191);
room14[14] = new Array(207, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 192);
room14[15] = new Array(209, 211, 204, 204, 205, 204, 204, 204, 205, 205, 204, 204, 204, 204, 204, 203, 194);
room14[16] = new Array(206, 202, 201, 199, 200, 199, 201, 199, 200, 199, 201, 201, 200, 199, 200, 199, 198);
room14[17] = new Array(206, 202, 201, 199, 200, 199, 201, 199, 200, 199, 201, 201, 200, 199, 200, 199, 198, 30);
zone = new Array();
zone[11] = new Array(room2, 2);
zone[21] = new Array(room1, 1);
zone[27] = new Array(room3, 3);
zone[28] = new Array(room6, 6);
zone[31] = new Array(room5, 5);
zone[32] = new Array(room10, 10);
zone[37] = new Array(room4, 4);
zone[39] = new Array(room2, 2);
zone[49] = new Array(room3, 3);
zone[51] = new Array(room3, 3);
zone[66] = new Array(room2, 2);
zone[68] = new Array(room7, 7);
zone[76] = new Array(room6, 6);
zone[78] = new Array(room8, 8);
zone[86] = new Array(room7, 7);
zone[88] = new Array(room9, 9);
zone[96] = new Array(room8, 8);
zone[102] = new Array(room3, 3);
zone[111] = new Array(room12, 12);
zone[121] = new Array(room11, 11);
zone[122] = new Array(room13, 13);
zone[132] = new Array(room12, 12);
zone[134] = new Array(room14, 14);
zone[144] = new Array(room13, 13);
cutscene_1 = new Array();
cutscene_1[0] = new Array("frame#", "NewFrame#", "Active NPC", "FrameToGoTo", "_x movement", "_y movement");
var area = 1;
room = room1;
var cut = 0;
var cut_timer = 0;
var cut_timerStop = 0;
var cut_timer2 = 0;
onEnterFrame = function () {
if ((_root.pausegame == 6) and (cut == 0)) {
cut_timer++;
}
if (cut_timer > 0) {
cut_timer++;
}
if (cut_timer == _root.cutscene_1[cut_timer2][0]) {
}
_root.icons.text6.text = cutscene_1[0][0];
};
function loadTile() {
i = 0;
while (i < room.length) {
j = 0;
while (j < (room[0].length + 1)) {
_root.wall.attachMovie("tile", (("t_" + i) + "_") + j, d++);
_root.wall[(("t_" + i) + "_") + j]._x = j * 16;
_root.wall[(("t_" + i) + "_") + j]._y = i * 16;
_root.wall[(("t_" + i) + "_") + j].gotoAndStop(room[i][j]);
_root.wall[(("t_" + i) + "_") + j]._width = _root.wall[(("t_" + i) + "_") + j]._width + 0.2;
_root.wall[(("t_" + i) + "_") + j]._height = _root.wall[(("t_" + i) + "_") + j]._height + 0.2;
j++;
}
i++;
}
}
stop();
var increment = 0;
var target = false;
var link = _root.wall.link;
var pausegame = 1;
var boundary_U = 64;
var boundary_R = 200;
var boundary_D = 200;
var boundary_L = 88;
var cutscene = 1;
var warping = false;
var mute_sounds = false;
var mute_music = false;
_root.screen._x = _root.link._x;
_root.screen._y = _root.link._y;
var scrnY = (_root.screen._height / 2);
var scrnX = (_root.screen._width / 2);
var lastFrameX = link._x;
var lastFrameY = link._y;
var pointX = link._x;
var pointY = link._y;
var targM = 5;
var targM2 = 5;
_root.scrnC._alpha = 0;
roll1 = new Sound();
roll1.attachSound("roll 1");
roll2 = new Sound();
roll2.attachSound("roll 2");
roll3 = new Sound();
roll3.attachSound("roll 3");
switchHit = new Sound();
switchHit.attachSound("switch");
itemget = new Sound();
itemget.attachSound("item get");
hurt = new Sound();
hurt.attachSound("agh");
slash1 = new Sound();
slash1.attachSound("Link Sword1");
slash2 = new Sound();
slash2.attachSound("Link Sword2");
slash3 = new Sound();
slash3.attachSound("Link Sword3");
enemykill = new Sound();
enemykill.attachSound("Enemy kill");
heart = new Sound();
heart.attachSound("heart");
rupee = new Sound();
rupee.attachSound("rupee");
shieldsound = new Sound();
shieldsound.attachSound("shieldsound");
grass = new Sound();
grass.attachSound("grass");
letter = new Sound();
letter.attachSound("letter1");
letter2 = new Sound();
letter2.attachSound("letter2");
targetOn = new Sound();
targetOn.attachSound("Target_On");
targetOff = new Sound();
targetOff.attachSound("Target_Off");
var grasscut = false;
var grasssound = 0;
var equipment = 0;
var equip = 1;
var cursorX = 0;
var cursorY = 0;
var object = undefined;
var liftcount = 0;
var walking_item = new Array(1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1, 1);
var walkcount = 0;
var itemgrav = -2;
var thrown = false;
var throwX = 0;
var throwY = 0;
var throwspeed1 = 7;
var throwspeed2 = 4;
var throwspeed3 = 5;
var jumpM = 2;
var attack = false;
var shield = false;
var liftable = false;
var slash = 1;
var bombset1 = false;
var bombset2 = false;
var itime = 0;
var entity = 0;
var entitynum = 0;
var target1 = 1000;
var range = 1000;
var target2 = 1000;
var target3 = 1000;
var target_enemy = false;
var focusCount = 1;
var focus = 0;
var focused = false;
var locked_door = false;
var chest = false;
var open_chest = false;
var got_item = false;
var battle = false;
var cursor_color = new Color(_root.cursor);
var itm = 0;
var act = 0;
var atk = 0;
var targ = 0;
var targ2 = 0;
var pse = 0;
var NPC = 0;
var conversation = 1;
var conv = 0;
var advance = false;
var warp = false;
var exit = 0;
var door_type = 0;
var door_in = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
var warpcount = 0;
var depth = 1;
var action = 1;
var roll = false;
var rolltime = 0;
var jump = false;
var leftKey = 37;
var upKey = 38;
var rightKey = 39;
var downKey = 40;
var pauseKey = 32;
var atkKey = 70;
var itemKey = 68;
var actKey = 83;
var targetKey = 65;
var health = 13;
var maxhealth = 13;
var rupees = 14;
var gotbomb = true;
var gotshield = true;
var textspeed = 1;
var bombs = 30;
var bottle = 2;
var keys = 0;
scrup = 45;
iconY = 10;
_root.bomb.gotoAndStop(100);
var dir = 1;
var dir2 = 1;
var dir3 = 1;
var liftDir = 0;
var shadowDir = "Y, 0";
var idle = 0;
var centered = true;
var speedvarF = 2;
var speedvarS = 1.25;
var speedvarRF = 4;
var speedvarRS = 3;
var speedvarJF = 3.5;
var speedvarJS = 2.75;
var speed1 = 2.5;
var speed2 = 1.25;
var speed3 = 2.5;
var speed4 = 1.25;
var speed5 = 2.5;
var speed6 = 1.25;
var speed7 = 2.5;
var speed8 = 1.25;
var pos1 = 0;
var pos2 = 0;
var pos3 = 0;
var pos4 = 0;
var pos5 = 0;
var pos6 = 0;
var pos7 = 0;
var pos8 = 0;
_root.icons._y = _root.screen._y - cakeY;
_root.icons._x = _root.screen._x - cakeX;
gridX = 0;
gridY = 0;
GridX = 0;
GridY = 0;
d = 50;
linkX = _root.link._x;
linkY = _root.link._y;
var selfDepth = 1;
loadTile();
onEnterFrame = function () {
pos1 = Math.round((_root.link._y - 20) / 16);
pos2 = Math.round((_root.link._y - 17) / 16);
pos3 = Math.round((_root.link._x + 15) / 16);
pos4 = Math.round((_root.link._x + 11) / 16);
pos5 = Math.round((_root.link._y + 9) / 16);
pos6 = Math.round((_root.link._y + 5) / 16);
pos7 = Math.round((_root.link._x - 14) / 16);
pos8 = Math.round((_root.link._x - 11) / 16);
posCY = Math.floor((_root.link._y - 4) / 16);
posCY2 = Math.floor(_root.link._y / 16);
posCX = Math.floor(_root.link._x / 16);
posU = Math.floor((_root.link._y - 9) / 16);
posR = Math.floor((_root.link._x + 8) / 16);
posD = Math.floor((_root.link._y + 8) / 16);
posL = Math.floor((_root.link._x - 8) / 16);
if (_root.pos.pos3._currentframe > 1) {
if (_root.pos.pos3._currentframe == 10) {
_root.wall.removeMovieClip();
}
if (_root.pos.pos3._currentframe == 11) {
depth = 2;
_root.attachMovie("walls", "wall", 50000);
}
if (_root.pos.pos3._currentframe == 12) {
loadTile();
}
}
GridX = Math.floor(_root.link._x / 16) * 16;
GridY = Math.floor(_root.link._y / 16) * 16;
gridX = Math.floor(_root.link._x) - GridX;
gridY = Math.floor(_root.link._y) - GridY;
if (target == false) {
_root.cursor._alpha = 60;
} else {
_root.cursor._alpha = 100;
}
_root.pos.gotoAndStop(pausegame);
_root.icons.icon2.gotoAndStop(equipment);
_root.pos.item1.gotoAndStop(equipment);
_root.pos.bottle_btn.gotoAndStop(bottle);
_root.pos.pos6.gotoAndStop(cutscene);
_root.icons.actionicon.gotoAndStop(action);
if (gotbomb == true) {
_root.pos.bomb_btn.gotoAndStop(2);
}
if (gotshield == true) {
_root.pos.shield_btn.gotoAndStop(2);
}
_root.icons._y = _root.screen._y - iconY;
_root.icons._x = _root.screen._x - iconY;
if (pausegame == 1) {
conv = 0;
advance = false;
if (health >= 1) {
if ((((((shield == false) and (attack == false)) and (roll == false)) and (jump == false)) and (liftcount == 0)) and (door_type == 0)) {
if (((Key.isDown(upKey) and (!Key.isDown(rightKey))) and (!Key.isDown(downKey))) and (!Key.isDown(leftKey))) {
dir2 = 1;
if (target == false) {
dir = 1;
if ((action == 6) and (thrown == false)) {
_root.link.gotoAndStop(75 + dir);
} else {
_root.link.gotoAndStop(9);
}
}
_root.link._y = _root.link._y - speed1;
}
if (((Key.isDown(upKey) and Key.isDown(rightKey)) and (!Key.isDown(downKey))) and (!Key.isDown(leftKey))) {
dir2 = 2;
if (target == false) {
dir = 2;
if ((action == 6) and (thrown == false)) {
_root.link.gotoAndStop(75 + dir);
} else {
_root.link.gotoAndStop(10);
}
}
_root.link._y = _root.link._y - speed2;
_root.link._x = _root.link._x + speed4;
}
if ((((!Key.isDown(upKey)) and Key.isDown(rightKey)) and (!Key.isDown(downKey))) and (!Key.isDown(leftKey))) {
dir2 = 3;
if (target == false) {
dir = 3;
if ((action == 6) and (thrown == false)) {
_root.link.gotoAndStop(75 + dir);
} else {
_root.link.gotoAndStop(11);
}
}
_root.link._x = _root.link._x + speed3;
}
if ((((!Key.isDown(upKey)) and Key.isDown(rightKey)) and Key.isDown(downKey)) and (!Key.isDown(leftKey))) {
dir2 = 4;
if (target == false) {
dir = 4;
if ((action == 6) and (thrown == false)) {
_root.link.gotoAndStop(75 + dir);
} else {
_root.link.gotoAndStop(12);
}
}
_root.link._y = _root.link._y + speed6;
_root.link._x = _root.link._x + speed4;
}
if ((((!Key.isDown(upKey)) and (!Key.isDown(rightKey))) and Key.isDown(downKey)) and (!Key.isDown(leftKey))) {
dir2 = 5;
if (target == false) {
dir = 5;
if ((action == 6) and (thrown == false)) {
_root.link.gotoAndStop(75 + dir);
} else {
_root.link.gotoAndStop(13);
}
}
_root.link._y = _root.link._y + speed5;
}
if ((((!Key.isDown(upKey)) and (!Key.isDown(rightKey))) and Key.isDown(downKey)) and Key.isDown(leftKey)) {
dir2 = 6;
if (target == false) {
dir = 6;
if ((action == 6) and (thrown == false)) {
_root.link.gotoAndStop(75 + dir);
} else {
_root.link.gotoAndStop(14);
}
}
_root.link._y = _root.link._y + speed6;
_root.link._x = _root.link._x - speed8;
}
if ((((!Key.isDown(upKey)) and (!Key.isDown(rightKey))) and (!Key.isDown(downKey))) and Key.isDown(leftKey)) {
dir2 = 7;
if (target == false) {
dir = 7;
if ((action == 6) and (thrown == false)) {
_root.link.gotoAndStop(75 + dir);
} else {
_root.link.gotoAndStop(15);
}
}
_root.link._x = _root.link._x - speed7;
}
if (((Key.isDown(upKey) and (!Key.isDown(rightKey))) and (!Key.isDown(downKey))) and Key.isDown(leftKey)) {
dir2 = 8;
if (target == false) {
dir = 8;
if ((action == 6) and (thrown == false)) {
_root.link.gotoAndStop(75 + dir);
} else {
_root.link.gotoAndStop(16);
}
}
_root.link._y = _root.link._y - speed2;
_root.link._x = _root.link._x - speed8;
}
if ((((((!Key.isDown(upKey)) and (!Key.isDown(rightKey))) and (!Key.isDown(downKey))) and (!Key.isDown(leftKey))) and (attack == false)) and (shield == false)) {
_root.link.gotoAndStop(dir);
if (action < 6) {
action = 1;
}
} else {
if ((((target == false) and (liftable == false)) and ((action < 6) or (action > 7))) and (talk == false)) {
action = 2;
}
if (((((target == true) and (seeNPC == false)) and (liftable == false)) and (action != 6)) and (talk == false)) {
action = 3;
}
}
}
if (chest == true) {
action = 8;
}
if (Key.isDown(actKey) and (act == 0)) {
if (action == 2) {
roll = true;
_root.link.gotoAndStop(dir + 34);
}
if ((action == 3) and (liftable == false)) {
jump = true;
_root.link.gotoAndStop(_root.link._currentframe + 8);
}
if (action == 8) {
open_chest = true;
}
}
if ((((roll == true) or (attack == true)) or (shield == true)) or (jump == true)) {
action = 1;
}
if (rolltime == 10) {
roll = false;
jump = false;
_root.link.gotoAndStop(dir);
rolltime = 0;
}
if (jump == true) {
act = 1;
rolltime++;
if ((rolltime > 1) and (rolltime < 10)) {
if (dir2 == 1) {
_root.link._y = _root.link._y - (speed1 * jumpM);
}
if (dir2 == 2) {
_root.link._y = _root.link._y - (speed2 * jumpM);
_root.link._x = _root.link._x + (speed4 * jumpM);
}
if (dir2 == 3) {
_root.link._x = _root.link._x + (speed3 * jumpM);
}
if (dir2 == 4) {
_root.link._y = _root.link._y + (speed6 * jumpM);
_root.link._x = _root.link._x + (speed4 * jumpM);
}
if (dir2 == 5) {
_root.link._y = _root.link._y + (speed5 * jumpM);
}
if (dir2 == 6) {
_root.link._y = _root.link._y + (speed6 * jumpM);
_root.link._x = _root.link._x - (speed4 * jumpM);
}
if (dir2 == 7) {
_root.link._x = _root.link._x - (speed7 * jumpM);
}
if (dir2 == 8) {
_root.link._y = _root.link._y - (speed2 * jumpM);
_root.link._x = _root.link._x - (speed8 * jumpM);
}
}
} else {
jumpM = 2;
}
if (roll == true) {
act = 1;
rolltime++;
if (dir == 1) {
speed1 = speedvarRF;
}
if ((dir == 2) or (dir == 8)) {
speed2 = speedvarRS;
}
if (dir == 3) {
speed3 = speedvarRF;
}
if ((dir == 2) or (dir == 4)) {
speed4 = speedvarRS;
}
if (dir == 5) {
speed5 = speedvarRF;
}
if ((dir == 4) or (dir == 6)) {
speed6 = speedvarRS;
}
if (dir == 7) {
speed7 = speedvarRF;
}
if ((dir == 6) or (dir == 8)) {
speed8 = speedvarRS;
}
}
if ((rolltime <= 2) and (roll == true)) {
speed1 = 0;
speed2 = 0;
speed3 = 0;
speed4 = 0;
speed5 = 0;
speed6 = 0;
speed7 = 0;
speed8 = 0;
}
var _local2 = Math.ceil(Math.random() * 3);
if (rolltime == 1) {
if (_local2 == 1) {
roll1.start();
}
if (_local2 == 2) {
roll2.start();
}
if (_local2 == 3) {
roll3.start();
}
}
if (((dir < 9) and (roll == false)) and (jump == false)) {
speed1 = speedvarF;
speed2 = speedvarS;
speed3 = speedvarF;
speed4 = speedvarS;
speed5 = speedvarF;
speed6 = speedvarS;
speed7 = speedvarF;
speed8 = speedvarS;
}
if (equipment == 2) {
if (Key.isDown(itemKey) and (attack == false)) {
shield = true;
_root.icons.actionicon.gotoAndStop(1);
if (_root.link._currentframe <= 8) {
_root.link.gotoAndStop(_root.link._currentframe + 25);
shieldsound.start();
}
if ((_root.link._currentframe >= 9) and (_root.link._currentframe <= 17)) {
_root.link.gotoAndStop(_root.link._currentframe + 17);
shieldsound.start();
}
} else {
shield = false;
if ((_root.link._currentframe >= 26) and (_root.link._currentframe <= 33)) {
_root.link.gotoAndStop(_root.link._currentframe - 25);
}
}
}
if (bombs > 30) {
bombs = 30;
}
if ((equipment == 3) and (bombs > 0)) {
if ((((Key.isDown(itemKey) and (itm == 0)) and ((action < 4) or (action == 5))) and (liftcount == 0)) and (thrown == false)) {
if (bombset1 == false) {
liftDir = dir;
bombs--;
wall.attachMovie("Bomb", "bomb1", 125000 + depth);
_root.wall.bomb1._x = _root.link._x - 22;
_root.wall.bomb1._y = _root.link._y - 12;
object = _root.wall.bomb1;
liftcount = 9;
depth++;
bombset1 = true;
itm = 1;
} else if ((bombset1 == true) and (bombset2 == false)) {
liftDir = dir;
bombs--;
wall.attachMovie("Bomb", "bomb2", 125000 + depth);
_root.wall.bomb2._x = _root.link._x - 22;
_root.wall.bomb2._y = _root.link._y - 12;
object = _root.wall.bomb2;
liftcount = 9;
depth++;
bombset2 = true;
itm = 1;
}
}
if ((_root.wall.bomb1._currentframe == 150) or _root.wall.bomb1.hitTest(_root.wall.explosion2)) {
_root.wall.attachMovie("explosion", "explosion1", 25000 + depth);
_root.wall.explosion1._x = _root.wall.bomb1._x + 8;
_root.wall.explosion1._y = _root.wall.bomb1._y + 12;
_root.wall.bomb1.gotoAndPlay(151);
depth++;
}
if ((_root.wall.bomb2._currentframe == 150) or _root.wall.bomb2.hitTest(_root.wall.explosion1)) {
_root.wall.attachMovie("explosion", "explosion2", 25000 + depth);
_root.wall.explosion2._x = _root.wall.bomb2._x + 8;
_root.wall.explosion2._y = _root.wall.bomb2._y + 12;
_root.wall.bomb2.gotoAndPlay(151);
depth++;
}
if (_root.wall.bomb1._currentframe >= 163) {
bombset1 = false;
}
if (_root.wall.bomb2._currentframe >= 163) {
bombset2 = false;
}
if (Key.isDown(itemKey)) {
itm = 1;
} else {
itm = 0;
}
}
var _local3 = Math.ceil(Math.random() * 3);
if (((((((Key.isDown(atkKey) and (atk == 0)) and (shield == false)) and (attack == false)) and (roll == false)) and (jump == false)) and (liftcount == 0)) and (action != 6)) {
if (_local3 == 1) {
slash1.start();
}
if (_local3 == 2) {
slash2.start();
}
if (_local3 == 3) {
slash3.start();
}
link.gotoAndStop(dir + 17);
if ((target == true) and (jump == false)) {
_root.link.gotoAndStop(_root.link._currentframe + 8);
}
attack = true;
}
if (Key.isDown(atkKey) and (jump == false)) {
atk = 1;
} else {
atk = 0;
}
if (attack == true) {
slash++;
}
if (slash == 10) {
attack = false;
slash = 1;
}
if (((attack == false) and (_root.link._currentframe >= 17)) and (_root.link._currentframe <= 25)) {
_root.link.gotoAndStop(dir);
}
if (target == false) {
_root.dmgClip.gotoAndStop(slash);
}
if (target == true) {
_root.dmgClip.gotoAndStop(slash + 10);
}
if ((_root.wall[(("t_" + pos1) + "_") + (pos4 - 1)].wall == true) or (_root.wall[(("t_" + pos1) + "_") + pos8].wall == true)) {
speed1 = 0;
speed2 = 0;
if (((!Key.isDown(downKey)) and ((((dir == 8) or (dir == 1)) or (dir == 2)) or (Key.isDown(upKey) and (target == true)))) or ((((jump == true) and (dir2 == 8)) or (dir2 == 1)) or (dir2 == 2))) {
_root.link._y = _root.wall[(("t_" + pos1) + "_") + (pos3 - 1)]._y + 25;
}
} else if (roll == false) {
speed1 = speedvarF;
speed2 = speedvarS;
}
if ((_root.wall[(("t_" + posU) + "_") + posCX].diag1 == true) or (_root.wall[(("t_" + posCY) + "_") + posR].diag1 == true)) {
if (((_root.wall[(("t_" + posU) + "_") + posCX].hitTest(link._x + 3, link._y - 12, true) or _root.wall[(("t_" + posU) + "_") + posCX].hitTest(link._x + 7, link._y - 8, true)) or _root.wall[(("t_" + posCY) + "_") + posR].hitTest(link._x + 10, link._y - 5, true)) or _root.wall[(("t_" + posCY) + "_") + posR].hitTest(link._x + 5, link._y - 10, true)) {
if (dir == 1) {
if (_root.wall[(("t_" + posU) + "_") + posCX].hitTest(link._x + 6, link._y - 8, true)) {
link._x--;
}
}
if (dir == 3) {
if (_root.wall[(("t_" + posU) + "_") + posCX].hitTest(link._x + 8, link._y - 6, true)) {
link._y++;
}
}
if ((((dir == 1) or (dir == 2)) or (dir == 3)) or (target == true)) {
speed1 = 1;
speed2 = 0;
speed3 = 1;
speed4 = 0;
jumpM = 0;
}
if ((dir == 3) or (target == true)) {
if (Key.isDown(rightKey)) {
link._y = link._y + speed3;
}
}
if ((dir == 1) or (target == true)) {
if (Key.isDown(upKey)) {
link._x = link._x - speed1;
}
}
}
}
if ((_root.wall[(("t_" + pos2) + "_") + (pos3 - 1)].wall == true) or (_root.wall[(("t_" + (pos6 - 1)) + "_") + (pos3 - 1)].wall == true)) {
speed3 = 0;
speed4 = 0;
if (((!Key.isDown(leftKey)) and (((((dir == 2) or (dir == 3)) or (dir == 4)) and (target == false)) or (Key.isDown(rightKey) and (target == true)))) or ((jump == true) and (((dir2 == 2) or (dir2 == 3)) or (dir2 == 4)))) {
_root.link._x = _root.wall[(("t_" + pos1) + "_") + (pos3 - 1)]._x - 5;
}
}
if (((_root.wall[(("t_" + posCY) + "_") + posCX].diag2 == true) or (_root.wall[(("t_" + posCY2) + "_") + posCX].diag2 == true)) or (_root.wall[(("t_" + posU) + "_") + posR].diag2 == true)) {
if (((_root.wall[(("t_" + posCY) + "_") + posCX].hitTest(link._x, link._y + 6, true) or _root.wall[(("t_" + posCY2) + "_") + posCX].hitTest(link._x, link._y + 6, true)) or _root.wall[(("t_" + posCY) + "_") + posCX].hitTest(link._x + 8, link._y - 2, true)) or _root.wall[(("t_" + posU) + "_") + posR].hitTest(link._x + 11, link._y - 5, true)) {
if (dir == 5) {
if (_root.wall[(("t_" + posCY) + "_") + posCX].hitTest(link._x, link._y + 5, true)) {
link._x--;
}
}
if (dir == 3) {
if (_root.wall[(("t_" + posCY2) + "_") + posCX].hitTest(link._x, link._y + 4, true)) {
link._y--;
}
}
if (((((dir == 3) or (dir == 4)) or (dir == 5)) or (target == true)) or (jump == true)) {
speed3 = 1;
speed4 = 0;
speed5 = 1;
speed6 = 0;
jumpM = 0;
}
if ((dir == 3) or (target == true)) {
if (Key.isDown(rightKey)) {
link._y = link._y - speed3;
}
}
if ((dir == 5) or (target == true)) {
if (Key.isDown(downKey)) {
link._x = link._x - speed5;
}
}
}
}
if ((_root.wall[(("t_" + (pos5 - 1)) + "_") + (pos4 - 1)].wall == true) or (_root.wall[(("t_" + (pos5 - 1)) + "_") + pos8].wall == true)) {
speed5 = 0;
speed6 = 0;
if (((!Key.isDown(upKey)) and (((((dir == 4) or (dir == 5)) or (dir == 6)) and (target == false)) or (Key.isDown(downKey) and (target == true)))) or ((((jump == true) and (dir2 == 4)) or (dir2 == 5)) or (dir2 == 6))) {
_root.link._y = _root.wall[(("t_" + (pos5 - 1)) + "_") + pos8]._y;
}
}
if (((_root.wall[(("t_" + posCY) + "_") + posCX].diag3 == true) or (_root.wall[(("t_" + posCY2) + "_") + posCX].diag3 == true)) or (_root.wall[(("t_" + posU) + "_") + posL].diag3 == true)) {
if (((_root.wall[(("t_" + posCY) + "_") + posCX].hitTest(link._x, link._y + 6, true) or _root.wall[(("t_" + posCY2) + "_") + posCX].hitTest(link._x, link._y + 6, true)) or _root.wall[(("t_" + posCY) + "_") + posCX].hitTest(link._x - 8, link._y - 2, true)) or _root.wall[(("t_" + posU) + "_") + posL].hitTest(link._x - 11, link._y - 5, true)) {
if (dir == 5) {
if (_root.wall[(("t_" + posCY) + "_") + posCX].hitTest(link._x, link._y + 5, true)) {
link._x++;
}
}
if (dir == 3) {
if (_root.wall[(("t_" + posCY2) + "_") + posCX].hitTest(link._x, link._y + 2, true)) {
link._y--;
}
}
if (((((dir == 5) or (dir == 6)) or (dir == 7)) or (target == true)) or (jump == true)) {
speed5 = 1;
speed6 = 0;
speed7 = 1;
speed8 = 0;
jumpM = 0;
}
if ((dir == 5) or (target == true)) {
if (Key.isDown(downKey)) {
link._x = link._x + speed5;
}
}
if ((dir == 7) or (target == true)) {
if (Key.isDown(leftKey)) {
link._y = link._y - speed7;
}
}
}
}
if ((_root.wall[(("t_" + pos2) + "_") + pos7].wall == true) or (_root.wall[(("t_" + (pos6 - 1)) + "_") + pos7].wall == true)) {
speed7 = 0;
speed8 = 0;
if (((!Key.isDown(rightKey)) and (((((dir == 6) or (dir == 7)) or (dir == 8)) and (target == false)) or (Key.isDown(leftKey) and (target == true)))) or ((((jump == true) and (dir2 == 6)) or (dir2 == 7)) or (dir2 == 8))) {
_root.link._x = _root.wall[(("t_" + pos2) + "_") + pos7]._x + 21;
}
}
}
if ((_root.wall[(("t_" + posU) + "_") + posCX].diag4 == true) or (_root.wall[(("t_" + posCY) + "_") + posL].diag4 == true)) {
if (((_root.wall[(("t_" + posU) + "_") + posCX].hitTest(link._x - 3, link._y - 12, true) or _root.wall[(("t_" + posU) + "_") + posCX].hitTest(link._x - 7, link._y - 8, true)) or _root.wall[(("t_" + posCY) + "_") + posL].hitTest(link._x - 10, link._y - 5, true)) or _root.wall[(("t_" + posCY) + "_") + posL].hitTest(link._x - 5, link._y - 10, true)) {
if (dir == 1) {
if (_root.wall[(("t_" + posU) + "_") + posCX].hitTest(link._x - 6, link._y - 8, true)) {
link._x++;
}
}
if (dir == 7) {
if (_root.wall[(("t_" + posU) + "_") + posCX].hitTest(link._x - 8, link._y - 6, true)) {
link._y++;
}
}
if ((((dir == 7) or (dir == 8)) or (dir == 1)) or (target == true)) {
speed1 = 1;
speed2 = 0;
speed7 = 1;
speed8 = 0;
jumpM = 0;
}
if ((dir == 7) or (target == true)) {
if (Key.isDown(leftKey)) {
link._y = link._y + speed7;
}
}
if ((dir == 1) or (target == true)) {
if (Key.isDown(upKey)) {
link._x = link._x + speed1;
}
}
}
}
if (_root.link._currentframe == 35) {
_root.link._y = _root.link._y - speed1;
}
if (_root.link._currentframe == 36) {
_root.link._x = _root.link._x + speed4;
_root.link._y = _root.link._y - speed2;
}
if (_root.link._currentframe == 37) {
_root.link._x = _root.link._x + speed3;
}
if (_root.link._currentframe == 38) {
_root.link._x = _root.link._x + speed4;
_root.link._y = _root.link._y + speed6;
}
if (_root.link._currentframe == 39) {
_root.link._y = _root.link._y + speed5;
}
if (_root.link._currentframe == 40) {
_root.link._x = _root.link._x - speed8;
_root.link._y = _root.link._y + speed6;
}
if (_root.link._currentframe == 41) {
_root.link._x = _root.link._x - speed7;
}
if (_root.link._currentframe == 42) {
_root.link._x = _root.link._x - speed8;
_root.link._y = _root.link._y - speed2;
}
if (itime != 0) {
itime++;
_root.link._alpha = 50;
}
if (itime >= 45) {
itime = 0;
_root.link._alpha = 100;
}
if (grasscut == true) {
grasssound++;
}
if (grasssound == 1) {
grass.start();
}
if (grasssound > 10) {
grasscut = false;
grasssound = 0;
}
_root.dmgClip._x = 0;
_root.dmgClip._y = 0;
_root.dmgClip._x = _root.link._x;
_root.dmgClip._y = _root.link._y - 7;
_root.dmgClip._rotation = (_root.link._currentframe * 45) - scrup;
if (_root.link._currentframe >= 26) {
scrup = 90;
if (_root.link._currentframe >= 40) {
scrup = 135;
}
} else {
scrup = 45;
}
if (equipment > 3) {
equipment = bottle + 2;
}
if (health >= maxhealth) {
health = maxhealth;
}
if (bottle == 5) {
if (((equipment == 7) and Key.isDown(itemKey)) and (itm == 0)) {
health = maxhealth;
equipment = 4;
bottle = 2;
}
if (health <= 1) {
_root.link.gotoAndStop(26);
health = maxhealth;
bottle = 2;
}
}
_root.icons.hearts.gotoAndStop(health);
_root.icons.heartc.gotoAndStop(((maxhealth - 13) / 4) + 1);
_root.pos._x = _root.screen._x;
_root.pos._y = _root.screen._y;
}
_root.Text.swapDepths(10000000000300);
_root.Text._x = _root.screen._x - 70;
_root.Text._y = _root.screen._y + 30;
_root.pos._x = _root.screen._x;
_root.pos._y = _root.screen._y;
if (pausegame == 5) {
talkcount++;
}
if (pausegame == 6) {
_root.link._alpha = 0;
}
if (pausegame == 3) {
boundary_U = _root.wall._y + (_root.screen._height / 2);
boundary_L = _root.wall._x + (_root.screen._width / 2);
}
if ((pausegame == 2) or ((_root.Text._currentframe > 1) and (_root.link._currentframe != 17))) {
_root.link.gotoAndStop(dir);
}
if (focus == 0) {
if (dir == 1) {
_root.cursor._x = _root.link._x;
_root.cursor._y = _root.link._y - (screenH * 3);
}
if (dir == 2) {
_root.cursor._x = _root.link._x + (screenW * 3);
_root.cursor._y = _root.link._y - (screenH * 3);
}
if (dir == 3) {
_root.cursor._x = _root.link._x + (screenW * 3);
_root.cursor._y = _root.link._y;
}
if (dir == 4) {
_root.cursor._x = _root.link._x + (screenW * 3);
_root.cursor._y = _root.link._y + (screenH * 3);
}
if (dir == 5) {
_root.cursor._x = _root.link._x;
_root.cursor._y = _root.link._y + (screenH * 3);
}
if (dir == 6) {
_root.cursor._x = _root.link._x - (screenW * 3);
_root.cursor._y = _root.link._y + (screenH * 3);
}
if (dir == 7) {
_root.cursor._x = _root.link._x - (screenW * 3);
_root.cursor._y = _root.link._y;
}
if (dir == 8) {
_root.cursor._x = _root.link._x - (screenW * 3);
_root.cursor._y = _root.link._y - (screenH * 3);
}
}
if ((seeNPC == true) or (entity == 0)) {
cursor_color.setRGB(3394815);
}
if ((seeEnemy == true) or (entity == 2)) {
cursor_color.setRGB(16776960);
}
if ((seeOther == true) or (entity == 3)) {
cursor_color.setRGB(39168);
}
if (((Key.isDown(targetKey) and (jump == false)) and (roll == false)) and (pausegame == 1)) {
if (focus > 0) {
if (entity == 1) {
seeNPC = true;
}
if (entity == 2) {
seeEnemy = true;
if (targ == 0) {
targetOn.start();
}
}
if (entity == 3) {
seeOther = true;
}
_root.cursor._x = _root.wall[("focus" + focus) + "_"]._x;
_root.cursor._y = _root.wall[("focus" + focus) + "_"]._y;
focused = true;
}
if (focused == true) {
if ((!_root.fov.hitTest(_root.wall[("focus" + focus) + "_"]._x, _root.wall[("focus" + focus) + "_"]._y, true)) and (_root.wall[("focus" + focus) + "_"].distancefromthis > range)) {
focus = 0;
target1 = 1000;
target2 = 1000;
target3 = 1000;
if (focus == 0) {
entity = 0;
seeNPC = false;
seeOther = false;
if (seeEnemy == true) {
targetOff.start();
seeEnemy = false;
}
focused = false;
}
}
}
targ = 1;
target = true;
clipToFace = _root.cursor;
xdiff = clipToFace._x - _root.link._x;
ydiff = (clipToFace._y - _root.link._y) + 8;
offset = 180;
increment = Math.round(((Math.atan2(ydiff, xdiff) * 180) / Math.PI) + offset);
if ((attack == false) and (jump == false)) {
if ((increment >= 22.5) and (increment <= 67.5)) {
dir = 8;
_root.link.gotoAndStop(50);
}
if ((increment >= 67.5) and (increment <= 112.5)) {
dir = 1;
_root.link.gotoAndStop(43);
}
if ((increment >= 112.5) and (increment <= 157.5)) {
dir = 2;
_root.link.gotoAndStop(44);
}
if ((increment >= 157.5) and (increment <= 202.5)) {
dir = 3;
_root.link.gotoAndStop(45);
}
if ((increment >= 202.5) and (increment <= 237.5)) {
dir = 4;
_root.link.gotoAndStop(46);
}
if ((increment >= 237.5) and (increment <= 292.5)) {
dir = 5;
_root.link.gotoAndStop(47);
}
if ((increment >= 292.5) and (increment <= 337.5)) {
dir = 6;
_root.link.gotoAndStop(48);
}
if ((increment >= 337.5) or (increment <= 22.5)) {
dir = 7;
_root.link.gotoAndStop(49);
}
}
if (((attack == true) and (_root.link._currentframe >= 26)) and (jump == false)) {
_root.link.gotoAndStop(dir + 58);
}
}
if ((((!Key.isDown(targetKey)) and (targ == 1)) and (jump == false)) and (attack == false)) {
if (focus > 0) {
if ((targ == 1) and (entity == 2)) {
targetOff.start();
}
}
_root.link.gotoAndStop(dir);
targ = 0;
target = false;
}
if (focus == 0) {
entity = 0;
target1 = 1000;
target2 = 1000;
target3 = 1000;
range = 1000;
seeNPC = false;
seeEnemy = false;
seeOther = false;
}
if (jump == true) {
_root.link.gotoAndStop(dir + 50);
}
if (entity > 0) {
xdist = Math.round(_root.linkX - cursor._x);
ydist = Math.round(_root.linkY - cursor._y);
_root.cursor._x = _root.wall[("focus" + focus) + "_"]._x;
_root.cursor._y = _root.wall[("focus" + focus) + "_"]._y;
}
if (entity == 1) {
target1 = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
}
if (entity == 2) {
target2 = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
if (target2 > range) {
target2 = 1000;
range = 1000;
focus = 0;
targetOff.start();
}
}
if (entity == 3) {
target3 = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
}
if (target == false) {
if (!_root.fov.hitTest(_root.wall[("focus" + focus) + "_"]._x, _root.wall[("focus" + focus) + "_"]._y, true)) {
focus = 0;
}
}
screenW = _root.screen._width / 2;
screenH = _root.screen._height / 2;
if (scrn == 0) {
if (_root.link._y <= (boundary_U - screenH)) {
exit = 6;
warping = true;
_root.link.gotoAndStop(9);
dir = 1;
scrn = 1;
}
if (_root.link._x >= (boundary_R + screenW)) {
exit = 7;
warping = true;
_root.link.gotoAndStop(11);
dir = 3;
scrn = 1;
}
if (_root.link._y >= (boundary_D + screenH)) {
exit = 8;
warping = true;
_root.link.gotoAndStop(13);
dir = 5;
scrn = 1;
}
if (_root.link._x <= (boundary_L - screenW)) {
exit = 9;
warping = true;
_root.link.gotoAndStop(15);
dir = 7;
scrn = 1;
}
}
if ((exit == 0) and (pausegame == 1)) {
scrn = 0;
} else {
scrn = 1;
}
if (warp == true) {
room = zone[(area * 10) + exit][0];
area = zone[(area * 10) + exit][1];
warp = false;
}
if (door_type > 0) {
warpcount++;
pausegame = 3;
_root.link.gotoAndStop(8 + dir);
}
if (door_type == 1) {
_root.link._y = _root.link._y - door_in[warpcount];
}
if (door_type == 3) {
_root.link._x = _root.link._x + door_in[warpcount];
}
if (door_type == 5) {
_root.link._y = _root.link._y + door_in[warpcount];
}
if (door_type == 7) {
_root.link._x = _root.link._x - door_in[warpcount];
}
if (warpcount == 1) {
warping = true;
}
if (warpcount > 21) {
warpcount = 0;
door_type = 0;
}
if ((target1 == 1000) or (((focus == 0) and (open_chest == false)) and (got_item == false))) {
talk = false;
if (link._currentframe != 17) {
NPC = 0;
}
}
if (talk == true) {
action = 4;
if (pausegame == 1) {
conv = 0;
}
}
if (open_chest == true) {
if (((dir != 1) and (dir != 5)) or (target == true)) {
chest = false;
open_chest = false;
}
chest = false;
_root.wall[(("t_" + pos1) + "_") + posCX].gotoAndStop(33);
pausegame = 5;
NPC = 100;
conversation = _root.wall[(("t_" + pos1) + "_") + posCX].contents;
link.gotoAndStop(17);
dir = 5;
}
if (((action == 4) and (act == 0)) and Key.isDown(actKey)) {
pausegame = 5;
}
if (pausegame == 5) {
action = 1;
if ((got_item == true) or (open_chest == false)) {
_root.Text.gotoAndStop(2);
}
if (got_item == true) {
_root.chest_item._x = link._x - 8;
_root.chest_item._y = link._y - 36;
_root.chest_item._alpha = 100;
_root.chest_item.gotoAndStop(conversation);
chest = false;
open_chest = false;
}
if ((((advance == true) and (act == 0)) and Key.isDown(actKey)) and (_root.Text.counter2 >= _root.dial[(_root.NPC * 10) + _root.conversation][_root.conv].length)) {
conv++;
_root.Text.nextline = true;
_root.Text.counter2 = 0;
advance = false;
}
} else {
_root.chest_item._alpha = 0;
}
if (conv == dial[(NPC * 10) + conversation][conv]) {
pausegame = 1;
_root.Text.gotoAndStop(1);
_root.Text.nextline = false;
advance = false;
_root.Text.counter2 = 0;
conversation = 1;
conv = 0;
got_item = false;
}
if ((dial[(NPC * 10) + conversation] == undefined) or (dial[(NPC * 10) + conversation][conv] == undefined)) {
if ((act == 0) and Key.isDown(actKey)) {
pausegame = 1;
_root.Text.gotoAndStop(1);
_root.Text.nextline = false;
_root.Text.advance = false;
advance = false;
conversation = 1;
conv = 0;
NPC = 0;
got_item = false;
open_chest = false;
}
}
if (attack == true) {
liftDir = 0;
liftable = false;
action = 1;
}
if (attack == false) {
if (action <= 5) {
if (_root.wall[(("t_" + pos1) + "_") + posCX].liftable == true) {
if (dir == 1) {
if (((target == true) and (dir2 == 1)) or (target == false)) {
liftDir = 1;
object = _root.wall[(("t_" + pos1) + "_") + posCX];
} else {
liftDir = 0;
}
}
}
if (_root.wall[(("t_" + posCY) + "_") + (pos3 - 1)].liftable == true) {
if (dir == 3) {
if (((target == true) and (dir2 == 3)) or (target == false)) {
liftDir = 3;
object = _root.wall[(("t_" + posCY) + "_") + (pos3 - 1)];
} else {
liftDir = 0;
}
}
}
if (_root.wall[(("t_" + (pos5 - 1)) + "_") + posCX].liftable == true) {
if (dir == 5) {
if (((target == true) and (dir2 == 5)) or (target == false)) {
liftDir = 5;
object = _root.wall[(("t_" + (pos5 - 1)) + "_") + posCX];
} else {
liftDir = 0;
}
}
}
if (_root.wall[(("t_" + posCY) + "_") + pos7].liftable == true) {
if (dir == 7) {
if (((target == true) and (dir2 == 7)) or (target == false)) {
liftDir = 7;
object = _root.wall[(("t_" + posCY) + "_") + pos7];
} else {
liftDir = 0;
}
}
}
if (dir == liftDir) {
liftable = true;
} else {
liftable = false;
}
if (liftable == true) {
action = 5;
}
if ((liftable == false) and (action == 5)) {
liftDir = 0;
}
}
}
if (action == 5) {
if ((Key.isDown(actKey) and (act == 0)) and (liftcount == 0)) {
object._name = ("asdf" + depth) + "ghjk";
object.swapDepths(110000 + depth);
depth++;
if (dir == 1) {
object._x = _root.link._x - 9;
}
if (dir == 3) {
object._y = _root.link._y - 16;
}
if (dir == 5) {
object._x = _root.link._x - 8;
}
if (dir == 7) {
object._y = _root.link._y - 16;
}
link.gotoAndStop(dir + 67);
liftcount++;
}
}
if (liftcount >= 1) {
dir = liftDir;
if (dir == 1) {
object.swapDepths(25000);
}
if (object._x > (_root.link._x - 7)) {
object._x = object._x - 3;
}
if (object._y > (_root.link._y - 28)) {
object._y = object._y - 3;
}
if (object._x < (_root.link._x - 7)) {
object._x = object._x + 3;
}
if (object._y < (_root.link._y - 28)) {
object._y = object._y + 2;
}
liftcount++;
}
if (liftcount == 10) {
liftDir = 0;
object._x = _root.link._x - 8;
object._y = _root.link._y - 28;
liftable == false;
action = 6;
object.swapDepths(101000 + depth);
}
if (action != 6) {
wall.item_shadow._x = link._x + 300;
wall.item_shadow._y = link._y + 300;
}
if (action == 6) {
liftcount = 0;
liftable = false;
if (thrown == false) {
object._x = _root.link._x - 8;
wall.item_shadow._x = link._x;
wall.item_shadow._y = link._y;
if (target == true) {
object._y = _root.link._y - 28;
} else if (((Key.isDown(upKey) or Key.isDown(rightKey)) or Key.isDown(downKey)) or Key.isDown(leftKey)) {
object._y = (_root.link._y - 28) - walking_item[_root.link.item_walk._currentframe];
}
}
if (thrown == false) {
dir3 = dir;
if (Key.isDown(actKey) and (act == 0)) {
thrown = true;
}
}
}
if (thrown == false) {
dir3 = dir;
if (dir3 == 1) {
throwY = -throwspeed1;
throwX = 0;
shadowDir = "Y, 0";
}
if (dir3 == 2) {
throwY = -throwspeed3;
throwX = throwspeed3;
shadowDir = "Y, X";
}
if (dir3 == 3) {
throwY = 0;
throwX = throwspeed1;
shadowDir = "0, X";
}
if (dir3 == 4) {
throwY = throwspeed2;
throwX = throwspeed3;
shadowDir = "Y, X";
}
if (dir3 == 5) {
targM2 = 3;
throwY = throwspeed1;
throwX = 0;
shadowDir = "Y, 0";
} else {
targM2 = 5;
}
if (dir3 == 6) {
throwY = throwspeed2;
throwX = -throwspeed3;
shadowDir = "Y, X";
}
if (dir3 == 7) {
throwY = 0;
throwX = -throwspeed1;
shadowDir = "0, X";
}
if (dir3 == 8) {
throwY = -throwspeed3;
throwX = -throwspeed3;
shadowDir = "Y, X";
}
}
if (object.hitTest(_root.wall.item_shadow._x, _root.wall.item_shadow._y, true) or (itemgrav > 7)) {
object.sub.gotoAndStop(2);
action = 1;
itemgrav = -2;
thrown = false;
}
if (thrown == true) {
object._y = object._y + itemgrav;
object._y = object._y + throwY;
object._x = object._x + throwX;
if (shadowDir == "Y, 0") {
_root.wall.item_shadow._y = _root.wall.item_shadow._y + throwY;
}
if (shadowDir == "Y, X") {
_root.wall.item_shadow._x = _root.wall.item_shadow._x + throwX;
_root.wall.item_shadow._y = _root.wall.item_shadow._y + throwY;
}
if (shadowDir == "0, X") {
_root.wall.item_shadow._x = _root.wall.item_shadow._x + throwX;
}
itemgrav = itemgrav + 1;
}
if (Key.isDown(actKey)) {
act = 1;
} else {
act = 0;
}
if ((((scrnC._x < Math.floor(pointX + 3)) and (scrnC._x > Math.floor(pointX - 3))) and (scrnC._y < Math.floor(pointY + 3))) and (scrnC._y > Math.floor(pointY - 3))) {
centered = true;
} else {
centered = false;
scrnC._x = scrnC._x + (link._x - lastFrameX);
scrnC._y = scrnC._y + (link._y - lastFrameY);
if (scrnC._x > Math.floor(pointX)) {
scrnC._x--;
}
if (scrnC._x > Math.floor(pointX)) {
scrnC._x--;
}
if (scrnC._x < Math.floor(pointX)) {
scrnC._x++;
}
if (scrnC._x < Math.floor(pointX)) {
scrnC._x++;
}
if (scrnC._y > Math.floor(pointY)) {
scrnC._y--;
}
if (scrnC._y > Math.floor(pointY)) {
scrnC._y--;
}
if (scrnC._y < Math.floor(pointY)) {
scrnC._y++;
}
if (scrnC._y < Math.floor(pointY)) {
scrnC._y++;
}
if (scrnC._x > Math.floor(pointX)) {
scrnC._x--;
}
if (scrnC._x > Math.floor(pointX)) {
scrnC._x--;
}
if (scrnC._x < Math.floor(pointX)) {
scrnC._x++;
}
if (scrnC._x < Math.floor(pointX)) {
scrnC._x++;
}
if (scrnC._y > Math.floor(pointY)) {
scrnC._y--;
}
if (scrnC._y > Math.floor(pointY)) {
scrnC._y--;
}
if (scrnC._y < Math.floor(pointY)) {
scrnC._y++;
}
if (scrnC._y < Math.floor(pointY)) {
scrnC._y++;
}
}
if ((pausegame == 1) or (pausegame == 3)) {
if (Key.isDown(targetKey)) {
_root.pos.pos1.gotoAndStop(2);
if (targ2 == 0) {
centered = false;
targ2 = 1;
}
if (entity > 0) {
pointX = (_root.cursor._x / 2) + (_root.link._x / 2);
pointY = (_root.cursor._y / 2) + (_root.link._y / 2);
} else {
pointX = link._x + (throwX * targM);
pointY = link._y + (throwY * targM2);
target_enemy = false;
}
}
if (!Key.isDown(targetKey)) {
_root.pos.pos1.gotoAndStop(1);
if (targ2 == 1) {
centered = false;
targ2 = 0;
}
target_enemy = false;
pointX = link._x;
pointY = link._y;
}
}
if (centered == true) {
scrnC._x = pointX;
scrnC._y = pointY;
}
if (_root.scrnC._y <= boundary_U) {
_root.screen._y = boundary_U;
} else if (_root.scrnC._y >= boundary_D) {
_root.screen._y = boundary_D;
} else {
_root.screen._y = _root.scrnC._y;
}
if (_root.scrnC._x >= boundary_R) {
_root.screen._x = boundary_R;
} else if (_root.scrnC._x <= boundary_L) {
_root.screen._x = boundary_L;
} else {
_root.screen._x = _root.scrnC._x;
}
if (warping == true) {
pausegame = 3;
}
if (warping == false) {
linkX = _root.link._x;
linkY = _root.link._y;
}
lastFrameX = _root.link._x;
lastFrameY = _root.link._y;
if (action == 6) {
link.targetwalk.upper_body.gotoAndStop(2);
_root.link.stand.gotoAndStop(2);
} else {
link.targetwalk.upper_body.gotoAndStop(1);
link.stand.gotoAndStop(1);
}
if (Key.isDown(pauseKey)) {
if ((pausegame == 1) and (pse == 0)) {
pausegame = 2;
pse = 1;
}
if ((pausegame == 2) and (pse == 0)) {
pausegame = 1;
pse = 1;
}
}
if (!Key.isDown(pauseKey)) {
pse = 0;
}
};
Instance of Symbol 784 MovieClip [walls] "wall" in Frame 1
onClipEvent (load) {
this._x = 0;
this._y = 0;
this.swapDepths(50000);
}
Instance of Symbol 787 MovieClip "screen" in Frame 1
onClipEvent (load) {
this.swapDepths(10000000000000);
}
Instance of Symbol 873 MovieClip "pos" in Frame 1
onClipEvent (load) {
this.swapDepths(10000000000400);
}
Instance of Symbol 972 MovieClip "icons" in Frame 1
onClipEvent (load) {
this._x = _root.screen._x;
this._y = _root.screen._y;
this.swapDepths(10000000000149);
_root.icons.createEmptyMovieClip("movFrameRate", 100);
var frameRate = 0;
}
onClipEvent (enterFrame) {
this._width = _root.screen._width;
this._height = _root.screen._height;
this.t = getTimer();
frameRate = Math.round(1000 / (this.t - this.o));
_root.icons.blarg.frames.text = frameRate;
this.o = this.t;
if (frameRate >= 100) {
_root.test.gotoAndStop(2);
} else {
_root.test.gotoAndStop(1);
}
}
Instance of Symbol 988 MovieClip "dmgClip" in Frame 1
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1004 MovieClip "cursor" in Frame 1
onClipEvent (load) {
var depth = 700000000;
}
onClipEvent (enterFrame) {
this.swapDepths(depth);
}
Instance of Symbol 1006 MovieClip "fov" in Frame 1
onClipEvent (load) {
this.swapDepths(60000);
this._width = _root.screen._width / 2.6;
this._height = _root.screen._width / 2.6;
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._rotation = (_root.dir * 45) - 45;
this._x = _root.wall.link._x;
this._y = _root.wall.link._y - 8;
}
Instance of Symbol 1008 MovieClip "scrnC" in Frame 1
onClipEvent (load) {
this._x = _root.link._x;
this._y = _root.link._y;
}
Instance of Symbol 68 MovieClip "chest_item" in Frame 1
onClipEvent (load) {
var depth = 100001;
this.swapDepths(depth);
}
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 6
stop();
Symbol 68 MovieClip Frame 7
stop();
Symbol 68 MovieClip Frame 11
stop();
Symbol 68 MovieClip Frame 12
stop();
Symbol 68 MovieClip Frame 16
stop();
Symbol 68 MovieClip Frame 18
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
_root.warping = true;
Symbol 113 MovieClip Frame 4
_root.pausegame = 5;
_root.link.gotoAndStop(13);
onEnterFrame = function () {
if (this._currentframe <= 18) {
_root.link._y = _root.link._y + 2;
}
};
Symbol 113 MovieClip Frame 19
stop();
_root.pausegame = 3;
_root.warp = true;
Symbol 113 MovieClip Frame 20
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
play();
Symbol 113 MovieClip Frame 21
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 22
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 23
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 24
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 25
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 26
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 27
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 28
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 29
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 30
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 31
_root.link._y = _root.link._y - 2;
_root.link.gotoAndStop(9);
Symbol 113 MovieClip Frame 32
_root.link._y = _root.link._y - 2;
Symbol 113 MovieClip Frame 33
gotoAndStop (1);
_root.dir = 1;
_root.pausegame = 1;
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 33
gotoAndStop (1);
_root.dir = 5;
_root.pausegame = 1;
Symbol 186 MovieClip Frame 10
_parent._parent.removeMovieClip();
Symbol 186 MovieClip Frame 16
stop();
Symbol 188 MovieClip Frame 11
stop();
Symbol 192 MovieClip [stuff] Frame 1
stop();
Symbol 192 MovieClip [stuff] Frame 2
stop();
Symbol 192 MovieClip [stuff] Frame 3
stop();
Symbol 192 MovieClip [stuff] Frame 4
stop();
Symbol 192 MovieClip [stuff] Frame 5
stop();
Symbol 192 MovieClip [stuff] Frame 6
stop();
Symbol 198 MovieClip Frame 9
_parent._parent.removeMovieClip();
Symbol 199 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
stop();
Symbol 297 MovieClip Frame 3
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 7
stop();
Symbol 334 MovieClip Frame 5
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 345 MovieClip [tile] Frame 1
stop();
Symbol 345 MovieClip [tile] Frame 2
if (_root.pausegame >= 0) {
this._visible = false;
}
if (_root.exit == 0) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
_root.screen._x = this._x + 8;
_root.screen._y = this._y + 8;
_root.link.gotoAndStop(_root.dir);
}
Instance of Symbol 23 MovieClip in Symbol 345 MovieClip [tile] Frame 2
onClipEvent (load) {
this._visible = 0;
}
Symbol 345 MovieClip [tile] Frame 3
if (_root.pausegame > 0) {
this._visible = false;
}
onEnterFrame = function () {
if (this.hitTest(_root.link._x, _root.link._y - 8, true)) {
if (_root.dir == 5) {
_root.seeNPC = true;
_root.NPC = 0;
_root.conversation = 1;
}
} else if (_root.NPC == 0) {
_root.seeNPC = false;
}
};
Symbol 345 MovieClip [tile] Frame 5
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
this._x = Math.floor(this._x / 80) * 80;
this._y = Math.floor(this._y / 160) * 160;
}
Symbol 345 MovieClip [tile] Frame 6
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
this._x = Math.floor(this._x / 80) * 80;
this._y = Math.floor(this._y / 160) * 160;
}
Symbol 345 MovieClip [tile] Frame 7
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 8
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 9
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
this._x = Math.floor(this._x / 80) * 80;
this._y = Math.floor(this._y / 160) * 160;
}
Symbol 345 MovieClip [tile] Frame 10
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 25
onEnterFrame = function () {
if (this.hitTest(_root.link._x, _root.link._y - 4, true)) {
button.gotoAndStop(2);
} else {
button.gotoAndStop(1);
}
};
Symbol 345 MovieClip [tile] Frame 30
_root.boundary_R = this._x - (_root.screen._width / 2);
_root.boundary_D = this._y - (_root.screen._height / 2);
Symbol 345 MovieClip [tile] Frame 32
wall = true;
locked = true;
contents = Math.floor(this._x / 16);
i = Math.floor(this._y / 16);
j = Math.floor(this._x / 16);
var locked = true;
if ((!_root.pausegame) > 0) {
ID._visible = true;
} else {
ID._visible = false;
}
ID.gotoAndStop(contents);
dir2 = 1;
onEnterFrame = function () {
if (this._currentframe == 32) {
if ((_root.link._x >= (this._x + 2)) and (_root.link._x <= (this._x + 14))) {
if ((_root.link._y < (this._y + 28)) and (_root.dir == dir2)) {
if (locked == true) {
_root.chest = true;
} else {
_root.chest = false;
}
}
}
if ((_root.target == true) or (_root.dir != 1)) {
_root.chest = false;
}
}
if (this._currentframe == 33) {
if (locked == true) {
_root.room[i][j] = 33;
locked = false;
}
}
};
Symbol 345 MovieClip [tile] Frame 33
wall = true;
Symbol 345 MovieClip [tile] Frame 34
wall = true;
locked = true;
contents = Math.floor(this._y / 16);
i = Math.floor(this._y / 16);
j = Math.floor(this._x / 16);
var locked = true;
dir2 = 1;
onEnterFrame = function () {
if (this._currentframe == 34) {
if ((_root.link._x >= (this._x + 2)) and (_root.link._x <= (this._x + 14))) {
if ((_root.link._y < (this._y + 28)) and (_root.dir == dir2)) {
if (locked == true) {
_root.chest = true;
} else {
_root.chest = false;
}
}
}
if ((_root.target == true) or (_root.dir != 1)) {
_root.chest = false;
}
}
if (this._currentframe == 33) {
if (locked == true) {
_root.room[i][j] = 33;
locked = false;
}
}
};
Symbol 345 MovieClip [tile] Frame 36
wall = true;
onEnterFrame = function () {
if (this.hitTest(_root.dmgClip)) {
chest.gotoAndStop(2);
}
};
Symbol 345 MovieClip [tile] Frame 101
wall = true;
Symbol 345 MovieClip [tile] Frame 102
wall = true;
Symbol 345 MovieClip [tile] Frame 103
wall = true;
Symbol 345 MovieClip [tile] Frame 104
wall = true;
Symbol 345 MovieClip [tile] Frame 105
wall = true;
Symbol 345 MovieClip [tile] Frame 106
wall = true;
Symbol 345 MovieClip [tile] Frame 107
wall = true;
Symbol 345 MovieClip [tile] Frame 108
wall = true;
Symbol 345 MovieClip [tile] Frame 109
wall = true;
Symbol 345 MovieClip [tile] Frame 110
wall = true;
Symbol 345 MovieClip [tile] Frame 111
wall = true;
Symbol 345 MovieClip [tile] Frame 112
wall = true;
Symbol 345 MovieClip [tile] Frame 113
wall = true;
Symbol 345 MovieClip [tile] Frame 114
wall = true;
Symbol 345 MovieClip [tile] Frame 115
wall = true;
Symbol 345 MovieClip [tile] Frame 116
wall = true;
Symbol 345 MovieClip [tile] Frame 117
wall = true;
Symbol 345 MovieClip [tile] Frame 118
wall = true;
Symbol 345 MovieClip [tile] Frame 119
wall = true;
Symbol 345 MovieClip [tile] Frame 120
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(100 - selfDepth);
dir2 = 5;
doorcount = 1;
from = false;
if (_root.door_type == dir2) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
}
onEnterFrame = function () {
if ((_root.link._x >= (this._x + 4)) and (_root.link._x <= (this._x + 10))) {
if (this.hitTest(_root.link._x + 0, _root.link._y + 2, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
if (_root.warping == true) {
if ((_root.exit == doorcount) and (from == false)) {
if ((_root.dir == (dir2 + 4)) or (_root.dir == (dir2 - 4))) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
from = true;
}
}
}
};
Instance of Symbol 115 MovieClip in Symbol 345 MovieClip [tile] Frame 120
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 121
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(100 - selfDepth);
dir2 = 5;
doorcount = 2;
from = false;
if (_root.door_type == dir2) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
}
onEnterFrame = function () {
if ((_root.link._x >= (this._x + 4)) and (_root.link._x <= (this._x + 10))) {
if (this.hitTest(_root.link._x + 0, _root.link._y + 2, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
if (_root.warping == true) {
if ((_root.exit == doorcount) and (from == false)) {
if ((_root.dir == (dir2 + 4)) or (_root.dir == (dir2 - 4))) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
from = true;
}
}
}
};
Instance of Symbol 113 MovieClip in Symbol 345 MovieClip [tile] Frame 121
onClipEvent (load) {
doorcount = 2;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 22;
_root.link.gotoAndStop(9);
_root.dir = 1;
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x, _root.link._y + 4, true) and (_root.dir == 5)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
}
Instance of Symbol 117 MovieClip in Symbol 345 MovieClip [tile] Frame 121
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 122
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(100 - selfDepth);
dir2 = 5;
doorcount = 3;
from = false;
if (_root.door_type == dir2) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
}
onEnterFrame = function () {
if ((_root.link._x >= (this._x + 4)) and (_root.link._x <= (this._x + 10))) {
if (this.hitTest(_root.link._x + 0, _root.link._y + 2, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
if (_root.warping == true) {
if ((_root.exit == doorcount) and (from == false)) {
if ((_root.dir == (dir2 + 4)) or (_root.dir == (dir2 - 4))) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
from = true;
}
}
}
};
Instance of Symbol 113 MovieClip in Symbol 345 MovieClip [tile] Frame 122
onClipEvent (load) {
doorcount = 3;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 22;
_root.link.gotoAndStop(9);
_root.dir = 1;
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x, _root.link._y + 4, true) and (_root.dir == 5)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
}
Instance of Symbol 119 MovieClip in Symbol 345 MovieClip [tile] Frame 122
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 123
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(100 - selfDepth);
dir2 = 5;
doorcount = 4;
from = false;
if (_root.door_type == dir2) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
}
onEnterFrame = function () {
if ((_root.link._x >= (this._x + 4)) and (_root.link._x <= (this._x + 10))) {
if (this.hitTest(_root.link._x + 0, _root.link._y + 2, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
if (_root.warping == true) {
if ((_root.exit == doorcount) and (from == false)) {
if ((_root.dir == (dir2 + 4)) or (_root.dir == (dir2 - 4))) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
from = true;
}
}
}
};
Instance of Symbol 113 MovieClip in Symbol 345 MovieClip [tile] Frame 123
onClipEvent (load) {
doorcount = 4;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 22;
_root.dir = 1;
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x, _root.link._y + 4, true) and (_root.dir == 5)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
}
Instance of Symbol 121 MovieClip in Symbol 345 MovieClip [tile] Frame 123
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 124
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(100 - selfDepth);
dir2 = 5;
doorcount = 5;
from = false;
if (_root.door_type == dir2) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
}
onEnterFrame = function () {
if ((_root.link._x >= (this._x + 4)) and (_root.link._x <= (this._x + 10))) {
if (this.hitTest(_root.link._x + 0, _root.link._y + 2, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
if (_root.warping == true) {
if ((_root.exit == doorcount) and (from == false)) {
if ((_root.dir == (dir2 + 4)) or (_root.dir == (dir2 - 4))) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
from = true;
}
}
}
};
Instance of Symbol 113 MovieClip in Symbol 345 MovieClip [tile] Frame 124
onClipEvent (load) {
doorcount = 5;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 22;
_root.link.gotoAndStop(9);
_root.dir = 1;
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x, _root.link._y + 4, true) and (_root.dir == 5)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
}
Instance of Symbol 123 MovieClip in Symbol 345 MovieClip [tile] Frame 124
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 125
wall = true;
Symbol 345 MovieClip [tile] Frame 126
wall = true;
Symbol 345 MovieClip [tile] Frame 127
wall = true;
Symbol 345 MovieClip [tile] Frame 128
wall = true;
Symbol 345 MovieClip [tile] Frame 129
wall = true;
Symbol 345 MovieClip [tile] Frame 130
wall = true;
Symbol 345 MovieClip [tile] Frame 131
wall = true;
Symbol 345 MovieClip [tile] Frame 132
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(120000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 133
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(120000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 134
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(120000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 135
wall = true;
Symbol 345 MovieClip [tile] Frame 136
wall = true;
Symbol 345 MovieClip [tile] Frame 137
wall = true;
Symbol 345 MovieClip [tile] Frame 138
wall = true;
Symbol 345 MovieClip [tile] Frame 139
wall = true;
Symbol 345 MovieClip [tile] Frame 140
wall = true;
Symbol 345 MovieClip [tile] Frame 141
wall = true;
Symbol 345 MovieClip [tile] Frame 142
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 143
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 144
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 145
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 146
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 147
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 148
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 149
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 150
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 151
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 152
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 153
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 154
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 155
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 156
wall = true;
Symbol 345 MovieClip [tile] Frame 157
wall = true;
Symbol 345 MovieClip [tile] Frame 158
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 159
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 160
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 161
wall = true;
Symbol 345 MovieClip [tile] Frame 162
wall = true;
Symbol 345 MovieClip [tile] Frame 163
wall = true;
Symbol 345 MovieClip [tile] Frame 164
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(100 - selfDepth);
dir2 = 1;
doorcount = 1;
from = false;
if (_root.door_type == dir2) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
}
onEnterFrame = function () {
if ((_root.link._x >= (this._x + 4)) and (_root.link._x <= (this._x + 10))) {
if (this.hitTest(_root.link._x + 0, _root.link._y - 14, true) and (_root.dir == dir2)) {
door.play();
_root.door_type = dir2;
_root.exit = doorcount;
}
}
if (_root.warping == true) {
if ((_root.exit == doorcount) and (from == false)) {
if ((_root.dir == (dir2 + 4)) or (_root.dir == (dir2 - 4))) {
_root.link._x = this._x + 8;
_root.link._y = this._y + 12;
from = true;
}
}
}
};
Instance of Symbol 115 MovieClip in Symbol 345 MovieClip [tile] Frame 164
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 165
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(50 - selfDepth);
Instance of Symbol 168 MovieClip in Symbol 345 MovieClip [tile] Frame 165
onClipEvent (load) {
doorcount = 2;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
_root.dir = 5;
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x, _root.link._y - 14, true) and (_root.dir == 1)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
}
Instance of Symbol 117 MovieClip in Symbol 345 MovieClip [tile] Frame 165
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 166
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(50 - selfDepth);
Instance of Symbol 168 MovieClip in Symbol 345 MovieClip [tile] Frame 166
onClipEvent (load) {
doorcount = 3;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
_root.dir = 5;
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x, _root.link._y - 14, true) and (_root.dir == 1)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
}
Instance of Symbol 119 MovieClip in Symbol 345 MovieClip [tile] Frame 166
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 167
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(50 - selfDepth);
Instance of Symbol 168 MovieClip in Symbol 345 MovieClip [tile] Frame 167
onClipEvent (load) {
doorcount = 4;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
_root.dir = 5;
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x, _root.link._y - 14, true) and (_root.dir == 1)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
}
Instance of Symbol 121 MovieClip in Symbol 345 MovieClip [tile] Frame 167
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 168
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(50 - selfDepth);
Instance of Symbol 168 MovieClip in Symbol 345 MovieClip [tile] Frame 168
onClipEvent (load) {
doorcount = 5;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
_root.dir = 5;
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x, _root.link._y - 14, true) and (_root.dir == 1)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
}
Instance of Symbol 123 MovieClip in Symbol 345 MovieClip [tile] Frame 168
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 169
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(120000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 170
wall = true;
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(140000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 171
wall = true;
selfDepth = _root.depth;
this.swapDepths(120000 + selfDepth);
Symbol 345 MovieClip [tile] Frame 172
wall = true;
Symbol 345 MovieClip [tile] Frame 173
wall = true;
Symbol 345 MovieClip [tile] Frame 174
wall = true;
Symbol 345 MovieClip [tile] Frame 175
wall = true;
Symbol 345 MovieClip [tile] Frame 176
wall = true;
Symbol 345 MovieClip [tile] Frame 177
wall = true;
Symbol 345 MovieClip [tile] Frame 178
wall = true;
liftable = true;
depth = _root.depth;
_root.wall.attachMovie("roots", "roots" + depth, depth);
_root.wall["roots" + depth]._x = this._x;
_root.wall["roots" + depth]._y = this._y;
_root.depth++;
Instance of Symbol 192 MovieClip [stuff] "sub" in Symbol 345 MovieClip [tile] Frame 178
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.dmgClip) and ((_root.dmgClip._currentframe == 5) or (_root.dmgClip._currentframe == 16))) or this.hitTest(_root.wall.explosion1)) or this.hitTest(_root.wall.explosion2)) and (this._currentframe == 1)) {
_root.grasscut = true;
this.gotoAndPlay(2);
}
}
Symbol 345 MovieClip [tile] Frame 179
wall = true;
liftable = true;
Symbol 345 MovieClip [tile] Frame 180
wall = true;
Symbol 345 MovieClip [tile] Frame 182
wall = true;
Symbol 345 MovieClip [tile] Frame 183
wall = true;
Symbol 345 MovieClip [tile] Frame 184
wall = true;
Symbol 345 MovieClip [tile] Frame 185
wall = true;
Symbol 345 MovieClip [tile] Frame 186
wall = true;
Symbol 345 MovieClip [tile] Frame 187
wall = true;
Symbol 345 MovieClip [tile] Frame 188
wall = true;
Symbol 345 MovieClip [tile] Frame 189
wall = true;
Symbol 345 MovieClip [tile] Frame 191
wall = true;
Symbol 345 MovieClip [tile] Frame 193
diag1 = true;
Symbol 345 MovieClip [tile] Frame 194
wall = true;
Symbol 345 MovieClip [tile] Frame 195
wall = true;
Symbol 345 MovieClip [tile] Frame 196
wall = true;
Symbol 345 MovieClip [tile] Frame 197
wall = true;
Symbol 345 MovieClip [tile] Frame 198
wall = true;
Symbol 345 MovieClip [tile] Frame 199
wall = true;
Symbol 345 MovieClip [tile] Frame 200
wall = true;
Symbol 345 MovieClip [tile] Frame 201
wall = true;
Symbol 345 MovieClip [tile] Frame 203
wall = true;
Symbol 345 MovieClip [tile] Frame 205
diag2 = true;
Symbol 345 MovieClip [tile] Frame 206
wall = true;
Symbol 345 MovieClip [tile] Frame 207
wall = true;
Symbol 345 MovieClip [tile] Frame 208
wall = true;
Symbol 345 MovieClip [tile] Frame 209
wall = true;
Symbol 345 MovieClip [tile] Frame 210
wall = true;
Symbol 345 MovieClip [tile] Frame 211
wall = true;
Symbol 345 MovieClip [tile] Frame 212
wall = true;
Symbol 345 MovieClip [tile] Frame 213
wall = true;
Symbol 345 MovieClip [tile] Frame 215
wall = true;
Symbol 345 MovieClip [tile] Frame 217
diag3 = true;
Symbol 345 MovieClip [tile] Frame 218
wall = true;
Symbol 345 MovieClip [tile] Frame 219
wall = true;
Symbol 345 MovieClip [tile] Frame 220
wall = true;
Symbol 345 MovieClip [tile] Frame 221
wall = true;
Symbol 345 MovieClip [tile] Frame 222
wall = true;
Symbol 345 MovieClip [tile] Frame 223
wall = true;
Symbol 345 MovieClip [tile] Frame 224
wall = true;
Symbol 345 MovieClip [tile] Frame 225
wall = true;
Symbol 345 MovieClip [tile] Frame 227
wall = true;
Symbol 345 MovieClip [tile] Frame 228
wall = true;
Symbol 345 MovieClip [tile] Frame 229
diag4 = true;
Symbol 345 MovieClip [tile] Frame 231
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 232
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 233
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 234
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 235
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 236
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 237
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 238
if (_root.pausegame > 0) {
_root.depth++;
selfDepth = _root.depth;
this.swapDepths(-1000 - selfDepth);
}
Symbol 345 MovieClip [tile] Frame 262
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
dir2 = 1;
doorcount = 1;
onEnterFrame = function () {
if (_root.battle == false) {
if ((_root.link._x >= (this._x - 6)) and (_root.link._x <= (this._x + 6))) {
if (this.hitTest(_root.link._x + 0, _root.link._y - 14, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
} else {
this.gotoAndStop(2);
}
};
Instance of Symbol 297 MovieClip in Symbol 345 MovieClip [tile] Frame 262
onClipEvent (load) {
doorcount = 1;
dir_in = new Array(0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2);
X = 0;
Y = -14;
DIR = 1;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
if ((dir + 4) > 8) {
_root.dir = DIR - 4;
} else {
_root.dir = DIR + 4;
}
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x + X, _root.link._y + Y, true) and (_root.dir == DIR)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
if (this._currentframe > 1) {
_root.link._y = _root.link._y - dir_in[this._currentframe];
}
}
Instance of Symbol 115 MovieClip in Symbol 345 MovieClip [tile] Frame 262
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 263
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
dir2 = 1;
doorcount = 2;
onEnterFrame = function () {
if (_root.battle == false) {
if ((_root.link._x >= (this._x - 6)) and (_root.link._x <= (this._x + 6))) {
if (this.hitTest(_root.link._x + 0, _root.link._y - 14, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
} else {
this.gotoAndStop(2);
}
};
Instance of Symbol 297 MovieClip in Symbol 345 MovieClip [tile] Frame 263
onClipEvent (load) {
doorcount = 2;
dir_in = new Array(0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2);
X = 0;
Y = -14;
DIR = 1;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
if ((dir + 4) > 8) {
_root.dir = DIR - 4;
} else {
_root.dir = DIR + 4;
}
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x + X, _root.link._y + Y, true) and (_root.dir == DIR)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
if (this._currentframe > 1) {
_root.link._y = _root.link._y - dir_in[this._currentframe];
}
}
Instance of Symbol 117 MovieClip in Symbol 345 MovieClip [tile] Frame 263
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 264
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
dir2 = 1;
doorcount = 3;
onEnterFrame = function () {
if (_root.battle == false) {
if ((_root.link._x >= (this._x - 6)) and (_root.link._x <= (this._x + 6))) {
if (this.hitTest(_root.link._x + 0, _root.link._y - 14, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
} else {
this.gotoAndStop(2);
}
};
Instance of Symbol 297 MovieClip in Symbol 345 MovieClip [tile] Frame 264
onClipEvent (load) {
doorcount = 3;
dir_in = new Array(0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2);
X = 0;
Y = -14;
DIR = 1;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
if ((dir + 4) > 8) {
_root.dir = DIR - 4;
} else {
_root.dir = DIR + 4;
}
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x + X, _root.link._y + Y, true) and (_root.dir == DIR)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
if (this._currentframe > 1) {
_root.link._y = _root.link._y - dir_in[this._currentframe];
}
}
Instance of Symbol 119 MovieClip in Symbol 345 MovieClip [tile] Frame 264
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 265
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
dir2 = 1;
doorcount = 4;
onEnterFrame = function () {
if (_root.battle == false) {
if ((_root.link._x >= (this._x - 6)) and (_root.link._x <= (this._x + 6))) {
if (this.hitTest(_root.link._x + 0, _root.link._y - 14, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
} else {
this.gotoAndStop(2);
}
};
Instance of Symbol 297 MovieClip in Symbol 345 MovieClip [tile] Frame 265
onClipEvent (load) {
doorcount = 4;
dir_in = new Array(0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2);
X = 0;
Y = -14;
DIR = 1;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
if ((dir + 4) > 8) {
_root.dir = DIR - 4;
} else {
_root.dir = DIR + 4;
}
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x + X, _root.link._y + Y, true) and (_root.dir == DIR)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
if (this._currentframe > 1) {
_root.link._y = _root.link._y - dir_in[this._currentframe];
}
}
Instance of Symbol 121 MovieClip in Symbol 345 MovieClip [tile] Frame 265
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 266
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
dir2 = 1;
doorcount = 5;
onEnterFrame = function () {
if (_root.battle == false) {
if ((_root.link._x >= (this._x - 6)) and (_root.link._x <= (this._x + 6))) {
if (this.hitTest(_root.link._x + 0, _root.link._y - 14, true) and (_root.dir == dir2)) {
_root.door_type = dir2;
_root.exit = doorcount;
}
}
} else {
this.gotoAndStop(2);
}
};
Instance of Symbol 297 MovieClip in Symbol 345 MovieClip [tile] Frame 266
onClipEvent (load) {
doorcount = 5;
dir_in = new Array(0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2);
X = 0;
Y = -14;
DIR = 1;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
if ((dir + 4) > 8) {
_root.dir = DIR - 4;
} else {
_root.dir = DIR + 4;
}
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x + X, _root.link._y + Y, true) and (_root.dir == DIR)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
if (this._currentframe > 1) {
_root.link._y = _root.link._y - dir_in[this._currentframe];
}
}
Instance of Symbol 123 MovieClip in Symbol 345 MovieClip [tile] Frame 266
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 267
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
dir2 = 1;
doorcount = 2;
i = Math.floor(this._y / 16);
j = Math.floor(this._x / 16);
locked = true;
onEnterFrame = function () {
if (locked == true) {
sub.gotoAndStop(3);
if ((_root.link._x >= (this._x - 6)) and (_root.link._x <= (this._x + 6))) {
if (this.hitTest(_root.link._x + 0, _root.link._y - 14, true) and (_root.dir == dir2)) {
_root.locked_door = true;
}
}
}
if (locked == false) {
_root.room[i][j] = this._currentframe - 4;
this.gotoAndStop(this._currentframe - 4);
}
};
Instance of Symbol 117 MovieClip in Symbol 345 MovieClip [tile] Frame 267
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 268
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 297 MovieClip in Symbol 345 MovieClip [tile] Frame 268
onClipEvent (load) {
doorcount = 1;
dir_in = new Array(0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2);
X = 0;
Y = -14;
DIR = 1;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
if ((dir + 4) > 8) {
_root.dir = DIR - 4;
} else {
_root.dir = DIR + 4;
}
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x + X, _root.link._y + Y, true) and (_root.dir == DIR)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
if (this._currentframe > 1) {
_root.link._y = _root.link._y - dir_in[this._currentframe];
}
}
Instance of Symbol 115 MovieClip in Symbol 345 MovieClip [tile] Frame 268
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 269
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 117 MovieClip in Symbol 345 MovieClip [tile] Frame 269
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 270
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 119 MovieClip in Symbol 345 MovieClip [tile] Frame 270
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 271
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 121 MovieClip in Symbol 345 MovieClip [tile] Frame 271
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 272
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 123 MovieClip in Symbol 345 MovieClip [tile] Frame 272
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 273
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 119 MovieClip in Symbol 345 MovieClip [tile] Frame 273
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 274
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 297 MovieClip in Symbol 345 MovieClip [tile] Frame 274
onClipEvent (load) {
doorcount = 1;
dir_in = new Array(0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2);
X = 0;
Y = -14;
DIR = 1;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
if ((dir + 4) > 8) {
_root.dir = DIR - 4;
} else {
_root.dir = DIR + 4;
}
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x + X, _root.link._y + Y, true) and (_root.dir == DIR)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
if (this._currentframe > 1) {
_root.link._y = _root.link._y - dir_in[this._currentframe];
}
}
Instance of Symbol 115 MovieClip in Symbol 345 MovieClip [tile] Frame 274
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 275
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 117 MovieClip in Symbol 345 MovieClip [tile] Frame 275
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 276
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 119 MovieClip in Symbol 345 MovieClip [tile] Frame 276
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 277
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 121 MovieClip in Symbol 345 MovieClip [tile] Frame 277
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 278
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 123 MovieClip in Symbol 345 MovieClip [tile] Frame 278
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 279
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 121 MovieClip in Symbol 345 MovieClip [tile] Frame 279
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 280
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 297 MovieClip in Symbol 345 MovieClip [tile] Frame 280
onClipEvent (load) {
doorcount = 1;
dir_in = new Array(0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, -2, -2, -2, -2, -2, -2, -2);
X = 0;
Y = -14;
DIR = 1;
if (_root.exit == doorcount) {
_root.link._x = _parent._x + 8;
_root.link._y = _parent._y + 6;
if ((dir + 4) > 8) {
_root.dir = DIR - 4;
} else {
_root.dir = DIR + 4;
}
this.gotoAndPlay(20);
}
}
onClipEvent (enterFrame) {
if (((((((this.hitTest(_root.link._x + X, _root.link._y + Y, true) and (_root.dir == DIR)) and (this._currentframe == 1)) and (_root.link._x > (_parent._x + 3))) and (_root.link._x < (_parent._x + 12))) and (_root.target == false)) and (_root.roll == false)) and (this._currentframe <= 20)) {
this.gotoAndPlay(2);
_root.exit = doorcount;
}
if (this._currentframe > 1) {
_root.link._y = _root.link._y - dir_in[this._currentframe];
}
}
Instance of Symbol 115 MovieClip in Symbol 345 MovieClip [tile] Frame 280
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 281
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 117 MovieClip in Symbol 345 MovieClip [tile] Frame 281
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 282
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 119 MovieClip in Symbol 345 MovieClip [tile] Frame 282
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 283
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 121 MovieClip in Symbol 345 MovieClip [tile] Frame 283
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 284
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 123 MovieClip in Symbol 345 MovieClip [tile] Frame 284
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 285
wall = true;
selfDepth = _root.depth;
this.swapDepths(12000 + selfDepth);
Instance of Symbol 123 MovieClip in Symbol 345 MovieClip [tile] Frame 285
onClipEvent (load) {
if (_root.pausegame >= 1) {
_visible = false;
}
}
Symbol 345 MovieClip [tile] Frame 308
_root.boundary_R = this._x - (_root.screen._width / 2);
_root.boundary_D = this._y - (_root.screen._height / 2);
Symbol 345 MovieClip [tile] Frame 309
above = true;
_root.depth++;
selfDepth = _root.depth;
focusCount = _root.focusCount + 1;
_root.focusCount++;
var focused = false;
var xdist = 0;
var ydist = 0;
var range = 65;
this._name = ("focus" + focusCount) + "_";
onEnterFrame = function () {
if (_root.link._y <= (this._y + 4)) {
this.swapDepths(1000000 + selfDepth);
} else {
this.swapDepths(1000 - selfDepth);
}
xdist = Math.round(_root.linkX - this._x);
ydist = Math.round(_root.linkY - this._y);
distancefromthis = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (_root.fov.hitTest(this._x, this._y, true)) {
if ((_root.target1 >= distancefromthis) and (_root.target == false)) {
if (_root.action <= 4) {
_root.talk = true;
}
_root.NPC = 1;
_root.seeNPC = true;
_root.cursor._x = this._x;
_root.cursor._y = this._y;
_root.focus = focusCount;
_root.entity = 1;
_root.range = range;
}
}
};
Symbol 345 MovieClip [tile] Frame 310
_root.depth++;
selfDepth = _root.depth;
focusCount = _root.focusCount + 1;
_root.focusCount++;
var focused = false;
var xdist = 0;
var ydist = 0;
var range = 65;
this._name = ("focus" + focusCount) + "_";
onEnterFrame = function () {
if (_root.link._y <= (this._y + 4)) {
this.swapDepths(1000000 + selfDepth);
} else {
this.swapDepths(1000 - selfDepth);
}
xdist = Math.round(_root.linkX - this._x);
ydist = Math.round(_root.linkY - this._y);
distancefromthis = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
if (_root.fov.hitTest(this._x, this._y, true)) {
if ((_root.target1 >= distancefromthis) and (_root.target == false)) {
if (_root.action <= 4) {
_root.talk = true;
}
_root.NPC = 2;
_root.seeNPC = true;
_root.cursor._x = this._x;
_root.cursor._y = this._y;
_root.focus = focusCount;
_root.entity = 1;
_root.range = range;
}
}
};
Instance of Symbol 309 MovieClip in Symbol 345 MovieClip [tile] Frame 310
/* no clip actions */
Symbol 345 MovieClip [tile] Frame 449
Symbol 345 MovieClip [tile] Frame 464
var range = 0;
var interval = 0;
var speed = 1;
var agro = false;
var randomMovement = 0;
this._name == "enemy";
var AI = 1;
if (AI == 1) {
range = 35;
speed = 1.2;
}
if (AI == 2) {
range = 30;
speed = 1.3;
}
if (AI == 3) {
range = 40;
speed = 1.5;
}
onEnterFrame = function () {
interval++;
if (interval >= 30) {
interval = 30;
}
if (octo._currentframe == 5) {
this._y = this._y - speed;
}
if (octo._currentframe == 6) {
this._x = this._x + speed;
}
if (octo._currentframe == 7) {
this._y = this._y + speed;
}
if (octo._currentframe == 8) {
this._x = this._x - speed;
}
var _local4 = Math.round((_root.link._x - this._x) / 2);
var _local3 = Math.round((_root.link._y - this._y) / 2);
if ((((_local4 <= range) and (_local4 >= (-range))) and (_local3 >= (-range))) and (_local3 <= range)) {
clipToFace = _root.link;
xdiff = clipToFace._x - this._x;
ydiff = (clipToFace._y - this._y) + 8;
increment = Math.round(((Math.atan2(ydiff, xdiff) * 180) / Math.PI) - 180) * -1;
if (AI == 1) {
if ((increment >= 340) or (increment <= 60)) {
if (_root.link._x <= (this._x - 35)) {
octo.gotoAndStop(8);
} else if (_root.link._x >= (this._x - 30)) {
octo.gotoAndStop(6);
} else if ((this._y + 14) >= _root.link._y) {
octo.gotoAndStop(5);
} else if ((this._y + 20) <= _root.link._y) {
octo.gotoAndStop(7);
} else {
octo.gotoAndStop(12);
}
}
if ((increment >= 130) and (increment <= 200)) {
if (_root.link._x >= (this._x + 50)) {
octo.gotoAndStop(6);
} else if (_root.link._x <= (this._x + 45)) {
octo.gotoAndStop(8);
} else if ((this._y + 14) >= _root.link._y) {
octo.gotoAndStop(5);
} else if ((this._y + 20) <= _root.link._y) {
octo.gotoAndStop(7);
} else {
octo.gotoAndStop(10);
}
}
}
agro = true;
_root.cursor._x = this._x + 8;
_root.cursor._y = this._y;
if ((_root.cursor._x == (this._x + 8)) and (_root.cursor._x == (this._x + 8))) {
targeted = true;
} else {
targeted = false;
}
} else {
agro = false;
if (interval == 30) {
randomMovement = Math.ceil(Math.random() * 7.0001);
octo.gotoAndStop(randomMovement);
interval = Math.ceil(Math.random() * 7.0001);
}
}
};
Instance of Symbol 334 MovieClip "octo" in Symbol 345 MovieClip [tile] Frame 464
onClipEvent (enterFrame) {
if (this.hitTest(_root.wall.link.fov)) {
_root.seeEnemy = true;
_root.cursor._x = _parent._x;
_root.cursor._y = _parent._y;
}
}
Symbol 345 MovieClip [tile] Frame 473
enemynum = _root.enemynum + 1;
var focused = false;
var xdist = 0;
var ydist = 0;
this._name = ("enemy" + enemynum) + "_";
var AI = 1;
var range = 0;
var interval = 0;
var speed = 1;
var agro = false;
var randomMovement = 0;
if (AI == 1) {
range = 35;
speed = 1.2;
}
if (AI == 2) {
range = 30;
speed = 1.3;
}
if (AI == 3) {
range = 40;
speed = 1.5;
}
onEnterFrame = function () {
interval++;
if (interval >= 30) {
interval = 30;
}
if (octo._currentframe == 5) {
this._y = this._y - speed;
}
if (octo._currentframe == 6) {
this._x = this._x + speed;
}
if (octo._currentframe == 7) {
this._y = this._y + speed;
}
if (octo._currentframe == 8) {
this._x = this._x - speed;
}
var _local4 = Math.round((_root.link._x - this._x) / 2);
var _local3 = Math.round((_root.link._y - this._y) / 2);
if ((((_local4 <= range) and (_local4 >= (-range))) and (_local3 >= (-range))) and (_local3 <= range)) {
clipToFace = _root.link;
xdiff = clipToFace._x - this._x;
ydiff = (clipToFace._y - this._y) + 8;
increment = Math.round(((Math.atan2(ydiff, xdiff) * 180) / Math.PI) - 180) * -1;
if (AI == 1) {
if ((increment >= 340) or (increment <= 60)) {
if (_root.link._x <= (this._x - 35)) {
octo.gotoAndStop(8);
} else if (_root.link._x >= (this._x - 30)) {
octo.gotoAndStop(6);
} else if ((this._y + 14) >= _root.link._y) {
octo.gotoAndStop(5);
} else if ((this._y + 20) <= _root.link._y) {
octo.gotoAndStop(7);
} else {
octo.gotoAndStop(12);
}
}
if ((increment >= 130) and (increment <= 200)) {
if (_root.link._x >= (this._x + 50)) {
octo.gotoAndStop(6);
} else if (_root.link._x <= (this._x + 45)) {
octo.gotoAndStop(8);
} else if ((this._y + 14) >= _root.link._y) {
octo.gotoAndStop(5);
} else if ((this._y + 20) <= _root.link._y) {
octo.gotoAndStop(7);
} else {
octo.gotoAndStop(10);
}
}
}
agro = true;
_root.cursor._x = this._x + 8;
_root.cursor._y = this._y;
if ((_root.cursor._x == (this._x + 8)) and (_root.cursor._x == (this._x + 8))) {
targeted = true;
} else {
targeted = false;
}
} else {
agro = false;
if (interval == 30) {
randomMovement = Math.ceil(Math.random() * 7.0001);
octo.gotoAndStop(randomMovement);
interval = Math.ceil(Math.random() * 7.0001);
}
}
xdist = Math.round(_root.linkX - this._x);
ydist = Math.round(_root.linkY - this._y);
distancefromthis = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
_root.icons.text2.text = distancefromthis;
if (_root.fov.hitTest(this._x, this._y, true)) {
if ((_root.target2 >= distancefromthis) and (_root.target == false)) {
_root.seeEnemy = true;
_root.cursor._x = this._x;
_root.cursor._y = this._y;
focused = true;
_root.focus = ("enemy" + enemynum) + "_";
}
}
if (focused == true) {
_root.target2 = distancefromthis;
_root.seeEnemy = true;
if ((distancefromthis > 80) or ((!_root.fov.hitTest(this._x, this._y, true)) and (_root.target == false))) {
if ((distancefromthis > 80) and (_root.target == true)) {
_root.targetOff.start();
}
_root.target2 = 1000;
_root.seeEnemy = false;
_root.focus = undefined;
focused = false;
}
}
};
Symbol 345 MovieClip [tile] Frame 482
var type = 2;
entitynum = _root.entitynum + 1;
_root.entitynum++;
var target_range = 105;
var focused = false;
var xdist = 0;
var ydist = 0;
this.name = ("focus" + entitynum) + "_";
onEnterFrame = function () {
xdist = Math.round(_root.linkX - this._x);
ydist = Math.round(_root.linkY - this._y);
distancefromthis = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
if (_root.fov.hitTest(this._x, this._y, true)) {
if ((_root.target2 >= distancefromthis) and (_root.target == false)) {
_root.cursor._x = this._x;
_root.cursor._y = this._y;
focused = true;
_root.focus = enemynum;
}
}
if (focused == true) {
_root.range = target_range;
_root.entity = type;
if ((distancefromthis > target_range) or ((!_root.fov.hitTest(this._x, this._y, true)) and (_root.target == false))) {
focused = false;
}
}
};
Symbol 345 MovieClip [tile] Frame 485
focusCount = _root.focusCount + 1;
_root.focusCount++;
var focused = false;
var speed = 1;
var rockcount = 0;
var rockdir = 1;
var rockspeed = 5;
var xdist = 0;
var ydist = 0;
var range = 90;
var attack = 0;
var attacknum = 1;
var turn = 0;
var turn2 = Math.round((Math.random() * 45) + 15);
this._name = ("focus" + focusCount) + "_";
onEnterFrame = function () {
xdist = Math.round(_root.linkX - this._x);
ydist = Math.round(_root.linkY - this._y) - 8;
distancefromthis = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)));
if (_root.fov.hitTest(this._x, this._y, true)) {
if ((_root.target2 >= distancefromthis) and (_root.target == false)) {
_root.cursor._x = this._x;
_root.cursor._y = this._y;
_root.focus = focusCount;
_root.entity = 2;
_root.range = range;
}
}
clipToFace = _root.wall.link;
xdiff = clipToFace._x - this._x;
ydiff = (clipToFace._y - this._y) - 8;
offset = 180;
increment = Math.round(((Math.atan2(ydiff, xdiff) * 180) / Math.PI) + offset);
if (distancefromthis <= 90) {
if (attack == 0) {
if ((increment >= 45) and (increment <= 135)) {
dir = 1;
if (distancefromthis < 35) {
dir = 3;
}
}
if ((increment >= 135) and (increment <= 225)) {
dir = 2;
if (distancefromthis < 35) {
dir = 4;
}
}
if ((increment >= 225) and (increment <= 315)) {
dir = 3;
if (distancefromthis < 35) {
dir = 1;
}
}
if ((increment >= 315) or (increment <= 45)) {
dir = 4;
if (distancefromthis < 35) {
dir = 2;
}
}
octo.gotoAndStop(dir + 4);
}
} else {
turn++;
if (turn == turn2) {
dir = Math.round(Math.random() * 7) + 1;
octo.gotoAndStop(dir);
turn2 = Math.round(Math.random() * 45) + 15;
turn = 0;
}
}
if (((distancefromthis <= 40) and (distancefromthis >= 35)) and (attack == 0)) {
attack++;
speed = 0;
octo.gotoAndStop(dir + 8);
} else {
speed = 1;
}
if (attack > 0) {
attack++;
}
if (attack == 0) {
if (dir == 1) {
this._y = this._y - speed;
}
if (dir == 2) {
this._x = this._x + speed;
}
if (dir == 3) {
this._y = this._y + speed;
}
if (dir == 4) {
this._x = this._x - speed;
}
}
if (rockcount > 25) {
_root.wall[(("rock" + attacknum) + "_") + focusCount].removeMovieClip();
attacknum = 1;
rockcount = 0;
}
if ((attack == 20) and (attacknum < 2)) {
attacknum++;
_root.wall.attachMovie("octorok_projectile", (("rock" + attacknum) + "_") + focusCount, _root.link.depth + focusCount);
rockdir = dir;
_root.wall[(("rock" + attacknum) + "_") + focusCount]._x = this._x - 5;
_root.wall[(("rock" + attacknum) + "_") + focusCount]._y = this._y - 4;
}
if (attacknum > 1) {
rockcount++;
}
if (attacknum == 2) {
if (rockdir == 1) {
_root.wall[(("rock" + attacknum) + "_") + focusCount]._y = _root.wall[(("rock" + attacknum) + "_") + focusCount]._y - rockspeed;
}
if (rockdir == 2) {
_root.wall[(("rock" + attacknum) + "_") + focusCount]._x = _root.wall[(("rock" + attacknum) + "_") + focusCount]._x + rockspeed;
}
if (rockdir == 3) {
_root.wall[(("rock" + attacknum) + "_") + focusCount]._y = _root.wall[(("rock" + attacknum) + "_") + focusCount]._y + rockspeed;
}
if (rockdir == 4) {
_root.wall[(("rock" + attacknum) + "_") + focusCount]._x = _root.wall[(("rock" + attacknum) + "_") + focusCount]._x - rockspeed;
}
}
if (attack >= 30) {
attack = 0;
}
};
Symbol 345 MovieClip [tile] Frame 528
var liftable = true;
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
stop();
Symbol 374 MovieClip [ene] Frame 2
var one = 16;
var two = 12;
var hp = 3;
itime = 0;
var StX = this._x;
var StY = this._y;
var espeed1 = 2;
var espeed2 = 2;
var espeed3 = 2;
var espeed4 = 2;
var timer = 0;
dir = 1;
go = false;
pie = 3;
onEnterFrame = function () {
if ((((((this._x >= (_root.screen._x - _root.scrnX)) and (this._x <= (_root.screen._x + _root.scrnX))) and (this._y >= (_root.screen._y - _root.scrnY))) and (this._y <= (_root.screen._y + _root.scrnY))) and (_root.pausegame == 1)) and (this._currentframe < 9)) {
if ((octo.hitTest(_root.dmgClip) or octo.hitTest(_root.explosion)) and (itime == 0)) {
itime++;
hp--;
if (enemydmg._currentframe < 2) {
if (_root.dmgClip._rotation == 0) {
if (!_root.wall.hitTest(this._x + 8, this._y - 8, true)) {
this._y = this._y - one;
}
}
if (_root.dmgClip._rotation == -45) {
if (!_root.wall.hitTest(this._x - 6, this._y - 6, true)) {
this._y = this._y - two;
this._x = this._x - two;
}
}
if (_root.dmgClip._rotation == 45) {
if (!_root.wall.hitTest(this._x + 22, this._y - 6, true)) {
this._y = this._y - two;
this._x = this._x + two;
}
}
if (_root.dmgClip._rotation == 90) {
if (!_root.wall.hitTest(this._x + 22, this._y + 7, true)) {
this._x = this._x + one;
}
}
if (_root.dmgClip._rotation == -90) {
if (!_root.wall.hitTest(this._x - 8, this._y + 7, true)) {
this._x = this._x - one;
}
}
if (_root.dmgClip._rotation == -135) {
if (!_root.wall.hitTest(this._x - 6, this._y + 20, true)) {
this._y = this._y + two;
this._x = this._x - two;
}
}
if (_root.dmgClip._rotation == 135) {
if (!_root.wall.hitTest(this._x + 22, this._y + 20, true)) {
this._y = this._y + two;
this._x = this._x + two;
}
}
if (_root.dmgClip._rotation == 180) {
if (!_root.wall.hitTest(this._x + 8, this._y + 22, true)) {
this._y = this._y + one;
}
}
enemydmg.gotoAndPlay(2);
}
}
if (itime > 0) {
itime++;
}
if (itime == 15) {
itime = 0;
}
if (octo._currentframe < 5) {
var _local3 = Math.round(Math.random() * 95) + 1;
octo.gotoAndStop(_local3 / 24);
}
if ((go == false) and (timer == 0)) {
if (_local3 == 1) {
octo.gotoAndStop(5);
dir = 1;
timer++;
}
if (_local3 == 13) {
octo.gotoAndStop(6);
dir = 2;
timer++;
}
if (_local3 == 25) {
octo.gotoAndStop(7);
dir = 3;
timer++;
}
if (_local3 == 37) {
octo.gotoAndStop(8);
dir = 4;
timer++;
}
}
if (timer > 0) {
timer++;
}
if (timer > 8) {
go = true;
timer = 0;
}
if (go == true) {
if (dir == 1) {
rok._y = rok._y - pie;
if (octo._currentframe == 2) {
rok._x = rok._x - espeed2;
}
if (octo._currentframe == 3) {
rok._y = rok._y - espeed3;
}
if (octo._currentframe == 4) {
rok._x = rok._x + espeed4;
}
}
if (dir == 2) {
rok._x = rok._x + pie;
if (octo._currentframe == 3) {
rok._y = rok._y - espeed3;
}
if (octo._currentframe == 1) {
rok._y = rok._y + espeed1;
}
if (octo._currentframe == 4) {
rok._x = rok._x + espeed4;
}
}
if (dir == 3) {
rok._y = rok._y + pie;
if (octo._currentframe == 1) {
rok._y = rok._y + espeed1;
}
if (octo._currentframe == 2) {
rok._x = rok._x - espeed2;
}
if (octo._currentframe == 4) {
rok._x = rok._x + espeed4;
}
}
if (dir == 4) {
rok._x = rok._x - pie;
if (octo._currentframe == 3) {
rok._y = rok._y - espeed3;
}
if (octo._currentframe == 2) {
rok._x = rok._x - espeed2;
}
if (octo._currentframe == 1) {
rok._y = rok._y + espeed1;
}
}
}
if ((((octo.su._currentframe == 8) or (octo.sr._currentframe == 8)) or (octo.sd._currentframe == 8)) or (octo.sl._currentframe == 8)) {
octo.gotoAndStop(octo._currentframe - 4);
}
if (octo._currentframe == 1) {
this._y = this._y - espeed1;
if (_root.wall.hitTest(this._x + 8, this._y, true) or ((this._y - 4) < (_root.boundary_U - 65))) {
espeed1 = 0;
} else {
espeed1 = 1;
}
}
if (octo._currentframe == 2) {
this._x = this._x + espeed2;
if (_root.wall.hitTest(this._x + 16, this._y + 7, true) or ((this._x + 20) > (_root.boundary_R + 90))) {
espeed2 = 0;
} else {
espeed2 = 1;
}
}
if (octo._currentframe == 3) {
this._y = this._y + espeed3;
if (_root.wall.hitTest(this._x + 8, this._y + 14, true) or ((this._y + 20) > (_root.boundary_D + 65))) {
espeed3 = 0;
} else {
espeed3 = 1;
}
}
if (octo._currentframe == 4) {
this._x = this._x - espeed4;
if (_root.wall.hitTest(this._x, this._y + 7, true) or ((this._x - 4) < (_root.boundary_L - 90))) {
espeed4 = 0;
} else {
espeed4 = 1;
}
}
}
if (_root.pausegame == 3) {
this._x = StX;
this._y = StY;
hp = 3;
rok._x = 3;
rok._y = 4;
octo.gotoAndStop(1);
}
if (!rok.hitTest(_root.screen)) {
rok.gotoAndStop(9);
}
if (rok._currentframe >= 9) {
go = false;
rok._x = 3;
rok._y = 4;
rok.gotoAndStop(1);
}
if (hp < 1) {
octo.gotoAndStop(9);
rok.gotoAndStop(10);
}
};
Symbol 374 MovieClip [ene] Frame 3
stop();
var hp = 4;
var num = 20;
var chuchuX = 0;
var chuchuY = 0;
var chuchuStX = this._x;
var chuchuStY = this._y;
var espeed1 = 0.5;
var espeed2 = 0.5;
var espeed3 = 0.5;
var espeed4 = 0.5;
onEnterFrame = function () {
if (_root.pausegame == 1) {
chuchuX = this._x;
chuchuY = this._y;
if ((((this._x >= (_root.screen._x - _root.scrnX)) and (this._x <= (_root.screen._x + _root.scrnX))) and (this._y >= (_root.screen._y - _root.scrnY))) and (this._y <= (_root.screen._y + _root.scrnY))) {
if (hp >= 1) {
if (chuchuX <= _root.link._x) {
this._x = this._x + espeed2;
} else {
this._x = this._x - espeed4;
}
if (chuchuY <= (_root.link._y - 10)) {
this._y = this._y + espeed3;
} else {
this._y = this._y - espeed1;
}
}
if (this.hitTest(_root.explosion)) {
hp--;
}
if (_root.dmgClip.hitTest(this)) {
if (_root.attack == true) {
if (_root.link._currentframe == 25) {
hp--;
this._y = this._y - num;
}
if (_root.link._currentframe == 18) {
hp--;
this._y = this._y - (num / 2);
this._x = this._x + (num / 2);
}
if (_root.link._currentframe == 19) {
hp--;
this._x = this._x + num;
}
if (_root.link._currentframe == 20) {
hp--;
this._y = this._y + (num / 2);
this._x = this._x + (num / 2);
}
if (_root.link._currentframe == 21) {
hp--;
this._y = this._y + num;
}
if (_root.link._currentframe == 22) {
hp--;
this._y = this._y + (num / 2);
this._x = this._x - (num / 2);
}
if (_root.link._currentframe == 23) {
hp--;
this._x = this._x - num;
}
if (_root.link._currentframe == 24) {
hp--;
this._y = this._y - (num / 2);
this._x = this._x - (num / 2);
}
}
if (this.hitTest(_root.shieldClip)) {
if (_root.shield == true) {
if (_root.link._currentframe == 26) {
this._y = this._y - (num / 1.5);
}
if (_root.link._currentframe == 27) {
this._y = this._y - (num / 3);
this._x = this._x + (num / 3);
}
if (_root.link._currentframe == 28) {
this._x = this._x + (num / 1.5);
}
if (_root.link._currentframe == 29) {
this._y = this._y + (num / 3);
this._x = this._x + (num / 3);
}
if (_root.link._currentframe == 30) {
this._y = this._y + (num / 1.5);
}
if (_root.link._currentframe == 31) {
this._y = this._y + (num / 3);
this._x = this._x - (num / 3);
}
if (_root.link._currentframe == 32) {
this._x = this._x - (num / 1.5);
}
if (_root.link._currentframe == 33) {
this._y = this._y - (num / 3);
this._x = this._x - (num / 3);
}
}
}
}
}
if (hp <= 1) {
chuchu.gotoAndStop(4);
}
}
if (_root.pausegame == 3) {
this._x = chuchuStX;
this._y = chuchuStY;
hp = 4;
chuchu.gotoAndStop(1);
}
};
Instance of Symbol 373 MovieClip in Symbol 374 MovieClip [ene] Frame 4
onClipEvent (enterFrame) {
this._rotation = this._rotation + _root.firebar;
}
Symbol 376 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 9
stop();
Symbol 412 MovieClip [Bomb] Frame 150
_root.bombset--;
Symbol 412 MovieClip [Bomb] Frame 164
this.removeMovieClip();
Symbol 414 MovieClip [explosion] Frame 7
this.removeMovieClip();
Symbol 428 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 26
stop();
_root.got_item = true;
_root.open_chest = false;
Symbol 578 MovieClip Frame 19
_root.room = 6;
_root.link._x = 775;
_root.link._y = 800;
_root.pausegame = 3;
Symbol 615 MovieClip Frame 1
stop();
Symbol 639 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 1
stop();
Symbol 675 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 7
stop();
Symbol 781 MovieClip Frame 1
stop();
Symbol 781 MovieClip Frame 17
Instance of Symbol 605 MovieClip in Symbol 781 MovieClip Frame 43
onClipEvent (load) {
if ((_root.gotshield == true) and (_root.seeEnemy == true)) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 616 MovieClip "targetwalk" in Symbol 781 MovieClip Frame 43
onClipEvent (enterFrame) {
if (((Key.isDown(37) or Key.isDown(38)) or Key.isDown(40)) or Key.isDown(39)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 618 MovieClip in Symbol 781 MovieClip Frame 44
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 623 MovieClip in Symbol 781 MovieClip Frame 44
onClipEvent (enterFrame) {
if (((Key.isDown(37) or Key.isDown(38)) or Key.isDown(40)) or Key.isDown(39)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 628 MovieClip in Symbol 781 MovieClip Frame 45
onClipEvent (enterFrame) {
if (((Key.isDown(37) or Key.isDown(38)) or Key.isDown(40)) or Key.isDown(39)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 630 MovieClip in Symbol 781 MovieClip Frame 45
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 635 MovieClip in Symbol 781 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this._currentframe >= 5) {
_parent.sword.gotoAndStop(2);
} else {
_parent.sword.gotoAndStop(1);
}
if (((Key.isDown(37) or Key.isDown(38)) or Key.isDown(40)) or Key.isDown(39)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 637 MovieClip in Symbol 781 MovieClip Frame 46
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 644 MovieClip in Symbol 781 MovieClip Frame 47
onClipEvent (enterFrame) {
if (this._currentframe >= 5) {
_parent.sword.gotoAndStop(2);
} else {
_parent.sword.gotoAndStop(1);
}
if (((Key.isDown(37) or Key.isDown(38)) or Key.isDown(40)) or Key.isDown(39)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 648 MovieClip in Symbol 781 MovieClip Frame 47
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 653 MovieClip in Symbol 781 MovieClip Frame 48
onClipEvent (enterFrame) {
if (this._currentframe >= 5) {
_parent.sword.gotoAndStop(2);
} else {
_parent.sword.gotoAndStop(1);
}
if (((Key.isDown(37) or Key.isDown(38)) or Key.isDown(40)) or Key.isDown(39)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 655 MovieClip in Symbol 781 MovieClip Frame 48
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 662 MovieClip in Symbol 781 MovieClip Frame 49
onClipEvent (enterFrame) {
if (this._currentframe >= 5) {
_parent.sword.gotoAndStop(2);
} else {
_parent.sword.gotoAndStop(1);
}
if (((Key.isDown(37) or Key.isDown(38)) or Key.isDown(40)) or Key.isDown(39)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 664 MovieClip in Symbol 781 MovieClip Frame 49
onClipEvent (load) {
if ((_root.gotshield == true) and (_root.seeEnemy == true)) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 673 MovieClip in Symbol 781 MovieClip Frame 50
onClipEvent (enterFrame) {
if (this._currentframe >= 5) {
_parent.sword.gotoAndStop(2);
} else {
_parent.sword.gotoAndStop(1);
}
if (((Key.isDown(37) or Key.isDown(38)) or Key.isDown(40)) or Key.isDown(39)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 618 MovieClip in Symbol 781 MovieClip Frame 52
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
}
Instance of Symbol 630 MovieClip in Symbol 781 MovieClip Frame 53
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 637 MovieClip in Symbol 781 MovieClip Frame 54
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 639 MovieClip "sword" in Symbol 781 MovieClip Frame 54
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
}
Instance of Symbol 646 MovieClip "sword" in Symbol 781 MovieClip Frame 55
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
}
Instance of Symbol 648 MovieClip in Symbol 781 MovieClip Frame 55
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 655 MovieClip in Symbol 781 MovieClip Frame 56
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 657 MovieClip "sword" in Symbol 781 MovieClip Frame 56
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
}
Instance of Symbol 664 MovieClip in Symbol 781 MovieClip Frame 57
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 666 MovieClip "sword" in Symbol 781 MovieClip Frame 57
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
}
Instance of Symbol 675 MovieClip "sword" in Symbol 781 MovieClip Frame 58
onClipEvent (enterFrame) {
if ((_parent.jump._currentframe <= 5) and (_parent.jump._currentframe >= 1)) {
this._y--;
}
if ((_parent.jump._currentframe >= 6) and (_parent.jump._currentframe <= 9)) {
this._y++;
}
}
Instance of Symbol 664 MovieClip in Symbol 781 MovieClip Frame 63
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 618 MovieClip in Symbol 781 MovieClip Frame 64
onClipEvent (load) {
if (_root.gotshield == true) {
this._visible = 100;
} else {
this._visible = 0;
}
}
Instance of Symbol 781 MovieClip "link" in Symbol 784 MovieClip [walls] Frame 1
onClipEvent (load) {
var depth = 100000;
}
onClipEvent (enterFrame) {
this.swapDepths(depth);
}
Instance of Symbol 783 MovieClip "item_shadow" in Symbol 784 MovieClip [walls] Frame 1
onClipEvent (load) {
this.swapDepths(9900);
}
Symbol 787 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get_xscale2() {
return(_parent._xscale);
}
function set_xscale2(value) {
setProperty2("_xscale", value);
}
function get_yscale2() {
return(_parent._yscale);
}
function set_yscale2(value) {
setProperty2("_yscale", value);
}
function get_rotation2() {
return(parent.rotation);
}
function set_rotation2(value) {
setProperty2("_rotation", value);
}
function setProperty2(prop, n) {
var _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
_visible = false;
addProperty("_x2", get_x2, set_x2);
addProperty("_y2", get_y2, set_y2);
addProperty("_xscale2", get_xscale2, set_xscale2);
addProperty("_yscale2", get_yscale2, set_yscale2);
addProperty("_rotation2", get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {x:this._x, y:this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
Symbol 791 MovieClip Frame 1
stop();
Symbol 791 MovieClip Frame 2
stop();
if (Key.isDown(32)) {
_root.pausegame = 2;
}
Instance of Symbol 790 MovieClip in Symbol 791 MovieClip Frame 2
onClipEvent (load) {
this._alpha = 30;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
}
}
Symbol 799 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 2
stop();
Symbol 804 MovieClip Frame 2
stop();
Symbol 804 MovieClip Frame 3
stop();
Symbol 804 MovieClip Frame 4
stop();
Symbol 804 MovieClip Frame 5
stop();
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 2
stop();
Symbol 824 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 2
stop();
Symbol 824 MovieClip Frame 3
stop();
Symbol 824 MovieClip Frame 4
stop();
Symbol 824 MovieClip Frame 5
stop();
Symbol 824 MovieClip Frame 6
stop();
Symbol 824 MovieClip Frame 7
stop();
Symbol 833 MovieClip Frame 7
_root.warp = true;
Symbol 833 MovieClip Frame 15
_root.focus = 0;
_root.entitynum = 0;
_root.centered = true;
_root.scrnC._x = _root.link._x;
_root.scrnC._y = _root.link._y;
_root.pointX = _root.link._x;
_root.pointY = _root.link._y;
if (_root.exit == 6) {
_root.link._x = _root.linkX;
_root.link._y = _root.boundary_D + 50;
_root.link.gotoAndStop(_root.dir);
}
if (_root.exit == 7) {
_root.link._x = _root.boundary_L - 80;
_root.link._y = _root.linkY;
_root.link.gotoAndStop(_root.dir);
}
if (_root.exit == 8) {
_root.link._x = _root.linkX;
_root.link._y = _root.boundary_U - 50;
_root.link.gotoAndStop(_root.dir);
}
if (_root.exit == 9) {
_root.link._x = _root.boundary_R + 80;
_root.link._y = _root.linkY;
_root.link.gotoAndStop(_root.dir);
}
Symbol 833 MovieClip Frame 25
_root.warping = false;
_root.exit = 0;
_root.pausegame = 1;
Symbol 871 MovieClip Frame 112
stop();
Symbol 872 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 2
stop();
Symbol 873 MovieClip Frame 1
stop();
Symbol 873 MovieClip Frame 2
stop();
Instance of Symbol 828 MovieClip in Symbol 873 MovieClip Frame 2
onClipEvent (load) {
if (_root.cursorX == 0) {
_root.cursorX = this._x;
} else {
this._x = _root.cursorX;
}
if (_root.cursorY == 0) {
_root.cursorY = this._y;
} else {
this._y = _root.cursorY;
}
var lag = 0;
var equip = _root.equip;
blip = new Sound();
blip.attachSound("cursor");
}
onClipEvent (enterFrame) {
if (!Key.isDown(_root.itemKey)) {
if (((Key.isDown(_root.leftKey) and (lag == 0)) and (equip != 1)) and (equip != 4)) {
this._x = this._x - 41;
equip--;
blip.start();
}
if (((Key.isDown(_root.rightKey) and (lag == 0)) and (equip != 3)) and (equip != 6)) {
this._x = this._x + 41;
equip++;
blip.start();
}
if ((Key.isDown(_root.downKey) and (lag == 0)) and (equip < 4)) {
this._y = this._y + 30;
equip = equip + 3;
blip.start();
}
if ((Key.isDown(_root.upKey) and (lag == 0)) and (equip > 3)) {
this._y = this._y - 30;
equip = equip - 3;
blip.start();
}
}
if (Key.isDown(_root.itemKey)) {
if (equip == 1) {
if (_root.gotshield == true) {
_root.equipment = 2;
}
}
if (equip == 2) {
if (_root.bottle >= 1) {
_root.equipment = _root.bottle + 2;
}
}
if (equip == 3) {
if (_root.gotbomb == true) {
_root.equipment = 3;
}
}
_root.equip = equip;
_root.cursorX = this._x;
_root.cursorY = this._y;
}
if (((Key.isDown(_root.leftKey) or Key.isDown(_root.rightKey)) or Key.isDown(_root.upKey)) or Key.isDown(_root.downKey)) {
lag = 1;
} else {
lag = 0;
}
}
Symbol 873 MovieClip Frame 3
stop();
Symbol 873 MovieClip Frame 4
stop();
Symbol 873 MovieClip Frame 5
stop();
Symbol 873 MovieClip Frame 6
stop();
Symbol 883 MovieClip Frame 1
stop();
Symbol 883 MovieClip Frame 2
stop();
Symbol 883 MovieClip Frame 3
stop();
Symbol 883 MovieClip Frame 4
stop();
Symbol 883 MovieClip Frame 5
stop();
Symbol 883 MovieClip Frame 6
stop();
Symbol 883 MovieClip Frame 7
stop();
Symbol 920 MovieClip Frame 1
stop();
Symbol 920 MovieClip Frame 2
stop();
Symbol 929 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 1
stop();
Symbol 969 MovieClip Frame 1
stop();
Instance of Symbol 883 MovieClip "icon2" in Symbol 972 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.link)) {
if (this._alpha > 40) {
this._alpha = this._alpha - 10;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
}
Instance of Symbol 909 MovieClip "hearts" in Symbol 972 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.link)) {
if (this._alpha > 40) {
this._alpha = this._alpha - 10;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
}
Instance of Symbol 920 MovieClip "blarg" in Symbol 972 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 929 MovieClip "actionicon" in Symbol 972 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.link)) {
if (this._alpha > 40) {
this._alpha = this._alpha - 10;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
}
Instance of Symbol 948 MovieClip "heartc" in Symbol 972 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.link)) {
if (this._alpha > 40) {
this._alpha = this._alpha - 10;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
}
Instance of Symbol 950 MovieClip "icon1" in Symbol 972 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.link)) {
if (this._alpha > 40) {
this._alpha = this._alpha - 10;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
}
Instance of Symbol 969 MovieClip in Symbol 972 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.link)) {
if (this._alpha > 40) {
this._alpha = this._alpha - 10;
}
} else if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
}
Symbol 988 MovieClip Frame 1
stop();
Symbol 988 MovieClip Frame 10
gotoAndStop (1);
Symbol 988 MovieClip Frame 20
gotoAndStop (1);
Symbol 997 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 2
stop();
cursor3._visible = false;
var speech = _root.dial[(_root.NPC * 10) + _root.conversation][_root.conv];
var counter = 0;
var counter2 = 1;
var textspeed = 1;
var nextline = false;
onEnterFrame = function () {
textspeed = _root.textspeed;
counter++;
if (((counter == textspeed) or Key.isDown(_root.actKey)) or (textspeed == 0)) {
if (counter2 <= _root.dial[(_root.NPC * 10) + _root.conversation][_root.conv].length) {
nextline = false;
cursor3._visible = false;
textbox.text = _root.dial[(_root.NPC * 10) + _root.conversation][_root.conv].substr(0, counter2);
if ((_root.pausegame == 5) and (_root.NPC < 100)) {
_root.letter.start();
}
counter2++;
counter = 0;
}
}
if (counter2 == (_root.dial[(_root.NPC * 10) + _root.conversation][_root.conv].length + 1)) {
if (_root.conv == (_root.dial[(_root.NPC * 10) + _root.conversation].length - 2)) {
if (((_root.pausegame == 5) or (_root.pausegame == 6)) and (_root.NPC < 100)) {
_root.letter2.start();
}
} else {
cursor3._visible = true;
}
counter2++;
}
if (_root.open_chest == false) {
if (counter2 >= _root.dial[(_root.NPC * 10) + _root.conversation][_root.conv].length) {
_root.advance = true;
}
}
if (nextline == true) {
counter2 = 0;
counter = 0;
nextline = false;
}
_root.icons.text5.text = _root.dial[(_root.NPC * 10) + _root.conversation].length;
};