Combined Code
frame 1 {
function keyDecision() {
if (KeyON) {
return undefined;
}
KeyON = true;
KeyCounter_mc.gotoAndPlay(2);
if (bulletCounts <= 0 && Start) {
LydiaGunSE = new Sound(LydiaGunSE_mc);
LydiaGunSE.attachSound('Weapon_LydiaOutofAmmo');
LydiaGunSE.setVolume(100);
LydiaGunSE.start(0, 0);
}
if (Start && !gamePaused && !StealthON && bulletCounts > 0 && !(wordPressed == 'v' || wordPressed == 'b' || wordPressed == 'p')) {
gunfireLydia();
if (wordPressed == wordTrack[0].toString() && healthMullin > 0) {
if (stageTrack[0]) {
_root.MullinE1_mc.gotoAndPlay(56);
}
}
if (wordPressed == wordTrack[5].toString() && healthMullin > 0) {
if (stageTrack[5]) {
_root.MullinE2_mc.gotoAndPlay(59);
}
}
if (wordPressed == wordTrack[6].toString() && healthMullin > 0) {
if (stageTrack[6]) {
_root.MullinE3_mc.gotoAndPlay(81);
}
}
if (wordPressed == wordTrack[1].toString() && stageTrack[1] && totalEnemy > 0) {
_root.RedE3_mc.gotoAndPlay(103);
--totalEnemy;
}
if (wordPressed == wordTrack[2].toString() && stageTrack[2] && totalEnemy > 0) {
_root.BlueE2_mc.gotoAndPlay(76);
--totalEnemy;
}
if (wordPressed == wordTrack[3].toString() && stageTrack[3] && totalEnemy > 0) {
_root.GreenE2_mc.gotoAndPlay(76);
--totalEnemy;
}
if (wordPressed == wordTrack[4].toString() && stageTrack[4] && totalEnemy > 0) {
_root.RedE1_mc.gotoAndPlay(91);
--totalEnemy;
}
}
if (wordPressed == 'v' && healthLydia < 75 && statusLydia != 4) {
if (!StealthUsed) {
StealthMode();
}
}
if (wordPressed == 'b' && healthLydia <= 25 && healthLydia > 0) {
_root.Start = false;
haltGame();
} else {
if (wordPressed == 'z' && !Initiated) {
} else {
if (wordPressed == 'p' && Start) {
if (!gamePaused) {
pauseGame();
gamePaused = true;
PauseMessage_mc.gotoAndStop(2);
_root.DebugWindow.text = 'I\'m Paused';
} else {
if (gamePaused) {
resumeGame();
gamePaused = false;
PauseMessage_mc.gotoAndStop(1);
_root.DebugWindow.text = 'I\'m Resuming!';
}
}
} else {}
}
}
_root.EnemyCount_mc.EnemyCounter.text = totalEnemy.toString();
_root.StealthandBullet_mc.BulletBox.text = bulletCounts.toString();
}
function damageLydiaSequence(damage) {
if (StealthON) {
return undefined;
}
if (statusLydia == 4) {
return undefined;
}
healthLydia -= damage;
LydiaHurtingMoan();
if (healthLydia < 0) {
healthLydia = 0;
}
_root.LydiaHealthBar_mc.gotoAndStop(100 - healthLydia);
if (healthLydia > 75) {
statusLydia = 0;
_root.LydiaBody_mc.gotoAndPlay(2);
_root.LydiaFace_mc.gotoAndPlay(2);
_root.EffectLayer_mc.gotoAndPlay(2);
} else {
if (healthLydia <= 75 && healthLydia > 50) {
HeartbeatSE.start(0, 100);
HeartbeatSE.setVolume(100);
statusLydia = 1;
_root.LydiaBody_mc.gotoAndPlay(16);
_root.LydiaFace_mc.gotoAndPlay(16);
_root.EffectLayer_mc.gotoAndPlay(11);
} else {
if (healthLydia <= 50 && healthLydia > 25) {
HeartbeatSE.start(0, 100);
HeartbeatSE.setVolume(180);
statusLydia = 2;
_root.LydiaBody_mc.gotoAndPlay(31);
_root.LydiaFace_mc.gotoAndPlay(31);
_root.EffectLayer_mc.gotoAndPlay(21);
} else {
if (healthLydia <= 25 && healthLydia > 0) {
statusLydia = 3;
HeartbeatSE.start(0, 100);
HeartbeatSE.setVolume(300);
_root.LydiaBody_mc.gotoAndPlay(46);
_root.LydiaFace_mc.gotoAndPlay(46);
_root.EffectLayer_mc.gotoAndPlay(46);
} else {
if (healthLydia <= 0) {
statusLydia = 4;
HeartbeatSE.stop();
LydiaScream();
_root.LydiaBody_mc.gotoAndStop(60);
_root.LydiaFace_mc.gotoAndStop(60);
_root.EffectLayer_mc.gotoAndPlay(96);
}
}
}
}
}
}
function StealthMode() {
StealthON = true;
StealthUsed = true;
statusLydia = 1;
healthLydia = 75;
HeartbeatSE.stop();
_root.StealthandBullet_mc.StealthBox.text = 0;
_root.LydiaHealthBar_mc.gotoAndStop(100 - healthLydia);
_root.LydiaBody_mc.gotoAndPlay(61);
_root.LydiaFace_mc.gotoAndPlay(61);
_root.EffectLayer_mc.gotoAndPlay(221);
}
function randomChar() {
if (wordCount == 0) {
return undefined;
}
var v1 = wordCandidates.splice(random(wordCount--), 1);
return v1;
}
function releaseChar(x) {
if (wordCount == maxCount) {
return undefined;
}
wordCount = wordCandidates.push(x);
}
function randomEnemy() {
var v3;
var v2;
v2 = 0;
while (v2 < 5) {
if (stageEnemy == maxEnemy) {
return undefined;
}
if (!stageTrack[v2]) {
v3 = random(100);
if (v3 < perChance) {
if (v2 == 0 && healthMullin > 0 && !stageTrack[0] && !stageTrack[5] && !stageTrack[6]) {
v3 = random(3);
MullinSE = new Sound(MullinSE_mc);
MullinSE.setVolume(90);
switch (v3) {
case 0:
stageTrack[6] = true;
wordTrack[6] = randomChar();
_root.MullinE3_mc.gotoAndPlay(2);
_root.MullinE3_mc.MullinE3_WordBox.MullinE3_Word.text = (wordTrack[6].toString()).toUpperCase();
_root.MullinSE.attachSound('Weapon_MSniper');
break;
case 1:
stageTrack[5] = true;
wordTrack[5] = randomChar();
_root.MullinE2_mc.gotoAndPlay(2);
_root.MullinE2_mc.MullinE2_WordBox.MullinE2_Word.text = (wordTrack[5].toString()).toUpperCase();
_root.MullinSE.attachSound('Weapon_MRevolver');
break;
case 2:
stageTrack[0] = true;
wordTrack[0] = randomChar();
_root.MullinE1_mc.gotoAndPlay(2);
_root.MullinE1_mc.MullinE1_WordBox.MullinE1_Word.text = (wordTrack[0].toString()).toUpperCase();
}
++stageEnemy;
} else {
if (v2 != 0 && totalEnemy - stageEnemy > 0) {
wordTrack[v2] = randomChar();
stageTrack[v2] = true;
++stageEnemy;
switch (v2) {
case 1:
_root.RedE3_mc.gotoAndPlay(2);
_root.RedE3_mc.RedE3_WordBox.RedE3_Word.text = (wordTrack[v2].toString()).toUpperCase();
break;
case 2:
_root.BlueE2_mc.gotoAndPlay(2);
_root.BlueE2_mc.BlueE2_WordBox.BlueE2_Word.text = (wordTrack[v2].toString()).toUpperCase();
break;
case 3:
_root.GreenE2_mc.gotoAndPlay(2);
_root.GreenE2_mc.GreenE2_WordBox.GreenE2_Word.text = (wordTrack[v2].toString()).toUpperCase();
break;
case 4:
_root.RedE1_mc.gotoAndPlay(2);
_root.RedE1_mc.ShotgunWord_mc.ShotWord.text = (wordTrack[v2].toString()).toUpperCase();
}
} else {
if (totalEnemy <= 0) {
perChance = 100;
}
}
}
}
}
++v2;
}
}
function releaseEnemy(ind) {
if (stageTrack[ind]) {
stageTrack[ind] = false;
watchdogLock[ind] = false;
releaseChar(wordTrack[ind]);
--stageEnemy;
}
}
function damageMullinSequence() {
healthMullin -= dmgtoMullin;
if (healthMullin < 0) {
healthMullin = 0;
}
_root.MullinHealth_mc.gotoAndStop(100 - healthMullin);
}
function gunfireLydia() {
if (statusLydia == 4) {
return undefined;
}
--bulletCounts;
switch (statusLydia) {
case 0:
_root.LydiaGunFire_mc.gotoAndPlay(2);
break;
case 1:
_root.LydiaGunFire_mc.gotoAndPlay(11);
break;
case 2:
_root.LydiaGunFire_mc.gotoAndPlay(21);
break;
case 3:
_root.LydiaGunFire_mc.gotoAndPlay(31);
break;
default:
_root.LydiaGunFire_mc.gotoAndPlay(2);
}
LydiaGunSE.start(0, 0);
}
function setDifficulty() {
switch (difficulty) {
case 0:
totalEnemy = 25;
perChance = 35;
maxEnemy = 3;
dmgtoMullin = 5;
dmgMullinSniper = 25;
dmgMullinRevolver = 18;
dmgMullinKnife = 30;
dmgSniper = 20;
dmgSMG = 5;
dmgShotgun = 15;
dmgAssault = 10;
bulletCounts = 100;
wordCandidates = new Array('i', 'j', 'k', 'l');
break;
case 1:
totalEnemy = 50;
perChance = 40;
maxEnemy = 4;
dmgtoMullin = 4;
dmgMullinSniper = 30;
dmgMullinRevolver = 20;
dmgMullinKnife = 40;
dmgSniper = 25;
dmgSMG = 10;
dmgShotgun = 20;
dmgAssault = 15;
bulletCounts = 100;
wordCandidates = new Array('i', 'j', 'k', 'l', 'w');
break;
case 2:
totalEnemy = 100;
perChance = 40;
maxEnemy = 5;
dmgtoMullin = 2;
dmgMullinSniper = 30;
dmgMullinRevolver = 20;
dmgMullinKnife = 40;
dmgSniper = 25;
dmgSMG = 10;
dmgShotgun = 20;
dmgAssault = 15;
bulletCounts = 250;
wordCandidates = new Array('i', 'j', 'k', 'l', 'w', 'a', 's', 'd');
break;
case 3:
totalEnemy = 200;
perChance = 50;
maxEnemy = 5;
dmgtoMullin = 1;
dmgMullinSniper = 40;
dmgMullinRevolver = 30;
dmgMullinKnife = 50;
dmgSniper = 30;
dmgSMG = 15;
dmgShotgun = 25;
dmgAssault = 20;
bulletCounts = 350;
wordCandidates = new Array('i', 'j', 'k', 'l', 'w', 'a', 's', 'd');
break;
default:
totalEnemy = 25;
perChance = 30;
maxEnemy = 3;
dmgtoMullin = 5;
dmgMullinSniper = 25;
dmgMullinRevolver = 18;
dmgMullinKnife = 30;
dmgSniper = 20;
dmgSMG = 5;
dmgShotgun = 15;
dmgAssault = 10;
bulletCounts = 100;
wordCandidates = new Array('i', 'j', 'k', 'l');
}
wordCount = wordCandidates.length;
maxCount = wordCount;
_root.EnemyCount_mc.EnemyCounter.text = totalEnemy.toString();
_root.StealthandBullet_mc.BulletBox.text = bulletCounts.toString();
}
function retryGame() {
EnemyGenerationClock_mc.gotoAndStop(1);
_root.watchdogTimer_mc.gotoAndStop(1);
StealthUsed = false;
bossFight = false;
healthLydia = 100;
statusLydia = 0;
LydiaVoiceCount = 0;
_root.LydiaHealthBar_mc.gotoAndStop(1);
_root.LydiaBody_mc.gotoAndStop(1);
_root.LydiaFace_mc.gotoAndStop(1);
healthMullin = 100;
_root.MullinHealth_mc.gotoAndStop(1);
stageEnemy = 0;
LydiaGunSE = new Sound(LydiaGunSE_mc);
LydiaGunSE.attachSound('Weapon_LydiaGun');
LydiaGunSE.setVolume(100);
wordTrack = new Array('w', 'w', 'w', 'w', 'w', 'w', 'w');
stageTrack = new Array(false, false, false, false, false, false, false);
KeyCounter_mc.gotoAndStop(1);
InvTimer_mc.gotoAndStop(1);
MullinE1_mc.gotoAndStop(1);
MullinE2_mc.gotoAndStop(1);
MullinE3_mc.gotoAndStop(1);
RedE1_mc.gotoAndStop(1);
GreenE2_mc.gotoAndStop(1);
BlueE2_mc.gotoAndStop(1);
RedE3_mc.gotoAndStop(1);
MullinE1_mc.Crosshair_mc.gotoAndStop(1);
MullinE2_mc.Crosshair_mc.gotoAndStop(1);
MullinE3_mc.Crosshair_mc.gotoAndStop(1);
RedE1_mc.Crosshair_mc.gotoAndStop(1);
GreenE2_mc.Crosshair_mc.gotoAndStop(1);
BlueE2_mc.Crosshair_mc.gotoAndStop(1);
RedE3_mc.Crosshair_mc.gotoAndStop(1);
EffectLayer_mc.gotoAndStop(1);
setDifficulty();
_root.StealthandBullet_mc.BulletBox.text = bulletCounts.toString();
_root.StealthandBullet_mc.StealthBox.text = 1;
wordCount = wordCandidates.length;
maxCount = wordCount;
DarkMask_mc.gotoAndPlay(51);
}
function haltGame() {
Key.removeListener(keyListener);
_root.watchdogTimer_mc.gotoAndStop(1);
EnemyGenerationClock_mc.gotoAndStop(1);
KeyCounter_mc.gotoAndStop(1);
InvTimer_mc.gotoAndStop(1);
MullinE1_mc.gotoAndStop(1);
MullinE2_mc.gotoAndStop(1);
MullinE3_mc.gotoAndStop(1);
RedE1_mc.gotoAndStop(1);
GreenE2_mc.gotoAndStop(1);
BlueE2_mc.gotoAndStop(1);
RedE3_mc.gotoAndStop(1);
EffectLayer_mc.gotoAndStop(1);
HeartbeatSE.stop();
}
function pauseGame() {
EGC_frame = EnemyGenerationClock_mc._currentframe;
EnemyGenerationClock_mc.gotoAndStop(EGC_frame);
_root.watchdogTimer_mc.gotoAndStop(1);
if (stageTrack[0]) {
ME1_frame = MullinE1_mc._currentframe;
MullinE1_mc.gotoAndStop(ME1_frame);
CR_frame[0] = MullinE1_mc.Crosshair_mc._currentframe;
MullinE1_mc.Crosshair_mc.gotoAndStop(CR_frame[0]);
}
if (stageTrack[5]) {
ME2_frame = MullinE2_mc._currentframe;
MullinE2_mc.gotoAndStop(ME2_frame);
CR_frame[5] = MullinE2_mc.Crosshair_mc._currentframe;
MullinE2_mc.Crosshair_mc.gotoAndStop(CR_frame[5]);
}
if (stageTrack[6]) {
ME3_frame = MullinE3_mc._currentframe;
MullinE3_mc.gotoAndStop(ME3_frame);
CR_frame[6] = MullinE3_mc.Crosshair_mc._currentframe;
MullinE3_mc.Crosshair_mc.gotoAndStop(CR_frame[6]);
}
if (stageTrack[4]) {
RE1_frame = RedE1_mc._currentframe;
RedE1_mc.gotoAndStop(RE1_frame);
CR_frame[4] = RedE1_mc.Crosshair_mc._currentframe;
RedE1_mc.Crosshair_mc.gotoAndStop(CR_frame[4]);
}
if (stageTrack[3]) {
GE2_frame = GreenE2_mc._currentframe;
GreenE2_mc.gotoAndStop(GE2_frame);
CR_frame[3] = GreenE2_mc.Crosshair_mc._currentframe;
GreenE2_mc.Crosshair_mc.gotoAndStop(CR_frame[3]);
}
if (stageTrack[2]) {
BE2_frame = BlueE2_mc._currentframe;
BlueE2_mc.gotoAndStop(BE2_frame);
CR_frame[2] = BlueE2_mc.Crosshair_mc._currentframe;
BlueE2_mc.Crosshair_mc.gotoAndStop(CR_frame[2]);
}
if (stageTrack[1]) {
RE3_frame = RedE3_mc._currentframe;
RedE3_mc.gotoAndStop(RE3_frame);
CR_frame[1] = RedE3_mc.Crosshair_mc._currentframe;
RedE3_mc.Crosshair_mc.gotoAndStop(CR_frame[1]);
}
}
function resumeGame() {
EnemyGenerationClock_mc.gotoAndPlay(EGC_frame);
_root.watchdogTimer_mc.gotoAndPlay(2);
if (stageTrack[0]) {
MullinE1_mc.gotoAndPlay(ME1_frame);
MullinE1_mc.Crosshair_mc.gotoAndPlay(CR_frame[0]);
}
if (stageTrack[5]) {
MullinE2_mc.gotoAndPlay(ME2_frame);
MullinE2_mc.Crosshair_mc.gotoAndPlay(CR_frame[5]);
}
if (stageTrack[6]) {
MullinE3_mc.gotoAndPlay(ME3_frame);
MullinE3_mc.Crosshair_mc.gotoAndPlay(CR_frame[6]);
}
if (stageTrack[4]) {
RedE1_mc.gotoAndPlay(RE1_frame);
RedE1_mc.Crosshair_mc.gotoAndPlay(CR_frame[4]);
}
if (stageTrack[3]) {
GreenE2_mc.gotoAndPlay(GE2_frame);
GreenE2_mc.Crosshair_mc.gotoAndPlay(CR_frame[3]);
}
if (stageTrack[2]) {
BlueE2_mc.gotoAndPlay(BE2_frame);
BlueE2_mc.Crosshair_mc.gotoAndPlay(CR_frame[2]);
}
if (stageTrack[1]) {
RedE3_mc.gotoAndPlay(RE3_frame);
RedE3_mc.Crosshair_mc.gotoAndPlay(CR_frame[1]);
}
}
function ResetGame() {
EnemyGenerationClock_mc.gotoAndStop(1);
_root.watchdogTimer_mc.gotoAndStop(1);
StealthUsed = false;
bossFight = false;
healthLydia = 100;
statusLydia = 0;
LydiaVoiceCount = 0;
_root.LydiaHealthBar_mc.gotoAndStop(1);
_root.LydiaBody_mc.gotoAndStop(1);
_root.LydiaFace_mc.gotoAndStop(1);
healthMullin = 100;
_root.MullinHealth_mc.gotoAndStop(1);
stageEnemy = 0;
LydiaGunSE = new Sound(LydiaGunSE_mc);
LydiaGunSE.attachSound('Weapon_LydiaGun');
LydiaGunSE.setVolume(100);
wordTrack = new Array('w', 'w', 'w', 'w', 'w', 'w', 'w');
stageTrack = new Array(false, false, false, false, false, false, false);
KeyCounter_mc.gotoAndStop(1);
InvTimer_mc.gotoAndStop(1);
MullinE1_mc.gotoAndStop(1);
MullinE2_mc.gotoAndStop(1);
MullinE3_mc.gotoAndStop(1);
RedE1_mc.gotoAndStop(1);
GreenE2_mc.gotoAndStop(1);
BlueE2_mc.gotoAndStop(1);
RedE3_mc.gotoAndStop(1);
MullinE1_mc.Crosshair_mc.gotoAndStop(1);
MullinE2_mc.Crosshair_mc.gotoAndStop(1);
MullinE3_mc.Crosshair_mc.gotoAndStop(1);
RedE1_mc.Crosshair_mc.gotoAndStop(1);
GreenE2_mc.Crosshair_mc.gotoAndStop(1);
BlueE2_mc.Crosshair_mc.gotoAndStop(1);
RedE3_mc.Crosshair_mc.gotoAndStop(1);
EffectLayer_mc.gotoAndStop(1);
EffectLayer_mc.bossFight_mc.gotoAndStop(1);
EffectLayer_mc.bossFight_mc.messageBox2.text = '';
setDifficulty();
StealthandBullet_mc.BulletBox.text = bulletCounts.toString();
StealthandBullet_mc.StealthBox.text = 1;
wordCount = wordCandidates.length;
maxCount = wordCount;
Initiated = false;
if (!Ended) {
_root.BackGroundMusic.stop();
_root.BackGroundMusic.attachSound('BGM_Theme');
_root.BackGroundMusic.setVolume(50);
_root.BackGroundMusic.start(0, 100);
}
Ended = false;
DarkMask_mc.gotoAndStop(1);
DarkMask_mc.CG_mc.gotoAndPlay(2);
Key.removeListener(keyListener);
keyListener = new Object();
keyListener.onKeyDown = function () {
x = Key.getAscii();
wordPressed = String.fromCharCode(x);
keyDecision();
};
Key.addListener(keyListener);
}
function LydiaHurtingMoan() {
LydiaVoice.stop();
LydiaVoice.setVolume(70);
if ((statusLydia == 2 || statusLydia == 3) && LydiaVoiceCount < 7) {
LydiaVoiceCount = 7;
} else {
++LydiaVoiceCount;
}
if (LydiaVoiceCount == 7 && (statusLydia == 0 || statusLydia == 1)) {
LydiaVoiceCount = 0;
}
if (LydiaVoiceCount == 14 && (statusLydia == 2 || statusLydia == 3)) {
LydiaVoiceCount = 7;
}
switch (LydiaVoiceCount) {
case 0:
LydiaVoice.attachSound('Lydia_Hurt1');
break;
case 1:
LydiaVoice.attachSound('Lydia_Hurt2');
break;
case 2:
LydiaVoice.attachSound('Lydia_Hurt3');
break;
case 3:
LydiaVoice.attachSound('Lydia_Hurt4');
break;
case 4:
LydiaVoice.attachSound('Lydia_Hurt5');
break;
case 5:
LydiaVoice.attachSound('Lydia_Hurt6');
break;
case 6:
LydiaVoice.attachSound('Lydia_Hurt7');
break;
case 7:
LydiaVoice.attachSound('Lydia_Hurt8');
break;
case 8:
LydiaVoice.attachSound('Lydia_Hurt9');
break;
case 9:
LydiaVoice.attachSound('Lydia_Hurt10');
break;
case 10:
LydiaVoice.attachSound('Lydia_Hurt11');
break;
case 11:
LydiaVoice.attachSound('Lydia_Hurt12');
break;
case 12:
LydiaVoice.attachSound('Lydia_Hurt13');
break;
case 13:
LydiaVoice.attachSound('Lydia_Hurt14');
}
LydiaVoice.start(0, 0);
}
function LydiaScream() {
motherrndnum3 = motherrndnum3 + 1 + random(2);
if (motherrndnum3 > 3) {
motherrndnum3 -= 4;
}
OtherSE.stop();
OtherSE.attachSound('Blood_SP1');
OtherSE.setVolume(500);
OtherSE2.stop();
OtherSE2.attachSound('Weapon_MKnifeCrush');
OtherSE2.setVolume(500);
LydiaVoice.stop();
LydiaVoice = new Sound(LydiaVoice_mc);
LydiaVoice.setVolume(200);
switch (motherrndnum3) {
case 0:
LydiaVoice.attachSound('Lydia_Scream1');
break;
case 1:
LydiaVoice.attachSound('Lydia_Scream2');
break;
case 2:
LydiaVoice.attachSound('Lydia_Scream3');
break;
case 3:
LydiaVoice.attachSound('Lydia_Scream4');
break;
default:
LydiaVoice.attachSound('Lydia_Scream1');
}
OtherSE.start(0, 0);
OtherSE2.start(0, 0);
LydiaVoice.start(0, 0);
}
function ConsecutiveGunShots() {
var v1 = random(4);
OtherSE.stop();
switch (v1) {
case 0:
OtherSE.attachSound('Weapon_Assault');
break;
case 1:
OtherSE.attachSound('Weapon_Shotgun');
break;
case 2:
OtherSE.attachSound('Weapon_SMG');
break;
case 3:
OtherSE.attachSound('Weapon_Sniper');
break;
default:
OtherSE.attachSound('Weapon_Sniper');
}
OtherSE.setVolume(15);
OtherSE.start(0, 0);
}
function LydiaScream2(shot) {
motherrndnum3 = motherrndnum3 + 1 + random(2);
if (motherrndnum3 > 3) {
motherrndnum3 -= 4;
}
OtherSE2.stop();
OtherSE2.attachSound('Blood_SP1');
OtherSE2.setVolume(200);
if (shot) {
ConsecutiveGunShots();
}
LydiaVoice.stop();
LydiaVoice = new Sound(LydiaVoice_mc);
LydiaVoice.setVolume(100);
switch (motherrndnum3) {
case 0:
LydiaVoice.attachSound('Lydia_Scream1');
break;
case 1:
LydiaVoice.attachSound('Lydia_Scream2');
break;
case 2:
LydiaVoice.attachSound('Lydia_Scream3');
break;
case 3:
LydiaVoice.attachSound('Lydia_Scream4');
break;
default:
LydiaVoice.attachSound('Lydia_Scream1');
}
OtherSE2.start(0, 0);
LydiaVoice.start(0, 0);
}
function ExecutionSound() {
OtherSE.stop();
OtherSE.attachSound('Blood_SP1');
OtherSE.setVolume(200);
OtherSE.start(0, 0);
OtherSE2.stop();
OtherSE2.attachSound('Weapon_MRevolver');
OtherSE2.setVolume(200);
OtherSE2.start(0, 0);
}
function LydiaHurtingMoan2() {
LydiaVoice.stop();
LydiaVoice.setVolume(50);
motherrndnum1 = motherrndnum1 + 1 + random(12);
if (motherrndnum1 > 13) {
motherrndnum1 -= 14;
}
switch (motherrndnum1) {
case 0:
LydiaVoice.attachSound('Lydia_Hurt1');
break;
case 1:
LydiaVoice.attachSound('Lydia_Hurt2');
break;
case 2:
LydiaVoice.attachSound('Lydia_Hurt3');
break;
case 3:
LydiaVoice.attachSound('Lydia_Hurt4');
break;
case 4:
LydiaVoice.attachSound('Lydia_Hurt5');
break;
case 5:
LydiaVoice.attachSound('Lydia_Hurt6');
break;
case 6:
LydiaVoice.attachSound('Lydia_Hurt7');
break;
case 7:
LydiaVoice.attachSound('Lydia_Hurt8');
break;
case 8:
LydiaVoice.attachSound('Lydia_Hurt9');
break;
case 9:
LydiaVoice.attachSound('Lydia_Hurt10');
break;
case 10:
LydiaVoice.attachSound('Lydia_Hurt11');
break;
case 11:
LydiaVoice.attachSound('Lydia_Hurt12');
break;
case 12:
LydiaVoice.attachSound('Lydia_Hurt13');
break;
case 13:
LydiaVoice.attachSound('Lydia_Hurt14');
}
LydiaVoice.start(0, 0);
}
function LydiaPant() {
LydiaVoice.stop();
LydiaVoice.setVolume(80);
switch (motherrndnum2) {
case 0:
case 1:
LydiaVoice.attachSound('Lydia_Panting3');
break;
case 2:
LydiaVoice.attachSound('Lydia_Panting2');
break;
default:
LydiaVoice.attachSound('Lydia_Panting3');
}
if (motherrndnum2 == 2) {
motherrndnum2 = 0;
} else {
motherrndnum2 += random(2);
}
LydiaVoice.start(0, 0);
}
var difficulty;
var perChance = 40;
var GoreON = false;
var Initiated = false;
var Ended = false;
var healthLydia = 100;
var healthMullin = 100;
var bossFight = false;
var dmgtoMullin;
var totalEnemy;
var dmgMullinSniper;
var dmgMullinRevolver;
var dmgMullinKnife;
var dmgSniper;
var dmgSMG;
var dmgAssault;
var dmgShotgun;
var bulletCounts;
var LydiaVoiceCount = 0;
var StealthON = false;
var StealthUsed = false;
var tempInv = false;
var Start = false;
var KeyON = false;
var gamePaused = false;
var motherrndnum1 = 0;
var motherrndnum2 = 0;
var motherrndnum3 = 0;
_root.StealthandBullet_mc.BulletBox.text = bulletCounts.toString();
_root.StealthandBullet_mc.StealthBox.text = 1;
var EGC_frame;
var KC_frame;
var IT_frame;
var ME1_frame;
var ME2_frame;
var ME3_frame;
var RE1_frame;
var GE2_frame;
var BE2_frame;
var RE3_frame;
var EL_frame;
var DM_grame;
var CR_frame = new Array(0, 0, 0, 0, 0, 0, 0);
var statusLydia = 0;
var lastAttack = 0;
var MullinMode = 0;
var stageEnemy = 0;
var maxEnemy;
var stageTrack = new Array(false, false, false, false, false, false, false);
var watchdogLock = new Array(false, false, false, false, false, false, false);
var wordTrack = new Array('w', 'w', 'w', 'w', 'w', 'w', 'w');
var wordCandidates;
var wordCount;
var maxCount;
this.createEmptyMovieClip('ButtonClick_mc', this.getNextHighestDepth());
var ButtonClickSE = new Sound(ButtonClick_mc);
ButtonClickSE.attachSound('Other_Click');
ButtonClickSE.setVolume(60);
ButtonClickSE.stop();
this.createEmptyMovieClip('LydiaGunSE_mc', this.getNextHighestDepth());
var LydiaGunSE = new Sound(LydiaGunSE_mc);
LydiaGunSE.attachSound('Weapon_LydiaGun');
LydiaGunSE.setVolume(100);
this.createEmptyMovieClip('LydiaVoice_mc', this.getNextHighestDepth());
var LydiaVoice = new Sound(LydiaVoice_mc);
this.createEmptyMovieClip('MullinSE_mc', this.getNextHighestDepth());
var MullinSE = new Sound(MullinSE_mc);
MullinSE.setVolume(90);
this.createEmptyMovieClip('AssaultSE_mc', this.getNextHighestDepth());
var AssaultSE = new Sound(AssaultSE_mc);
AssaultSE.attachSound('Weapon_Assault');
AssaultSE.setVolume(80);
AssaultSE.stop();
this.createEmptyMovieClip('ShotgunSE_mc', this.getNextHighestDepth());
var ShotgunSE = new Sound(ShotgunSE_mc);
ShotgunSE.attachSound('Weapon_Shotgun');
ShotgunSE.setVolume(80);
this.createEmptyMovieClip('SMGSE_mc', this.getNextHighestDepth());
var SMGSE = new Sound(SMGSE_mc);
SMGSE.attachSound('Weapon_SMG');
SMGSE.setVolume(80);
this.createEmptyMovieClip('SniperSE_mc', this.getNextHighestDepth());
var SniperSE = new Sound(SniperSE_mc);
SniperSE.attachSound('Weapon_Sniper');
SniperSE.setVolume(80);
this.createEmptyMovieClip('HeartbeatSE_mc', this.getNextHighestDepth());
var HeartbeatSE = new Sound(HeartbeatSE_mc);
HeartbeatSE.attachSound('Other_Heartbeat');
this.createEmptyMovieClip('OtherSE_mc', this.getNextHighestDepth());
var OtherSE = new Sound(OtherSE_mc);
OtherSE.setVolume(90);
this.createEmptyMovieClip('OtherSE2_mc', this.getNextHighestDepth());
var OtherSE2 = new Sound(OtherSE2_mc);
OtherSE2.setVolume(90);
this.createEmptyMovieClip('BackGroundMusic_mc', this.getNextHighestDepth());
var BackGroundMusic = new Sound(BackGroundMusic_mc);
BackGroundMusic.attachSound('BGM_Theme');
BackGroundMusic.setVolume(50);
BackGroundMusic.stop();
var wordPressed;
keyListener = new Object();
keyListener.onKeyDown = function () {
x = Key.getAscii();
wordPressed = String.fromCharCode(x);
keyDecision();
};
Key.addListener(keyListener);
_root.DarkMask_mc.CG_mc.gotoAndPlay(2);
BackGroundMusic.start(0, 100);
}
movieClip 53 {
frame 25 {
_root.tempInv = false;
this.gotoAndStop(1);
}
}
movieClip 54 {
frame 1 {
stop();
}
frame 150 {
i = 0;
while (i < 7) {
if (_root.stageTrack[i]) {
if (!_root.watchdogLock[i]) {
_root.watchdogLock[i] = true;
} else {
switch (i) {
case 0:
_root.MullinE1_mc.gotoAndPlay(3);
break;
case 1:
_root.RedE3_mc.gotoAndPlay(3);
break;
case 2:
_root.GreenE2_mc.gotoAndPlay(3);
break;
case 3:
_root.BlueE2_mc.gotoAndPlay(3);
break;
case 4:
_root.RedE1_mc.gotoAndPlay(3);
break;
case 5:
_root.MullinE2_mc.gotoAndPlay(3);
break;
case 6:
_root.MullinE3_mc.gotoAndPlay(3);
}
}
} else {
_root.watchdogLock[i] = false;
}
++i;
}
this.gotoAndPlay(2);
}
}
movieClip 61 {
frame 1 {
stop();
}
frame 14 {
this.gotoAndStop(1);
}
frame 30 {
this.gotoAndStop(1);
}
frame 48 {
this.gotoAndStop(1);
}
frame 74 {
this.gotoAndStop(1);
}
frame 106 {
this.gotoAndStop(1);
}
frame 139 {
this.gotoAndStop(1);
}
frame 184 {
this.gotoAndStop(1);
}
frame 239 {
this.gotoAndStop(1);
}
frame 301 {
this.gotoAndStop(1);
}
frame 376 {
this.gotoAndStop(1);
}
}
movieClip 64 {
}
movieClip 69 {
frame 1 {
stop();
}
frame 10 {
Crosshair_mc.gotoAndPlay(302);
}
frame 85 {
_root.releaseEnemy(1);
_root.SniperSE.start(0, 0);
_root.damageLydiaSequence(_root.dmgSniper);
}
frame 102 {
stop();
}
frame 103 {
_root.releaseEnemy(1);
}
frame 113 {
this.gotoAndStop(1);
}
}
movieClip 73 {
}
movieClip 76 {
frame 1 {
stop();
}
frame 10 {
if (_root.bossFight) {
Crosshair_mc.gotoAndPlay(31);
} else {
Crosshair_mc.gotoAndPlay(185);
}
}
frame 27 {
if (_root.bossFight) {
gotoAndPlay(65);
}
}
frame 65 {
_root.releaseEnemy(6);
_root.MullinSE.start(0, 0);
_root.damageLydiaSequence(_root.dmgMullinSniper);
}
frame 80 {
this.gotoAndStop(1);
}
frame 81 {
_root.releaseEnemy(6);
_root.damageMullinSequence();
}
frame 95 {
this.gotoAndStop(1);
}
}
movieClip 82 {
}
movieClip 85 {
frame 1 {
stop();
}
frame 2 {
this.play();
}
frame 3 {
this.play();
}
frame 10 {
this.play();
if (_root.bossFight) {
Crosshair_mc.gotoAndPlay(15);
} else {
Crosshair_mc.gotoAndPlay(75);
}
}
frame 25 {
if (_root.bossFight) {
gotoAndPlay(42);
}
}
frame 42 {
_root.releaseEnemy(5);
_root.MullinSE.start(0, 0);
_root.damageLydiaSequence(_root.dmgMullinRevolver);
}
frame 58 {
this.gotoAndStop(1);
}
frame 59 {
_root.releaseEnemy(5);
_root.damageMullinSequence();
}
frame 73 {
this.gotoAndStop(1);
}
}
movieClip 89 {
}
movieClip 92 {
frame 1 {
stop();
}
frame 10 {
Crosshair_mc.gotoAndPlay(140);
}
frame 60 {
_root.releaseEnemy(2);
_root.AssaultSE.start(0, 0);
_root.damageLydiaSequence(_root.dmgAssault);
}
frame 75 {
stop();
}
frame 76 {
_root.releaseEnemy(2);
}
frame 90 {
this.gotoAndStop(1);
}
}
movieClip 96 {
}
movieClip 99 {
frame 1 {
stop();
}
frame 2 {
this.play();
}
frame 3 {
this.play();
}
frame 4 {
this.play();
}
frame 10 {
this.play();
Crosshair_mc.gotoAndPlay(107);
}
frame 43 {
_root.releaseEnemy(3);
_root.SMGSE.start(0, 0);
_root.damageLydiaSequence(_root.dmgSMG);
}
frame 75 {
stop();
}
frame 76 {
_root.releaseEnemy(3);
}
frame 95 {
this.gotoAndStop(1);
}
}
movieClip 106 {
}
movieClip 112 {
frame 1 {
stop();
}
frame 10 {
if (_root.bossFight) {
Crosshair_mc.gotoAndPlay(2);
} else {
Crosshair_mc.gotoAndPlay(49);
}
}
frame 22 {
if (_root.bossFight) {
gotoAndPlay(36);
}
}
frame 36 {
_root.releaseEnemy(0);
if (_root.StealthON) {
_root.MullinSE.attachSound('Weapon_MKnifeStab');
} else {
_root.MullinSE.attachSound('Blood_MKnifeSplash');
}
_root.MullinSE.start(0, 0);
_root.damageLydiaSequence(_root.dmgMullinKnife);
}
frame 55 {
stop();
}
frame 56 {
_root.releaseEnemy(0);
_root.damageMullinSequence();
}
frame 75 {
stop();
}
}
movieClip 116 {
}
movieClip 119 {
frame 1 {
stop();
}
frame 10 {
Crosshair_mc.gotoAndPlay(240);
}
frame 72 {
_root.releaseEnemy(4);
_root.ShotgunSE.start(0, 0);
_root.damageLydiaSequence(_root.dmgShotgun);
}
frame 90 {
stop();
}
frame 91 {
_root.releaseEnemy(4);
}
frame 110 {
stop();
}
}
movieClip 122 {
frame 1 {
stop();
}
frame 10 {
this.gotoAndStop(1);
}
frame 11 {
this.gotoAndStop(1);
}
frame 20 {
this.gotoAndStop(1);
}
frame 30 {
this.gotoAndStop(1);
}
frame 40 {
this.gotoAndStop(1);
}
}
movieClip 147 {
frame 1 {
stop();
}
frame 14 {
this.gotoAndStop(1);
}
frame 29 {
this.gotoAndStop(15);
}
frame 44 {
this.gotoAndStop(30);
}
frame 59 {
this.gotoAndStop(45);
}
frame 60 {
stop();
}
frame 311 {
this.gotoAndStop(15);
}
}
// unknown tag 88 length 47
movieClip 154 {
frame 1 {
stop();
}
frame 100 {
if (totalEnemy == 0) {
Start = false;
}
}
}
movieClip 159 {
frame 1 {
stop();
}
}
// unknown tag 88 length 105
movieClip 170 {
}
movieClip 179 {
frame 10 {
this.gotoAndPlay(1);
}
}
movieClip 182 {
frame 1 {
stop();
}
}
movieClip 206 {
frame 1 {
stop();
}
frame 14 {
this.gotoAndStop(1);
}
frame 29 {
this.gotoAndStop(15);
}
frame 44 {
this.gotoAndStop(30);
}
frame 59 {
this.gotoAndStop(45);
}
frame 60 {
stop();
}
frame 311 {
this.gotoAndStop(15);
}
}
// unknown tag 88 length 82
movieClip 221 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 11 {
switch (_root.difficulty) {
case 0:
this.messageBox2.text = 'ãƒãƒƒã‚¯è§£é™¤ã•ã‚ŒãŸGallery: \n "Sexy Invitation" \n\n Password:';
this.passwordBox.text = 'InconvenientIdeal';
break;
case 1:
this.messageBox2.text = 'ãƒãƒƒã‚¯è§£é™¤ã•ã‚ŒãŸGallery: \n "Road to Destruction" \n\n Password:';
this.passwordBox.text = 'TheIIIDEmpire';
break;
case 2:
this.messageBox2.text = 'ãƒãƒƒã‚¯è§£é™¤ã•ã‚ŒãŸGallery: \n "Romance Sex" \n\n Password: Password:';
this.passwordBox.text = 'PinkKiller';
break;
case 3:
this.messageBox2.text = 'ãƒãƒƒã‚¯è§£é™¤ã•ã‚ŒãŸGallery: \n "Withered Ivy" \n\n Password: Password:';
this.passwordBox.text = 'TheRedSoil';
}
}
frame 50 {
stop();
this.VictoryNext_bt.onPress = function () {
_root.DarkMask_mc.gotoAndStop(1);
_root.DarkMask_mc.CG_mc.gotoAndPlay(980);
};
}
}
// unknown tag 88 length 81
movieClip 240 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 11 {
}
frame 20 {
stop();
}
frame 21 {
}
frame 45 {
stop();
}
frame 46 {
}
frame 95 {
stop();
}
frame 96 {
bossFight_mc.gotoAndStop(1);
_root.Start = false;
}
frame 220 {
_root.EnemyGenerationClock_mc.gotoAndStop(1);
_root.DarkMask_mc.gotoAndPlay(151);
stop();
}
frame 221 {
}
frame 470 {
stop();
_root.StealthON = false;
_root.tempInv = true;
_root.InvTimer_mc.gotoAndPlay(1);
}
}
movieClip 242 {
}
// unknown tag 88 length 70
// unknown tag 88 length 81
movieClip 250 {
}
movieClip 252 {
frame 1 {
play();
}
frame 29 {
this.gotoAndPlay(1);
}
}
movieClip 278 {
}
movieClip 283 {
frame 1 {
stop();
}
}
movieClip 284 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 25 {
stop();
this.Main_GameStart_bt.onPress = function () {
_root.DarkMask_mc.CG_mc.gotoAndPlay(310);
_root.ButtonClickSE.start(0, 0);
};
this.Main_Gallery_bt.onPress = function () {
_root.GalleryMovieHolder.loadMovie('Galleries.swf');
_root.ButtonClickSE.start(0, 0);
};
this.GoreUnlock_bt.onPress = function () {
_root.DarkMask_mc.CG_mc.MainMenu_mc.gotoAndPlay(51);
_root.ButtonClickSE.start(0, 0);
};
this.MainCredit_bt.onPress = function () {
_root.DarkMask_mc.CG_mc.MainCredit_mc.gotoAndPlay(2);
_root.ButtonClickSE.start(0, 0);
};
this.MainAbout_bt.onPress = function () {
_root.DarkMask_mc.CG_mc.MainAbout_mc.gotoAndPlay(2);
_root.ButtonClickSE.start(0, 0);
};
}
frame 63 {
stop();
this.GalleryBack_bt.onPress = function () {
_root.DarkMask_mc.CG_mc.MainMenu_mc.gotoAndPlay(64);
_root.ButtonClickSE.start(0, 0);
};
this.GoreEnter_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
var v2 = _root.DarkMask_mc.CG_mc.MainMenu_mc.UnlockPassword_mc.UnlockPassword_Text.text.toString();
v2 = v2.toLowerCase();
_root.DebugWindow.text = v2 + ' ' + v2.indexOf('machiavellism') + '\n' + _root.GoreON;
if (v2.indexOf('machiavellism') == 0) {
_root.DarkMask_mc.CG_mc.MainMenu_mc.GoreMessage_mc.gotoAndStop(2);
_root.GoreON = true;
} else {
_root.DarkMask_mc.CG_mc.MainMenu_mc.GoreMessage_mc.gotoAndStop(3);
}
};
}
frame 73 {
_root.DarkMask_mc.CG_mc.MainMenu_mc.gotoAndPlay(15);
}
}
movieClip 290 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 25 {
stop();
CreditBack_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
gotoAndPlay(26);
};
}
frame 50 {
gotoAndStop(1);
}
}
// unknown tag 88 length 62
movieClip 307 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 25 {
stop();
KA01SalesPage_bt.onPress = function () {
getURL('http://krcstudio.blogspot.com/2011/01/dlsite-sales-launched-for-improsoned.html', '');
_root.ButtonClickSE.start(0, 0);
};
}
}
movieClip 311 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 25 {
stop();
KA02ProductPage_bt.onPress = function () {
getURL('http://krcstudio.blogspot.com/2011/02/ka02-elegant-assassin-lydia-episode-1.html', '');
_root.ButtonClickSE.start(0, 0);
};
}
}
movieClip 314 {
}
movieClip 316 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 25 {
stop();
KA03SalesPage_bt.onPress = function () {
getURL('http://krcstudio.blogspot.com/2011/03/ka03-royal-druid-fiona-on-sale-on.html', '');
_root.ButtonClickSE.start(0, 0);
};
}
}
movieClip 317 {
frame 1 {
stop();
}
frame 2 {
play();
KA01Product_mc.gotoAndPlay(2);
}
frame 25 {
stop();
AboutVisit_mc.onPress = function () {
getURL('http://krcstudio.blogspot.com/', '');
_root.ButtonClickSE.start(0, 0);
};
AboutBack_bt.onPress = function () {
gotoAndPlay(26);
_root.ButtonClickSE.start(0, 0);
};
KA01_bt.onPress = function () {
KA01Product_mc.gotoAndPlay(2);
KA02Product_mc.gotoAndStop(1);
KA03Product_mc.gotoAndStop(1);
_root.ButtonClickSE.start(0, 0);
};
KA03_bt.onPress = function () {
KA03Product_mc.gotoAndPlay(2);
KA01Product_mc.gotoAndStop(1);
KA02Product_mc.gotoAndStop(1);
_root.ButtonClickSE.start(0, 0);
};
KA02_bt.onPress = function () {
KA02Product_mc.gotoAndPlay(2);
KA01Product_mc.gotoAndStop(1);
KA03Product_mc.gotoAndStop(1);
_root.ButtonClickSE.start(0, 0);
};
}
frame 50 {
gotoAndStop(1);
}
}
button 323 {
on (release) {
_root.ButtonClickSE.start(0, 0);
_root.DarkMask_mc.CG_mc.gotoAndStop('930');
}
}
button 331 {
on (release) {
_root.DarkMask_mc.CG_mc.gotoAndStop('930');
}
}
movieClip 341 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 20 {
stop();
this.IntroMissionBrief_bt.onPress = function () {
gotoAndPlay(22);
_root.ButtonClickSE.start(0, 0);
};
this.Intro_GameInst_bt.onPress = function () {
gotoAndPlay(41);
_root.ButtonClickSE.start(0, 0);
};
}
frame 40 {
_root.DarkMask_mc.CG_mc.gotoAndPlay(955);
}
frame 61 {
_root.DarkMask_mc.CG_mc.gotoAndPlay(931);
}
}
// unknown tag 88 length 79
movieClip 351 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 25 {
stop();
this.InsVideoBack_bt.onRelease = function () {
gotoAndPlay(26);
_root.ButtonClickSE.start(0, 0);
};
}
frame 40 {
_root.DarkMask_mc.CG_mc.gotoAndPlay(930);
stop();
}
}
movieClip 354 {
frame 1 {
stop();
}
frame 2 {
_root.ConsecutiveGunShots();
_root.DebugWindow.text = 'Shot Called';
}
frame 15 {
gotoAndPlay(2);
}
}
movieClip 385 {
frame 1 {
stop();
}
frame 14 {
ShotSoundTimer_mc.gotoAndStop(1);
}
frame 15 {
ShotSoundTimer_mc.gotoAndPlay(2);
}
frame 16 {
ShotSoundTimer_mc.gotoAndPlay(2);
}
}
movieClip 401 {
frame 1 {
stop();
}
}
// unknown tag 88 length 171
movieClip 414 {
frame 1 {
var Framecount = 1;
var Hidden = false;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.ResumeButton_bt._visible = false;
_root.BackGroundMusic.stop();
_root.BackGroundMusic.attachSound('BGM_MissionBrief');
_root.BackGroundMusic.setVolume(50);
_root.BackGroundMusic.onSoundComplete(BackGroundMusic.start());
_root.BackGroundMusic.start(1, 100);
stop();
this.BackButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
if (Framecount > 1) {
--Framecount;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.Pictures_mc.gotoAndStop(Framecount);
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.StoryFrame_mc.gotoAndStop(Framecount);
} else {
_root.DarkMask_mc.CG_mc.gotoAndStop(930);
Framecount = 1;
Hidden = false;
}
};
this.NextButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
if (Framecount > 15) {
Pictures_mc.ShotSoundTimer_mc.gotoAndStop(1);
_root.DarkMask_mc.gotoAndPlay(176);
_root.Initiated = true;
} else {
++Framecount;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.Pictures_mc.gotoAndStop(Framecount);
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.StoryFrame_mc.gotoAndStop(Framecount);
}
};
this.SkipButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
_root.DarkMask_mc.gotoAndPlay(176);
_root.Initiated = true;
};
this.HideButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
if (!Hidden) {
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.ResumeButton_bt._visible = true;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.StoryFrame_mc._alpha = 0;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.HideButton_bt._alpha = 0;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.SkipButton_bt._alpha = 0;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.NextButton_bt._alpha = 0;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.BackButton_bt._alpha = 0;
Hidden = true;
}
};
this.ResumeButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
if (Hidden) {
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.ResumeButton_bt._visible = false;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.StoryFrame_mc._alpha = 100;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.HideButton_bt._alpha = 100;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.SkipButton_bt._alpha = 100;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.NextButton_bt._alpha = 100;
_root.DarkMask_mc.CG_mc.Intro_IntroVideo_mc.BackButton_bt._alpha = 100;
Hidden = false;
}
};
}
}
movieClip 417 {
frame 1 {
stop();
}
frame 2 {
_root.LydiaHurtingMoan2();
}
frame 42 {
if (random(10) < 8) {
gotoAndPlay(2);
}
}
frame 46 {
if (random(10) < 8) {
gotoAndPlay(2);
}
}
frame 63 {
if (random(10) < 7) {
gotoAndPlay(2);
}
}
frame 67 {
if (random(10) < 6) {
gotoAndPlay(2);
}
}
frame 84 {
if (random(10) < 6) {
gotoAndPlay(2);
}
}
frame 87 {
if (random(10) < 5) {
gotoAndPlay(2);
}
}
frame 100 {
gotoAndPlay(2);
}
}
movieClip 418 {
frame 1 {
stop();
}
frame 2 {
_root.LydiaPant();
}
frame 45 {
if (random(10) < 8) {
gotoAndPlay(2);
}
}
frame 49 {
if (random(10) < 8) {
gotoAndPlay(2);
}
}
frame 58 {
if (random(10) < 7) {
gotoAndPlay(2);
}
}
frame 65 {
if (random(10) < 6) {
gotoAndPlay(2);
}
}
frame 78 {
if (random(10) < 6) {
gotoAndPlay(2);
}
}
frame 83 {
if (random(10) < 5) {
gotoAndPlay(2);
}
}
frame 100 {
gotoAndPlay(2);
}
}
movieClip 457 {
frame 25 {
stop();
}
}
movieClip 460 {
}
movieClip 461 {
frame 25 {
stop();
}
}
movieClip 464 {
frame 1 {
HurtTimer_mc.gotoAndStop(1);
PantTimer_mc.gotoAndStop(1);
}
frame 2 {
HurtTimer_mc.gotoAndPlay(2);
PantTimer_mc.gotoAndStop(1);
}
frame 3 {
HurtTimer_mc.gotoAndPlay(2);
PantTimer_mc.gotoAndStop(1);
}
frame 4 {
HurtTimer_mc.gotoAndPlay(2);
PantTimer_mc.gotoAndStop(1);
}
frame 5 {
PantTimer_mc.gotoAndPlay(2);
HurtTimer_mc.gotoAndStop(1);
}
frame 6 {
PantTimer_mc.gotoAndPlay(2);
HurtTimer_mc.gotoAndStop(1);
}
frame 7 {
PantTimer_mc.gotoAndStop(1);
HurtTimer_mc.gotoAndStop(1);
}
frame 11 {
stop();
PantTimer_mc.gotoAndStop(1);
HurtTimer_mc.gotoAndStop(1);
}
frame 12 {
HurtTimer_mc.gotoAndPlay(2);
PantTimer_mc.gotoAndStop(1);
}
frame 13 {
PantTimer_mc.gotoAndPlay(2);
HurtTimer_mc.gotoAndStop(1);
}
frame 14 {
_root.LydiaScream();
PantTimer_mc.gotoAndStop(1);
HurtTimer_mc.gotoAndStop(1);
}
frame 15 {
_root.OtherSE2.attachSound('Weapon_MKnifeCrush');
_root.OtherSE2.setVolume(500);
_root.OtherSE2.start(0, 0);
HurtTimer_mc.gotoAndPlay(2);
PantTimer_mc.gotoAndStop(1);
}
frame 16 {
PantTimer_mc.gotoAndPlay(2);
HurtTimer_mc.gotoAndStop(1);
}
frame 17 {
PantTimer_mc.gotoAndPlay(2);
HurtTimer_mc.gotoAndStop(1);
}
frame 18 {
PantTimer_mc.gotoAndStop(1);
HurtTimer_mc.gotoAndStop(1);
}
frame 21 {
stop();
}
frame 22 {
_root.ExecutionSound();
}
frame 31 {
stop();
}
frame 32 {
_root.BackGroundMusic.stop();
_root.BackGroundMusic.attachSound('BGM_Theme');
_root.BackGroundMusic.setVolume(50);
_root.BackGroundMusic.onSoundComplete(BackGroundMusic.start());
_root.BackGroundMusic.start(0, 100);
_root.Ended = true;
}
frame 35 {
stop();
}
}
// unknown tag 88 length 185
// unknown tag 88 length 79
movieClip 492 {
frame 25 {
stop();
}
}
movieClip 496 {
frame 1 {
stop();
}
frame 11 {
stop();
}
frame 21 {
stop();
}
frame 31 {
stop();
}
frame 35 {
stop();
}
}
movieClip 497 {
frame 1 {
var Framecount;
var FrameFloor;
var FrameCeiling;
var Hidden = false;
var Preview = false;
_root.DarkMask_mc.CG_mc.Endings_mc.ResumeButton_bt._visible = false;
stop();
this.BackButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
if (Framecount > FrameFloor) {
--Framecount;
_root.DarkMask_mc.CG_mc.Endings_mc.EndingPictures_mc.gotoAndStop(Framecount);
_root.DarkMask_mc.CG_mc.Endings_mc.EndingDialogBox_mc.gotoAndStop(Framecount);
}
};
this.NextButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
if (Framecount > FrameCeiling) {
if (!Preview) {
_root.DarkMask_mc.CG_mc.Endings_mc.EndingDialogBox_mc.gotoAndStop(31);
_root.DarkMask_mc.CG_mc.Endings_mc.EndingPictures_mc.gotoAndStop(31);
FrameFloor = 31;
FrameCeiling = 32;
Framecount = 31;
Preview = true;
} else {
_root.ResetGame();
}
} else {
++Framecount;
_root.DarkMask_mc.CG_mc.Endings_mc.EndingPictures_mc.gotoAndStop(Framecount);
_root.DarkMask_mc.CG_mc.Endings_mc.EndingDialogBox_mc.gotoAndStop(Framecount);
}
};
this.SkipButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
_root.ResetGame();
};
this.HideButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
if (!Hidden) {
_root.DarkMask_mc.CG_mc.Endings_mc.ResumeButton_bt._visible = true;
_root.DarkMask_mc.CG_mc.Endings_mc.EndingDialogBox_mc._alpha = 0;
_root.DarkMask_mc.CG_mc.Endings_mc.HideButton_bt._alpha = 0;
_root.DarkMask_mc.CG_mc.Endings_mc.SkipButton_bt._alpha = 0;
_root.DarkMask_mc.CG_mc.Endings_mc.NextButton_bt._alpha = 0;
_root.DarkMask_mc.CG_mc.Endings_mc.BackButton_bt._alpha = 0;
Hidden = true;
}
};
this.ResumeButton_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
if (Hidden) {
_root.DarkMask_mc.CG_mc.Endings_mc.ResumeButton_bt._visible = false;
_root.DarkMask_mc.CG_mc.Endings_mc.EndingDialogBox_mc._alpha = 100;
_root.DarkMask_mc.CG_mc.Endings_mc.HideButton_bt._alpha = 100;
_root.DarkMask_mc.CG_mc.Endings_mc.SkipButton_bt._alpha = 100;
_root.DarkMask_mc.CG_mc.Endings_mc.NextButton_bt._alpha = 100;
_root.DarkMask_mc.CG_mc.Endings_mc.BackButton_bt._alpha = 100;
Hidden = false;
}
};
}
}
movieClip 498 {
frame 1 {
stop();
}
frame 2 {
if (!_root.Initiated) {
_root.DarkMask_mc.SkipOverButton_bt._visible = true;
}
play();
}
frame 3 {
play();
}
frame 4 {
play();
}
frame 260 {
_root.DarkMask_mc.SkipOverButton_bt._visible = false;
play();
}
frame 284 {
stop();
this.StartButton_bt.onPress = function () {
_root.DarkMask_mc.CG_mc.gotoAndPlay(285);
_root.ButtonClickSE.start(0, 0);
};
}
frame 285 {
play();
}
frame 290 {
this.MainMenu_mc.gotoAndPlay(2);
}
frame 309 {
stop();
}
frame 930 {
stop();
this.EP2Menu_mc.gotoAndPlay(2);
}
frame 940 {
this.Intro_InsVideo_mc.gotoAndPlay(2);
_root.DarkMask_mc.SkipOverButton_bt._visible = false;
}
frame 951 {
stop();
}
frame 965 {
_root.DarkMask_mc.SkipOverButton_bt._visible = false;
}
frame 975 {
stop();
}
frame 980 {
_root.DarkMask_mc.SkipOverButton_bt._visible = false;
if (_root.healthLydia == 0) {
_root.BackGroundMusic.stop();
_root.BackGroundMusic.attachSound('BGM_Death');
_root.BackGroundMusic.setVolume(50);
_root.BackGroundMusic.onSoundComplete(BackGroundMusic.start());
_root.BackGroundMusic.start(0, 100);
if (_root.GoreON) {
if (_root.bossFight) {
this.Endings_mc.FrameFloor = 11;
this.Endings_mc.FrameCeiling = 17;
this.Endings_mc.Framecount = 11;
this.Endings_mc.EndingDialogBox_mc.gotoAndStop(11);
this.Endings_mc.EndingPictures_mc.gotoAndStop(11);
_root.LydiaScream();
} else {
this.Endings_mc.FrameFloor = 1;
this.Endings_mc.FrameCeiling = 6;
this.Endings_mc.Framecount = 1;
this.Endings_mc.EndingDialogBox_mc.gotoAndStop(1);
this.Endings_mc.EndingPictures_mc.gotoAndStop(1);
_root.LydiaScream2(true);
}
} else {
this.Endings_mc.FrameFloor = 35;
this.Endings_mc.FrameCeiling = 34;
this.Endings_mc.Framecount = 35;
this.Endings_mc.EndingDialogBox_mc.gotoAndStop(35);
this.Endings_mc.EndingPictures_mc.gotoAndStop(35);
_root.LydiaScream();
}
} else {
_root.BackGroundMusic.stop();
_root.BackGroundMusic.attachSound('BGM_Victory');
_root.BackGroundMusic.setVolume(50);
_root.BackGroundMusic.onSoundComplete(BackGroundMusic.start());
_root.BackGroundMusic.start(0, 100);
this.Endings_mc.FrameFloor = 21;
this.Endings_mc.FrameCeiling = 28;
this.Endings_mc.Framecount = 21;
this.Endings_mc.EndingDialogBox_mc.gotoAndStop(21);
this.Endings_mc.EndingPictures_mc.gotoAndStop(21);
}
play();
}
frame 990 {
stop();
}
}
movieClip 533 {
}
movieClip 534 {
frame 1 {
stop();
this.SkipOverButton_bt.onPress = function () {
_root.DebugWindow.text = 'I\'m Pressed HICCUP!';
_root.DarkMask_mc.CG_mc.gotoAndPlay(260);
};
}
frame 25 {
stop();
}
frame 50 {
stop();
}
frame 51 {
switch (_root.difficulty) {
case 0:
this.InsKey_wordBox.InsKey_word.text = 'I J K L';
break;
case 1:
this.InsKey_wordBox.InsKey_word.text = 'W I J K L';
break;
case 2:
this.InsKey_wordBox.InsKey_word.text = 'W S A D I J K L';
break;
case 3:
this.InsKey_wordBox.InsKey_word.text = 'W S A D I J K L';
break;
default:
this.InsKey_wordBox.InsKey_word.text = 'I J K L';
}
_root.BackGroundMusic.stop();
_root.BackGroundMusic.attachSound('BGM_Fight');
_root.BackGroundMusic.setVolume(50);
_root.BackGroundMusic.onSoundComplete(BackGroundMusic.start());
_root.BackGroundMusic.start(0, 100);
}
frame 150 {
_root.EnemyGenerationClock_mc.gotoAndPlay(2);
_root.Start = true;
_root.watchdogTimer_mc.gotoAndPlay(2);
stop();
}
frame 175 {
this.Retry_mc.onPress = function () {
_root.ButtonClickSE.start(0, 0);
_root.retryGame();
};
this.GameOverNext_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
_root.haltGame();
_root.Start = false;
_root.DarkMask_mc.gotoAndStop(1);
_root.DarkMask_mc.CG_mc.gotoAndPlay(980);
};
stop();
}
frame 200 {
stop();
DiffGroup_mc.ChooseEasy_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
_root.difficulty = 0;
_root.setDifficulty();
_root.DarkMask_mc.gotoAndPlay(201);
};
DiffGroup_mc.ChooseMedium_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
_root.difficulty = 1;
_root.setDifficulty();
_root.DarkMask_mc.gotoAndPlay(201);
};
DiffGroup_mc.ChooseHard_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
_root.difficulty = 2;
_root.setDifficulty();
_root.DarkMask_mc.gotoAndPlay(201);
};
DiffGroup_mc.ChooseNightmare_bt.onPress = function () {
_root.ButtonClickSE.start(0, 0);
_root.difficulty = 3;
_root.setDifficulty();
_root.DarkMask_mc.gotoAndPlay(201);
};
}
frame 225 {
this.gotoAndPlay(51);
}
}
movieClip 537 {
frame 1 {
stop();
}
frame 2 {
if (_root.totalEnemy <= 0) {
if (_root.healthMullin <= 0) {
_root.EffectLayer_mc.bossFight_mc.gotoAndPlay(11);
_root.Start = false;
_root.haltGame();
stop();
} else {
if (!_root.bossFight) {
_root.bossFight = true;
_root.EffectLayer_mc.bossFight_mc.gotoAndPlay(2);
}
}
}
_root.randomEnemy();
}
frame 20 {
if (_root.difficulty > 2) {
this.gotoAndPlay(2);
}
}
frame 30 {
if (_root.difficulty == 2) {
this.gotoAndPlay(2);
}
}
frame 40 {
if (_root.difficulty == 1) {
this.gotoAndPlay(2);
}
}
frame 50 {
this.gotoAndPlay(2);
}
}
movieClip 538 {
frame 1 {
stop();
}
frame 3 {
_root.KeyON = false;
stop();
}
}
movieClip 541 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 543 {
}