Frame 1
MochiAd.showPreGameAd({id:"63beda11e66ca379", res:"700x450"});
Instance of Symbol 571 MovieClip in Frame 1
onClipEvent (load) {
if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
quickPlay = true;
} else {
preLoad = _parent.getBytesTotal() * 0.99;
}
_parent.stop();
}
onClipEvent (enterFrame) {
gotoAndStop(loadedIndicatorFrame());
if (quickPlay == true) {
if (_currentframe == _totalframes) {
_parent.play();
}
} else if (_parent.getBytesLoaded() >= preLoad) {
_parent.play();
}
}
Frame 27
_level0.qualitylevel = 3;
var _mochiads_game_id = "63beda11e66ca379";
mochi.MochiServices.connect("63beda11e66ca379");
MENU = new ContextMenu();
MENU.hideBuiltInItems();
_root.menu = MENU;
_root.kongregateServices.connect();
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
MovieClip.prototype.setCookie = function (c, n, v) {
var _local1 = SharedObject.getLocal(c);
_local1.data[n] = v;
_local1.flush();
};
MovieClip.prototype.getCookie = function (c, n) {
var _local1 = SharedObject.getLocal(c);
return(_local1.data[n]);
};
if (_root.sound != 0) {
_root.sound = 1;
}
Frame 28
Frame 30
gotoAndStop ("menu");
Frame 31
this.challtext = "Choose a challenge above, then click Start Challenge to begin. When a challenge is completed, it will be stamped. Challenge completion is automatically saved.";
this.chall1stamp._visible = false;
this.chall2stamp._visible = false;
this.chall3stamp._visible = false;
this.chall4stamp._visible = false;
this.chall5stamp._visible = false;
this.chall6stamp._visible = false;
this.chall7stamp._visible = false;
this.chall8stamp._visible = false;
this.chall9stamp._visible = false;
this.chall10stamp._visible = false;
this.chall11stamp._visible = false;
this.chall12stamp._visible = false;
this.chall13stamp._visible = false;
this.chall14stamp._visible = false;
this.chall15stamp._visible = false;
this.chall16stamp._visible = false;
this.chall17stamp._visible = false;
this.chall18stamp._visible = false;
this.chall19stamp._visible = false;
this.chall20stamp._visible = false;
this.chall21stamp._visible = false;
this.chall22stamp._visible = false;
this.chall23stamp._visible = false;
this.chall24stamp._visible = false;
this.chall25stamp._visible = false;
this.chall26stamp._visible = false;
this.chall27stamp._visible = false;
this.chall28stamp._visible = false;
this.start_chall._visible = false;
if (_level0.challenge1comp == 1) {
this.chall1stamp._visible = true;
}
if (_level0.challenge2comp == 1) {
this.chall2stamp._visible = true;
}
if (_level0.challenge3comp == 1) {
this.chall3stamp._visible = true;
}
if (_level0.challenge4comp == 1) {
this.chall4stamp._visible = true;
}
if (_level0.challenge5comp == 1) {
this.chall5stamp._visible = true;
}
if (_level0.challenge6comp == 1) {
this.chall6stamp._visible = true;
}
if (_level0.challenge7comp == 1) {
this.chall7stamp._visible = true;
}
if (_level0.challenge8comp == 1) {
this.chall8stamp._visible = true;
}
if (_level0.challenge9comp == 1) {
this.chall9stamp._visible = true;
}
if (_level0.challenge10comp == 1) {
this.chall10stamp._visible = true;
}
if (_level0.challenge11comp == 1) {
this.chall11stamp._visible = true;
}
if (_level0.challenge12comp == 1) {
this.chall12stamp._visible = true;
}
if (_level0.challenge13comp == 1) {
this.chall13stamp._visible = true;
}
if (_level0.challenge14comp == 1) {
this.chall14stamp._visible = true;
}
if (_level0.challenge15comp == 1) {
this.chall15stamp._visible = true;
}
if (_level0.challenge16comp == 1) {
this.chall16stamp._visible = true;
}
if (_level0.challenge17comp == 1) {
this.chall17stamp._visible = true;
}
if (_level0.challenge18comp == 1) {
this.chall18stamp._visible = true;
}
if (_level0.challenge19comp == 1) {
this.chall19stamp._visible = true;
}
if (_level0.challenge20comp == 1) {
this.chall20stamp._visible = true;
}
if (_level0.challenge21comp == 1) {
this.chall21stamp._visible = true;
}
if (_level0.challenge22comp == 1) {
this.chall22stamp._visible = true;
}
if (_level0.challenge23comp == 1) {
this.chall23stamp._visible = true;
}
if (_level0.challenge24comp == 1) {
this.chall24stamp._visible = true;
}
if (_level0.challenge25comp == 1) {
this.chall25stamp._visible = true;
}
if (_level0.challenge26comp == 1) {
this.chall26stamp._visible = true;
}
if (_level0.challenge27comp == 1) {
this.chall27stamp._visible = true;
}
if (_level0.challenge28comp == 1) {
this.chall28stamp._visible = true;
}
_root.setCookie("cardgamechal", "chal1", _level0.challenge1comp);
_root.setCookie("cardgamechal", "chal2", _level0.challenge2comp);
_root.setCookie("cardgamechal", "chal3", _level0.challenge3comp);
_root.setCookie("cardgamechal", "chal4", _level0.challenge4comp);
_root.setCookie("cardgamechal", "chal5", _level0.challenge5comp);
_root.setCookie("cardgamechal", "chal6", _level0.challenge6comp);
_root.setCookie("cardgamechal", "chal7", _level0.challenge7comp);
_root.setCookie("cardgamechal", "chal8", _level0.challenge8comp);
_root.setCookie("cardgamechal", "chal9", _level0.challenge9comp);
_root.setCookie("cardgamechal", "chal10", _level0.challenge10comp);
_root.setCookie("cardgamechal", "chal11", _level0.challenge11comp);
_root.setCookie("cardgamechal", "chal12", _level0.challenge12comp);
_root.setCookie("cardgamechal", "chal13", _level0.challenge13comp);
_root.setCookie("cardgamechal", "chal14", _level0.challenge14comp);
_root.setCookie("cardgamechal", "chal15", _level0.challenge15comp);
_root.setCookie("cardgamechal", "chal16", _level0.challenge16comp);
_root.setCookie("cardgamechal", "chal17", _level0.challenge17comp);
_root.setCookie("cardgamechal", "chal18", _level0.challenge18comp);
_root.setCookie("cardgamechal", "chal19", _level0.challenge19comp);
_root.setCookie("cardgamechal", "chal20", _level0.challenge20comp);
_root.setCookie("cardgamechal", "chal21", _level0.challenge21comp);
_root.setCookie("cardgamechal", "chal22", _level0.challenge22comp);
_root.setCookie("cardgamechal", "chal23", _level0.challenge23comp);
_root.setCookie("cardgamechal", "chal24", _level0.challenge24comp);
_root.setCookie("cardgamechal", "chal25", _level0.challenge25comp);
_root.setCookie("cardgamechal", "chal26", _level0.challenge26comp);
_root.setCookie("cardgamechal", "chal27", _level0.challenge27comp);
_root.setCookie("cardgamechal", "chal28", _level0.challenge28comp);
if (((((((_level0.challenge1comp == 1) && (_level0.challenge2comp == 1)) && (_level0.challenge3comp == 1)) && (_level0.challenge4comp == 1)) && (_level0.challenge5comp == 1)) && (_level0.challenge6comp == 1)) && (_level0.challenge7comp == 1)) {
_root.kongregateStats.submit("Challenges1-7", 1);
}
if (((((((_level0.challenge8comp == 1) && (_level0.challenge9comp == 1)) && (_level0.challenge10comp == 1)) && (_level0.challenge11comp == 1)) && (_level0.challenge12comp == 1)) && (_level0.challenge13comp == 1)) && (_level0.challenge14comp == 1)) {
_root.kongregateStats.submit("Challenges8-14", 1);
}
if (((((((_level0.challenge15comp == 1) && (_level0.challenge16comp == 1)) && (_level0.challenge17comp == 1)) && (_level0.challenge18comp == 1)) && (_level0.challenge19comp == 1)) && (_level0.challenge20comp == 1)) && (_level0.challenge21comp == 1)) {
_root.kongregateStats.submit("Challenges15-21", 1);
}
stop();
Frame 35
nextFrame();
Frame 36
stop();
Frame 41
nextFrame();
Frame 42
_level0.challenge = 0;
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
if (_level0.level == 1) {
_level0.score = 0;
_level0.currentrank = 1;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "1- Thug";
_level0.rank2.rankani.ranktext = "1- Thug";
}
if (_level0.level == 1) {
_level0.rank2.rankani.ranktext = "1- Thug";
_level0.cardsunlocked = 0;
}
if (_level0.level == 2) {
_level0.rank2.rankani.ranktext = "2- Hoodlum";
_level0.cardsunlocked = 1;
}
if (_level0.level == 3) {
_level0.rank2.rankani.ranktext = "3- Mobster";
_level0.cardsunlocked = 1;
}
if (_level0.level == 4) {
_level0.rank2.rankani.ranktext = "4- Mob Boss";
_level0.cardsunlocked = 2;
}
if (_level0.level == 5) {
_level0.rank2.rankani.ranktext = "5- Cult Initiate";
_level0.cardsunlocked = 2;
}
if (_level0.level == 6) {
_level0.rank2.rankani.ranktext = "6- Cult Priest";
_level0.cardsunlocked = 3;
}
if (_level0.level == 7) {
_level0.rank2.rankani.ranktext = "7- Cult Leader";
_level0.cardsunlocked = 3;
}
if (_level0.level == 8) {
_level0.rank2.rankani.ranktext = "8- Cult High Priest";
_level0.cardsunlocked = 4;
}
if (_level0.level == 9) {
_level0.rank2.rankani.ranktext = "9- Ghoul";
_level0.cardsunlocked = 4;
}
if (_level0.level == 10) {
_level0.rank2.rankani.ranktext = "10- Necromancer";
_level0.cardsunlocked = 5;
}
if (_level0.level == 11) {
_level0.rank2.rankani.ranktext = "11- Deep One Spawn";
_level0.cardsunlocked = 5;
}
if (_level0.level == 12) {
_level0.rank2.rankani.ranktext = "12- Deep One Priest";
_level0.cardsunlocked = 6;
}
if (_level0.level == 13) {
_level0.rank2.rankani.ranktext = "13- Elder Deep One";
_level0.cardsunlocked = 6;
}
if (_level0.level == 14) {
_level0.rank2.rankani.ranktext = "14- Mi-Go Slave";
_level0.cardsunlocked = 7;
}
if (_level0.level == 15) {
_level0.rank2.rankani.ranktext = "15-Mi-Go Warrior";
_level0.cardsunlocked = 7;
}
if (_level0.level == 16) {
_level0.rank2.rankani.ranktext = "16- Mi-Go Surgeon";
_level0.cardsunlocked = 8;
}
if (_level0.level == 17) {
_level0.rank2.rankani.ranktext = "17- Mi-Go General";
_level0.cardsunlocked = 9;
}
if (_level0.level == 18) {
_level0.rank2.rankani.ranktext = "18- Yithian Peasant";
_level0.cardsunlocked = 10;
}
if (_level0.level == 19) {
_level0.rank2.rankani.ranktext = "19- Yithian Librarian";
_level0.cardsunlocked = 11;
}
if (_level0.level == 20) {
_level0.rank2.rankani.ranktext = "20- Yithian Scholar";
_level0.cardsunlocked = 12;
arcanemod2 = 1;
}
if (_level0.level == 21) {
_level0.rank2.rankani.ranktext = "21- Proto-Shoggoth";
_level0.cardsunlocked = 12;
arcanemod2 = 2;
}
if (_level0.level == 22) {
_level0.rank2.rankani.ranktext = "22- Slave Shoggoth";
_level0.cardsunlocked = 12;
arcanemod2 = 3;
}
if (_level0.level == 23) {
_level0.rank2.rankani.ranktext = "23- Rebel Shoggoth";
_level0.cardsunlocked = 12;
arcanemod2 = 4;
}
if (_level0.level == 24) {
_level0.rank2.rankani.ranktext = "24- Elder Thing";
_level0.cardsunlocked = 12;
arcanemod2 = 5;
}
if (_level0.level == 25) {
_level0.rank2.rankani.ranktext = "25- Servant of Hastur";
_level0.cardsunlocked = 12;
arcanemod2 = 6;
}
if (_level0.level == 26) {
_level0.rank2.rankani.ranktext = "26- King in Yellow";
_level0.cardsunlocked = 12;
arcanemod2 = 7;
}
if (_level0.level == 27) {
_level0.rank2.rankani.ranktext = "27- Nyarlatothep";
_level0.cardsunlocked = 12;
arcanemod2 = 8;
}
if (_level0.level == 28) {
_level0.rank2.rankani.ranktext = "28- The Unnameable";
_level0.cardsunlocked = 12;
arcanemod2 = 9;
}
if (_level0.level == 29) {
_level0.rank2.rankani.ranktext = "29- Spawn of Cthulhu";
_level0.cardsunlocked = 12;
arcanemod2 = 10;
}
if (_level0.level == 30) {
_level0.rank2.rankani.ranktext = "30- Great Cthulhu";
_level0.cardsunlocked = 12;
arcanemod2 = 10;
}
if (_level0.currentrank == 1) {
_level0.rank1.rankani.ranktext = "1- Thug";
}
if (_level0.currentrank == 2) {
_level0.rank1.rankani.ranktext = "2- Hoodlum";
}
if (_level0.currentrank == 3) {
_level0.rank1.rankani.ranktext = "3- Mobster";
}
if (_level0.currentrank == 4) {
_level0.rank1.rankani.ranktext = "4- Mob Boss";
}
if (_level0.currentrank == 5) {
_level0.rank1.rankani.ranktext = "5- Cult Initiate";
}
if (_level0.currentrank == 6) {
_level0.rank1.rankani.ranktext = "6- Cult Priest";
}
if (_level0.currentrank == 7) {
_level0.rank1.rankani.ranktext = "7- Cult Leader";
}
if (_level0.currentrank == 8) {
_level0.rank1.rankani.ranktext = "8- Cult High Priest";
}
if (_level0.currentrank == 9) {
_level0.rank1.rankani.ranktext = "9- Ghoul";
}
if (_level0.currentrank == 10) {
_level0.rank1.rankani.ranktext = "10- Necromancer";
}
if (_level0.currentrank == 11) {
_level0.rank1.rankani.ranktext = "11- Deep One Spawn";
}
if (_level0.currentrank == 12) {
_level0.rank1.rankani.ranktext = "12- Deep One Priest";
}
if (_level0.currentrank == 13) {
_level0.rank1.rankani.ranktext = "13- Elder Deep One";
}
if (_level0.currentrank == 14) {
_level0.rank1.rankani.ranktext = "14- Mi-Go Slave";
}
if (_level0.currentrank == 15) {
_level0.rank1.rankani.ranktext = "15- Mi-Go Warrior";
}
if (_level0.currentrank == 16) {
_level0.rank1.rankani.ranktext = "16- Mi-Go Surgeon";
}
if (_level0.currentrank == 17) {
_level0.rank1.rankani.ranktext = "17- Mi-Go General";
}
if (_level0.currentrank == 18) {
_level0.rank1.rankani.ranktext = "18- Yithian Peasant";
}
if (_level0.currentrank == 19) {
_level0.rank1.rankani.ranktext = "19- Yithian Librarian";
}
if (_level0.currentrank == 20) {
_level0.rank1.rankani.ranktext = "20- Yithian Scholar";
arcanemod1 = 1;
}
if (_level0.currentrank == 21) {
_level0.rank1.rankani.ranktext = "21- Proto-Shoggoth";
arcanemod1 = 2;
}
if (_level0.currentrank == 22) {
_level0.rank1.rankani.ranktext = "22- Slave Shoggoth";
arcanemod1 = 3;
}
if (_level0.currentrank == 23) {
_level0.rank1.rankani.ranktext = "23- Rebel Shoggoth";
arcanemod1 = 4;
}
if (_level0.currentrank == 24) {
_level0.rank1.rankani.ranktext = "24- Elder Thing";
arcanemod1 = 5;
}
if (_level0.currentrank == 25) {
_level0.rank1.rankani.ranktext = "25- Servant of Hastur";
arcanemod1 = 6;
}
if (_level0.currentrank == 26) {
_level0.rank1.rankani.ranktext = "26- King in Yellow";
arcanemod1 = 7;
}
if (_level0.currentrank == 27) {
_level0.rank1.rankani.ranktext = "27- Nyarlatothep";
arcanemod1 = 8;
}
if (_level0.currentrank == 28) {
_level0.rank1.rankani.ranktext = "28- The Unnameable";
arcanemod1 = 9;
}
if (_level0.currentrank == 29) {
_level0.rank1.rankani.ranktext = "29- Spawn of Cthulhu";
arcanemod1 = 10;
}
if (_level0.currentrank == 30) {
_level0.rank1.rankani.ranktext = "30- Great Cthulhu";
arcanemod1 = 10;
}
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 35 + (5 * _level0.currentrank);
maxvida2 = 35 + (5 * _level0.level);
if (maxvida >= 100) {
maxvida = 100;
}
if (maxvida2 >= 100) {
maxvida2 = 100;
}
lifepopup2.maxlife2 = maxvida2;
lifepopup1.maxlife = maxvida;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
if (actualcards < numcartas) {
actualcards = 24 + _level0.cardsunlocked;
}
if (_level0.gamecomplete == 1) {
actualcards = 36;
}
_level0.cardsindeck1.cardsindeck2 = actualcards;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
Frame 43
if (_level0.challenge == 1) {
_level0.rank1.rankani.ranktext = "Challenge 1";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 2) {
_level0.rank1.rankani.ranktext = "Challenge 2";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 3) {
_level0.rank1.rankani.ranktext = "Challenge 3";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 4) {
_level0.rank1.rankani.ranktext = "Challenge 4";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 5) {
_level0.rank1.rankani.ranktext = "Challenge 5";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 6) {
_level0.rank1.rankani.ranktext = "Challenge 6";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 7) {
_level0.rank1.rankani.ranktext = "Challenge 7";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 8) {
_level0.rank1.rankani.ranktext = "Challenge 8";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 9) {
_level0.rank1.rankani.ranktext = "Challenge 9";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 10) {
_level0.rank1.rankani.ranktext = "Challenge 10";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 11) {
_level0.rank1.rankani.ranktext = "Challenge 11";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 12) {
_level0.rank1.rankani.ranktext = "Challenge 12";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 13) {
_level0.rank1.rankani.ranktext = "Challenge 13";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 14) {
_level0.rank1.rankani.ranktext = "Challenge 14";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 15) {
_level0.rank1.rankani.ranktext = "Challenge 15";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 16) {
_level0.rank1.rankani.ranktext = "Challenge 16";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 17) {
_level0.rank1.rankani.ranktext = "Challenge 17";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 18) {
_level0.rank1.rankani.ranktext = "Challenge 18";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 19) {
_level0.rank1.rankani.ranktext = "Challenge 19";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 20) {
_level0.rank1.rankani.ranktext = "Challenge 20";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 21) {
_level0.rank1.rankani.ranktext = "Challenge 21";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 22) {
_level0.rank1.rankani.ranktext = "Challenge 22";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 23) {
_level0.rank1.rankani.ranktext = "Challenge 23";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 24) {
_level0.rank1.rankani.ranktext = "Challenge 24";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 25) {
_level0.rank1.rankani.ranktext = "Challenge 25";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 26) {
_level0.rank1.rankani.ranktext = "Challenge 26";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 27) {
_level0.rank1.rankani.ranktext = "Challenge 27";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge == 28) {
_level0.rank1.rankani.ranktext = "Challenge 28";
_level0.rank2.rankani.ranktext = " ";
}
if (_level0.challenge >= 1) {
_level0.lifepopup2.maxlife2 = maxvida2;
_level0.lifepopup1.maxlife = maxvida;
}
trace("Challenge is " + _level0.challenge);
Frame 85
if (_root.sound == 1) {
playgong = new Sound();
playgong.setVolume(50);
playgong.attachSound("Gong");
playgong.start();
}
Frame 95
function barajacartas() {
_level0.flagbarajar = true;
_level0.gfxbaraja.gotoAndPlay(4);
i = 0;
while (i < _level0.numcartas) {
_level0.barajar[i] = -1;
i = i + 1;
}
i = 0;
while (i < _level0.actualcards) {
_level0.condicion = false;
while (_level0.condicion == false) {
rand = Math.floor(random((_level0.actualcards * 10) - 1) / 10);
_level0.condicion = true;
k = 0;
while (k < _level0.actualcards) {
if (_level0.barajar[k] == rand) {
_level0.condicion = false;
}
k = k + 1;
}
_level0.barajar[i] = rand;
}
i = i + 1;
}
_level0.cindice = _level0.actualcards - 1;
_level0.flagbarajar = false;
trace("Cards are shuffled: index =" + _level0.cindice);
}
function calcularpuntaje(_arg1, p) {
fact = ((p == 1) ? 1 : -1);
trace(((("Score(" + _arg1) + ",") + p) + ")");
if (_arg1 > 0) {
trace("damage less than 20");
bonus = (_arg1 * 1) * fact;
_level0.damageinflicted = _level0.damageinflicted + bonus;
trace((("_level0.damageinflicted" + _level0.damageinflicted) + "+") + bonus);
}
}
function setabg() {
_level0.anclado.alfa = _level0.score;
_level0.anclado.beta = _level0.besthit;
_level0.anclado.gamma = Math.round(_level0.gametime / 1000);
_level0.calcularack();
}
function mirarcartas() {
_level0.cmalo1.gotoAndStop(2);
_level0.cmalo2.gotoAndStop(2);
_level0.cmalo3.gotoAndStop(2);
_level0.cmalo4.gotoAndStop(2);
_level0.cmalo5.gotoAndStop(2);
}
if ((_level0.challenge == 9) && (_level0.challenge9started == 1)) {
_level0.agoraphobia1 = 1;
_level0.insanity1 = 4;
_level0.agoraphobiaIcon1.gotoAndPlay(2);
_level0.challenge9started = 0;
}
if (_level0.arma1 > 0) {
_level0.marma1.gotoAndPlay(2);
} else {
_level0.marma1.gotoAndStop(1);
}
_level0.text_attack1 = _level0.arma1;
if (_level0.arma2 > 0) {
_level0.marma2.gotoAndPlay(2);
} else {
_level0.marma2.gotoAndStop(1);
}
_level0.text_attack2 = _level0.arma2;
if (_level0.escudo1 > 0) {
_level0.mescudo1.gotoAndPlay(2);
} else {
_level0.mescudo1.gotoAndStop(1);
}
_level0.text_defense1 = _level0.escudo1;
if (_level0.escudo2 > 0) {
_level0.mescudo2.gotoAndPlay(2);
} else {
_level0.mescudo2.gotoAndStop(1);
}
_level0.text_defense2 = _level0.escudo2;
if (_level0.veneno1 > 0) {
_level0.mveneno1.gotoAndPlay(2);
} else {
_level0.mveneno1.gotoAndStop(1);
}
_level0.text_poison1 = _level0.veneno1;
if (_level0.currentrank == 1) {
_level0.rank1.rankani.ranktext = "1- Thug";
}
if (_level0.currentrank == 2) {
_level0.rank1.rankani.ranktext = "2- Hoodlum";
}
if (_level0.currentrank == 3) {
_level0.rank1.rankani.ranktext = "3- Mobster";
}
if (_level0.currentrank == 4) {
_level0.rank1.rankani.ranktext = "4- Mob Boss";
}
if (_level0.currentrank == 5) {
_level0.rank1.rankani.ranktext = "5- Cult Initiate";
}
if (_level0.currentrank == 6) {
_level0.rank1.rankani.ranktext = "6- Cult Priest";
}
if (_level0.currentrank == 7) {
_level0.rank1.rankani.ranktext = "7- Cult Leader";
}
if (_level0.currentrank == 8) {
_level0.rank1.rankani.ranktext = "8- Cult High Priest";
}
if (_level0.currentrank == 9) {
_level0.rank1.rankani.ranktext = "9- Ghoul";
}
if (_level0.currentrank == 10) {
_level0.rank1.rankani.ranktext = "10- Necromancer";
}
if (_level0.currentrank == 11) {
_level0.rank1.rankani.ranktext = "11- Deep One Spawn";
}
if (_level0.currentrank == 12) {
_level0.rank1.rankani.ranktext = "12- Deep One Priest";
}
if (_level0.currentrank == 13) {
_level0.rank1.rankani.ranktext = "13- Elder Deep One";
}
if (_level0.currentrank == 14) {
_level0.rank1.rankani.ranktext = "14- Mi-Go Slave";
}
if (_level0.currentrank == 15) {
_level0.rank1.rankani.ranktext = "15- Mi-Go Warrior";
}
if (_level0.currentrank == 16) {
_level0.rank1.rankani.ranktext = "16- Mi-Go Surgeon";
}
if (_level0.currentrank == 17) {
_level0.rank1.rankani.ranktext = "17- Mi-Go General";
}
if (_level0.currentrank == 18) {
_level0.rank1.rankani.ranktext = "18- Yithian Peasant";
}
if (_level0.currentrank == 19) {
_level0.rank1.rankani.ranktext = "19- Yithian Librarian";
}
if (_level0.currentrank == 20) {
_level0.rank1.rankani.ranktext = "20- Yithian Scholar";
}
if (_level0.currentrank == 21) {
_level0.rank1.rankani.ranktext = "21- Proto-Shoggoth";
}
if (_level0.currentrank == 22) {
_level0.rank1.rankani.ranktext = "22- Slave Shoggoth";
}
if (_level0.currentrank == 23) {
_level0.rank1.rankani.ranktext = "23- Rebel Shoggoth";
}
if (_level0.currentrank == 24) {
_level0.rank1.rankani.ranktext = "24- Elder Thing";
}
if (_level0.currentrank == 25) {
_level0.rank1.rankani.ranktext = "25- Servant of Hastur";
}
if (_level0.currentrank == 26) {
_level0.rank1.rankani.ranktext = "26- King in Yellow";
}
if (_level0.currentrank == 27) {
_level0.rank1.rankani.ranktext = "27- Nyarlatothep";
}
if (_level0.currentrank == 28) {
_level0.rank1.rankani.ranktext = "28- The Unnameable";
}
if (_level0.currentrank == 29) {
_level0.rank1.rankani.ranktext = "29- Spawn of Cthulhu";
}
if (_level0.currentrank == 30) {
_level0.rank1.rankani.ranktext = "30- Great Cthulhu";
}
b1 = this.baraja1;
b2 = this.baraja2;
b3 = this.baraja3;
b4 = this.baraja4;
b5 = this.baraja5;
ba = this.barajaactiva;
bm = this.barajamalo;
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
matriz2 = new Array(b2.carta1, b2.carta2, b2.carta3, b2.carta4, b2.carta5, b2.carta6, b2.carta7, b2.carta8, b2.carta9, b2.carta10, b2.carta11, b2.carta12, b2.carta13, b2.carta14, b2.carta15, b2.carta16, b2.carta17, b2.carta18, b2.carta19, b2.carta20, b2.carta21, b2.carta22, b2.carta23, b2.carta24, b2.carta25, b2.carta26, b2.carta27, b2.carta28, b2.carta29, b2.carta30, b2.carta31, b2.carta32, b2.carta33, b2.carta34, b2.carta35, b2.carta36);
matriz3 = new Array(b3.carta1, b3.carta2, b3.carta3, b3.carta4, b3.carta5, b3.carta6, b3.carta7, b3.carta8, b3.carta9, b3.carta10, b3.carta11, b3.carta12, b3.carta13, b3.carta14, b3.carta15, b3.carta16, b3.carta17, b3.carta18, b3.carta19, b3.carta20, b3.carta21, b3.carta22, b3.carta23, b3.carta24, b3.carta25, b3.carta26, b3.carta27, b3.carta28, b3.carta29, b3.carta30, b3.carta31, b3.carta32, b3.carta33, b3.carta34, b3.carta35, b3.carta36);
matriz4 = new Array(b4.carta1, b4.carta2, b4.carta3, b4.carta4, b4.carta5, b4.carta6, b4.carta7, b4.carta8, b4.carta9, b4.carta10, b4.carta11, b4.carta12, b4.carta13, b4.carta14, b4.carta15, b4.carta16, b4.carta17, b4.carta18, b4.carta19, b4.carta20, b4.carta21, b4.carta22, b4.carta23, b4.carta24, b4.carta25, b4.carta26, b4.carta27, b4.carta28, b4.carta29, b4.carta30, b4.carta31, b4.carta32, b4.carta33, b4.carta34, b4.carta35, b4.carta36);
matriz5 = new Array(b5.carta1, b5.carta2, b5.carta3, b5.carta4, b5.carta5, b5.carta6, b5.carta7, b5.carta8, b5.carta9, b5.carta10, b5.carta11, b5.carta12, b5.carta13, b5.carta14, b5.carta15, b5.carta16, b5.carta17, b5.carta18, b5.carta19, b5.carta20, b5.carta21, b5.carta22, b5.carta23, b5.carta24, b5.carta25, b5.carta26, b5.carta27, b5.carta28, b5.carta29, b5.carta30, b5.carta31, b5.carta32, b5.carta33, b5.carta34, b5.carta35, b5.carta36);
bactiva = new Array(ba.carta1, ba.carta2, ba.carta3, ba.carta4, ba.carta5, ba.carta6, ba.carta7, ba.carta8, ba.carta9, ba.carta10, ba.carta11, ba.carta12, ba.carta13, ba.carta14, ba.carta15, ba.carta16, ba.carta17, ba.carta18, ba.carta19, ba.carta20, ba.carta21, ba.carta22, ba.carta23, ba.carta24, ba.carta25, ba.carta26, ba.carta27, ba.carta28, ba.carta29, ba.carta30, ba.carta31, ba.carta32, ba.carta33, ba.carta34, ba.carta35, ba.carta36);
barmalo = new Array(bm.carta1, bm.carta2, bm.carta3, bm.carta4, bm.carta5, bm.carta6, bm.carta7, bm.carta8, bm.carta9, bm.carta10, bm.carta11, bm.carta12, bm.carta13, bm.carta14, bm.carta15, bm.carta16, bm.carta17, bm.carta18, bm.carta19, bm.carta20, bm.carta21, bm.carta22, bm.carta23, bm.carta24, bm.carta25, bm.carta26, bm.carta27, bm.carta28, bm.carta29, bm.carta30, bm.carta31, bm.carta32, bm.carta33, bm.carta34, bm.carta35, bm.carta36);
if (_level0.challenge == 9) {
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta20, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
matriz2 = new Array(b2.carta1, b2.carta2, b2.carta3, b2.carta4, b2.carta5, b2.carta6, b2.carta7, b2.carta8, b2.carta9, b2.carta10, b2.carta11, b2.carta12, b2.carta13, b2.carta14, b2.carta15, b2.carta16, b2.carta17, b2.carta18, b2.carta19, b2.carta20, b2.carta20, b2.carta22, b2.carta23, b2.carta24, b2.carta25, b2.carta26, b2.carta27, b2.carta28, b2.carta29, b2.carta30, b2.carta31, b2.carta32, b2.carta33, b2.carta34, b2.carta35, b2.carta36);
matriz3 = new Array(b3.carta1, b3.carta2, b3.carta3, b3.carta4, b3.carta5, b3.carta6, b3.carta7, b3.carta8, b3.carta9, b3.carta10, b3.carta11, b3.carta12, b3.carta13, b3.carta14, b3.carta15, b3.carta16, b3.carta17, b3.carta18, b3.carta19, b3.carta20, b3.carta20, b3.carta22, b3.carta23, b3.carta24, b3.carta25, b3.carta26, b3.carta27, b3.carta28, b3.carta29, b3.carta30, b3.carta31, b3.carta32, b3.carta33, b3.carta34, b3.carta35, b3.carta36);
matriz4 = new Array(b4.carta1, b4.carta2, b4.carta3, b4.carta4, b4.carta5, b4.carta6, b4.carta7, b4.carta8, b4.carta9, b4.carta10, b4.carta11, b4.carta12, b4.carta13, b4.carta14, b4.carta15, b4.carta16, b4.carta17, b4.carta18, b4.carta19, b4.carta20, b4.carta20, b4.carta22, b4.carta23, b4.carta24, b4.carta25, b4.carta26, b4.carta27, b4.carta28, b4.carta29, b4.carta30, b4.carta31, b4.carta32, b4.carta33, b4.carta34, b4.carta35, b4.carta36);
matriz5 = new Array(b5.carta1, b5.carta2, b5.carta3, b5.carta4, b5.carta5, b5.carta6, b5.carta7, b5.carta8, b5.carta9, b5.carta10, b5.carta11, b5.carta12, b5.carta13, b5.carta14, b5.carta15, b5.carta16, b5.carta17, b5.carta18, b5.carta19, b5.carta20, b5.carta20, b5.carta22, b5.carta23, b5.carta24, b5.carta25, b5.carta26, b5.carta27, b5.carta28, b5.carta29, b5.carta30, b5.carta31, b5.carta32, b5.carta33, b5.carta34, b5.carta35, b5.carta36);
bactiva = new Array(ba.carta1, ba.carta2, ba.carta3, ba.carta4, ba.carta5, ba.carta6, ba.carta7, ba.carta8, ba.carta9, ba.carta10, ba.carta11, ba.carta12, ba.carta13, ba.carta14, ba.carta15, ba.carta16, ba.carta17, ba.carta18, ba.carta19, ba.carta20, ba.carta20, ba.carta22, ba.carta23, ba.carta24, ba.carta25, ba.carta26, ba.carta27, ba.carta28, ba.carta29, ba.carta30, ba.carta31, ba.carta32, ba.carta33, ba.carta34, ba.carta35, ba.carta36);
barmalo = new Array(bm.carta1, bm.carta2, bm.carta3, bm.carta4, bm.carta5, bm.carta6, bm.carta7, bm.carta8, bm.carta9, bm.carta10, bm.carta11, bm.carta12, bm.carta13, bm.carta14, bm.carta15, bm.carta16, bm.carta17, bm.carta18, bm.carta19, bm.carta20, bm.carta21, bm.carta22, bm.carta23, bm.carta24, bm.carta25, bm.carta26, bm.carta27, bm.carta28, bm.carta29, bm.carta30, bm.carta31, bm.carta32, bm.carta33, bm.carta34, bm.carta35, bm.carta36);
}
if (_level0.challenge == 12) {
matriz1 = new Array(b1.carta3, b1.carta4, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta8, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
matriz2 = new Array(b2.carta3, b2.carta4, b2.carta3, b2.carta4, b2.carta5, b2.carta6, b2.carta8, b2.carta8, b2.carta9, b2.carta10, b2.carta11, b2.carta12, b2.carta13, b2.carta14, b2.carta15, b2.carta16, b2.carta17, b2.carta18, b2.carta19, b2.carta20, b2.carta21, b2.carta22, b2.carta23, b2.carta24, b2.carta25, b2.carta26, b2.carta27, b2.carta28, b2.carta29, b2.carta30, b2.carta31, b2.carta32, b2.carta33, b2.carta34, b2.carta35, b2.carta36);
matriz3 = new Array(b3.carta3, b3.carta4, b3.carta3, b3.carta4, b3.carta5, b3.carta6, b3.carta8, b3.carta8, b3.carta9, b3.carta10, b3.carta11, b3.carta12, b3.carta13, b3.carta14, b3.carta15, b3.carta16, b3.carta17, b3.carta18, b3.carta19, b3.carta20, b3.carta21, b3.carta22, b3.carta23, b3.carta24, b3.carta25, b3.carta26, b3.carta27, b3.carta28, b3.carta29, b3.carta30, b3.carta31, b3.carta32, b3.carta33, b3.carta34, b3.carta35, b3.carta36);
matriz4 = new Array(b4.carta3, b4.carta4, b4.carta3, b4.carta4, b4.carta5, b4.carta6, b4.carta8, b4.carta8, b4.carta9, b4.carta10, b4.carta11, b4.carta12, b4.carta13, b4.carta14, b4.carta15, b4.carta16, b4.carta17, b4.carta18, b4.carta19, b4.carta20, b4.carta21, b4.carta22, b4.carta23, b4.carta24, b4.carta25, b4.carta26, b4.carta27, b4.carta28, b4.carta29, b4.carta30, b4.carta31, b4.carta32, b4.carta33, b4.carta34, b4.carta35, b4.carta36);
matriz5 = new Array(b5.carta3, b5.carta4, b5.carta3, b5.carta4, b5.carta5, b5.carta6, b5.carta8, b5.carta8, b5.carta9, b5.carta10, b5.carta11, b5.carta12, b5.carta13, b5.carta14, b5.carta15, b5.carta16, b5.carta17, b5.carta18, b5.carta19, b5.carta20, b5.carta21, b5.carta22, b5.carta23, b5.carta24, b5.carta25, b5.carta26, b5.carta27, b5.carta28, b5.carta29, b5.carta30, b5.carta31, b5.carta32, b5.carta33, b5.carta34, b5.carta35, b5.carta36);
bactiva = new Array(ba.carta3, ba.carta4, ba.carta3, ba.carta4, ba.carta5, ba.carta6, ba.carta8, ba.carta8, ba.carta9, ba.carta10, ba.carta11, ba.carta12, ba.carta13, ba.carta14, ba.carta15, ba.carta16, ba.carta17, ba.carta18, ba.carta19, ba.carta20, ba.carta21, ba.carta22, ba.carta23, ba.carta24, ba.carta25, ba.carta26, ba.carta27, ba.carta28, ba.carta29, ba.carta30, ba.carta31, ba.carta32, ba.carta33, ba.carta34, ba.carta35, ba.carta36);
barmalo = new Array(bm.carta1, bm.carta2, bm.carta3, bm.carta4, bm.carta5, bm.carta6, bm.carta7, bm.carta8, bm.carta9, bm.carta10, bm.carta11, bm.carta12, bm.carta13, bm.carta14, bm.carta15, bm.carta16, bm.carta17, bm.carta18, bm.carta19, bm.carta20, bm.carta21, bm.carta22, bm.carta23, bm.carta24, bm.carta25, bm.carta26, bm.carta27, bm.carta28, bm.carta29, bm.carta30, bm.carta31, bm.carta32, bm.carta33, bm.carta34, bm.carta35, bm.carta36);
}
if (_level0.challenge == 13) {
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta32, b1.carta34, b1.carta35, b1.carta36);
matriz2 = new Array(b2.carta1, b2.carta2, b2.carta3, b2.carta4, b2.carta5, b2.carta6, b2.carta7, b2.carta8, b2.carta9, b2.carta10, b2.carta11, b2.carta12, b2.carta13, b2.carta14, b2.carta15, b2.carta16, b2.carta17, b2.carta18, b2.carta19, b2.carta20, b2.carta21, b2.carta22, b2.carta23, b2.carta24, b2.carta25, b2.carta26, b2.carta27, b2.carta28, b2.carta29, b2.carta30, b2.carta31, b2.carta32, b2.carta32, b2.carta34, b2.carta35, b2.carta36);
matriz3 = new Array(b3.carta1, b3.carta2, b3.carta3, b3.carta4, b3.carta5, b3.carta6, b3.carta7, b3.carta8, b3.carta9, b3.carta10, b3.carta11, b3.carta12, b3.carta13, b3.carta14, b3.carta15, b3.carta16, b3.carta17, b3.carta18, b3.carta19, b3.carta20, b3.carta21, b3.carta22, b3.carta23, b3.carta24, b3.carta25, b3.carta26, b3.carta27, b3.carta28, b3.carta29, b3.carta30, b3.carta31, b3.carta32, b3.carta32, b3.carta34, b3.carta35, b3.carta36);
matriz4 = new Array(b4.carta1, b4.carta2, b4.carta3, b4.carta4, b4.carta5, b4.carta6, b4.carta7, b4.carta8, b4.carta9, b4.carta10, b4.carta11, b4.carta12, b4.carta13, b4.carta14, b4.carta15, b4.carta16, b4.carta17, b4.carta18, b4.carta19, b4.carta20, b4.carta21, b4.carta22, b4.carta23, b4.carta24, b4.carta25, b4.carta26, b4.carta27, b4.carta28, b4.carta29, b4.carta30, b4.carta31, b4.carta32, b4.carta32, b4.carta34, b4.carta35, b4.carta36);
matriz5 = new Array(b5.carta1, b5.carta2, b5.carta3, b5.carta4, b5.carta5, b5.carta6, b5.carta7, b5.carta8, b5.carta9, b5.carta10, b5.carta11, b5.carta12, b5.carta13, b5.carta14, b5.carta15, b5.carta16, b5.carta17, b5.carta18, b5.carta19, b5.carta20, b5.carta21, b5.carta22, b5.carta23, b5.carta24, b5.carta25, b5.carta26, b5.carta27, b5.carta28, b5.carta29, b5.carta30, b5.carta31, b5.carta32, b5.carta32, b5.carta34, b5.carta35, b5.carta36);
bactiva = new Array(ba.carta1, ba.carta2, ba.carta3, ba.carta4, ba.carta5, ba.carta6, ba.carta7, ba.carta8, ba.carta9, ba.carta10, ba.carta11, ba.carta12, ba.carta13, ba.carta14, ba.carta15, ba.carta16, ba.carta17, ba.carta18, ba.carta19, ba.carta20, ba.carta21, ba.carta22, ba.carta23, ba.carta24, ba.carta25, ba.carta26, ba.carta27, ba.carta28, ba.carta29, ba.carta30, ba.carta31, ba.carta32, ba.carta32, ba.carta34, ba.carta35, ba.carta36);
barmalo = new Array(bm.carta1, bm.carta2, bm.carta3, bm.carta4, bm.carta5, bm.carta6, bm.carta7, bm.carta8, bm.carta9, bm.carta10, bm.carta11, bm.carta12, bm.carta13, bm.carta14, bm.carta15, bm.carta16, bm.carta17, bm.carta18, bm.carta19, bm.carta20, bm.carta21, bm.carta22, bm.carta23, bm.carta24, bm.carta25, bm.carta26, bm.carta27, bm.carta28, bm.carta29, bm.carta30, bm.carta31, bm.carta32, bm.carta32, bm.carta34, bm.carta35, bm.carta36);
}
if (_level0.challenge == 14) {
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta11, b1.carta14, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta18, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta25, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta35, b1.carta35, b1.carta36);
matriz2 = new Array(b2.carta1, b2.carta2, b2.carta3, b2.carta4, b2.carta5, b2.carta6, b2.carta7, b2.carta8, b2.carta9, b2.carta10, b2.carta11, b2.carta11, b2.carta14, b2.carta14, b2.carta15, b2.carta16, b2.carta17, b2.carta18, b2.carta18, b2.carta20, b2.carta21, b2.carta22, b2.carta23, b2.carta25, b2.carta25, b2.carta26, b2.carta27, b2.carta28, b2.carta29, b2.carta30, b2.carta31, b2.carta32, b2.carta33, b2.carta35, b2.carta35, b2.carta36);
matriz3 = new Array(b3.carta1, b3.carta2, b3.carta3, b3.carta4, b3.carta5, b3.carta6, b3.carta7, b3.carta8, b3.carta9, b3.carta10, b3.carta11, b3.carta11, b3.carta14, b3.carta14, b3.carta15, b3.carta16, b3.carta17, b3.carta18, b3.carta18, b3.carta20, b3.carta21, b3.carta22, b3.carta23, b3.carta25, b3.carta25, b3.carta26, b3.carta27, b3.carta28, b3.carta29, b3.carta30, b3.carta31, b3.carta32, b3.carta33, b3.carta35, b3.carta35, b3.carta36);
matriz4 = new Array(b4.carta1, b4.carta2, b4.carta3, b4.carta4, b4.carta5, b4.carta6, b4.carta7, b4.carta8, b4.carta9, b4.carta10, b4.carta11, b4.carta11, b4.carta14, b4.carta14, b4.carta15, b4.carta16, b4.carta17, b4.carta18, b4.carta18, b4.carta20, b4.carta21, b4.carta22, b4.carta23, b4.carta25, b4.carta25, b4.carta26, b4.carta27, b4.carta28, b4.carta29, b4.carta30, b4.carta31, b4.carta32, b4.carta33, b4.carta35, b4.carta35, b4.carta36);
matriz5 = new Array(b5.carta1, b5.carta2, b5.carta3, b5.carta4, b5.carta5, b5.carta6, b5.carta7, b5.carta8, b5.carta9, b5.carta10, b5.carta11, b5.carta11, b5.carta14, b5.carta14, b5.carta15, b5.carta16, b5.carta17, b5.carta18, b5.carta18, b5.carta20, b5.carta21, b5.carta22, b5.carta23, b5.carta25, b5.carta25, b5.carta26, b5.carta27, b5.carta28, b5.carta29, b5.carta30, b5.carta31, b5.carta32, b5.carta33, b5.carta35, b5.carta35, b5.carta36);
bactiva = new Array(ba.carta1, ba.carta2, ba.carta3, ba.carta4, ba.carta5, ba.carta6, ba.carta7, ba.carta8, ba.carta9, ba.carta10, ba.carta11, ba.carta11, ba.carta14, ba.carta14, ba.carta15, ba.carta16, ba.carta17, ba.carta18, ba.carta18, ba.carta20, ba.carta21, ba.carta22, ba.carta23, ba.carta25, ba.carta25, ba.carta26, ba.carta27, ba.carta28, ba.carta29, ba.carta30, ba.carta31, ba.carta32, ba.carta33, ba.carta35, ba.carta35, ba.carta36);
barmalo = new Array(bm.carta1, bm.carta2, bm.carta3, bm.carta4, bm.carta5, bm.carta6, bm.carta7, bm.carta8, bm.carta9, bm.carta10, bm.carta11, bm.carta12, bm.carta13, bm.carta14, bm.carta15, bm.carta16, bm.carta17, bm.carta18, bm.carta19, bm.carta20, bm.carta21, bm.carta22, bm.carta23, bm.carta24, bm.carta25, bm.carta26, bm.carta27, bm.carta28, bm.carta29, bm.carta30, bm.carta31, bm.carta32, bm.carta33, bm.carta34, bm.carta35, bm.carta36);
}
if (_level0.challenge == 15) {
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta6, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta11, b1.carta14, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta18, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta25, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta32, b1.carta35, b1.carta35, b1.carta36);
matriz2 = new Array(b2.carta1, b2.carta2, b2.carta3, b2.carta4, b2.carta5, b2.carta6, b2.carta6, b2.carta8, b2.carta9, b2.carta10, b2.carta11, b2.carta11, b2.carta14, b2.carta14, b2.carta15, b2.carta16, b2.carta17, b2.carta18, b2.carta18, b2.carta20, b2.carta21, b2.carta22, b2.carta23, b2.carta25, b2.carta25, b2.carta26, b2.carta27, b2.carta28, b2.carta29, b2.carta30, b2.carta31, b2.carta32, b2.carta32, b2.carta35, b2.carta35, b2.carta36);
matriz3 = new Array(b3.carta1, b3.carta2, b3.carta3, b3.carta4, b3.carta5, b3.carta6, b3.carta6, b3.carta8, b3.carta9, b3.carta10, b3.carta11, b3.carta11, b3.carta14, b3.carta14, b3.carta15, b3.carta16, b3.carta17, b3.carta18, b3.carta18, b3.carta20, b3.carta21, b3.carta22, b3.carta23, b3.carta25, b3.carta25, b3.carta26, b3.carta27, b3.carta28, b3.carta29, b3.carta30, b3.carta31, b3.carta32, b3.carta32, b3.carta35, b3.carta35, b3.carta36);
matriz4 = new Array(b4.carta1, b4.carta2, b4.carta3, b4.carta4, b4.carta5, b4.carta6, b4.carta6, b4.carta8, b4.carta9, b4.carta10, b4.carta11, b4.carta11, b4.carta14, b4.carta14, b4.carta15, b4.carta16, b4.carta17, b4.carta18, b4.carta18, b4.carta20, b4.carta21, b4.carta22, b4.carta23, b4.carta25, b4.carta25, b4.carta26, b4.carta27, b4.carta28, b4.carta29, b4.carta30, b4.carta31, b4.carta32, b4.carta32, b4.carta35, b4.carta35, b4.carta36);
matriz5 = new Array(b5.carta1, b5.carta2, b5.carta3, b5.carta4, b5.carta5, b5.carta6, b5.carta6, b5.carta8, b5.carta9, b5.carta10, b5.carta11, b5.carta11, b5.carta14, b5.carta14, b5.carta15, b5.carta16, b5.carta17, b5.carta18, b5.carta18, b5.carta20, b5.carta21, b5.carta22, b5.carta23, b5.carta25, b5.carta25, b5.carta26, b5.carta27, b5.carta28, b5.carta29, b5.carta30, b5.carta31, b5.carta32, b5.carta32, b5.carta35, b5.carta35, b5.carta36);
bactiva = new Array(ba.carta1, ba.carta2, ba.carta3, ba.carta4, ba.carta5, ba.carta6, ba.carta6, ba.carta8, ba.carta9, ba.carta10, ba.carta11, ba.carta11, ba.carta14, ba.carta14, ba.carta15, ba.carta16, ba.carta17, ba.carta18, ba.carta18, ba.carta20, ba.carta21, ba.carta22, ba.carta23, ba.carta25, ba.carta25, ba.carta26, ba.carta27, ba.carta28, ba.carta29, ba.carta30, ba.carta31, ba.carta32, ba.carta32, ba.carta35, ba.carta35, ba.carta36);
barmalo = new Array(bm.carta1, bm.carta2, bm.carta3, bm.carta4, bm.carta5, bm.carta6, bm.carta7, bm.carta8, bm.carta9, bm.carta10, bm.carta11, bm.carta12, bm.carta13, bm.carta14, bm.carta15, bm.carta16, bm.carta17, bm.carta18, bm.carta19, bm.carta20, bm.carta21, bm.carta22, bm.carta23, bm.carta24, bm.carta25, bm.carta26, bm.carta27, bm.carta28, bm.carta29, bm.carta30, bm.carta31, bm.carta32, bm.carta33, bm.carta34, bm.carta35, bm.carta36);
}
if (_level0.challenge == 16) {
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta34, b1.carta34, b1.carta35, b1.carta36);
matriz2 = new Array(b2.carta1, b2.carta2, b2.carta3, b2.carta4, b2.carta5, b2.carta6, b2.carta7, b2.carta8, b2.carta9, b2.carta10, b2.carta11, b2.carta12, b2.carta13, b2.carta14, b2.carta15, b2.carta16, b2.carta17, b2.carta18, b2.carta19, b2.carta20, b2.carta21, b2.carta22, b2.carta23, b2.carta24, b2.carta25, b2.carta26, b2.carta27, b2.carta28, b2.carta29, b2.carta30, b2.carta31, b2.carta32, b2.carta34, b2.carta34, b2.carta35, b2.carta36);
matriz3 = new Array(b3.carta1, b3.carta2, b3.carta3, b3.carta4, b3.carta5, b3.carta6, b3.carta7, b3.carta8, b3.carta9, b3.carta10, b3.carta11, b3.carta12, b3.carta13, b3.carta14, b3.carta15, b3.carta16, b3.carta17, b3.carta18, b3.carta19, b3.carta20, b3.carta21, b3.carta22, b3.carta23, b3.carta24, b3.carta25, b3.carta26, b3.carta27, b3.carta28, b3.carta29, b3.carta30, b3.carta31, b3.carta32, b3.carta34, b3.carta34, b3.carta35, b3.carta36);
matriz4 = new Array(b4.carta1, b4.carta2, b4.carta3, b4.carta4, b4.carta5, b4.carta6, b4.carta7, b4.carta8, b4.carta9, b4.carta10, b4.carta11, b4.carta12, b4.carta13, b4.carta14, b4.carta15, b4.carta16, b4.carta17, b4.carta18, b4.carta19, b4.carta20, b4.carta21, b4.carta22, b4.carta23, b4.carta24, b4.carta25, b4.carta26, b4.carta27, b4.carta28, b4.carta29, b4.carta30, b4.carta31, b4.carta32, b4.carta34, b4.carta34, b4.carta35, b4.carta36);
matriz5 = new Array(b5.carta1, b5.carta2, b5.carta3, b5.carta4, b5.carta5, b5.carta6, b5.carta7, b5.carta8, b5.carta9, b5.carta10, b5.carta11, b5.carta12, b5.carta13, b5.carta14, b5.carta15, b5.carta16, b5.carta17, b5.carta18, b5.carta19, b5.carta20, b5.carta21, b5.carta22, b5.carta23, b5.carta24, b5.carta25, b5.carta26, b5.carta27, b5.carta28, b5.carta29, b5.carta30, b5.carta31, b5.carta32, b5.carta34, b5.carta34, b5.carta35, b5.carta36);
bactiva = new Array(ba.carta1, ba.carta2, ba.carta3, ba.carta4, ba.carta5, ba.carta6, ba.carta7, ba.carta8, ba.carta9, ba.carta10, ba.carta11, ba.carta12, ba.carta13, ba.carta14, ba.carta15, ba.carta16, ba.carta17, ba.carta18, ba.carta19, ba.carta20, ba.carta21, ba.carta22, ba.carta23, ba.carta24, ba.carta25, ba.carta26, ba.carta27, ba.carta28, ba.carta29, ba.carta30, ba.carta31, ba.carta32, ba.carta34, ba.carta34, ba.carta35, ba.carta36);
barmalo = new Array(bm.carta1, bm.carta2, bm.carta3, bm.carta4, bm.carta5, bm.carta6, bm.carta7, bm.carta8, bm.carta9, bm.carta10, bm.carta11, bm.carta12, bm.carta13, bm.carta14, bm.carta15, bm.carta16, bm.carta17, bm.carta18, bm.carta19, bm.carta20, bm.carta21, bm.carta22, bm.carta23, bm.carta24, bm.carta25, bm.carta26, bm.carta27, bm.carta28, bm.carta29, bm.carta30, bm.carta31, bm.carta32, bm.carta34, bm.carta34, bm.carta35, bm.carta36);
}
barajar = new Array(numcartas);
cindice = actualcards - 1;
barajacartas();
carmalo = new Array(cmalo1, cmalo2, cmalo3, cmalo4, cmalo5);
barajas = new Array(matriz1, matriz2, matriz3, matriz4, matriz5);
i = 0;
while (i < numcartas) {
bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < numcartas) {
barmalo[i]._visible = false;
i = i + 1;
}
bm._visible = false;
k = 0;
while (k < 5) {
i = 0;
while (i < numcartas) {
barajas[k][i]._visible = false;
i = i + 1;
}
visible = barajar[cindice];
cindice = cindice - 1;
barajas[k][visible]._visible = true;
k = k + 1;
}
cartasp2 = new Array(5);
k = 0;
while (k < 5) {
cartasp2[k] = barajar[cindice];
cindice = cindice - 1;
k = k + 1;
}
stop();
Frame 96
nextFrame();
Frame 97
stop();
Frame 98
gotoAndStop ("play2");
prevFrame();
Frame 102
stop();
Frame 104
stop();
Frame 105
stop();
Frame 112
stop();
Symbol 47 Button
on (release) {
_level0.level = 20;
_level0.gotoAndStop("final");
_level0.setabg();
}
Symbol 50 Button
on (release) {
stopAllSounds();
_level0.gotoAndPlay("game");
}
Symbol 53 Button
on (release) {
_level0.level = 1;
_level0.gamecomplete = 0;
_level0.cardsunlocked = 0;
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 56 Button
on (release) {
stopAllSounds();
_root.setCookie("cardgame", "level", _level0.level);
_root.setCookie("cardgame", "score", _level0.score);
_root.setCookie("cardgame", "rank", _level0.currentrank);
_root.setCookie("cardgame", "bestattack", _level0.highbesthit);
_root.setCookie("cardgame", "higharcane", _level0.higharcane);
_root.setCookie("cardgame", "highelder", _level0.highelder);
_root.setCookie("cardgame", "highsanity", _level0.highsanity);
_root.setCookie("cardgame", "hightaint", _level0.hightaint);
_root.setCookie("cardgame", "time", _level0.minutes);
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 90 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 91 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 3;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 2;
_level0.elderthing = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 106 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 107 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = -2;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 7;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 1;
_level0.elderthing = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 119 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 120 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 4;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 131 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 132 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 9;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 3;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 146 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 147 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 3;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.elderthing = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 1;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 1;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 158 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 159 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 7;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 1;
_level0.elderthing = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 169 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 170 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 10;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 3;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 2;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.ignoreelder = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 182 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 183 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 3;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 2;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 1;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 194 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 195 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 5;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 1;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 2;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 208 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 209 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 14;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispelc = 0;
_level0.dispels = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 4;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 224 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 225 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 4;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 3;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 1;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 234 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 235 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 7;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.elderthing = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 1;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 1;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 243 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 244 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 5;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.elderthing = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 1;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 1;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 256 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 257 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 1;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 1;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.elderthing = 0;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 270 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 271 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 2;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 2;
_level0.sanitygain = 0;
_level0.sanityloss = 5;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 283 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 284 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 2;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 1;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 3;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 297 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 298 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 6;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 1;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 4;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 1;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 312 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 313 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 1;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 323 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 324 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 8;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 3;
_level0.sanitygain = 0;
_level0.sanityloss = 6;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 336 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 337 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 2;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 1;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 348 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 349 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.elderthing = 0;
_level0.sanitygain = 15;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 361 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 362 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispelc = 1;
_level0.dispels = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 1;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 8;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 375 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 376 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 1;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 1;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 388 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 389 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 3;
_level0.contra1aux = 2;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.curaveneno = 1;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 1;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 1;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 399 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 400 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 5;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 3;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 411 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 412 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 1;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 425 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 426 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 2;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 1;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 0;
_level0.sanitygain = 5;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 442 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 443 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispelc = 0;
_level0.dispels = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 1;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 3;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 452 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 453 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 12;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispelc = 0;
_level0.dispels = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.sanitycost = 4;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 1;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 466 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 467 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 10;
_level0.ceguera1aux = 0;
_level0.arma1aux = 2;
_level0.escudo1aux = 2;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitygain = 0;
_level0.sanitycost = 4;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 480 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 481 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitycost = 3;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 5;
_level0.betrayed = 0;
_level0.ignoreelder = 0;
_level0.elderthing = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 494 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 495 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispelc = 0;
_level0.dispels = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.paraliza = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.sanitycost = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 4;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 513 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 514 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 8;
_level0.paraliza = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 10;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.sanitycost = 8;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 1;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 526 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 527 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.paraliza = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 2;
_level0.escudo1aux = 4;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispelc = 0;
_level0.dispels = 0;
_level0.curaveneno = 1;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.sanitygain = 0;
_level0.sanitycost = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 537 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 538 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.paraliza = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.sanitycost = 0;
_level0.sanitygain = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 6;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 552 Button
on (release) {
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
if (_level0.barajas[this._parent.k][i]._visible != true) {
} else {
visible = i;
}
i = i + 1;
}
_level0.bactiva[visible]._visible = true;
_level0.carbueno = visible;
_level0.numbar = this._parent.k;
_level0.turno = 1;
_level0.ejecutar.gotoAndStop(2);
}
Symbol 553 MovieClip Frame 1
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.paraliza = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.sanitygain = 0;
_level0.sanitycost = 6;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 7;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
Symbol 554 MovieClip Frame 1
k = 0;
if (_level0.challenge == 9) {
this.carta21._visible = false;
}
if (_level0.challenge == 12) {
this.carta1._visible = false;
this.carta2._visible = false;
this.carta7._visible = false;
}
if (_level0.challenge == 13) {
this.carta33._visible = false;
}
if (_level0.challenge == 14) {
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
}
if (_level0.challenge == 15) {
this.carta7._visible = false;
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
this.carta33._visible = false;
}
if (_level0.challenge == 16) {
this.carta33._visible = false;
}
stop();
Symbol 557 MovieClip Frame 1
button.useHandCursor = false;
Symbol 558 MovieClip Frame 1
lifepoints = 0;
auxvida = _level0.vida1;
if (auxvida == _level0.maxvida) {
if (_level0.level <= 2) {
perfectlife = 30;
} else if ((_level0.level > 2) && (_level0.level <= 6)) {
perfectlife = 35;
} else {
perfectlife = 40;
}
} else {
perfectlife = 0;
}
if (_level0.vida1 == 0) {
currenttotaltag._visible = false;
currentranktag._visible = false;
finalranktag._visible = true;
finaltotaltag._visible = true;
} else {
currenttotaltag._visible = true;
currentranktag._visible = true;
finalranktag._visible = false;
finaltotaltag._visible = false;
}
life = 0;
damageinflicteda = _level0.damageinflicted;
damagereceived = _level0.matchdamagereceived;
trace("damagereceived:" + damagereceived);
cardsused = _level0.matchcardsused;
trace("cardsused:" + cardsused);
totalextra = 0;
totalscore = 0;
Symbol 558 MovieClip Frame 11
botonmask.useHandCursor = false;
cliplevel.texto = levelpoints;
cliplifeleft.texto = auxvida;
clipbesthit.texto = _level0.besthit;
clipdamageinflicted.texto = damageinflicteda;
clipdamagereceived.texto = damagereceived;
clipremainingsanity.texto = _level0.sanity1;
if (_level0.currentrank == 1) {
rank1.rankani.ranktext = "1- Thug";
}
if (_level0.currentrank == 2) {
rank1.rankani.ranktext = "2- Hoodlum";
}
if (_level0.currentrank == 3) {
rank1.rankani.ranktext = "3- Mobster";
}
if (_level0.currentrank == 4) {
rank1.rankani.ranktext = "4- Mob Boss";
}
if (_level0.currentrank == 5) {
rank1.rankani.ranktext = "5- Cult Initiate";
}
if (_level0.currentrank == 6) {
rank1.rankani.ranktext = "6- Cult Priest";
}
if (_level0.currentrank == 7) {
rank1.rankani.ranktext = "7- Cult Leader";
}
if (_level0.currentrank == 8) {
rank1.rankani.ranktext = "8- Cult High Priest";
}
if (_level0.currentrank == 9) {
rank1.rankani.ranktext = "9- Ghoul";
}
if (_level0.currentrank == 10) {
rank1.rankani.ranktext = "10- Necromancer";
}
if (_level0.currentrank == 11) {
rank1.rankani.ranktext = "11- Deep One Spawn";
}
if (_level0.currentrank == 12) {
rank1.rankani.ranktext = "12- Deep One Priest";
}
if (_level0.currentrank == 13) {
rank1.rankani.ranktext = "13- Elder Deep One";
}
if (_level0.currentrank == 14) {
rank1.rankani.ranktext = "14- Mi-Go Slave";
}
if (_level0.currentrank == 15) {
rank1.rankani.ranktext = "15- Mi-Go Warrior";
}
if (_level0.currentrank == 16) {
rank1.rankani.ranktext = "16- Mi-Go Surgeon";
}
if (_level0.currentrank == 17) {
rank1.rankani.ranktext = "17- Mi-Go General";
}
if (_level0.currentrank == 18) {
rank1.rankani.ranktext = "18- Yithian Peasant";
}
if (_level0.currentrank == 19) {
rank1.rankani.ranktext = "19- Yithian Librarian";
}
if (_level0.currentrank == 20) {
rank1.rankani.ranktext = "20- Yithian Scholar";
}
if (_level0.currentrank == 21) {
rank1.rankani.ranktext = "21- Proto-Shoggoth";
}
if (_level0.currentrank == 22) {
rank1.rankani.ranktext = "22- Slave Shoggoth";
}
if (_level0.currentrank == 23) {
rank1.rankani.ranktext = "23- Rebel Shoggoth";
}
if (_level0.currentrank == 24) {
rank1.rankani.ranktext = "24- Elder Thing";
}
if (_level0.currentrank == 25) {
rank1.rankani.ranktext = "25- Servant of Hastur";
}
if (_level0.currentrank == 26) {
rank1.rankani.ranktext = "26- King in Yellow";
}
if (_level0.currentrank == 27) {
rank1.rankani.ranktext = "27- Nyarlatothep";
}
if (_level0.currentrank == 28) {
rank1.rankani.ranktext = "28- The Unnameable";
}
if (_level0.currentrank == 29) {
rank1.rankani.ranktext = "29- Spawn of Cthulhu";
}
if (_level0.currentrank == 30) {
rank1.rankani.ranktext = "30- Great Cthulhu";
}
this.nextlevel._visible = false;
this.finalstats._visible = false;
this.returnmenu._visible = false;
this.autosave._visible = false;
this.savebut._visible = false;
Symbol 558 MovieClip Frame 34
if (_level0.level < (_level0.maxlevel + 1)) {
_level0.level = _level0.level + 1;
}
cliplifeleft.texto = _level0.vida1;
clipdamagereceived.texto = damagereceived;
clipremainingsanity.texto = _level0.sanity1;
clipdamageinflicted.texto = damageinflicteda;
totalextra = (((_level0.vida1 + _level0.sanity1) + damageinflicteda) + _level0.besthit) - damagereceived;
cliptotalextra.texto = totalextra;
cliptotalscore.texto = _level0.score + totalextra;
_level0.score = _level0.score + totalextra;
clipmyscore.texto = _level0.score - totalextra;
if (_level0.score <= 49) {
newrank.rankani.ranktext = "1- Thug";
_level0.currentrank = 1;
}
if ((_level0.score >= 50) && (_level0.score <= 99)) {
newrank.rankani.ranktext = "2- Hoodlum";
_level0.currentrank = 2;
}
if ((_level0.score >= 100) && (_level0.score <= 149)) {
newrank.rankani.ranktext = "3- Mobster";
_level0.currentrank = 3;
}
if ((_level0.score >= 150) && (_level0.score <= 249)) {
newrank.rankani.ranktext = "4- Mob Boss";
_level0.currentrank = 4;
}
if ((_level0.score >= 250) && (_level0.score <= 349)) {
newrank.rankani.ranktext = "5- Cult Initiate";
_level0.currentrank = 5;
}
if ((_level0.score >= 350) && (_level0.score <= 449)) {
newrank.rankani.ranktext = "6- Cult Priest";
_level0.currentrank = 6;
}
if ((_level0.score >= 450) && (_level0.score <= 549)) {
newrank.rankani.ranktext = "7- Cult Leader";
_level0.currentrank = 7;
}
if ((_level0.score >= 550) && (_level0.score <= 649)) {
newrank.rankani.ranktext = "8- Cult High Priest";
_level0.currentrank = 8;
}
if ((_level0.score >= 650) && (_level0.score <= 749)) {
newrank.rankani.ranktext = "9- Ghoul";
_level0.currentrank = 9;
}
if ((_level0.score >= 750) && (_level0.score <= 849)) {
newrank.rankani.ranktext = "10- Necromancer";
_level0.currentrank = 10;
}
if ((_level0.score >= 850) && (_level0.score <= 949)) {
newrank.rankani.ranktext = "11- Deep One Spawn";
_level0.currentrank = 11;
}
if ((_level0.score >= 950) && (_level0.score <= 1049)) {
newrank.rankani.ranktext = "12- Deep One Priest";
_level0.currentrank = 12;
}
if ((_level0.score >= 1050) && (_level0.score <= 1149)) {
newrank.rankani.ranktext = "13- Elder Deep One";
_level0.currentrank = 13;
}
if ((_level0.score >= 1150) && (_level0.score <= 1249)) {
newrank.rankani.ranktext = "14- Mi-Go Slave";
_level0.currentrank = 14;
}
if ((_level0.score >= 1250) && (_level0.score <= 1349)) {
newrank.rankani.ranktext = "15- Mi-Go Warrior";
_level0.currentrank = 15;
}
if ((_level0.score >= 1350) && (_level0.score <= 1449)) {
newrank.rankani.ranktext = "16- Mi-Go Surgeon";
_level0.currentrank = 16;
}
if ((_level0.score >= 1450) && (_level0.score <= 1549)) {
newrank.rankani.ranktext = "17- Mi-Go General";
_level0.currentrank = 17;
}
if ((_level0.score >= 1550) && (_level0.score <= 1649)) {
newrank.rankani.ranktext = "18- Yithian Peasant";
_level0.currentrank = 18;
}
if ((_level0.score >= 1650) && (_level0.score <= 1749)) {
newrank.rankani.ranktext = "19- Yithian Librarian";
_level0.currentrank = 19;
}
if ((_level0.score >= 1750) && (_level0.score <= 1849)) {
newrank.rankani.ranktext = "20- Yithian Scholar";
_level0.currentrank = 20;
}
if ((_level0.score >= 1850) && (_level0.score <= 1949)) {
newrank.rankani.ranktext = "21- Proto-Shoggoth";
_level0.currentrank = 21;
}
if ((_level0.score >= 1950) && (_level0.score <= 2049)) {
newrank.rankani.ranktext = "22- Slave Shoggoth";
_level0.currentrank = 22;
}
if ((_level0.score >= 2050) && (_level0.score <= 2149)) {
newrank.rankani.ranktext = "23- Rebel Shoggoth";
_level0.currentrank = 23;
}
if ((_level0.score >= 2150) && (_level0.score <= 2249)) {
newrank.rankani.ranktext = "24- Elder Thing";
_level0.currentrank = 24;
}
if ((_level0.score >= 2250) && (_level0.score <= 2349)) {
newrank.rankani.ranktext = "25- Servant of Hastur";
_level0.currentrank = 25;
}
if ((_level0.score >= 2350) && (_level0.score <= 2449)) {
newrank.rankani.ranktext = "26- King in Yellow";
_level0.currentrank = 26;
}
if ((_level0.score >= 2450) && (_level0.score <= 2549)) {
newrank.rankani.ranktext = "27- Nyarlatothep";
_level0.currentrank = 27;
}
if ((_level0.score >= 2550) && (_level0.score <= 2649)) {
newrank.rankani.ranktext = "28- The Unnameable";
_level0.currentrank = 28;
}
if ((_level0.score >= 2650) && (_level0.score <= 2749)) {
newrank.rankani.ranktext = "29- Spawn of Cthulhu";
_level0.currentrank = 29;
}
if ((_level0.score >= 2750) && (_level0.score <= 9000)) {
newrank.rankani.ranktext = "30- Great Cthulhu";
_level0.currentrank = 30;
}
if (_level0.gamecomplete != 1) {
}
if (_level0.level == 1) {
_level0.rank2.rankani.ranktext = "1- Thug";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 0;
}
}
if (_level0.level == 2) {
_level0.rank2.rankani.ranktext = "2- Hoodlum";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 1;
}
}
if (_level0.level == 3) {
_level0.rank2.rankani.ranktext = "3- Mobster";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 1;
}
}
if (_level0.level == 4) {
_level0.rank2.rankani.ranktext = "4- Mob Boss";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 2;
}
}
if (_level0.level == 5) {
_level0.rank2.rankani.ranktext = "5- Cult Initiate";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 2;
}
}
if (_level0.level == 6) {
_level0.rank2.rankani.ranktext = "6- Cult Priest";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 3;
}
}
if (_level0.level == 7) {
_level0.rank2.rankani.ranktext = "7- Cult Leader";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 3;
}
}
if (_level0.level == 8) {
_level0.rank2.rankani.ranktext = "8- Cult High Priest";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 4;
}
}
if (_level0.level == 9) {
_level0.rank2.rankani.ranktext = "9- Ghoul";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 4;
}
}
if (_level0.level == 10) {
_level0.rank2.rankani.ranktext = "10- Necromancer";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 5;
}
}
if (_level0.level == 11) {
_level0.rank2.rankani.ranktext = "11- Deep One Spawn";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 5;
}
}
if (_level0.level == 12) {
_level0.rank2.rankani.ranktext = "12- Deep One Priest";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 6;
}
}
if (_level0.level == 13) {
_level0.rank2.rankani.ranktext = "13- Elder Deep One";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 6;
}
}
if (_level0.level == 14) {
_level0.rank2.rankani.ranktext = "14- Mi-Go Slave";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 7;
}
}
if (_level0.level == 15) {
_level0.rank2.rankani.ranktext = "15-Mi-Go Warrior";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 8;
}
}
if (_level0.level == 16) {
_level0.rank2.rankani.ranktext = "16- Mi-Go Surgeon";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 9;
}
}
if (_level0.level == 17) {
_level0.rank2.rankani.ranktext = "17- Mi-Go General";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 10;
}
}
if (_level0.level == 18) {
_level0.rank2.rankani.ranktext = "18- Yithian Peasant";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 11;
}
}
if (_level0.level == 19) {
_level0.rank2.rankani.ranktext = "19- Yithian Librarian";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 20) {
_level0.rank2.rankani.ranktext = "20- Yithian Scholar";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 21) {
_level0.rank2.rankani.ranktext = "21- Proto-Shoggoth";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 22) {
_level0.rank2.rankani.ranktext = "22- Slave Shoggoth";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 23) {
_level0.rank2.rankani.ranktext = "23- Rebel Shoggoth";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 24) {
_level0.rank2.rankani.ranktext = "24- Elder Thing";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 25) {
_level0.rank2.rankani.ranktext = "25- Servant of Hastur";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 26) {
_level0.rank2.rankani.ranktext = "26- King in Yellow";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 27) {
_level0.rank2.rankani.ranktext = "27- Nyarlatothep";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 28) {
_level0.rank2.rankani.ranktext = "28- The Unnameable";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 29) {
_level0.rank2.rankani.ranktext = "29- Spawn of Cthulhu";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.level == 30) {
_level0.rank2.rankani.ranktext = "30- Great Cthulhu";
if (_level0.gamecomplete != 1) {
_level0.cardsunlocked = 12;
}
}
if (_level0.currentrank == 1) {
_level0.rank1.rankani.ranktext = "1- Thug";
}
if (_level0.currentrank == 2) {
_level0.rank1.rankani.ranktext = "2- Hoodlum";
}
if (_level0.currentrank == 3) {
_level0.rank1.rankani.ranktext = "3- Mobster";
}
if (_level0.currentrank == 4) {
_level0.rank1.rankani.ranktext = "4- Mob Boss";
}
if (_level0.currentrank == 5) {
_level0.rank1.rankani.ranktext = "5- Cult Initiate";
}
if (_level0.currentrank == 6) {
_level0.rank1.rankani.ranktext = "6- Cult Priest";
}
if (_level0.currentrank == 7) {
_level0.rank1.rankani.ranktext = "7- Cult Leader";
}
if (_level0.currentrank == 8) {
_level0.rank1.rankani.ranktext = "8- Cult High Priest";
}
if (_level0.currentrank == 9) {
_level0.rank1.rankani.ranktext = "9- Ghoul";
}
if (_level0.currentrank == 10) {
_level0.rank1.rankani.ranktext = "10- Necromancer";
}
if (_level0.currentrank == 11) {
_level0.rank1.rankani.ranktext = "11- Deep One Spawn";
}
if (_level0.currentrank == 12) {
_level0.rank1.rankani.ranktext = "12- Deep One Priest";
}
if (_level0.currentrank == 13) {
_level0.rank1.rankani.ranktext = "13- Elder Deep One";
}
if (_level0.currentrank == 14) {
_level0.rank1.rankani.ranktext = "14- Mi-Go Slave";
}
if (_level0.currentrank == 15) {
_level0.rank1.rankani.ranktext = "15- Mi-Go Warrior";
}
if (_level0.currentrank == 16) {
_level0.rank1.rankani.ranktext = "16- Mi-Go Surgeon";
}
if (_level0.currentrank == 17) {
_level0.rank1.rankani.ranktext = "17- Mi-Go General";
}
if (_level0.currentrank == 18) {
_level0.rank1.rankani.ranktext = "18- Yithian Peasant";
}
if (_level0.currentrank == 19) {
_level0.rank1.rankani.ranktext = "19- Yithian Librarian";
}
if (_level0.currentrank == 20) {
_level0.rank1.rankani.ranktext = "20- Yithian Scholar";
}
if (_level0.currentrank == 21) {
_level0.rank1.rankani.ranktext = "21- Proto-Shoggoth";
}
if (_level0.currentrank == 22) {
_level0.rank1.rankani.ranktext = "22- Slave Shoggoth";
}
if (_level0.currentrank == 23) {
_level0.rank1.rankani.ranktext = "23- Rebel Shoggoth";
}
if (_level0.currentrank == 24) {
_level0.rank1.rankani.ranktext = "24- Elder Thing";
}
if (_level0.currentrank == 25) {
_level0.rank1.rankani.ranktext = "25- Servant of Hastur";
}
if (_level0.currentrank == 26) {
_level0.rank1.rankani.ranktext = "26- King in Yellow";
}
if (_level0.currentrank == 27) {
_level0.rank1.rankani.ranktext = "27- Nyarlatothep";
}
if (_level0.currentrank == 28) {
_level0.rank1.rankani.ranktext = "28- The Unnameable";
}
if (_level0.currentrank == 29) {
_level0.rank1.rankani.ranktext = "29- Spawn of Cthulhu";
}
if (_level0.currentrank == 30) {
_level0.rank1.rankani.ranktext = "30- Great Cthulhu";
}
if (_level0.gamecomplete != 1) {
_level0.actualcards = 24 + _level0.cardsunlocked;
} else {
_level0.actualcards = 36;
}
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
i = 0;
while (i < _level0.numcartas) {
matriz1[i]._visible = false;
i = i + 1;
}
matriz1[_level0.actualcards]._visible = true;
if (_level0.vida1 <= 0) {
b1._visible = false;
save._visible = false;
} else if ((_level0.vida1 >= 1) && (((((((((_level0.level == 1) or (_level0.level == 3)) or (_level0.level == 5)) or (_level0.level == 7)) or (_level0.level == 9)) or (_level0.level == 11)) or (_level0.level == 13)) or (_level0.level == 15)) or (_level0.level == 17))) {
b1._visible = false;
save._visible = true;
} else {
b1._visible = true;
save._visible = true;
}
if (((_level0.level == 31) && (_level0.vida1 >= 1)) or ((_level0.currentrank == 30) && (_level0.vida1 >= 1))) {
_level0.gamecomplete = 1;
this.autosave._visible = true;
_root.setCookie("cardgame", "level", _level0.level);
_root.setCookie("cardgame", "score", _level0.score);
_root.setCookie("cardgame", "rank", _level0.currentrank);
_root.setCookie("cardgame", "bestattack", _level0.highbesthit);
_root.setCookie("cardgame", "higharcane", _level0.higharcane);
_root.setCookie("cardgame", "highelder", _level0.highelder);
_root.setCookie("cardgame", "highsanity", _level0.highsanity);
_root.setCookie("cardgame", "hightaint", _level0.hightaint);
_root.setCookie("cardgame", "complete", _level0.gamecomplete);
this.finalstats._visible = true;
this.nextlevel._visible = false;
this.returnmenu._visible = false;
}
if (((_level0.level <= 30) && (_level0.vida1 >= 1)) && (_level0.currentrank != 30)) {
this.nextlevel._visible = true;
this.returnmenu._visible = false;
this.finalstats._visible = false;
_root.kongregateScores.submit(_level0.score);
_root.kongregateStats.submit("BestAttack", _level0.highbesthit);
_root.kongregateStats.submit("Arcane", _level0.higharcane);
_root.kongregateStats.submit("Elder", _level0.highelder);
_root.kongregateStats.submit("Taint", _level0.hightaint);
_root.kongregateStats.submit("TimesInsane", _level0.highsanity);
_root.kongregateStats.submit("HighestRank", _level0.currentrank);
} else if (_level0.vida1 == 0) {
this.returnmenu._visible = true;
this.nextlevel._visible = false;
this.finalstats._visible = false;
_root.kongregateScores.submit(_level0.score);
_root.kongregateStats.submit("BestAttack", _level0.highbesthit);
_root.kongregateStats.submit("Arcane", _level0.higharcane);
_root.kongregateStats.submit("Elder", _level0.highelder);
_root.kongregateStats.submit("Taint", _level0.hightaint);
_root.kongregateStats.submit("TimesInsane", _level0.highsanity);
_root.kongregateStats.submit("HighestRank", _level0.currentrank);
}
if (_level0.vida1 >= 1) {
this.autosave._visible = true;
_root.setCookie("cardgame", "level", _level0.level);
_root.setCookie("cardgame", "score", _level0.score);
_root.setCookie("cardgame", "rank", _level0.currentrank);
_root.setCookie("cardgame", "bestattack", _level0.highbesthit);
_root.setCookie("cardgame", "higharcane", _level0.higharcane);
_root.setCookie("cardgame", "highelder", _level0.highelder);
_root.setCookie("cardgame", "highsanity", _level0.highsanity);
_root.setCookie("cardgame", "hightaint", _level0.hightaint);
_root.setCookie("cardgame", "complete", _level0.gamecomplete);
}
if (_level0.level > _level0.maxlevel) {
_level0.level = _level0.maxlevel;
}
stop();
Symbol 559 MovieClip [matchscores] Frame 2
stop();
Symbol 571 MovieClip Frame 1
function loadedIndicatorFrame() {
var _local2 = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 65) + 2;
if ((_local2 - lastFrame) > 4) {
lastFrame = lastFrame + 4;
loadedText = ((int(((_parent.getBytesTotal() / 1024) * (lastFrame - 2)) / 65) + "kb of ") + int(_parent.getBytesTotal() / 1024)) + "kb";
} else if ((_local2 - lastFrame) > 0) {
lastFrame++;
loadedText = ((int(_parent.getBytesLoaded() / 1024) + "kb of ") + int(_parent.getBytesTotal() / 1024)) + "kb";
} else {
loadedText = ((int(_parent.getBytesLoaded() / 1024) + "kb of ") + int(_parent.getBytesTotal() / 1024)) + "kb";
}
return(lastFrame);
}
lastFrame = 1;
Symbol 1048 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 1049 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.32");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 580 Button
on (release) {
_root.sound = 0;
this.gotoAndStop(2);
}
Symbol 583 Button
on (release) {
_root.sound = 1;
this.gotoAndStop(1);
}
Symbol 584 MovieClip Frame 1
if (_root.sound == 0) {
gotoAndStop (2);
}
if (_root.sound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("titlemusic1");
play0.start(0, 9999);
}
stop();
Symbol 584 MovieClip Frame 2
stopAllSounds();
if (_root.sound == 1) {
gotoAndStop (1);
}
stop();
Symbol 587 Button
on (release) {
_level0.qualitylevel == 3;
_level0._quality = "HIGH";
}
Symbol 591 Button
on (release) {
_level0.qualitylevel == 2;
_level0._quality = "MEDIUM";
}
Symbol 594 Button
on (release) {
_level0.qualitylevel == 1;
_level0._quality = "LOW";
}
Symbol 595 MovieClip Frame 1
i = _level0.qualitylevel + 1;
while (i <= 4) {
this["star" + i]._visible = false;
i++;
}
boton1.useHandCursor = false;
boton2.useHandCursor = false;
Symbol 599 Button
on (release) {
_level0.challenge = 0;
_level0.level = 1;
_level0.gametimeoffset = getTimer();
_level0.gametime = getTimer() - _level0.gametimeoffset;
trace((("gametimeoffset=" + _level0.gametimeoffset) + " gametime=") + _level0.gametime);
_level0.gotoAndPlay("game");
}
Symbol 602 Button
on (release) {
_level0.gotoAndPlay("instructions");
}
Symbol 605 Button
on (release) {
stopAllSounds();
_level0.level = _root.getCookie("cardgame", "level");
_level0.score = _root.getCookie("cardgame", "score");
_level0.currentrank = _root.getCookie("cardgame", "rank");
_level0.highbesthit = _root.getCookie("cardgame", "bestattack");
_level0.higharcane = _root.getCookie("cardgame", "higharcane");
_level0.highelder = _root.getCookie("cardgame", "highelder");
_level0.highsanity = _root.getCookie("cardgame", "highsanity");
_level0.hightaint = _root.getCookie("cardgame", "hightaint");
_level0.gamecomplete = _root.getCookie("cardgame", "complete");
if (_level0.level == undefined) {
_level0.level = 1;
}
_level0.challenge = 0;
_level0.gotoAndPlay("game");
}
Symbol 608 Button
on (release) {
_level0.gotoAndStop("library");
}
Symbol 611 Button
on (release) {
_level0.challenge1comp = _root.getCookie("cardgamechal", "chal1");
_level0.challenge2comp = _root.getCookie("cardgamechal", "chal2");
_level0.challenge3comp = _root.getCookie("cardgamechal", "chal3");
_level0.challenge4comp = _root.getCookie("cardgamechal", "chal4");
_level0.challenge5comp = _root.getCookie("cardgamechal", "chal5");
_level0.challenge6comp = _root.getCookie("cardgamechal", "chal6");
_level0.challenge7comp = _root.getCookie("cardgamechal", "chal7");
_level0.challenge8comp = _root.getCookie("cardgamechal", "chal8");
_level0.challenge9comp = _root.getCookie("cardgamechal", "chal9");
_level0.challenge10comp = _root.getCookie("cardgamechal", "chal10");
_level0.challenge11comp = _root.getCookie("cardgamechal", "chal11");
_level0.challenge12comp = _root.getCookie("cardgamechal", "chal12");
_level0.challenge13comp = _root.getCookie("cardgamechal", "chal13");
_level0.challenge14comp = _root.getCookie("cardgamechal", "chal14");
_level0.challenge15comp = _root.getCookie("cardgamechal", "chal15");
_level0.challenge16comp = _root.getCookie("cardgamechal", "chal16");
_level0.challenge17comp = _root.getCookie("cardgamechal", "chal17");
_level0.challenge18comp = _root.getCookie("cardgamechal", "chal18");
_level0.challenge19comp = _root.getCookie("cardgamechal", "chal19");
_level0.challenge20comp = _root.getCookie("cardgamechal", "chal20");
_level0.challenge21comp = _root.getCookie("cardgamechal", "chal21");
_level0.challenge22comp = _root.getCookie("cardgamechal", "chal22");
_level0.challenge23comp = _root.getCookie("cardgamechal", "chal23");
_level0.challenge24comp = _root.getCookie("cardgamechal", "chal24");
_level0.challenge25comp = _root.getCookie("cardgamechal", "chal25");
_level0.challenge26comp = _root.getCookie("cardgamechal", "chal26");
_level0.challenge27comp = _root.getCookie("cardgamechal", "chal27");
_level0.challenge28comp = _root.getCookie("cardgamechal", "chal28");
_level0.gotoAndStop("challenge");
}
Symbol 612 MovieClip Frame 52
stop();
Symbol 613 MovieClip Frame 1
_level0.version = "Games of Cthulhu v1.0";
_level0.password = "necro";
_level0.currentrank = 1;
_level0.myget = 4;
_level0.level = 1;
_level0.cardsunlocked = 0;
_level0.maxlevel = 30;
_level0.score = 0;
_level0.showMenu = false;
_level0.actualcards = 0;
_level0.matchcardsused = 0;
_level0.matchdamagereceived = 0;
_level0.score = 0;
_level0.highbesthit = 0;
_level0.higharcane = 0;
_level0.highelder = 0;
_level0.highsanity = 0;
_level0.hightaint = 0;
_level0.deaths = 0;
_level0.largest = 0;
_level0.lifehealed = 0;
_level0.ncounter = 0;
_level0.totaldamage = 0;
_level0.gamecomplete = 0;
_level0.challenge = 0;
stop();
Symbol 620 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 1;
if (_level0.challenge1comp != 1) {
this.challtext = "Challenge 1 - Defeat your opponent with only 30 life as your maximum amount. Opponent has 40 max.";
}
if (_level0.challenge1comp == 1) {
this.challtext = "Challenge 1 - COMPLETED - Defeat your opponent with only 30 life as your maximum amount. Opponent has 40 max.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 1";
_level0.rank2.rankani.ranktext = "1";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 30;
maxvida2 = 40;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 25;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 629 Button
on (release) {
gotoAndPlay ("challengestart");
}
Symbol 633 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 2;
if (_level0.challenge2comp != 1) {
this.challtext = "Challenge 2 - Defeat your opponent with only 20 life as your maximum amount. Opponent has 40 max.";
}
if (_level0.challenge2comp == 1) {
this.challtext = "Challenge 2 - COMPLETED - Defeat your opponent with only 20 life as your maximum amount. Opponent has 40 max.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 2";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 20;
maxvida2 = 40;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 25;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 637 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 4;
if (_level0.challenge4comp != 1) {
this.challtext = "Challenge 4 - You start with 50 life max, your opponent has 100 max. All card's unlocked.";
}
if (_level0.challenge4comp == 1) {
this.challtext = "Challenge 4 - COMPLETED - You start with 50 life max, your opponent has 100 max. All card's unlocked.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 4";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 50;
maxvida2 = 100;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = 5;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 641 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 3;
if (_level0.challenge3comp != 1) {
this.challtext = "Challenge 3 - Defeat your opponent starting with 5 sanity points and 30 life max.";
}
if (_level0.challenge3comp == 1) {
this.challtext = "Challenge 3 - COMPLETED - Defeat your opponent starting with 5 sanity points and 30 life max.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 3";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 30;
maxvida2 = 40;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = 5;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 25;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 645 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 5;
if (_level0.challenge5comp != 1) {
this.challtext = "Challenge 5 - Defeat your opponent without going insane. Automatic loss if you go insane. 60 max life each. 32 cards available.";
}
if (_level0.challenge5comp == 1) {
this.challtext = "Challenge 5 - COMPLETED - Defeat your opponent without going insane. Automatic loss if you go insane. 60 max life each. 32 cards available.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 5";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 60;
maxvida2 = 60;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 32;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 649 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 6;
if (_level0.challenge6comp != 1) {
this.challtext = "Challenge 6 - Your opponent has cursed you with a life draining spell. Each turn you lose 1 life, and can die from it. You have 50 life each. 30 cards unlocked.";
}
if (_level0.challenge6comp == 1) {
this.challtext = "Challenge 6 - COMPLETED - Your opponent has cursed you with a life draining spell. Each turn you lose 1 life, and can die from it. You have 50 max life each. 30 cards unlocked.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 6";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 50;
maxvida2 = 50;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 30;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 653 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 7;
if (_level0.challenge7comp != 1) {
this.challtext = "Challenge 7 - Your opponent has cursed you with a life and sanity draining spell. Each turn you lose 1 sanity and life, and can die from it. You have 40 life max, they have 60 life max. All cards unlocked.";
}
if (_level0.challenge7comp == 1) {
this.challtext = "Challenge 7 - COMPLETED - Your opponent has cursed you with a life and sanity draining spell. Each turn you lose 1 sanity and 1 life, and can die from it. You have 40 life max, they have 60 life max. All cards unlocked.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 7";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 40;
maxvida2 = 60;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 30;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 657 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 8;
if (_level0.challenge8comp != 1) {
this.challtext = "Challenge 8 - You have been taking a beating at the hands of a much stronger opponent. You have 10 life remaining (40 MAX), and 6 sanity. Your opponent has 35 life remaining (60 MAX), and has just 2 sanity remaining. He has also built up an arcane of 10 points. Defeat your opponent. All cards unlocked.";
}
if (_level0.challenge8comp == 1) {
this.challtext = "Challenge 8 - COMPLETED - You have been taking a beating at the hands of a much stronger opponent. You have 10 life remaining (40 MAX), and 6 sanity. Your opponent has 35 life remaining (60 MAX), and has just 2 sanity remaining. He has also built up an arcane of 10 points. Defeat your opponent. All cards unlocked.";
}
arcanemod1 = 0;
arcanemod2 = 10;
eldermod1 = 0;
eldermod2 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 8";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 40;
maxvida2 = 60;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 10;
sanity1 = 6;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 35;
sanity2 = 2;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 30;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 661 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 9;
if (_level0.challenge9comp != 1) {
this.challtext = "Challenge 9 - You start the game with Agoraphobia and -10 sanity. You have 20 life (30 Max) and your opponent has 40 life (40 Max). The Arkham Asylum card is not in your deck.";
}
if (_level0.challenge9comp == 1) {
this.challtext = "Challenge 9 - COMPLETED - You start the game with Agoraphobia and -10 sanity. You have 20 life (30 Max) and your opponent has 40 life (40 Max). The Arkham Asylum card is not in your deck.";
}
_level0.challenge9started = 1;
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 9";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 30;
maxvida2 = 40;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 20;
sanity1 = -10;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 30;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 665 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 10;
if (_level0.challenge10comp != 1) {
this.challtext = "Challenge 10 - Your opponent has tainted you for 5 points, and you're on 15 life (50 MAX), and 5 sanity. However, you have 4 arcane and 3 elder. Opponent has 45 life (50 Max) and 5 arcane, and 14 sanity. Can you survive?";
}
if (_level0.challenge10comp == 1) {
this.challtext = "Challenge 10 - COMPLETED - Your opponent has tainted you for 5 points, and you're on 15 life (50 MAX), and 5 sanity. However, you have 4 arcane and 3 elder. Opponent has 45 life (50 Max) and 5 arcane, and 14 sanity. Can you survive?";
}
arcanemod1 = 4;
arcanemod2 = 5;
eldermod1 = 3;
eldermod2 = 0;
taintmod1 = 5;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 10";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 50;
maxvida2 = 50;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 15;
sanity1 = 5;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 45;
sanity2 = 14;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 30;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 669 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 11;
if (_level0.challenge11comp != 1) {
this.challtext = "Challenge 11 - You begin with 50 life (80 Max), but every turn your life drops by 1. You opponent has 80 life (80 Max), and every turn your opponents arcane rises by 1.";
}
if (_level0.challenge11comp == 1) {
this.challtext = "Challenge 11 - COMPLETED - You begin with 50 life (80 Max), but every turn your life drops by 1. You opponent has 80 life (80 Max), and every turn your opponents arcane rises by 1.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 11";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 80;
maxvida2 = 80;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 50;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 80;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 35;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 673 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 12;
if (_level0.challenge12comp != 1) {
this.challtext = "Challenge 12 - You begin with 30 life (40 Max), but every turn your life drops by 1. Your opponent also has 40 life (40 Max), and every turn your opponents arcane rises by 1. Warning - Mi-Go Surgery and Dark Ritual are the only life giving cards in your deck.";
}
if (_level0.challenge12comp == 1) {
this.challtext = "Challenge 12 - COMPLETED - You begin with 30 life (40 Max), but every turn your life drops by 1. Your opponent also has 40 life (40 Max), and every turn your opponents arcane rises by 1. Warning - Mi-Go Surgery and Dark Ritual are the only life giving cards in your deck.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 12";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 40;
maxvida2 = 40;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 30;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 40;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 32;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 677 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 13;
if (_level0.challenge13comp != 1) {
this.challtext = "Challenge 13 - Things are going from bad to worse. You begin with just 5 life (50 Max), but have 5 elder defense, and 15 sanity. Your opponent has 35 life, no maximum, and every turn your opponents arcane rises by 1. Warning - if you go insane, you lose.";
}
if (_level0.challenge13comp == 1) {
this.challtext = "Challenge 13 - COMPLETED - Things are going from bad to worse. You begin with just 5 life (50 Max), but have 4 elder defense, and 15 sanity. Your opponent has 35 life, no maximum, and every turn your opponents arcane rises by 1. Warning - if you go insane, you lose.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 5;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 13";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 50;
maxvida2 = 1000;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 5;
sanity1 = 15;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 35;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 681 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 14;
if (_level0.challenge14comp != 1) {
this.challtext = "Challenge 14 - Outnumbered! You begin with 20 life (30 Max). Your opponent has 50 life, no maximum, and every turn your opponents arcane rises by 2. Warning - you have no summon creature cards in your deck.";
}
if (_level0.challenge14comp == 1) {
this.challtext = "Challenge 14 - COMPLETED - Outnumbered! You begin with 30 life (30 Max). Your opponent has 50 life, no maximum, and every turn your opponents arcane rises by 2. Warning - you have no summon creature cards in your deck.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 14";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 30;
maxvida2 = 1000;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 20;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 50;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 685 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 15;
if (_level0.challenge15comp != 1) {
this.challtext = "Challenge 15 - Life is short! You begin with 5 life (40 Max). Your opponent has 50 life, no maximum. Warning - you have no summon creature cards in your deck, and Essence of the Soul is also not available.";
}
if (_level0.challenge15comp == 1) {
this.challtext = "Challenge 15 - COMPLETED - Life is short! You begin with 5 life (40 Max). Your opponent has 50 life, no maximum. Warning - you have no summon creature cards in your deck, and Essence of the Soul is also not available.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 15";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 40;
maxvida2 = 1000;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 5;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 50;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 689 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 16;
if (_level0.challenge16comp != 1) {
this.challtext = "Challenge 16 - Curse of Nyarlatothep! You begin with 10 life (50 Max). Your opponent has 50 life, no maximum. Your sanity is low, only 12, and if you go insane it's an automatic loss. Every turn your taint increases by 1. Yog-Sothoth is not in play, but City of R'lyeh is, so win quick before it's played against you.";
}
if (_level0.challenge16comp == 1) {
this.challtext = "Challenge 16 - COMPLETED - Curse of Nyarlatothep! You begin with 10 life (50 Max). Your opponent has 50 life, no maximum. Your sanity is low, only 12, and if you go insane it's an automatic loss. Every turn your taint increases by 1. Yog-Sothoth is not in play, but City of R'lyeh is, so win quick before it's played against you.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 16";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 50;
maxvida2 = 1000;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 10;
sanity1 = 12;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 50;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 693 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 17;
if (_level0.challenge17comp != 1) {
this.challtext = "Challenge 17 - Yellow Sign Blues! You begin with 100 life (100 Max). Your opponent has 100 life (100 Max). Your taint starts at zero, but every turn your taint increases by 3.";
}
if (_level0.challenge17comp == 1) {
this.challtext = "Challenge 17 - COMPLETED - Yellow Sign Blues! You begin with 100 life (100 Max). Your opponent has 100 life (100 Max). Your taint starts at zero, but every turn your taint increases by 3.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 17";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 100;
maxvida2 = 100;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = maxvida;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = maxvida2;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 697 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 18;
if (_level0.challenge18comp != 1) {
this.challtext = "Challenge 18 - From Beyond! You begin with 20 life (100 Max). Your opponent has 50 life (100 Max). Every time you or your opponent summons a creature, your taint increases by half the creatures attack power (rounded up). And your opponents Arcane power increases by the same amount.";
}
if (_level0.challenge18comp == 1) {
this.challtext = "Challenge 18 - COMPLETED - From Beyond! You begin with 20 life (100 Max). Your opponent has 50 life (100 Max). Every time you or your opponent summons a creature, your taint increases by half the creatures attack power (rounded up). And your opponents Arcane power increases by the same amount.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 19";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 100;
maxvida2 = 100;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 20;
sanity1 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 50;
sanity2 = Math.round(Math.random() * 10) + 25;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 701 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 19;
if (_level0.challenge19comp != 1) {
this.challtext = "Challenge 19 - Immortal? You begin with 40 life, (60 Max), your opponent has 60 life (60 Max) - but your opponent has become so powerful that he cannot be killed by normal means. Only a creatures' COUNTER attack can kill him. Both sanity points are low.";
}
if (_level0.challenge19comp == 1) {
this.challtext = "Challenge 19 - COMPLETED - Immortal? You begin with 40 life, (60 Max), your opponent has 60 life (60 Max) - but your opponent has become so powerful that he cannot be killed by normal means. Only a creatures' COUNTER attack can kill him. Both sanity points are low.";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 19";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 60;
maxvida2 = 60;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 40;
sanity1 = Math.round(Math.random() * 10) + 10;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 60;
sanity2 = Math.round(Math.random() * 10) + 10;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 705 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 20;
if (_level0.challenge20comp != 1) {
this.challtext = "Challenge 20 - Why won't he DIE? You begin with 20 life, (60 Max), your opponent has 40 life (60 Max) - but your opponent will not die! Creatures can't finish him off, and no amount of devastating attacks seem to work. Can you kill him?";
}
if (_level0.challenge20comp == 1) {
this.challtext = "Challenge 20 - COMPLETED - Why won't he DIE? You begin with 20 life, (60 Max), your opponent has 40 life (60 Max) - but your opponent will not die! Creatures can't finish him off, and no amount of devastating attacks seem to work. Can you kill him?";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 20";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 60;
maxvida2 = 60;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 20;
sanity1 = Math.round(Math.random() * 10) + 20;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 40;
sanity2 = Math.round(Math.random() * 10) + 20;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 709 Button
on (release) {
this.start_chall._visible = true;
_level0.challenge = 21;
if (_level0.challenge21comp != 1) {
this.challtext = "Challenge 21 - Playing tricks? There's something not right in what is happening. Has reality been warped by some outside cosmic horror? Good luck...";
}
if (_level0.challenge21comp == 1) {
this.challtext = "Challenge 21 - COMPLETED - Playing tricks? There's something not right in what is happening. Has reality been warped by some outside cosmic horror? Good luck...";
}
arcanemod1 = 0;
arcanemod2 = 0;
eldermod1 = 0;
eldermod2 = 0;
taintmod1 = 0;
_level0.besthit = 0;
_level0.score = 0;
_level0.currentrank = 0;
_level0.besthit = 0;
_level0.rank1.rankani.ranktext = "Challenge 21";
_level0.rank2.rankani.ranktext = "";
matchcardsused = 0;
matchdamagereceived = 0;
maxvida = 60;
maxvida2 = 60;
maxsanity = Math.round(Math.random() * 15) + 15;
invisible = 0;
immunity = 0;
resurrect = 0;
Set("da\u00F1o", 0);
normal = 0;
bless1aux = 0;
arma1aux = 0;
escudo1aux = 0;
contra1aux = 0;
damageinflicted = 0;
elderthing = 0;
yogsothoth = 0;
byakhee = 0;
shoggoth = 0;
shambler = 0;
betrayed = 0;
donotcounter = 0;
betrayal = 0;
ignoreelder = 0;
parapeto1aux = 0;
runa1aux = 0;
ceguera1aux = 0;
maldicion1aux = 0;
veneno1aux = 0;
regenaux = 0;
multiplyaux = 1;
paraliza = 0;
cura = 0;
dispelo = 0;
dispelc = 0;
dispels = 0;
curaveneno = 0;
vida1 = 50;
sanity1 = Math.round(Math.random() * 10) + 20;
Set("da\u00F1o1", 0);
bless1 = 0;
arma1 = 0 + arcanemod1;
trace("arcane is " + arma1);
escudo1 = 0 + eldermod1;
contra1 = 0;
parapeto1 = 0;
sanityloss = 0;
ceguera1 = 0;
maldicion1 = 0;
veneno1 = 0 + taintmod1;
regen1 = 0;
mult1 = 1;
paraliza1 = 0;
vida2 = 60;
sanity2 = Math.round(Math.random() * 10) + 20;
Set("da\u00F1o2", 0);
bless2 = 0;
arma2 = 0 + arcanemod2;
escudo2 = 0 + eldermod2;
contra2 = 0;
parapeto2 = 0;
runa2 = 0;
ceguera2 = 0;
maldicion2 = 0;
veneno2 = 0;
regen2 = 0;
mult2 = 1;
paraliza2 = 0;
numbar = -1;
carbueno = -1;
numcartas = 36;
actualcards = 36;
cmalo = -1;
destapa = -1;
trace("Number of cards in deck is:" + actualcards);
turno = 0;
marma1.gotoAndStop(1);
ccontra1.gotoAndStop(1);
mmaldicion1.gotoAndStop(1);
mescudo1.gotoAndStop(1);
mataque1.gotoAndStop(1);
mveneno1.gotoAndStop(1);
mceguera1.gotoAndStop(1);
minvulner1.gotoAndStop(1);
byakhee1.gotoAndStop(1);
byakhee2.gotoAndStop(1);
shambler1.gotoAndStop(1);
shambler2.gotoAndStop(1);
shoggoth1.gotoAndStop(1);
shoggoth2.gotoAndStop(1);
elderthing1.gotoAndStop(1);
elderthing2.gotoAndStop(1);
shub1.gotoAndStop(1);
shub2.gotoAndStop(1);
agoraphobiaIcon1.gotoAndStop(1);
xenophobiaIcon1.gotoAndStop(1);
xenophobiaIcon2.gotoAndStop(1);
megalomaniaIcon1.gotoAndStop(1);
megalomaniaIcon2.gotoAndStop(1);
schizophreniaIcon1.gotoAndStop(1);
schizophreniaIcon2.gotoAndStop(1);
insanity1 = 0;
insanity2 = 0;
Xenophobia1 = 0;
Xenophobia2 = 0;
megalomania1 = 0;
megalomania2 = 0;
schizophrenia1 = 0;
schizophrenia2 = 0;
agoraphobia1 = 0;
byakhee2inplay = 0;
shambler2inplay = 0;
byakhee1inplay = 0;
shambler1inplay = 0;
marma2.gotoAndStop(1);
ccontra2.gotoAndStop(1);
mmaldicion2.gotoAndStop(1);
mescudo2.gotoAndStop(1);
mataque2.gotoAndStop(1);
mveneno2.gotoAndStop(1);
minvulner2.gotoAndStop(1);
mceguera2.gotoAndStop(1);
text_poison1 = 0;
text_poison2 = 0;
text_counter1 = 0;
text_counter2 = 0;
text_defense1 = 0;
text_defense2 = 0;
text_attack1 = 0;
text_attack2 = 0;
stopAllSounds();
if (_root.sound == 1) {
playmus = new Sound();
playmus.setVolume(50);
playmus.attachSound("intromusic");
playmus.start();
}
}
Symbol 711 Button
on (release) {
_level0.challenge = 0;
actualcards = 24;
_root.gotoAndPlay("menu");
}
Symbol 722 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 726 Button
on (release) {
this.instruction = "These are your opponents cards.";
this.gotoAndStop(3);
}
Symbol 727 Button
on (release) {
this.instruction = "This is your hand. 5 cards are dealt to you and your opponent. As you win rounds, more cards are unlocked and added to the deck. You don't earn a new card after every round though.";
this.gotoAndStop(5);
}
Symbol 728 Button
on (release) {
this.instruction = "<b>Cards</b><br><br>When you click on a card in your hand, a large clear view of it appears here. Each card will list the effects it has on either you, or your opponent. Most effects are self explanatory, such as damage, gaining life etc. The sanity cost for each card is listed in the bottom right (the green number).";
this.gotoAndStop(9);
}
Symbol 729 Button
on (release) {
this.instruction = "Your <b>Life</b> and <b>Sanity</b> counters.<br><br>When your Life reaches zero, you are dead. You start with the maximum life, and cannot go above your max life. So don't waste life giving cards if you already have high life points.<br><br>Certain cards cost Sanity points to use. Sanity is the cost for delving into the Mythos. Some cards cost zero due them not being of an occult nature. If your sanity reaches zero or less you can still use cards that cost sanity but you will be insane. You start with 25 Sanity plus a random number between 1 and 10. So could start with more, or less sanity than your opponent. There's no uppper limit on gaining sanity, but -10 sanity is the lowest you can go.";
this.gotoAndStop(4);
}
Symbol 730 Button
on (release) {
this.instruction = "<b>The Necronomicon</b><br><br>After selecting a card to play, you click on the <b>Necronomicon</b> to play it.";
this.gotoAndStop(2);
}
Symbol 731 Button
on (release) {
this.instruction = "<b>Arcane Power</b><br><br>As you increase your knowledge of the Mythos through the use of certain cards, you can increase your Arcane power. For every point you have, you will deal one extra damage for all cards that show the symbol next to the damage number. It's also cumulative, so there's no limit to the amount you can build up. Like the Elder Sign, it can also be dispelled on you.";
this.gotoAndStop(8);
}
Symbol 732 Button
on (release) {
this.instruction = "<b>Elder Sign</b><br><br>The Elder Sign is one of the few defenses against the Mythos. It can be increased through the use of certain cards. For each point you have, you will take 1 less damage from cards and monsters (occult cards only - it cannot protect you from normal weapons such as Shotguns etc.). Its effect is also cumulative, and there's no limit to the amount you can build up. But it can be dispelled on you.";
this.gotoAndStop(7);
}
Symbol 733 Button
on (release) {
this.instruction = "<b>Taint of the Yellow Sign</b><br><br>Certain cards and effects <b>Taint</b> you. For every tainted point you have, you will take one damage at the end of your turn. The only way to purge yourself of the taint is to use certain cards. You cannot die from being tainted - if you are down to 1 life point, your taint will be removed. Taint points are cumulative.";
this.gotoAndStop(6);
}
Symbol 734 Button
on (release) {
this.instruction = "<b>Creature Icons</b><br><br>You can summon vile creatures and bind them to protect you from your opponents creatures. Due to the difficulty involved in dealing with the Mythos (and to save your sanity), you can only control one creature at a time. Beware - if you summon a second creature while you already have one in play, the first creature will be replaced by the second one. Creatures have an attack score (shown in red on the icon). They don't attack directly, instead they counterattack after your opponent has damaged you. If your opponent has a creature in play, then the damage dealt will be your creatures attack minus his, and also minus any Elder Sign defense your opponent has. Creatures can be banished via certain cards.";
this.gotoAndStop(10);
}
Symbol 735 Button
on (release) {
this.instruction = "<b>Insanity</b><br><br>When your sanity hits zero or less, you will go insane. There are various types of insanity effects, and one of them will be applied randomly. Generally they will limit you in some way (some could spell certain doom) and can only be removed by increasing your sanity back up beyond zero. ";
this.gotoAndStop(11);
}
Symbol 736 Button
on (release) {
this.instruction = "<b>Ranks</b><br><br>At the end of each round your score is calculated based on remaining life, sanity, damage dealt, and minus damage received. As you score points you increase in rank. For each rank increase you gain an extra 5 max life points, up to a max of 100. From rank 20 onwards, you will gain 1 Arcane point instead for each rank.<br><br>Your opponent gains 1 rank each round, and gets the same bonuses. It's a race between you and your opponent to rank 30. Game ends after you either reach rank 30, or beat a rank 30 opponent. The game will AUTOSAVE after every round. After rank 30 you will get a final stats screen with some extra game information.";
this.gotoAndStop(12);
}
Symbol 737 Button
on (release) {
this.instruction = "<b>Discard Button</b><br><br>If you don't want to play a card, you can select it, then click Discard. If the discarded card has a sanity cost, then it will be ADDED to your sanity.";
this.gotoAndStop(13);
}
Symbol 738 Button
on (release) {
this.instruction = "<b>Menu and Audio Buttons</b><br><br>Return to the menu, turn off sound FX, and turn off music.";
this.gotoAndStop(14);
}
Symbol 740 Button
on (release) {
_root.gotoAndPlay("menu");
}
Symbol 742 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 2
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
i = 0;
while (i < _level0.numcartas) {
matriz1[i]._visible = false;
i = i + 1;
}
visible = _level0.cartasp2[0];
matriz1[visible]._visible = true;
Symbol 748 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 2
stop();
Symbol 748 MovieClip Frame 3
stop();
Symbol 748 MovieClip Frame 17
if (_level0.flagbarajar == false) {
_level0.ejecutar.ccartabueno.nextFrame();
this.gotoAndStop(1);
} else {
this.gotoAndPlay("bucle");
}
Symbol 755 Button
on (release) {
_root.sound = 1;
this.gotoAndStop(1);
}
Symbol 756 MovieClip Frame 1
if (_root.sound == 0) {
gotoAndStop (2);
}
stop();
Symbol 756 MovieClip Frame 2
stopAllSounds();
if (_root.sound == 1) {
gotoAndStop (1);
}
stop();
Symbol 759 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 762 Button
on (release) {
this.gotoAndStop(1);
}
Symbol 763 MovieClip Frame 1
playmusic = new Sound();
playmusic.setVolume(30);
playmusic.attachSound("main_music");
playmusic.start(0, 9999);
stop();
Symbol 763 MovieClip Frame 2
playmusic.stop();
stop();
Symbol 764 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 29
this.gotoAndPlay(2);
Symbol 764 MovieClip Frame 50
this.gotoAndPlay(2);
Symbol 765 MovieClip Frame 1
stop();
_level0.animplayer1.espada.gotoAndStop("estandar");
Symbol 765 MovieClip Frame 28
this.gotoAndPlay(2);
Symbol 767 MovieClip Frame 1
stop();
Symbol 767 MovieClip Frame 29
this.gotoAndPlay(2);
Symbol 775 MovieClip Frame 1
stop();
Symbol 775 MovieClip Frame 2
stop();
Symbol 777 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 779 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 13
this.gotoAndStop(1);
Symbol 787 Button
on (release) {
_level0.level = 1;
_level0.gamecomplete = 0;
_level0.cardsunlocked = 0;
_level0.challenge = 0;
actualcards = 24;
stopAllSounds();
_root.gotoAndPlay("menu");
}
Symbol 796 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 36
this.gotoAndStop(1);
Symbol 799 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 36
this.gotoAndStop(1);
Symbol 802 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 36
this.gotoAndStop(1);
Symbol 803 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 36
this.gotoAndStop(1);
Symbol 813 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 821 MovieClip Frame 1
stop();
Symbol 821 MovieClip Frame 2
if (_root.sound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("creaturesound");
play0.start();
}
Symbol 821 MovieClip Frame 24
stop();
Symbol 821 MovieClip Frame 25
stop();
Symbol 825 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 830 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 2
if (_root.sound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("creaturesound");
play0.start();
}
Symbol 830 MovieClip Frame 24
stop();
Symbol 830 MovieClip Frame 25
stop();
Symbol 832 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 836 MovieClip Frame 1
stop();
Symbol 836 MovieClip Frame 2
if (_root.sound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("creaturesound");
play0.start();
}
Symbol 836 MovieClip Frame 24
stop();
Symbol 836 MovieClip Frame 25
stop();
Symbol 840 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 845 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 2
if (_root.sound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("creaturesound");
play0.start();
}
Symbol 845 MovieClip Frame 24
stop();
Symbol 845 MovieClip Frame 25
stop();
Symbol 848 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 2
if (_root.sound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("creaturesound");
play0.start();
}
Symbol 853 MovieClip Frame 24
stop();
Symbol 853 MovieClip Frame 25
stop();
Symbol 855 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 857 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 24
stop();
Symbol 858 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 860 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 24
stop();
Symbol 864 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 24
stop();
Symbol 867 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 868 MovieClip Frame 1
stop();
Symbol 868 MovieClip Frame 24
stop();
Symbol 872 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 874 MovieClip Frame 1
stop();
Symbol 874 MovieClip Frame 24
stop();
Symbol 875 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 876 MovieClip Frame 1
stop();
Symbol 876 MovieClip Frame 24
stop();
Symbol 879 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 2
stop();
Symbol 882 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 2
stop();
Symbol 888 Button
on (rollOver) {
gotoAndStop (25);
}
on (rollOut) {
gotoAndStop (24);
}
Symbol 890 MovieClip Frame 1
stop();
Symbol 890 MovieClip Frame 22
masks = random(4);
this.mask1._visible = false;
this.mask2._visible = false;
this.mask3._visible = false;
this.mask4._visible = false;
this.mask5._visible = false;
this.cover1._visible = false;
this.cover2._visible = false;
this.cover2a._visible = false;
this.cover3._visible = false;
this.cover3a._visible = false;
this.cover4._visible = false;
Symbol 890 MovieClip Frame 23
if (masks == 0) {
this.mask1._visible = false;
this.mask2._visible = false;
this.mask3._visible = true;
this.mask4._visible = true;
this.mask5._visible = true;
this.cover1._visible = true;
this.cover2._visible = false;
this.cover2a._visible = false;
this.cover3._visible = false;
this.cover3a._visible = false;
this.cover4._visible = false;
}
if (masks == 1) {
this.mask1._visible = true;
this.mask2._visible = false;
this.mask3._visible = false;
this.mask4._visible = true;
this.mask5._visible = true;
this.cover1._visible = false;
this.cover2._visible = true;
this.cover2a._visible = true;
this.cover3._visible = false;
this.cover3a._visible = false;
this.cover4._visible = false;
}
if (masks == 2) {
this.mask1._visible = true;
this.mask2._visible = true;
this.mask3._visible = false;
this.mask4._visible = false;
this.mask5._visible = true;
this.cover1._visible = false;
this.cover2._visible = false;
this.cover2a._visible = false;
this.cover3._visible = true;
this.cover3a._visible = true;
this.cover4._visible = false;
}
if (masks == 3) {
this.mask1._visible = true;
this.mask2._visible = true;
this.mask3._visible = true;
this.mask4._visible = false;
this.mask5._visible = false;
this.cover1._visible = false;
this.cover2._visible = false;
this.cover2a._visible = false;
this.cover3._visible = false;
this.cover3a._visible = false;
this.cover4._visible = true;
}
Symbol 890 MovieClip Frame 24
stop();
Symbol 891 Button
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 895 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 1
stop();
Symbol 902 MovieClip Frame 1
stop();
Symbol 904 MovieClip Frame 1
stop();
Symbol 906 MovieClip Frame 1
stop();
Symbol 906 MovieClip Frame 3
stop();
if (_level0.level < 2) {
ind = random(5);
visible = _level0.cartasp2[ind];
} else if (_level0.level >= 2) {
trace("IA ACTIVADA");
juega = false;
i = 0;
if (juega == false) {
if (_level0.ceguera2 != 0) {
ind = random(5);
visible = _level0.cartasp2[ind];
juega = true;
trace("IA: paralyzed-> random");
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if (((((((_level0["da\u00F1o"] + _level0.arma2) - _level0.escudo1) - _level0.maldicion1) * _level0.mult2) - _level0.vida1) >= 0) && (_level0.parapeto1 == 0)) {
trace("IA: settle");
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if (((_level0.cura > 0) && (_level0.cura < (35 - _level0.vida2))) || (_level0.regenaux > 0)) {
juega = true;
trace("IA: cure or regenerates");
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if ((_level0.runa1aux >= 15) || ((_level0.runa1aux < 0) && (_level0.runa1 > 20))) {
trace("IA: rune" + _level0.runa1aux);
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if ((((((((_level0["da\u00F1o"] + _level0.arma2) - _level0.escudo1) - _level0.maldicion1) * _level0.mult2) > 10) || (((((_level0["da\u00F1o"] + _level0.arma2) - _level0.escudo1) - _level0.maldicion1) * _level0.mult2) > _level0.vida1)) && (_level0.parapeto1 == 0)) && (_level0.vida2 > _level0.contra1)) {
trace("IA: da\u00F1o>10");
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if ((((_level0.veneno1aux > _level0.veneno1) && (_level0.veneno1aux > 1)) && (_level0.vida2 > _level0.contra1)) && (_level0.runa1 < 35)) {
trace("IA: to poison +" + _level0.veneno1aux);
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if (((_level0.arma1aux > _level0.arma2) || (_level0.escudo1aux > _level0.escudo2)) || (_level0.contra1aux > _level0.contra2)) {
trace("IA: to improve modifiers");
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if ((_level0.veneno2 > 1) && (_level0.curaveneno > 0)) {
trace("IA: poison cures");
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if ((((_level0.arma1 > 2) || (_level0.escudo1 > 2)) || (_level0.regen1 > 0)) && (_level0.dispelo > 0)) {
trace("IA: dispel opp");
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if (_level0.maldicion2 > 0) {
trace("IA: dispel self");
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if (_level0.ceguera1aux > 0) {
trace("IA: blindness");
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
if (juega == false) {
i = 0;
while (i < 5) {
_level0.barmalo[_level0.cartasp2[i]].juegacarta();
if ((((((((_level0["da\u00F1o"] + _level0.arma2) - _level0.escudo1) - _level0.maldicion1) * _level0.mult2) > 2) || (((((_level0["da\u00F1o"] + _level0.arma2) - _level0.escudo1) - _level0.maldicion1) * _level0.mult2) > _level0.vida1)) && (_level0.parapeto1 == 0)) && (_level0.vida2 > _level0.contra1)) {
trace("IA: weak damage");
juega = true;
ind = i;
visible = _level0.cartasp2[i];
break;
}
i++;
}
}
trace("" + juega);
i = 0;
while (juega == false) {
ind = i;
visible = _level0.cartasp2[i];
_level0.barmalo[visible].juegacarta();
if (((((_level0.dispels > 0) || (_level0.dispelc > 0)) || (_level0.dispelo > 0)) || (_level0.curepoison > 0)) && (i < 4)) {
trace(("IA: la carta " + i) + " no juega");
i++;
continue;
}
juega = true;
}
}
_level0.barmalo[visible].juegacarta();
trace("IA: we play the card " + ind);
_level0.reparte = ind;
_level0.destapa = visible;
_level0.carmalo[ind]._visible = false;
gotoAndPlay(4 + (ind * 19));
Symbol 906 MovieClip Frame 22
stop();
Symbol 906 MovieClip Frame 41
stop();
Symbol 906 MovieClip Frame 60
stop();
Symbol 906 MovieClip Frame 79
stop();
Symbol 906 MovieClip Frame 98
stop();
Symbol 919 MovieClip Frame 15
stop();
Symbol 920 Button
on (release) {
trace("challenge is " + _level0.challenge);
_level0.matchcardsused++;
this.mascara1._visible = true;
this.mascara2._visible = true;
this.mascara3._visible = true;
if (_level0.turno == 0) {
} else {
if (_level0.ceguera1 == 0) {
_level0.barajas[_level0.numbar][_level0.carbueno].juegacarta();
if (_level0.sanitycost > 0) {
_level0.sanity1 = _level0.sanity1 - _level0.sanitycost;
trace("Sanity loss " + _level0.sanitycost);
_level0.msanity1.sanityfx = _level0.sanitycost;
_level0.sanitycost = 0;
_level0.msanity1.gotoAndPlay(2);
}
if (_level0.sanityloss > 0) {
_level0.sanity2 = _level0.sanity2 - _level0.sanityloss;
_level0.msanity2.sanityfx = _level0.sanityloss;
_level0.msanity2.gotoAndPlay(2);
}
if (_level0.sanitygain > 0) {
_level0.sanity1 = _level0.sanity1 + _level0.sanitygain;
_level0.msanity1plus.sanityfx = _level0.sanitygain;
_level0.msanity1plus.gotoAndPlay(2);
}
if (_level0.sanity2 < -10) {
_level0.sanity2 = -10;
}
if (_level0.sanity1 < -10) {
_level0.sanity1 = -10;
}
if (_level0.sanity1 >= 1) {
_level0.insanity1 = 0;
_level0.agoraphobia1 = 0;
_level0.agoraphobiaIcon1.gotoAndStop(1);
_level0.Xenophobia1 = 0;
_level0.xenophobiaIcon1.gotoAndStop(1);
if (_level0.megalomania1 == 1) {
_level0.megalomania1 = 0;
_level0.megalomaniaIcon1.gotoAndStop(1);
_level0.arma1 = 0;
_level0.text_attack1 = 0;
_level0.marma1.gotoAndStop(1);
_level0.mveneno1.gotoAndStop(1);
_level0.text_poison1 = 0;
_level0.veneno1 = 0;
}
if (_level0.schizophrenia1 == 1) {
_level0.schizophrenia1 = 0;
_level0.schizophreniaIcon1.gotoAndStop(1);
_level0.arma1 = 0;
_level0.escudo1 = 0;
_level0.veneno1 = 0;
_level0.marma1.gotoAndStop(1);
_level0.mveneno1.gotoAndStop(1);
_level0.mescudo1.gotoAndStop(1);
_level0.text_poison1 = 0;
_level0.text_defense1 = 0;
_level0.text_attack1 = 0;
}
}
trace("" + _level0.mult1);
if ((_level0.betrayed == 1) && (_level0.contra2 >= 1)) {
_level0["da\u00F1o"] = _level0.contra2;
_level0.betrayed = 0;
_level0.donotcounter = 1;
trace(" betrayal damage" + _level0.contra2);
} else if (_level0.betrayed == 1) {
_level0.betrayed = 0;
}
if (_level0.normal == 2) {
_level0.mirarcartas();
_level0.normal = 0;
}
if (_level0.normal == 3) {
_level0.arma1 = _level0.arma2;
if (_level0.arma1 == 0) {
_level0.marma1.gotoAndStop(1);
} else {
_level0.marma1.gotoAndPlay(2);
}
_level0.escudo1 = _level0.escudo2;
if (_level0.escudo1 == 0) {
_level0.mescudo1.gotoAndStop(1);
} else {
_level0.mescudo1.gotoAndPlay(2);
}
_level0.veneno1 = _level0.veneno2;
if (_level0.veneno1 == 0) {
_level0.mveneno1.gotoAndStop(1);
} else {
_level0.mveneno1.gotoAndPlay(2);
}
_level0.normal = 0;
}
if (_level0.normal == 4) {
_level0.parapeto1 = 0;
_level0.minvulner1.gotoAndStop(1);
_level0.parapeto2 = 0;
_level0.minvulner2.gotoAndStop(1);
_level0.arma1 = 0;
_level0.marma1.gotoAndStop(1);
_level0.text_attack1 = 0;
_level0.arma2 = 0;
_level0.marma2.gotoAndStop(1);
_level0.text_attack2 = 0;
_level0.escudo1 = 0;
_level0.mescudo1.gotoAndStop(1);
_level0.text_defense1 = 0;
_level0.escudo2 = 0;
_level0.mescudo2.gotoAndStop(1);
_level0.text_defense2 = 0;
_level0.contra1 = 0;
_level0.ccontra1.gotoAndStop(1);
_level0.text_counter1 = 0;
_level0.contra2 = 0;
_level0.ccontra2.gotoAndStop(1);
_level0.text_counter2 = 0;
_level0.veneno1 = 0;
_level0.mveneno1.gotoAndStop(1);
_level0.text_poison1 = 0;
_level0.veneno2 = 0;
_level0.mveneno2.gotoAndStop(1);
_level0.text_poison2 = 0;
_level0.byakhee2.gotoAndStop(1);
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
_level0.shambler2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.byakhee1.gotoAndStop(1);
_level0.shambler1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
if (_level0.sanity1 <= 0) {
_level0.sanity1 = 5;
} else if (_level0.sanity1 >= 1) {
_level0.sanity1 = _level0.sanity1 + 5;
}
_level0.msanity1plus.sanityfx = 5;
_level0.msanity1plus.gotoAndPlay(2);
if (_level0.sanity2 <= 0) {
_level0.sanity2 = 5;
} else if (_level0.sanity2 >= 1) {
_level0.sanity2 = _level0.sanity2 + 5;
}
_level0.msanity2plus.sanityfx = 5;
_level0.msanity2plus.gotoAndPlay(2);
_level0.insanity1 = 0;
_level0.insanity2 = 0;
_level0.Xenophobia1 = 0;
_level0.xenophobiaIcon1.gotoAndStop(1);
_level0.megalomania1 = 0;
_level0.megalomaniaIcon1.gotoAndStop(1);
_level0.schizophrenia1 = 0;
_level0.schizophreniaIcon1.gotoAndStop(1);
_level0.Xenophobia2 = 0;
_level0.xenophobiaIcon2.gotoAndStop(1);
_level0.megalomania2 = 0;
_level0.megalomaniaIcon2.gotoAndStop(1);
_level0.schizophrenia2 = 0;
_level0.schizophreniaIcon2.gotoAndStop(1);
_level0.agoraphobia1 = 0;
_level0.agoraphobiaIcon1.gotoAndStop(1);
_level0.normal = 0;
}
if (_level0.normal == 5) {
experiment = random(4);
trace("Experiment number is: " + experiment);
if (experiment == 0) {
_level0.shoggoth = 1;
_level0.contra1 = 6;
_level0.dispelc = 1;
}
if (experiment == 1) {
_level0["da\u00F1o"] = 15;
}
if (experiment == 2) {
_level0.arma1 = _level0.arma1 + 5;
_level0.escudo1 = _level0.escudo1 + 5;
}
if (experiment == 3) {
_level0.sanity1 = -5;
}
_level0.normal = 0;
}
if (_level0.normal == 6) {
_level0["da\u00F1o"] = _level0.sanity2 - _level0.arma1;
_level0.yogsothoth = 1;
_level0.normal = 0;
}
if (_level0.normal == 7) {
if (_level0.sanity2 <= 0) {
_level0["da\u00F1o"] = 20;
} else {
_level0.sanity2 = -5;
}
_level0.normal = 0;
}
if (_level0.normal == 8) {
_level0.arma2 = 0;
_level0.marma2.gotoAndStop(1);
_level0.text_attack2 = 0;
_level0.normal = 0;
}
if (((((_level0.sanity1 <= 0) && (_level0.agoraphobia1 != 1)) && (_level0.schizophrenia1 != 1)) && (_level0.Xenophobia1 != 1)) && (_level0.megalomania1 != 1)) {
_level0.insanity1 = Math.ceil(Math.random() * 4);
trace("Insanity number is " + _level0.insanity1);
_level0.highsanity = _level0.highsanity + 1;
insanesound = random(3);
if (_root.sound == 1) {
if (insanesound == 0) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound");
play0.start();
} else if (insanesound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound2");
play0.start();
} else if (insanesound == 2) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound3");
play0.start();
} else if (insanesound == 3) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound4");
play0.start();
}
}
insanesound = 0;
}
if ((_level0.insanity1 == 1) && (_level0.Xenophobia1 != 1)) {
trace("Main button Insanity is Xenophobia");
_level0.Xenophobia1 = 1;
_level0.xenophobiaIcon1.gotoAndPlay(2);
}
if ((_level0.insanity1 == 2) && (_level0.megalomania1 != 1)) {
trace("Main button Insanity is megalomania");
_level0.megalomania1 = 1;
_level0.megalomaniaIcon1.gotoAndPlay(2);
}
if ((_level0.insanity1 == 3) && (_level0.schizophrenia1 != 1)) {
trace("Main button Insanity is schizophrenia1");
_level0.schizophrenia1 = 1;
_level0.schizophreniaIcon1.gotoAndPlay(2);
}
if ((_level0.insanity1 == 4) && (_level0.agoraphobia1 != 1)) {
trace("Main button Insanity is Agoraphobia1");
_level0.agoraphobia1 = 1;
_level0.agoraphobiaIcon1.gotoAndPlay(2);
}
if (((_level0["da\u00F1o"] > 0) && (_level0.normal == 0)) && (_level0.ignoreelder != 1)) {
_level0["da\u00F1o2"] = ((_level0["da\u00F1o"] + _level0.arma1) - _level0.escudo2) * _level0.mult1;
trace("Deal damage with arcane mod and with defense");
if (_level0.mult1 > 1) {
_level0.mult1 = 1;
}
if (_level0["da\u00F1o2"] > _level0.besthit) {
_level0.besthit = _level0["da\u00F1o2"];
}
if ((_level0["da\u00F1o"] > 0) && (_level0["da\u00F1o"] < _level0.escudo2)) {
_level0.mescudo2.gotoAndPlay(30);
}
_level0.totaldamage = _level0.totaldamage + _level0["da\u00F1o2"];
} else if (_level0["da\u00F1o"] <= 0) {
_level0["da\u00F1o2"] = 0;
}
if ((_level0["da\u00F1o"] > 0) && (_level0.normal == 1)) {
_level0["da\u00F1o2"] = _level0["da\u00F1o"] * _level0.mult1;
trace("Deal damage WITHOUT arcane mod");
if (_level0.mult1 > 1) {
_level0.mult1 = 1;
}
if (_level0["da\u00F1o2"] > _level0.besthit) {
_level0.besthit = _level0["da\u00F1o2"];
}
_level0.totaldamage = _level0.totaldamage + _level0["da\u00F1o2"];
} else if (_level0["da\u00F1o"] <= 0) {
_level0["da\u00F1o2"] = 0;
}
if ((_level0["da\u00F1o"] > 0) && (_level0.ignoreelder == 1)) {
_level0["da\u00F1o2"] = (((_level0["da\u00F1o"] + _level0.arma1) + _level0.maldicion2) - _level0.bless2) * _level0.mult1;
trace("Deal damage with arcane mod, but without defense");
if (_level0.mult1 > 1) {
_level0.mult1 = 1;
}
if (_level0["da\u00F1o2"] > _level0.besthit) {
_level0.besthit = _level0["da\u00F1o2"];
}
_level0.totaldamage = _level0.totaldamage + _level0["da\u00F1o2"];
} else if (_level0["da\u00F1o"] <= 0) {
_level0["da\u00F1o2"] = 0;
_level0.normal = 0;
}
if (_level0.multiplyaux > _level0.mult1) {
_level0.mult1 = _level0.multiplyaux;
}
if (_level0.regenaux > _level0.regen1) {
_level0.regen1 = _level0.regenaux;
}
if (_level0.besthit > _level0.highbesthit) {
_level0.highbesthit = _level0.besthit;
}
if (_level0.arma1aux > 0) {
_level0.arma1 = _level0.arma1 + _level0.arma1aux;
}
if (_level0.arma1aux < 0) {
_level0.arma1 = _level0.arma1 + _level0.arma1aux;
}
if (_level0.challenge == 21) {
_level0.arma1 = _level0.arma1 - _level0.arma1aux;
}
if (_level0.challenge == 21) {
_level0.arma2 = _level0.arma2 + _level0.arma1aux;
}
if (_level0.arma1 < 0) {
_level0.arma1 = 0;
}
if (_level0.escudo1aux > 0) {
_level0.escudo1 = _level0.escudo1 + _level0.escudo1aux;
}
if (_level0.escudo1aux < 0) {
_level0.escudo1 = _level0.escudo1 + _level0.escudo1aux;
}
if (_level0.challenge == 21) {
_level0.escudo2 = _level0.escudo2 + _level0.escudo1aux;
}
if (_level0.escudo1 < 0) {
_level0.escudo1 = 0;
}
if ((_level0.contra1aux > 0) && (_level0.Xenophobia1 != 1)) {
_level0.contra1 = _level0.contra1aux;
}
if ((_level0.byakhee > 0) && (_level0.Xenophobia1 != 1)) {
_level0.byakhee1.gotoAndPlay(2);
_level0.shambler1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.byakhee = 0;
_level0.byakhee1inplay = 1;
_level0.shambler1inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 2;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 2;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.shub > 0) && (_level0.Xenophobia1 != 1)) {
_level0.shub1.gotoAndPlay(2);
_level0.byakhee1.gotoAndStop(1);
_level0.shambler1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub = 0;
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 5;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 5;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
if ((_level0.challenge == 21) && (_level0.Xenophobia2 != 1)) {
_level0.contra2 = 10;
_level0.shub2.gotoAndPlay(2);
_level0.byakhee2.gotoAndStop(1);
_level0.shambler2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.shub = 0;
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
}
}
if ((_level0.shambler > 0) && (_level0.Xenophobia1 != 1)) {
_level0.shambler1.gotoAndPlay(2);
_level0.byakhee1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.shambler = 0;
_level0.shambler1inplay = 1;
_level0.byakhee1inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 2;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 2;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.shoggoth > 0) && (_level0.Xenophobia1 != 1)) {
_level0.shoggoth1.gotoAndPlay(2);
_level0.shambler1.gotoAndStop(1);
_level0.byakhee1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.shoggoth = 0;
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 3;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 3;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.elderthing > 0) && (_level0.Xenophobia1 != 1)) {
_level0.elderthing1.gotoAndPlay(2);
_level0.shambler1.gotoAndStop(1);
_level0.byakhee1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.elderthing = 0;
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 1;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 1;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.Xenophobia1 == 1) && (_level0.elderthing > 0)) {
_level0.curaveneno = 0;
_level0.escudo1 = _level0.escudo1 - 3;
_level0.elderthing1.gotoAndStop(1);
}
if ((_level0.Xenophobia1 == 1) && (_level0.shoggoth > 0)) {
_level0.dispelc = 0;
_level0.shoggoth1.gotoAndStop(1);
}
if ((_level0.Xenophobia1 == 1) && (_level0.shub > 0)) {
_level0["da\u00F1o2"] = 0;
_level0.shub1.gotoAndStop(1);
}
if (_level0.Xenophobia1 == 1) {
_level0.contra1 = 0;
_level0.shambler1.gotoAndStop(1);
_level0.byakhee1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
}
if (_level0.veneno1aux > 0) {
_level0.veneno2 = _level0.veneno2 + _level0.veneno1aux;
_level0.mveneno2.gotoAndPlay(2);
_level0.text_poison2 = _level0.veneno2;
}
if (_level0.maldicion1aux > _level0.maldicion2) {
_level0.maldicion2 = _level0.maldicion1aux;
_level0.mmaldicion2.gotoAndStop(2);
}
if (_level0.bless1aux > _level0.bless1) {
_level0.bless1 = _level0.bless1aux;
}
if (_level0.paraliza > _level0.paraliza1) {
_level0.paraliza1 = _level0.paraliza;
}
if ((_level0.ceguera1aux == 1) || (random(100) < _level0.paraliza1)) {
_level0.ceguera2 = 1;
}
if (_level0.parapeto1aux > _level0.parapeto1) {
_level0.parapeto1 = _level0.parapeto1aux;
_level0.minvulner1.gotoAndStop(2);
}
if (_level0.dispelo > 0) {
_level0.paraliza2 = 0;
_level0.parapeto2 = 0;
_level0.minvulner2.gotoAndStop(1);
_level0.mmaldicion2.gotoAndStop(1);
_level0.mescudo2.gotoAndStop(1);
_level0.text_defense2 = 0;
_level0.mbless2.gotoAndStop(1);
_level0.regen2 = 0;
_level0.maldicion2 = 0;
_level0.escudo2 = 0;
_level0.bless2 = 0;
} else if (_level0.dispels > 0) {
_level0.mmaldicion1.gotoAndStop(1);
_level0.maldicion1 = 0;
} else if (_level0.dispelc > 0) {
_level0.contra2 = 0;
_level0.ccontra2.gotoAndStop(1);
_level0.text_counter2 = 0;
_level0.byakhee2.gotoAndStop(1);
_level0.shambler2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
_level0.dispelc = 0;
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
if ((_level0.challenge == 21) && (_level0.contra1 != 6)) {
_level0.contra1 = 0;
_level0.ccontra1.gotoAndStop(1);
_level0.text_counter1 = 0;
_level0.byakhee1.gotoAndStop(1);
_level0.shambler1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.dispelc = 0;
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
}
}
if (_level0.curaveneno > 0) {
_level0.mveneno1.gotoAndStop(1);
_level0.text_poison1 = 0;
_level0.veneno1 = 0;
}
}
this["cda\u00F1o2"].gotoAndPlay(2);
}
i = 0;
while (i < _level0.numcartas) {
_level0.barajas[_level0.numbar][i]._visible = false;
i = i + 1;
}
_level0.turno == 0;
}
Symbol 924 Button
on (release) {
function juegacarta() {
_level0["da\u00F1o"] = 0;
_level0.paraliza = 0;
_level0.ceguera1aux = 0;
_level0.arma1aux = 0;
_level0.escudo1aux = 0;
_level0.contra1aux = 0;
_level0.bless1aux = 0;
_level0.parapeto1aux = 0;
_level0.maldicion1aux = 0;
_level0.veneno1aux = 0;
_level0.runa1aux = 0;
_level0.cura = 0;
_level0.dispelo = 0;
_level0.dispels = 0;
_level0.dispelc = 0;
_level0.curaveneno = 0;
_level0.multiplyaux = 1;
_level0.regenaux = 0;
_level0.sanitygain = 0;
_level0.sanitycost = 0;
_level0.sanityloss = 0;
_level0.shambler = 0;
_level0.shoggoth = 0;
_level0.byakhee = 0;
_level0.normal = 0;
_level0.betrayed = 0;
_level0.elderthing = 0;
_level0.ignoreelder = 0;
_level0.shub = 0;
_level0.cthulhu = 0;
_level0.cardsound1 = 0;
_level0.cardsound2 = 0;
_level0.cardsound3 = 0;
_level0.cardsound4 = 0;
_level0.cardsound5 = 0;
_level0.cardsound6 = 0;
_level0.cardsound7 = 0;
_level0.cardsound8 = 0;
_level0.cardsound9 = 0;
}
_level0.matchcardsused++;
this.mascara1._visible = true;
this.mascara2._visible = true;
this.mascara3._visible = true;
if (_level0.turno == 0) {
} else if (_level0.ceguera1 == 0) {
_level0.barajas[_level0.numbar][_level0.carbueno].juegacarta();
if (_level0.sanitycost > 0) {
_level0.sanity1 = _level0.sanity1 + _level0.sanitycost;
trace("Sanity gain from discard " + _level0.sanitycost);
_level0.msanity1plus.sanityfx = _level0.sanitycost;
_level0.msanity1plus.gotoAndPlay(2);
_level0.sanitycost = 0;
}
}
if (_level0.sanity1 >= 1) {
_level0.insanity1 = 0;
_level0.agoraphobia1 = 0;
_level0.agoraphobiaIcon1.gotoAndStop(1);
_level0.Xenophobia1 = 0;
_level0.xenophobiaIcon1.gotoAndStop(1);
if (_level0.megalomania1 == 1) {
_level0.megalomania1 = 0;
_level0.megalomaniaIcon1.gotoAndStop(1);
_level0.arma1 = 0;
_level0.text_attack1 = 0;
_level0.marma1.gotoAndStop(1);
_level0.mveneno1.gotoAndStop(1);
_level0.text_poison1 = 0;
_level0.veneno1 = 0;
}
if (_level0.schizophrenia1 == 1) {
_level0.schizophrenia1 = 0;
_level0.schizophreniaIcon1.gotoAndStop(1);
_level0.arma1 = 0;
_level0.escudo1 = 0;
_level0.veneno1 = 0;
_level0.marma1.gotoAndStop(1);
_level0.mveneno1.gotoAndStop(1);
_level0.mescudo1.gotoAndStop(1);
_level0.text_poison1 = 0;
_level0.text_defense1 = 0;
_level0.text_attack1 = 0;
}
}
if (_level0.ceguera1 != 0) {
this["cda\u00F1o2"].gotoAndPlay(2);
}
juegacarta();
i = 0;
while (i < _level0.numcartas) {
_level0.barajas[_level0.numbar][i]._visible = false;
i = i + 1;
}
_level0.turno == 0;
if (_level0.veneno1 >= 1) {
this["cda\u00F1o2"].gotoAndPlay("veneno");
} else {
this["cda\u00F1o2"].gotoAndPlay("fin");
}
}
Symbol 925 MovieClip Frame 1
button.useHandCursor = false;
Symbol 927 MovieClip Frame 1
scale = random(50) + 30;
setProperty(_target, _x , (../:x + random(12)) - 6);
setProperty(_target, _yscale , scale);
Symbol 928 MovieClip Frame 1
i = 1;
max = 60;
x = getProperty("fire", _x);
Symbol 928 MovieClip Frame 2
if (max >= i) {
duplicateMovieClip ("fire", "fire" + i, i + 16384);
i = i + 1;
}
Symbol 928 MovieClip Frame 3
if (max >= i) {
duplicateMovieClip ("fire", "fire" + i, i + 16384);
i = i + 1;
}
this.gotoAndPlay(2);
Symbol 953 Button
on (release) {
_level0.gotoAndStop("scores");
}
Symbol 959 Button
on (release) {
if (_level0.challenge == 1) {
_level0.challenge1comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 2) {
_level0.challenge2comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 3) {
_level0.challenge3comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 4) {
_level0.challenge4comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 5) {
_level0.challenge5comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 6) {
_level0.challenge6comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 7) {
_level0.challenge7comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 8) {
_level0.challenge8comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 9) {
_level0.challenge9comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 10) {
_level0.challenge10comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 11) {
_level0.challenge11comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 12) {
_level0.challenge12comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 13) {
_level0.challenge13comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 2) {
_level0.challenge2comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 14) {
_level0.challenge14comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 15) {
_level0.challenge15comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 16) {
_level0.challenge16comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 17) {
_level0.challenge17comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 2) {
_level0.challenge2comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 14) {
_level0.challenge14comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 15) {
_level0.challenge15comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 16) {
_level0.challenge16comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 17) {
_level0.challenge17comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 18) {
_level0.challenge18comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 19) {
_level0.challenge19comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 20) {
_level0.challenge20comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 21) {
_level0.challenge21comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 22) {
_level0.challenge22comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 23) {
_level0.challenge23comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 24) {
_level0.challenge24comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 25) {
_level0.challenge25comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 26) {
_level0.challenge26comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 27) {
_level0.challenge27comp = 1;
_level0.gotoAndStop("challenge");
}
if (_level0.challenge == 28) {
_level0.challenge28comp = 1;
_level0.gotoAndStop("challenge");
}
}
Symbol 961 Button
on (release) {
_level0.setabg();
_level0.gotoAndStop("scores");
}
Symbol 966 Button
on (release) {
_level0.gotoAndStop("challenge");
}
Symbol 967 MovieClip Frame 1
stop();
Symbol 967 MovieClip Frame 2
if (_level0.ceguera1 != 0) {
_level0.cura = 0;
_level0.ceguera1 = 0;
gotoAndPlay ("ceguera");
} else {
if (_level0.ceguera2 > 0) {
_level0.mceguera2.gotoAndStop(2);
} else {
_level0.mceguera2.gotoAndStop(1);
}
if (_level0.arma1 > 0) {
_level0.marma1.gotoAndPlay(2);
} else {
_level0.marma1.gotoAndStop(1);
}
if (_level0.escudo1 > 0) {
_level0.mescudo1.gotoAndPlay(2);
} else {
_level0.mescudo1.gotoAndStop(1);
}
if (_level0.veneno2 > 0) {
_level0.mveneno2.gotoAndPlay(2);
} else {
_level0.mveneno2.gotoAndStop(1);
}
if (_level0.challenge == 21) {
if (_level0.veneno2 > 0) {
_level0.veneno1 = _level0.veneno2;
_level0.mveneno1.gotoAndPlay(2);
}
}
if (_level0.challenge == 21) {
if (_level0.arma2 > 0) {
_level0.marma2.gotoAndPlay(2);
}
}
if (_level0.challenge == 21) {
if (_level0.escudo2 > 0) {
_level0.mescudo2.gotoAndPlay(2);
}
}
_level0.text_poison2 = _level0.veneno2;
_level0.text_attack1 = _level0.arma1;
_level0.text_attack2 = _level0.arma2;
_level0.text_defense1 = _level0.escudo1;
_level0.text_defense2 = _level0.escudo2;
_level0.text_poison1 = _level0.veneno1;
}
Symbol 967 MovieClip Frame 3
if ((_level0["da\u00F1o2"] > 0) && (_level0.parapeto2 == 0)) {
play();
} else if (((_level0["da\u00F1o2"] > 0) && (_level0.parapeto2 != 0)) && (_level0.normal != 1)) {
gotoAndPlay ("parapeto");
} else if (((_level0["da\u00F1o2"] > 0) && (_level0.parapeto2 != 0)) && (_level0.normal == 1)) {
play();
} else if ((_level0.cura > 0) || (_level0.regen1 > 0)) {
gotoAndPlay ("cura");
} else if (_level0.veneno1 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 967 MovieClip Frame 4
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.setVolume(30);
if (_level0.cardsound1 == 1) {
mySound2.attachSound("shotgun");
} else if (_level0.cardsound2 == 1) {
mySound2.attachSound("tommygun");
} else if (_level0.cardsound3 == 1) {
mySound2.attachSound("raid");
} else {
mySound2.attachSound("attack");
}
mySound2.start();
}
Symbol 967 MovieClip Frame 12
tgranda\u00F1o._visible = false;
this["tda\u00F1o"] = _level0["da\u00F1o2"];
if ((_level0.vida2 - _level0["da\u00F1o2"]) >= 0) {
_level0.vida2 = _level0.vida2 - _level0["da\u00F1o2"];
_level0.calcularpuntaje(_level0["da\u00F1o2"], 1);
} else {
_level0.vida2 = 0;
_level0.calcularpuntaje(_level0["da\u00F1o2"], 1);
}
if (_root.sound == 1) {
mySound = new Sound();
if (_level0["da\u00F1o2"] < 7) {
mySound.attachSound("ih01350");
} else if ((_level0["da\u00F1o2"] >= 7) && (_level0["da\u00F1o2"] < 17)) {
mySound.attachSound("ih01349");
} else {
mySound.attachSound("MBigImpact1");
}
mySound.start();
}
Symbol 967 MovieClip Frame 50
if ((_level0.vida2 == 0) && (_level0.challenge == 19)) {
_level0.vida2 = 1;
}
if (((_level0.vida2 == 0) && (_level0.challenge == 20)) && (_level0["da\u00F1o2"] != 3)) {
_level0.vida2 = 1;
}
if (_level0.vida2 == 0) {
gotoAndPlay ("player1");
} else if ((_level0.contra2 > 0) && (_level0.donotcounter != 1)) {
gotoAndPlay ("contra");
trace("Counter attack");
} else if ((_level0.cura > 0) || (_level0.regen1 > 0)) {
gotoAndPlay ("cura");
} else if (_level0.veneno1 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 967 MovieClip Frame 61
creaturedamage = (_level0.contra2 - _level0.contra1) - _level0.escudo1;
if (_level0.byakhee2inplay == 1) {
creaturedamage = _level0.contra2 - _level0.escudo1;
}
if (_level0.shambler2inplay == 1) {
creaturedamage = _level0.contra2 - _level0.contra1;
}
if (creaturedamage < 0) {
creaturedamage = 0;
}
this["tda\u00F1o"] = creaturedamage;
trace("creature damage " + creaturedamage);
_level0.matchdamagereceived = _level0.matchdamagereceived + creaturedamage;
if ((_level0.vida1 - creaturedamage) >= 0) {
_level0.vida1 = _level0.vida1 - creaturedamage;
} else {
_level0.vida1 = 0;
}
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("creature_attack");
mySound2.setVolume(40);
mySound2.start();
if (creaturedamage > 0) {
mySound = new Sound();
mySound.attachSound("ih01350");
mySound.start();
}
}
Symbol 967 MovieClip Frame 101
if (_level0.vida1 == 0) {
gotoAndPlay ("player2");
} else if ((_level0.vida1 == 0) && (_level0.resucita > 0)) {
gotoAndPlay ("resucita");
} else if ((_level0.cura > 0) || (_level0.regen1 > 0)) {
gotoAndPlay ("cura");
} else if (_level0.veneno1 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 967 MovieClip Frame 107
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("cough2");
mySound2.setVolume(40);
mySound2.start();
}
this["tda\u00F1o"] = _level0.veneno1;
_level0.matchdamagereceived = _level0.matchdamagereceived + _level0.veneno1;
if ((_level0.vida1 - _level0.veneno1) > 1) {
_level0.vida1 = _level0.vida1 - _level0.veneno1;
} else {
_level0.vida1 = 1;
_level0.veneno1 = 0;
_level0.mveneno1.gotoAndStop(1);
_level0.text_poison1 = 0;
}
Symbol 967 MovieClip Frame 150
gotoAndPlay ("fin");
Symbol 967 MovieClip Frame 151
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("healsound");
mySound2.setVolume(40);
mySound2.start();
}
if ((_level0.cura > 0) && (_level0.regen1 > 0)) {
this.theal["tda\u00F1o"] = (_level0.cura + "+") + _level0.regen1;
} else if ((_level0.cura == 0) && (_level0.regen1 > 0)) {
this.theal["tda\u00F1o"] = _level0.regen1;
} else if ((_level0.cura > 0) && (_level0.regen1 == 0)) {
this.theal["tda\u00F1o"] = _level0.cura;
}
_level0.lifehealed = (_level0.lifehealed + _level0.cura) + _level0.regen1;
if (((_level0.vida1 + _level0.cura) + _level0.regen1) <= _level0.maxvida) {
_level0.vida1 = (_level0.vida1 + _level0.cura) + _level0.regen1;
} else {
_level0.vida1 = _level0.maxvida;
}
if (_levelo.challenge == 21) {
if (((_level0.vida2 + _level0.cura) + _level0.regen2) <= _level0.maxvida2) {
_level0.vida2 = (_level0.vida2 + _level0.cura) + _level0.regen2;
} else {
_level0.vida2 = _level0.maxvida2;
}
}
Symbol 967 MovieClip Frame 194
if (_level0.veneno1 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 967 MovieClip Frame 195
_level0.mceguera1.gotoAndStop(1);
Symbol 967 MovieClip Frame 231
if (_level0.regen1 > 0) {
gotoAndPlay ("cura");
} else if (_level0.veneno1 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 967 MovieClip Frame 236
this["tda\u00F1o"] = _level0["da\u00F1o2"];
_level0.parapeto2 = 0;
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("blocked");
mySound2.setVolume(40);
mySound2.start();
}
Symbol 967 MovieClip Frame 263
_level0.minvulner2.gotoAndStop(1);
if ((_level0.contra2 > 0) && (_level0.donotcounter != 1)) {
gotoAndPlay ("contra");
} else if ((_level0.cura > 0) || (_level0.regen1 > 0)) {
gotoAndPlay ("cura");
} else if (_level0.veneno1 > 0) {
gotoAndPlay ("veneno");
} else {
_level0.minvulner2.gotoAndStop(1);
gotoAndPlay ("fin");
}
Symbol 967 MovieClip Frame 264
if (_level0.challenge >= 1) {
this.challengecomplete._visible = true;
this.resultsbut._visible = false;
} else {
this.challengecomplete._visible = false;
this.resultsbut._visible = true;
}
if (_level0.higharcane < _level0.arma1) {
_level0.higharcane = _level0.arma1;
}
if (_level0.highelder < _level0.escudo1) {
_level0.highelder = _level0.escudo1;
}
if (_level0.hightaint < _level0.veneno1) {
_level0.hightaint = _level0.veneno1;
}
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("gameover");
mySound2.setVolume(40);
mySound2.start();
}
stop();
Symbol 967 MovieClip Frame 274
if (_level0.challenge >= 1) {
this.challengemenu._visible = true;
this.resultsbut._visible = false;
} else {
this.challengemenu._visible = false;
this.resultsbut._visible = true;
}
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("gameover");
mySound2.setVolume(40);
mySound2.start();
}
stop();
Symbol 967 MovieClip Frame 284
_level0.vida1 = 20;
_level0.resucita = 0;
Symbol 967 MovieClip Frame 296
if (_level0.challenge == 7) {
_level0.vida1 = _level0.vida1 - 1;
_level0.sanity1 = _level0.sanity1 - 1;
if (_level0.sanity1 < -10) {
_level0.sanity1 = -10;
}
if (_level0.vida1 <= 0) {
_level0.vida1 = 0;
gotoAndStop ("player2");
}
}
if (_level0.yogsothoth == 1) {
if (_level0.sanity1 >= 1) {
_level0.sanity1 = -5;
}
if (_level0.sanity2 >= 1) {
_level0.sanity2 = -5;
}
_level0.yogsothoth = 0;
}
if ((_level0.sanity1 <= 0) && (_level0.insanity1 == 0)) {
_level0.insanity1 = Math.ceil(Math.random() * 4);
trace("Insanity number is " + _level0.insanity1);
insanesound = random(3);
if (_root.sound == 1) {
if (insanesound == 0) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound");
play0.start();
} else if (insanesound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound2");
play0.start();
} else if (insanesound == 2) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound3");
play0.start();
} else if (insanesound == 3) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound4");
play0.start();
}
insanesound = 0;
}
if (_level0.insanity1 == 1) {
trace("Insanity is Xenophobia");
_level0.Xenophobia1 = 1;
_level0.xenophobiaIcon1.gotoAndPlay(2);
_level0.contra1 = 0;
}
if (_level0.insanity1 == 2) {
trace("Insanity is Megalomania");
_level0.megalomania1 = 1;
_level0.megalomaniaIcon1.gotoAndPlay(2);
}
if (_level0.insanity1 == 3) {
trace("Insanity is schizophrenia");
_level0.schizophrenia1 = 1;
_level0.schizophreniaIcon1.gotoAndPlay(2);
}
if (_level0.insanity1 == 4) {
trace("Main button Insanity is Agoraphobia1");
_level0.agoraphobia1 = 1;
_level0.agoraphobiaIcon1.gotoAndPlay(2);
}
}
if ((_level0.sanity2 <= 0) && (_level0.insanity2 == 0)) {
_level0.insanity2 = Math.ceil(Math.random() * 3);
trace("P2 Insanity number is " + _level0.insanity2);
insanesound = random(3);
if (_root.sound == 1) {
if (insanesound == 0) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound");
play0.start();
} else if (insanesound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound2");
play0.start();
} else if (insanesound == 2) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound3");
play0.start();
} else if (insanesound == 3) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound4");
play0.start();
}
}
insanesound = 0;
if (_level0.insanity2 == 1) {
trace("P2 Insanity is Xenophobia");
_level0.Xenophobia2 = 1;
_level0.xenophobiaIcon2.gotoAndPlay(2);
_level0.contra2 = 0;
_level0.shambler2.gotoAndStop(1);
_level0.byakhee2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
}
if (_level0.insanity2 == 2) {
trace("P2 Insanity is Megalomania");
trace("Megalomania effects");
_level0.megalomania2 = 1;
_level0.megalomaniaIcon2.gotoAndPlay(2);
}
if (_level0.insanity2 == 3) {
trace("P2 Insanity is schizophrenia");
_level0.schizophrenia2 = 1;
_level0.schizophreniaIcon2.gotoAndPlay(2);
}
}
Symbol 967 MovieClip Frame 312
if ((_level0.challenge == 5) && (_level0.sanity1 <= 0)) {
gotoAndStop ("player2");
}
if ((_level0.challenge == 13) && (_level0.sanity1 <= 0)) {
gotoAndStop ("player2");
}
if (_level0.challenge == 6) {
_level0.vida1 = _level0.vida1 - 1;
if (_level0.vida1 <= 0) {
_level0.vida1 = 0;
gotoAndStop ("player2");
}
}
if (_level0.challenge == 11) {
_level0.vida1 = _level0.vida1 - 1;
if (_level0.vida1 <= 0) {
_level0.vida1 = 0;
gotoAndStop ("player2");
}
}
if (_level0.challenge == 12) {
_level0.vida1 = _level0.vida1 - 1;
if (_level0.vida1 <= 0) {
_level0.vida1 = 0;
gotoAndStop ("player2");
}
}
if (_level0.challenge == 17) {
_level0.veneno1 = _level0.veneno1 + 3;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
}
Symbol 967 MovieClip Frame 313
if (_level0.donotcounter == 1) {
_level0.donotcounter = 0;
trace("Reset counter attack varible");
}
if (_level0.Xenophobia1 == 1) {
_level0.contra1 = 0;
_level0.shambler1.gotoAndStop(1);
_level0.byakhee1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
}
if (_level0.megalomania1 == 1) {
_level0.arma1 = _level0.arma1 + 2;
_level0.marma1.gotoAndPlay(2);
_level0.text_attack1 = _level0.text_attack1 + 2;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.text_poison1 + 4;
_level0.veneno1 = _level0.veneno1 + 4;
}
if (_level0.schizophrenia1 == 1) {
_level0.arma1 = 0;
_level0.escudo1 = 0;
if (_level0.arma1 < 0) {
_level0.arma1 = 0;
}
if (_level0.veneno1 < 0) {
_level0.veneno1 = 0;
}
if (_level0.escudo1 < 0) {
_level0.escudo1 = 0;
}
if (_level0.arma1 > 0) {
_level0.marma1.gotoAndPlay(2);
} else {
_level0.marma1.gotoAndStop(1);
}
if (_level0.escudo1 > 0) {
_level0.mescudo1.gotoAndPlay(2);
} else {
_level0.mescudo1.gotoAndStop(1);
}
if (_level0.veneno1 > 0) {
_level0.mveneno1.gotoAndPlay(2);
} else {
_level0.mveneno1.gotoAndStop(1);
}
if (_level0.vida1 > _level0.maxvida) {
_level0.vida1 = _level0.maxvida;
}
if (_level0.vida1 <= 0) {
_level0.vida1 = 1;
}
_level0.text_attack1 = _level0.arma1;
_level0.text_defense1 = _level0.escudo1;
_level0.text_poison1 = _level0.veneno1;
}
if (_level0.higharcane < _level0.arma1) {
_level0.higharcane = _level0.arma1;
}
if (_level0.highelder < _level0.escudo1) {
_level0.highelder = _level0.escudo1;
}
if (_level0.hightaint < _level0.veneno1) {
_level0.hightaint = _level0.veneno1;
}
trace("Turn end");
this._parent.ccartamalo.play();
this._parent.play();
Symbol 970 Button
on (release) {
_level0.gotoAndStop("scores");
}
Symbol 971 MovieClip Frame 2
if (_level0.ceguera2 != 0) {
_level0.cura = 0;
_level0.ceguera2 = 0;
gotoAndPlay ("ceguera");
} else {
if (_level0.ceguera1 > 0) {
_level0.mceguera1.gotoAndStop(2);
} else {
_level0.mceguera1.gotoAndStop(1);
}
if (_level0.arma2 > 0) {
_level0.marma2.gotoAndPlay(2);
} else {
_level0.marma2.gotoAndStop(1);
}
if (_level0.escudo2 > 0) {
_level0.mescudo2.gotoAndPlay(2);
} else {
_level0.mescudo2.gotoAndStop(1);
}
if (_level0.maldicion1 > 0) {
_level0.mmaldicion1.gotoAndStop(2);
} else {
_level0.mmaldicion1.gotoAndStop(1);
}
if (_level0.veneno1 > 0) {
_level0.mveneno1.gotoAndPlay(2);
} else {
_level0.mveneno1.gotoAndStop(1);
}
_level0.text_attack2 = _level0.arma2;
_level0.text_defense2 = _level0.escudo2;
_level0.text_poison2 = _level0.veneno2;
}
Symbol 971 MovieClip Frame 3
if ((_level0.challenge == 5) && (_level0.sanity1 <= 0)) {
gotoAndPlay ("player2");
}
if ((_level0["da\u00F1o1"] > 0) && (_level0.parapeto1 == 0)) {
play();
} else if (((_level0["da\u00F1o1"] > 0) && (_level0.parapeto1 != 0)) && (_level0.normal != 1)) {
gotoAndPlay ("parapeto");
} else if (((_level0["da\u00F1o1"] > 0) && (_level0.parapeto1 != 0)) && (_level0.normal == 1)) {
play();
} else if ((_level0.cura > 0) || (_level0.regen2 > 0)) {
gotoAndPlay ("cura");
} else if (_level0.veneno2 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 971 MovieClip Frame 4
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.setVolume(30);
if (_level0.cardsound1 == 1) {
mySound2.attachSound("shotgun");
} else if (_level0.cardsound2 == 1) {
mySound2.attachSound("tommygun");
} else if (_level0.cardsound3 == 1) {
mySound2.attachSound("raid");
} else {
mySound2.attachSound("attack");
}
mySound2.start();
}
Symbol 971 MovieClip Frame 12
this["tda\u00F1o"] = _level0["da\u00F1o1"];
_level0.matchdamagereceived = _level0.matchdamagereceived + _level0["da\u00F1o1"];
if ((_level0.vida1 - _level0["da\u00F1o1"]) >= 0) {
_level0.vida1 = _level0.vida1 - _level0["da\u00F1o1"];
} else {
_level0.vida1 = 0;
}
if (_root.sound == 1) {
mySound = new Sound();
if (_level0["da\u00F1o1"] < 7) {
mySound.attachSound("ih01350");
} else if ((_level0["da\u00F1o1"] >= 7) && (_level0["da\u00F1o1"] < 17)) {
mySound.attachSound("ih01349");
} else {
mySound.attachSound("MBigImpact1");
}
mySound.start();
}
Symbol 971 MovieClip Frame 50
if (_level0.vida1 == 0) {
gotoAndPlay ("player2");
} else if ((_level0.contra1 > 0) && (_level0.donotcounter != 1)) {
trace("counter attack");
gotoAndPlay ("contra");
} else if ((_level0.cura > 0) || (_level0.regen2 > 0)) {
gotoAndPlay ("cura");
} else if (_level0.veneno2 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 971 MovieClip Frame 61
creaturedamage = (_level0.contra1 - _level0.contra2) - _level0.escudo2;
if (_level0.byakhee1inplay == 1) {
creaturedamage = _level0.contra1 - _level0.escudo2;
}
if (_level0.shambler1inplay == 1) {
creaturedamage = _level0.contra1 - _level0.contra2;
}
if (creaturedamage < 0) {
creaturedamage = 0;
}
this["tda\u00F1o"] = creaturedamage;
trace("creature damage " + creaturedamage);
_level0.totaldamage = _level0.totaldamage + creaturedamage;
_level0.ncounter = _level0.ncounter + 1;
if ((_level0.vida2 - creaturedamage) >= 0) {
_level0.vida2 = _level0.vida2 - creaturedamage;
_level0.calcularpuntaje(creaturedamage, 1);
} else {
_level0.calcularpuntaje(creaturedamage, 1);
_level0.vida2 = 0;
}
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("creature_attack");
mySound2.setVolume(40);
mySound2.start();
if (creaturedamage > 0) {
mySound = new Sound();
mySound.attachSound("ih01350");
mySound.start();
}
}
Symbol 971 MovieClip Frame 100
if ((_level0.vida2 == 0) && (_level0.challenge == 20)) {
_level0.vida2 = 1;
}
if (_level0.vida2 == 0) {
gotoAndStop ("player1");
} else if ((_level0.cura > 0) || (_level0.regen2 > 0)) {
gotoAndPlay ("cura");
} else if (_level0.veneno2 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 971 MovieClip Frame 106
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("cough2");
mySound2.setVolume(40);
mySound2.start();
}
this["tda\u00F1o"] = _level0.veneno2;
if ((_level0.vida2 - _level0.veneno2) > 1) {
_level0.vida2 = _level0.vida2 - _level0.veneno2;
_level0.calcularpuntaje(_level0.veneno2, 1);
} else {
_level0.calcularpuntaje(_level0.veneno2, 1);
_level0.vida2 = 1;
_level0.veneno2 = 0;
_level0.mveneno2.gotoAndStop(1);
_level0.text_poison2 = 0;
_level0.bveneno2._height = 0;
trace("player2");
}
Symbol 971 MovieClip Frame 151
gotoAndPlay ("fin");
Symbol 971 MovieClip Frame 152
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("healsound");
mySound2.setVolume(40);
mySound2.start();
}
if ((_level0.cura > 0) && (_level0.regen2 > 0)) {
this.theal["tda\u00F1o"] = (_level0.cura + "+") + _level0.regen2;
} else if ((_level0.cura == 0) && (_level0.regen2 > 0)) {
this.theal["tda\u00F1o"] = _level0.regen2;
} else if ((_level0.cura > 0) && (_level0.regen2 == 0)) {
this.theal["tda\u00F1o"] = _level0.cura;
}
if (((_level0.vida2 + _level0.cura) + _level0.regen2) <= _level0.maxvida2) {
_level0.vida2 = (_level0.vida2 + _level0.cura) + _level0.regen2;
} else {
_level0.vida2 = _level0.maxvida2;
}
Symbol 971 MovieClip Frame 183
if (_level0.veneno2 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 971 MovieClip Frame 184
_level0.mceguera2.gotoAndStop(1);
Symbol 971 MovieClip Frame 217
if (_level0.regen2 > 0) {
gotoAndPlay ("cura");
} else if (_level0.veneno2 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 971 MovieClip Frame 222
this["tda\u00F1o"] = _level0["da\u00F1o1"];
_level0.parapeto1 = 0;
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("blocked");
mySound2.setVolume(40);
mySound2.start();
}
Symbol 971 MovieClip Frame 249
_level0.minvulner1.gotoAndStop(1);
if ((_level0.contra1 > 0) && (_level0.donotcounter != 1)) {
gotoAndPlay ("contra");
} else if ((_level0.cura > 0) || (_level0.regen2 > 0)) {
gotoAndPlay ("cura");
} else if (_level0.veneno2 > 0) {
gotoAndPlay ("veneno");
} else {
gotoAndPlay ("fin");
}
Symbol 971 MovieClip Frame 250
if (_level0.challenge >= 1) {
this.challengemenu._visible = true;
this.resultsbut._visible = false;
} else {
this.challengemenu._visible = false;
this.resultsbut._visible = true;
}
if (_level0.higharcane < _level0.arma1) {
_level0.higharcane = _level0.arma1;
}
if (_level0.highelder < _level0.escudo1) {
_level0.highelder = _level0.escudo1;
}
if (_level0.hightaint < _level0.veneno1) {
_level0.hightaint = _level0.veneno1;
}
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("gameover");
mySound2.setVolume(40);
mySound2.start();
}
stop();
Symbol 971 MovieClip Frame 260
if (_level0.challenge >= 1) {
this.challengecomplete._visible = true;
this.resultsbut._visible = false;
} else {
this.challengecomplete._visible = false;
this.resultsbut._visible = true;
}
if (_level0.higharcane < _level0.arma1) {
_level0.higharcane = _level0.arma1;
}
if (_level0.highelder < _level0.escudo1) {
_level0.highelder = _level0.escudo1;
}
if (_level0.hightaint < _level0.veneno1) {
_level0.hightaint = _level0.veneno1;
}
if (_root.sound == 1) {
mySound2 = new Sound();
mySound2.attachSound("gameover");
mySound2.setVolume(40);
mySound2.start();
}
stop();
Symbol 971 MovieClip Frame 270
_level0.vida1 = 20;
_level0.resucita = 0;
Symbol 971 MovieClip Frame 283
if (_level0.yogsothoth == 1) {
if (_level0.sanity1 >= 1) {
_level0.sanity1 = -5;
}
if (_level0.sanity2 >= 1) {
_level0.sanity2 = -5;
}
_level0.yogsothoth = 0;
}
if ((_level0.sanity2 <= 0) && (_level0.insanity2 == 0)) {
_level0.insanity2 = Math.ceil(Math.random() * 3);
trace("Insanity number is " + _level0.insanity2);
if (_level0.insanity2 == 1) {
trace("Insanity is Xenophobia");
_level0.Xenophobia2 = 1;
_level0.xenophobiaIcon2.gotoAndPlay(2);
_level0.contra2 = 0;
}
if (_level0.insanity2 == 2) {
trace("Insanity is Megalomania");
_level0.megalomania2 = 1;
_level0.megalomaniaIcon2.gotoAndPlay(2);
}
if (_level0.insanity2 == 3) {
trace("Insanity is schizophrenia");
_level0.schizophrenia2 = 1;
_level0.schizophreniaIcon2.gotoAndPlay(2);
}
}
if ((_level0.sanity1 <= 0) && (_level0.insanity1 == 0)) {
_level0.insanity1 = Math.ceil(Math.random() * 4);
trace("Insanity number is " + _level0.insanity1);
if (_level0.insanity1 == 1) {
trace("Insanity is Xenophobia");
_level0.Xenophobia1 = 1;
_level0.xenophobiaIcon1.gotoAndPlay(2);
_level0.contra1 = 0;
_level0.shambler1.gotoAndStop(1);
_level0.byakhee1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
}
if (_level0.insanity1 == 2) {
trace("Insanity is Megalomania");
_level0.megalomania1 = 1;
_level0.megalomaniaIcon1.gotoAndPlay(2);
}
if (_level0.insanity1 == 3) {
trace("Player 2 Insanity is schizophrenia");
_level0.schizophrenia1 = 1;
_level0.schizophreniaIcon1.gotoAndPlay(2);
}
if (_level0.insanity1 == 4) {
trace("Main button Insanity is Agoraphobia1");
_level0.agoraphobia1 = 1;
_level0.agoraphobiaIcon1.gotoAndPlay(2);
}
}
Symbol 971 MovieClip Frame 313
if ((_level0.challenge == 5) && (_level0.sanity1 <= 0)) {
gotoAndStop ("player2");
}
if ((_level0.challenge == 13) && (_level0.sanity1 <= 0)) {
gotoAndStop ("player2");
}
if (_level0.challenge == 11) {
_level0.arma2 = _level0.arma2 + 1;
if (_level0.arma2 > 0) {
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if (_level0.challenge == 12) {
_level0.arma2 = _level0.arma2 + 1;
if (_level0.arma2 > 0) {
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if (_level0.challenge == 13) {
_level0.arma2 = _level0.arma2 + 1;
if (_level0.arma2 > 0) {
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if (_level0.challenge == 14) {
_level0.arma2 = _level0.arma2 + 2;
if (_level0.arma2 > 0) {
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
Symbol 971 MovieClip Frame 314
if (_level0.donotcounter == 1) {
_level0.donotcounter = 0;
trace("Reset counter attack varible");
}
if (_level0.Xenophobia2 == 1) {
_level0.contra2 = 0;
_level0.shambler2.gotoAndStop(1);
_level0.byakhee2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
}
if (_level0.megalomania2 == 1) {
trace("Megalomania effects");
_level0.arma2 = _level0.arma2 + 2;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.text_attack2 + 2;
_level0.mveneno2.gotoAndPlay(2);
_level0.text_poison2 = _level0.text_poison2 + 4;
_level0.veneno2 = _level0.veneno2 + 4;
}
if (_level0.schizophrenia2 == 1) {
_level0.arma2 = 0;
_level0.escudo2 = 0;
if (_level0.arma2 < 0) {
_level0.arma2 = 0;
}
if (_level0.veneno2 < 0) {
_level0.veneno2 = 0;
}
if (_level0.escudo2 < 0) {
_level0.escudo2 = 0;
}
if (_level0.arma2 > 0) {
_level0.marma2.gotoAndPlay(2);
} else {
_level0.marma2.gotoAndStop(1);
}
if (_level0.escudo2 > 0) {
_level0.mescudo2.gotoAndPlay(2);
} else {
_level0.mescudo2.gotoAndStop(1);
}
if (_level0.veneno2 > 0) {
_level0.mveneno2.gotoAndPlay(2);
} else {
_level0.mveneno2.gotoAndStop(1);
}
if (_level0.vida2 > _level0.maxvida2) {
_level0.vida2 = _level0.maxvida2;
}
if (_level0.vida2 <= 0) {
_level0.vida2 = 1;
}
_level0.text_attack2 = _level0.arma2;
_level0.text_defense2 = _level0.escudo2;
_level0.text_poison2 = _level0.veneno2;
}
trace("Turn end");
this._parent.play();
Symbol 982 MovieClip Frame 31
stop();
Symbol 983 MovieClip Frame 2
trace((((("DISTRIBUTING LETTERS: player1:" + _level0.numbar) + " player2:") + _level0.reparte) + " cindice actual=") + _level0.cindice);
if (_level0.cindice == 1) {
_level0.gfxbaraja.gotoAndStop(2);
} else if (_level0.cindice == 0) {
_level0.gfxbaraja.gotoAndStop(3);
} else if (_level0.cindice <= -1) {
trace("I FINISH THE DECK. WE RETURN TO SHUFFLE...");
_level0.barajacartas();
stop();
trace("cindice: " + _level0.cindice);
}
Symbol 983 MovieClip Frame 3
gotoAndPlay(4 + (_level0.numbar * 34));
Symbol 983 MovieClip Frame 32
trace("repartiondo a player1...visible " + visible);
Symbol 983 MovieClip Frame 36
i = 0;
while (i < _level0.numcartas) {
_level0.barajas[_level0.numbar][i]._visible = false;
i = i + 1;
}
visible = _level0.barajar[_level0.cindice];
trace("visible " + visible);
_level0.barajas[_level0.numbar][visible]._visible = true;
_level0.barajas[_level0.numbar]._visible = true;
_level0.cindice = _level0.cindice - 1;
if (_level0.cindice == 1) {
_level0.gfxbaraja.gotoAndStop(2);
} else if (_level0.cindice == 0) {
_level0.gfxbaraja.gotoAndStop(3);
} else if (_level0.cindice <= -1) {
trace("I FINISH THE DECK. WE RETURN TO SHUFFLE (2)...");
_level0.barajacartas();
stop();
trace("cindice: " + _level0.cindice);
}
Symbol 983 MovieClip Frame 37
trace("WE DISTRIBUTE TO PLAYER 2 ON GUARD:" + _level0.reparte);
gotoAndPlay(175 + (_level0.reparte * 7));
Symbol 983 MovieClip Frame 38
trace("deal out card 2");
Symbol 983 MovieClip Frame 66
trace("repartiondo a player1...visible " + visible);
Symbol 983 MovieClip Frame 70
i = 0;
while (i < _level0.numcartas) {
_level0.barajas[_level0.numbar][i]._visible = false;
i = i + 1;
}
visible = _level0.barajar[_level0.cindice];
trace("visible " + visible);
_level0.barajas[_level0.numbar][visible]._visible = true;
_level0.barajas[_level0.numbar]._visible = true;
_level0.cindice = _level0.cindice - 1;
if (_level0.cindice == 1) {
_level0.gfxbaraja.gotoAndStop(2);
} else if (_level0.cindice == 0) {
_level0.gfxbaraja.gotoAndStop(3);
} else if (_level0.cindice <= -1) {
trace("I FINISH THE DECK. WE RETURN TO SHUFFLE (2)...");
_level0.barajacartas();
stop();
trace("cindice: " + _level0.cindice);
}
Symbol 983 MovieClip Frame 71
trace("WE DISTRIBUTE TO PLAYER 2 ON GUARD:" + _level0.reparte);
gotoAndPlay(175 + (_level0.reparte * 7));
Symbol 983 MovieClip Frame 72
trace("deal out card 3");
Symbol 983 MovieClip Frame 100
trace("distribute to player1...visible " + visible);
Symbol 983 MovieClip Frame 104
i = 0;
while (i < _level0.numcartas) {
_level0.barajas[_level0.numbar][i]._visible = false;
i = i + 1;
}
visible = _level0.barajar[_level0.cindice];
trace("visible " + visible);
_level0.barajas[_level0.numbar][visible]._visible = true;
_level0.barajas[_level0.numbar]._visible = true;
_level0.cindice = _level0.cindice - 1;
if (_level0.cindice == 1) {
_level0.gfxbaraja.gotoAndStop(2);
} else if (_level0.cindice == 0) {
_level0.gfxbaraja.gotoAndStop(3);
} else if (_level0.cindice <= -1) {
trace("I FINISH THE DECK. WE RETURN TO SHUFFLE(2)...");
_level0.barajacartas();
stop();
trace("cindice: " + _level0.cindice);
}
Symbol 983 MovieClip Frame 105
trace("WE DISTRIBUTE TO PLAYER 2 ON GUARD:" + _level0.reparte);
gotoAndPlay(175 + (_level0.reparte * 7));
Symbol 983 MovieClip Frame 106
trace("deal out card 4");
Symbol 983 MovieClip Frame 134
trace("distribute to player1...visible " + visible);
Symbol 983 MovieClip Frame 138
i = 0;
while (i < _level0.numcartas) {
_level0.barajas[_level0.numbar][i]._visible = false;
i = i + 1;
}
visible = _level0.barajar[_level0.cindice];
trace("visible " + visible);
_level0.barajas[_level0.numbar][visible]._visible = true;
_level0.barajas[_level0.numbar]._visible = true;
_level0.cindice = _level0.cindice - 1;
if (_level0.cindice == 1) {
_level0.gfxbaraja.gotoAndStop(2);
} else if (_level0.cindice == 0) {
_level0.gfxbaraja.gotoAndStop(3);
} else if (_level0.cindice <= -1) {
trace("I FINISH THE DECK. WE RETURN TO SHUFFLE (2)...");
_level0.barajacartas();
stop();
trace("cindice: " + _level0.cindice);
}
Symbol 983 MovieClip Frame 139
trace("WE DISTRIBUTE TO PLAYER 2 ON GUARD:" + _level0.reparte);
gotoAndPlay(175 + (_level0.reparte * 7));
Symbol 983 MovieClip Frame 140
trace("deal out card 5");
Symbol 983 MovieClip Frame 169
trace("distribute to player1...visible " + visible);
Symbol 983 MovieClip Frame 173
i = 0;
while (i < _level0.numcartas) {
_level0.barajas[_level0.numbar][i]._visible = false;
i = i + 1;
}
visible = _level0.barajar[_level0.cindice];
trace("visible " + visible);
_level0.barajas[_level0.numbar][visible]._visible = true;
_level0.barajas[_level0.numbar]._visible = true;
_level0.cindice = _level0.cindice - 1;
if (_level0.cindice == 1) {
_level0.gfxbaraja.gotoAndStop(2);
} else if (_level0.cindice == 0) {
_level0.gfxbaraja.gotoAndStop(3);
} else if (_level0.cindice <= -1) {
trace("I FINISH THE DECK. WE RETURN TO SHUFFLE (2)...");
_level0.barajacartas();
stop();
trace("cindice: " + _level0.cindice);
}
Symbol 983 MovieClip Frame 174
trace("WE DISTRIBUTE TO PLAYER 2 ON GUARD:" + _level0.reparte);
gotoAndPlay(175 + (_level0.reparte * 7));
Symbol 983 MovieClip Frame 181
_level0.cmalo1.gotoAndStop(1);
_level0.cmalo1._visible = true;
trace((("Play card " + _level0.barajar[_level0.cindice]) + " in the position ") + _level0.reparte);
visible = _level0.barajar[_level0.cindice];
_level0.cindice = _level0.cindice - 1;
_level0.cartasp2[_level0.reparte] = visible;
trace("" + _level0.cartasp2);
this._parent.play();
stop();
Symbol 983 MovieClip Frame 188
_level0.cmalo2.gotoAndStop(1);
_level0.cmalo2._visible = true;
trace((("Play card " + _level0.barajar[_level0.cindice]) + " in the position ") + _level0.reparte);
visible = _level0.barajar[_level0.cindice];
_level0.cindice = _level0.cindice - 1;
_level0.cartasp2[_level0.reparte] = visible;
trace("" + _level0.cartasp2);
this._parent.play();
stop();
Symbol 983 MovieClip Frame 195
_level0.cmalo3.gotoAndStop(1);
_level0.cmalo3._visible = true;
trace((("Play card " + _level0.barajar[_level0.cindice]) + " in the position ") + _level0.reparte);
visible = _level0.barajar[_level0.cindice];
_level0.cindice = _level0.cindice - 1;
_level0.cartasp2[_level0.reparte] = visible;
trace("" + _level0.cartasp2);
this._parent.play();
stop();
Symbol 983 MovieClip Frame 202
_level0.cmalo4.gotoAndStop(1);
_level0.cmalo4._visible = true;
trace((("Play card " + _level0.barajar[_level0.cindice]) + " in the position ") + _level0.reparte);
visible = _level0.barajar[_level0.cindice];
_level0.cindice = _level0.cindice - 1;
_level0.cartasp2[_level0.reparte] = visible;
trace("" + _level0.cartasp2);
this._parent.play();
stop();
Symbol 983 MovieClip Frame 209
_level0.cmalo5.gotoAndStop(1);
_level0.cmalo5._visible = true;
trace((("Play card " + _level0.barajar[_level0.cindice]) + " in the position ") + _level0.reparte);
visible = _level0.barajar[_level0.cindice];
_level0.cindice = _level0.cindice - 1;
_level0.cartasp2[_level0.reparte] = visible;
trace("" + _level0.cartasp2);
this._parent.play();
stop();
Symbol 984 MovieClip Frame 1
stop();
Symbol 984 MovieClip Frame 2
this.mascara1._visible = false;
this.mascara2._visible = false;
this.mascara3._visible = false;
stop();
Symbol 984 MovieClip Frame 21
_level0.barajamalo._visible = true;
i = 0;
while (i < _level0.numcartas) {
_level0.barmalo[i]._visible = false;
i = i + 1;
}
_level0.barmalo[_level0.destapa]._visible = true;
_level0.turno = 2;
if (_level0.ceguera2 == 0) {
if (_level0.sanitycost > 0) {
_level0.sanity2 = _level0.sanity2 - _level0.sanitycost;
trace("Sanity loss " + _level0.sanitycost);
_level0.msanity2.sanityfx = _level0.sanitycost;
_level0.sanitycost = 0;
_level0.msanity2.gotoAndPlay(2);
}
if (_level0.sanityloss > 0) {
_level0.sanity1 = _level0.sanity1 - _level0.sanityloss;
_level0.msanity1.sanityfx = _level0.sanityloss;
_level0.msanity1.gotoAndPlay(2);
}
if (_level0.sanitygain > 0) {
_level0.sanity2 = _level0.sanity2 + _level0.sanitygain;
_level0.msanity2plus.sanityfx = _level0.sanitygain;
_level0.msanity2plus.gotoAndPlay(2);
}
if (_level0.sanity2 < -10) {
_level0.sanity2 = -10;
}
if (_level0.sanity1 < -10) {
_level0.sanity1 = -10;
}
if (_level0.sanity2 >= 1) {
_level0.insanity2 = 0;
_level0.Xenophobia2 = 0;
_level0.xenophobiaIcon2.gotoAndStop(1);
if (_level0.megalomania2 == 1) {
_level0.megalomania2 = 0;
_level0.megalomaniaIcon2.gotoAndStop(1);
_level0.arma2 = 0;
_level0.text_attack2 = 0;
_level0.marma2.gotoAndStop(1);
_level0.mveneno2.gotoAndStop(1);
_level0.text_poison2 = 0;
_level0.veneno2 = 0;
}
if (_level0.schizophrenia2 == 1) {
_level0.schizophrenia2 = 0;
_level0.schizophreniaIcon2.gotoAndStop(1);
_level0.arma2 = 0;
_level0.escudo2 = 0;
_level0.veneno2 = 0;
_level0.marma2.gotoAndStop(1);
_level0.mveneno2.gotoAndStop(1);
_level0.mescudo2.gotoAndStop(1);
_level0.text_poison2 = 0;
_level0.text_defense2 = 0;
_level0.text_attack2 = 0;
}
}
if (_level0.normal == 2) {
_level0.normal = 0;
}
if (_level0.normal == 3) {
_level0.arma2 = _level0.arma1;
if (_level0.arma2 == 0) {
_level0.marma2.gotoAndStop(1);
} else {
_level0.marma2.gotoAndPlay(2);
}
_level0.escudo2 = _level0.escudo1;
if (_level0.escudo2 == 0) {
_level0.mescudo2.gotoAndStop(1);
} else {
_level0.mescudo2.gotoAndPlay(2);
}
_level0.veneno2 = _level0.veneno1;
if (_level0.veneno2 == 0) {
_level0.mveneno2.gotoAndStop(1);
} else {
_level0.mveneno2.gotoAndPlay(2);
}
_level0.normal = 0;
}
if (_level0.normal == 4) {
_level0.parapeto1 = 0;
_level0.minvulner1.gotoAndStop(1);
_level0.parapeto2 = 0;
_level0.minvulner2.gotoAndStop(1);
_level0.arma1 = 0;
_level0.marma1.gotoAndStop(1);
_level0.text_attack1 = 0;
_level0.arma2 = 0;
_level0.marma2.gotoAndStop(1);
_level0.text_attack2 = 0;
_level0.escudo1 = 0;
_level0.mescudo1.gotoAndStop(1);
_level0.text_defense1 = 0;
_level0.escudo2 = 0;
_level0.mescudo2.gotoAndStop(1);
_level0.text_defense2 = 0;
_level0.contra1 = 0;
_level0.ccontra1.gotoAndStop(1);
_level0.text_counter1 = 0;
_level0.contra2 = 0;
_level0.ccontra2.gotoAndStop(1);
_level0.text_counter2 = 0;
_level0.veneno1 = 0;
_level0.mveneno1.gotoAndStop(1);
_level0.text_poison1 = 0;
_level0.veneno2 = 0;
_level0.mveneno2.gotoAndStop(1);
_level0.text_poison2 = 0;
_level0.byakhee2.gotoAndStop(1);
_level0.shambler2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.byakhee1.gotoAndStop(1);
_level0.shambler1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
if (_level0.sanity1 <= 0) {
_level0.sanity1 = 5;
} else if (_level0.sanity1 >= 1) {
_level0.sanity1 = _level0.sanity1 + 5;
}
_level0.msanity1plus.sanityfx = 5;
_level0.msanity1plus.gotoAndPlay(2);
if (_level0.sanity2 <= 0) {
_level0.sanity2 = 5;
} else if (_level0.sanity2 >= 1) {
_level0.sanity2 = _level0.sanity2 + 5;
}
_level0.msanity2plus.sanityfx = 5;
_level0.msanity2plus.gotoAndPlay(2);
_level0.insanity1 = 0;
_level0.insanity2 = 0;
_level0.Xenophobia1 = 0;
_level0.xenophobiaIcon1.gotoAndStop(1);
_level0.megalomania1 = 0;
_level0.megalomaniaIcon1.gotoAndStop(1);
_level0.schizophrenia1 = 0;
_level0.schizophreniaIcon1.gotoAndStop(1);
_level0.Xenophobia2 = 0;
_level0.xenophobiaIcon2.gotoAndStop(1);
_level0.megalomania2 = 0;
_level0.megalomaniaIcon2.gotoAndStop(1);
_level0.schizophrenia2 = 0;
_level0.schizophreniaIcon2.gotoAndStop(1);
_level0.agoraphobia1 = 0;
_level0.agoraphobiaIcon1.gotoAndStop(1);
_level0.normal = 0;
}
if (_level0.normal == 5) {
experiment = random(4);
if (experiment == 0) {
_level0.shoggoth = 1;
_level0.contra2 = 6;
_level0.dispelc = 1;
}
if (experiment == 1) {
_level0["da\u00F1o"] = 15;
}
if (experiment == 2) {
_level0.arma2 = _level0.arma2 + 5;
_level0.escudo2 = _level0.escudo2 + 5;
}
if (experiment == 3) {
_level0.sanity2 = -5;
}
_level0.normal = 0;
}
if (_level0.normal == 6) {
_level0["da\u00F1o"] = _level0.sanity1 - _level0.arma2;
_level0.yogsothoth = 1;
_level0.normal = 0;
}
if (_level0.normal == 7) {
if (_level0.sanity1 <= 0) {
_level0["da\u00F1o"] = 20;
} else {
_level0.sanity1 = -5;
}
_level0.normal = 0;
}
if (_level0.normal == 8) {
_level0.arma1 = 0;
_level0.marma1.gotoAndStop(1);
_level0.text_attack1 = 0;
_level0.normal = 0;
}
if ((((_level0.sanity2 <= 0) && (_level0.schizophrenia2 != 1)) && (_level0.Xenophobia2 != 1)) && (_level0.megalomania2 != 1)) {
_level0.insanity2 = Math.ceil(Math.random() * 3);
trace("P2 Main Insanity number is " + _level0.insanity1);
insanesound = random(3);
if (_root.sound == 1) {
if (insanesound == 0) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound");
play0.start();
} else if (insanesound == 1) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound2");
play0.start();
} else if (insanesound == 2) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound3");
play0.start();
} else if (insanesound == 3) {
play0 = new Sound();
play0.setVolume(50);
play0.attachSound("insanitysound4");
play0.start();
}
}
insanesound = 0;
}
if ((_level0.insanity2 == 1) && (_level0.Xenophobia2 != 1)) {
trace("P2 Main Insanity is Xenophobia");
_level0.Xenophobia2 = 1;
_level0.xenophobiaIcon2.gotoAndPlay(2);
}
if ((_level0.insanity2 == 2) && (_level0.megalomania2 != 1)) {
trace("P2 Main Insanity is megalomania");
_level0.megalomania2 = 1;
_level0.megalomaniaIcon2.gotoAndPlay(2);
}
if ((_level0.insanity2 == 3) && (_level0.schizophrenia2 != 1)) {
trace("P2 Main Insanity is schizophrenia1");
_level0.schizophrenia2 = 1;
_level0.schizophreniaIcon2.gotoAndPlay(2);
}
if ((_level0.betrayed == 1) && (_level0.contra1 >= 1)) {
_level0["da\u00F1o"] = _level0.contra1;
_level0.betrayed = 0;
_level0.donotcounter = 1;
trace(" betrayal damage" + _level0.contra1);
} else if (_level0.betrayed == 1) {
_level0.betrayed = 0;
}
if (((_level0["da\u00F1o"] > 0) and (_level0.normal != 1)) and (_level0.ignoreelder != 1)) {
_level0["da\u00F1o1"] = ((((_level0["da\u00F1o"] + _level0.arma2) + _level0.maldicion1) - _level0.escudo1) - _level0.bless1) * _level0.mult2;
trace("Add arcane power to attack" + _level0.arma2);
if (_level0.mult2 > 1) {
_level0.mult2 = 1;
}
if (_level0["da\u00F1o1"] > _level0.largest) {
_level0.largest = _level0["da\u00F1o1"];
}
if ((_level0["da\u00F1o"] > 0) && (_level0["da\u00F1o"] < _level0.escudo1)) {
_level0.mescudo1.gotoAndPlay(30);
}
} else if (_level0["da\u00F1o"] <= 0) {
_level0["da\u00F1o1"] = 0;
_level0.normal = 0;
}
if ((_level0["da\u00F1o"] > 0) and (_level0.normal == 1)) {
_level0["da\u00F1o1"] = _level0["da\u00F1o"] * _level0.mult2;
trace("Normal weapons used - no arcane power");
if (_level0.mult2 > 1) {
_level0.mult2 = 1;
}
if (_level0["da\u00F1o1"] > _level0.largest) {
_level0.largest = _level0["da\u00F1o1"];
}
} else if (_level0["da\u00F1o"] <= 0) {
_level0["da\u00F1o1"] = 0;
}
if ((_level0["da\u00F1o"] > 0) and (_level0.ignoreelder == 1)) {
_level0["da\u00F1o1"] = (_level0["da\u00F1o"] + _level0.arma2) * _level0.mult2;
trace("ignore elder, but add arcane");
if (_level0.mult2 > 1) {
_level0.mult2 = 1;
}
if (_level0["da\u00F1o1"] > _level0.largest) {
_level0.largest = _level0["da\u00F1o1"];
}
} else if (_level0["da\u00F1o"] <= 0) {
_level0["da\u00F1o1"] = 0;
_level0.normal = 0;
}
if (_level0.multiplyaux > _level0.mult2) {
_level0.mult2 = _level0.multiplyaux;
}
if (_level0.regenaux > _level0.regen2) {
_level0.regen2 = _level0.regenaux;
}
if (_level0.arma1aux > 0) {
_level0.arma2 = _level0.arma2 + _level0.arma1aux;
}
if (_level0.arma1aux < 0) {
_level0.arma2 = _level0.arma2 + _level0.arma1aux;
}
if (_level0.arma2 < 0) {
_level0.arma2 = 0;
}
if (_level0.escudo1aux > 0) {
_level0.escudo2 = _level0.escudo2 + _level0.escudo1aux;
}
if (_level0.escudo1aux < 0) {
_level0.escudo2 = _level0.escudo2 + _level0.escudo1aux;
}
if (_level0.escudo2 < 0) {
_level0.escudo2 = 0;
}
if ((_level0.contra1aux > 0) && (_level0.Xenophobia2 != 1)) {
_level0.contra2 = _level0.contra1aux;
}
if ((_level0.byakhee > 0) && (_level0.Xenophobia2 != 1)) {
_level0.byakhee2.gotoAndPlay(2);
_level0.shambler2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
_level0.byakhee = 0;
_level0.byakhee2inplay = 1;
_level0.shambler2inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 2;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 2;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.shambler > 0) && (_level0.Xenophobia2 != 1)) {
_level0.shambler2.gotoAndPlay(2);
_level0.byakhee2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
_level0.shambler = 0;
_level0.shambler2inplay = 1;
_level0.byakhee2inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 2;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 2;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.shoggoth > 0) && (_level0.Xenophobia2 != 1)) {
_level0.shoggoth2.gotoAndPlay(2);
_level0.byakhee2.gotoAndStop(1);
_level0.shambler2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
_level0.shoggoth = 0;
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 3;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 3;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.elderthing > 0) && (_level0.Xenophobia2 != 1)) {
_level0.elderthing2.gotoAndPlay(2);
_level0.shambler2.gotoAndStop(1);
_level0.byakhee2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.shub2.gotoAndStop(1);
_level0.elderthing = 0;
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 1;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 1;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.shub > 0) && (_level0.Xenophobia2 != 1)) {
_level0.shub2.gotoAndPlay(2);
_level0.byakhee2.gotoAndStop(1);
_level0.shambler2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.shub = 0;
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
if (_level0.challenge == 18) {
_level0.veneno1 = _level0.veneno1 + 5;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
_level0.arma2 = _level0.arma2 + 5;
_level0.marma2.gotoAndPlay(2);
_level0.text_attack2 = _level0.arma2;
}
}
if ((_level0.Xenophobia2 == 1) && (_level0.elderthing > 0)) {
_level0.curaveneno = 0;
_level0.escudo2 = _level0.escudo2 - 3;
_level0.elderthing2.gotoAndStop(1);
}
if ((_level0.Xenophobia2 == 1) && (_level0.shub > 0)) {
_level0["da\u00F1o1"] = 0;
_level0.shub2.gotoAndStop(1);
}
if ((_level0.Xenophobia2 == 1) && (_level0.shoggoth > 0)) {
_level0.dispelc = 0;
_level0.shoggoth2.gotoAndStop(1);
}
if (_level0.Xenophobia2 == 1) {
_level0.contra2 = 0;
_level0.shambler2.gotoAndStop(1);
_level0.byakhee2.gotoAndStop(1);
_level0.shoggoth2.gotoAndStop(1);
_level0.elderthing2.gotoAndStop(1);
_level0.byakhee2inplay = 0;
_level0.shambler2inplay = 0;
}
if (_level0.veneno1aux > 0) {
_level0.veneno1 = _level0.veneno1 + _level0.veneno1aux;
_level0.mveneno1.gotoAndPlay(2);
_level0.text_poison1 = _level0.veneno1;
}
if (((_level0.maldicion1aux > _level0.maldicion1) && (_level0.immunity == 0)) && (_level0.invisible == 0)) {
_level0.maldicion1 = _level0.maldicion1aux;
_level0.mmaldicion1.gotoAndStop(2);
}
if (_level0.bless1aux > _level0.bless2) {
_level0.bless2 = _level0.bless1aux;
}
if ((_level0.paraliza > _level0.paraliza2) && (_level0.invisible == 0)) {
_level0.paraliza2 = _level0.paraliza;
}
if ((_level0.ceguera1aux == 1) || ((random(100) < _level0.paraliza2) && (_level0.invisible == 0))) {
_level0.ceguera1 = 1;
}
if (_level0.parapeto1aux > _level0.parapeto2) {
_level0.parapeto2 = _level0.parapeto1aux;
_level0.minvulner2.gotoAndStop(2);
}
if (_level0.dispels > 0) {
_level0.mmaldicion2.gotoAndStop(1);
_level0.maldicion2 = 0;
} else if ((_level0.dispelo > 0) && (_level0.invisible == 0)) {
_level0.parapeto1 = 0;
_level0.minvulner1.gotoAndStop(1);
_level0.paraliza1 = 0;
_level0.mmaldicion1.gotoAndStop(1);
_level0.mescudo1.gotoAndStop(1);
_level0.text_defense1 = 0;
_level0.mbless1.gotoAndStop(1);
_level0.regen1 = 0;
_level0.maldicion1 = 0;
_level0.escudo1 = 0;
_level0.bless1 = 0;
} else if ((_level0.dispelc > 0) && (_level0.invisible == 0)) {
_level0.contra1 = 0;
_level0.ccontra1.gotoAndStop(1);
_level0.byakhee1.gotoAndStop(1);
_level0.shambler1.gotoAndStop(1);
_level0.shoggoth1.gotoAndStop(1);
_level0.elderthing1.gotoAndStop(1);
_level0.shub1.gotoAndStop(1);
_level0.text_counter1 = 0;
_level0.dispelc = 0;
_level0.byakhee1inplay = 0;
_level0.shambler1inplay = 0;
}
if (_level0.curaveneno > 0) {
_level0.mveneno2.gotoAndStop(1);
_level0.text_poison2 = 0;
_level0.veneno2 = 0;
}
_level0.cura2 = _level0.cura1aux;
}
_level0.turno = 0;
stop();
Symbol 984 MovieClip Frame 22
i = 0;
while (i < _level0.numcartas) {
_level0.bactiva[i]._visible = false;
i = i + 1;
}
i = 0;
while (i < _level0.numcartas) {
_level0.barmalo[i]._visible = false;
i = i + 1;
}
_level0.turno = 0;
stop();
Symbol 985 MovieClip Frame 1
k = 1;
if (_level0.challenge == 9) {
this.carta21._visible = false;
}
if (_level0.challenge == 12) {
this.carta1._visible = false;
this.carta2._visible = false;
this.carta7._visible = false;
}
if (_level0.challenge == 13) {
this.carta33._visible = false;
}
if (_level0.challenge == 14) {
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
}
if (_level0.challenge == 15) {
this.carta7._visible = false;
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
this.carta33._visible = false;
}
if (_level0.challenge == 16) {
this.carta33._visible = false;
}
stop();
Symbol 986 MovieClip Frame 1
k = 2;
if (_level0.challenge == 9) {
this.carta21._visible = false;
}
if (_level0.challenge == 12) {
this.carta1._visible = false;
this.carta2._visible = false;
this.carta7._visible = false;
}
if (_level0.challenge == 13) {
this.carta33._visible = false;
}
if (_level0.challenge == 14) {
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
}
if (_level0.challenge == 15) {
this.carta7._visible = false;
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
this.carta33._visible = false;
}
if (_level0.challenge == 16) {
this.carta33._visible = false;
}
stop();
Symbol 987 MovieClip Frame 1
k = 3;
if (_level0.challenge == 9) {
this.carta21._visible = false;
}
if (_level0.challenge == 12) {
this.carta1._visible = false;
this.carta2._visible = false;
this.carta7._visible = false;
}
if (_level0.challenge == 13) {
this.carta33._visible = false;
}
if (_level0.challenge == 14) {
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
}
if (_level0.challenge == 15) {
this.carta7._visible = false;
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
this.carta33._visible = false;
}
if (_level0.challenge == 16) {
this.carta33._visible = false;
}
stop();
Symbol 988 MovieClip Frame 1
k = 4;
if (_level0.challenge == 9) {
this.carta21._visible = false;
}
if (_level0.challenge == 12) {
this.carta1._visible = false;
this.carta2._visible = false;
this.carta7._visible = false;
}
if (_level0.challenge == 13) {
this.carta33._visible = false;
}
if (_level0.challenge == 14) {
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
}
if (_level0.challenge == 15) {
this.carta7._visible = false;
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
this.carta33._visible = false;
}
if (_level0.challenge == 16) {
this.carta33._visible = false;
}
stop();
Symbol 989 MovieClip Frame 1
stop();
Symbol 989 MovieClip Frame 2
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
i = 0;
while (i < _level0.numcartas) {
matriz1[i]._visible = false;
i = i + 1;
}
visible = _level0.cartasp2[4];
matriz1[visible]._visible = true;
Symbol 990 MovieClip Frame 1
stop();
Symbol 990 MovieClip Frame 2
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
i = 0;
while (i < _level0.numcartas) {
matriz1[i]._visible = false;
i = i + 1;
}
visible = _level0.cartasp2[3];
matriz1[visible]._visible = true;
Symbol 991 MovieClip Frame 1
stop();
Symbol 991 MovieClip Frame 2
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
i = 0;
while (i < _level0.numcartas) {
matriz1[i]._visible = false;
i = i + 1;
}
visible = _level0.cartasp2[2];
matriz1[visible]._visible = true;
Symbol 992 MovieClip Frame 1
stop();
Symbol 992 MovieClip Frame 2
matriz1 = new Array(b1.carta1, b1.carta2, b1.carta3, b1.carta4, b1.carta5, b1.carta6, b1.carta7, b1.carta8, b1.carta9, b1.carta10, b1.carta11, b1.carta12, b1.carta13, b1.carta14, b1.carta15, b1.carta16, b1.carta17, b1.carta18, b1.carta19, b1.carta20, b1.carta21, b1.carta22, b1.carta23, b1.carta24, b1.carta25, b1.carta26, b1.carta27, b1.carta28, b1.carta29, b1.carta30, b1.carta31, b1.carta32, b1.carta33, b1.carta34, b1.carta35, b1.carta36);
i = 0;
while (i < _level0.numcartas) {
matriz1[i]._visible = false;
i = i + 1;
}
visible = _level0.cartasp2[1];
matriz1[visible]._visible = true;
Symbol 993 MovieClip Frame 1
if (_level0.challenge == 9) {
this.carta21._visible = false;
}
if (_level0.challenge == 12) {
this.carta1._visible = false;
this.carta2._visible = false;
this.carta7._visible = false;
}
if (_level0.challenge == 13) {
this.carta33._visible = false;
}
if (_level0.challenge == 16) {
this.carta33._visible = false;
}
if (_level0.challenge == 14) {
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
}
if (_level0.challenge == 15) {
this.carta7._visible = false;
this.carta12._visible = false;
this.carta13._visible = false;
this.carta19._visible = false;
this.carta24._visible = false;
this.carta34._visible = false;
this.carta33._visible = false;
}
stop();
Symbol 994 MovieClip Frame 1
if (_level0.challenge == 13) {
this.carta33._visible = false;
}
if (_level0.challenge == 16) {
this.carta33._visible = false;
}
stop();
Symbol 997 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 998 Button
on (release) {
stopAllSounds();
_root.setCookie("cardgame", "level", _level0.level);
_root.setCookie("cardgame", "score", _level0.score);
_root.setCookie("cardgame", "rank", _level0.currentrank);
}
Symbol 999 MovieClip Frame 1
auxvida = _level0.vida1;
damageinflicteda = _level0.damageinflicted;
damagereceived = _level0.matchdamagereceived;
trace("damagereceived:" + damagereceived);
cardsused = _level0.matchcardsused;
trace("cardsused:" + cardsused);
totalextra = 0;
totalscore = 0;
Symbol 999 MovieClip Frame 11
botonmask.useHandCursor = false;
cliparcane.texto = _level0.higharcane;
clipelder.texto = _level0.highelder;
clipbesthit.texto = _level0.highbesthit;
clipsanity.texto = _level0.highsanity;
cliphightaint.texto = _level0.hightaint;
cliptotalscore.texto = _level0.score;
_root.kongregateScores.submit(_level0.score);
if (_level0.currentrank == 1) {
rank1.rankani.ranktext = "1- Thug";
}
if (_level0.currentrank == 2) {
rank1.rankani.ranktext = "2- Hoodlum";
}
if (_level0.currentrank == 3) {
rank1.rankani.ranktext = "3- Mobster";
}
if (_level0.currentrank == 4) {
rank1.rankani.ranktext = "4- Mob Boss";
}
if (_level0.currentrank == 5) {
rank1.rankani.ranktext = "5- Cult Initiate";
}
if (_level0.currentrank == 6) {
rank1.rankani.ranktext = "6- Cult Priest";
}
if (_level0.currentrank == 7) {
rank1.rankani.ranktext = "7- Cult Leader";
}
if (_level0.currentrank == 8) {
rank1.rankani.ranktext = "8- Cult High Priest";
}
if (_level0.currentrank == 9) {
rank1.rankani.ranktext = "9- Ghoul";
}
if (_level0.currentrank == 10) {
rank1.rankani.ranktext = "10- Necromancer";
}
if (_level0.currentrank == 11) {
rank1.rankani.ranktext = "11- Deep One Spawn";
}
if (_level0.currentrank == 12) {
rank1.rankani.ranktext = "12- Deep One Priest";
}
if (_level0.currentrank == 13) {
rank1.rankani.ranktext = "13- Elder Deep One";
}
if (_level0.currentrank == 14) {
rank1.rankani.ranktext = "14- Mi-Go Slave";
}
if (_level0.currentrank == 15) {
rank1.rankani.ranktext = "15- Mi-Go Warrior";
}
if (_level0.currentrank == 16) {
rank1.rankani.ranktext = "16- Mi-Go Surgeon";
}
if (_level0.currentrank == 17) {
rank1.rankani.ranktext = "17- Mi-Go General";
}
if (_level0.currentrank == 18) {
rank1.rankani.ranktext = "18- Yithian Peasant";
}
if (_level0.currentrank == 19) {
rank1.rankani.ranktext = "19- Yithian Librarian";
}
if (_level0.currentrank == 20) {
rank1.rankani.ranktext = "20- Yithian Scholar";
}
if (_level0.currentrank == 21) {
rank1.rankani.ranktext = "21- Proto-Shoggoth";
}
if (_level0.currentrank == 22) {
rank1.rankani.ranktext = "22- Slave Shoggoth";
}
if (_level0.currentrank == 23) {
rank1.rankani.ranktext = "23- Rebel Shoggoth";
}
if (_level0.currentrank == 24) {
rank1.rankani.ranktext = "24- Elder Thing";
}
if (_level0.currentrank == 25) {
rank1.rankani.ranktext = "25- Servant of Hastur";
}
if (_level0.currentrank == 26) {
rank1.rankani.ranktext = "26- King in Yellow";
}
if (_level0.currentrank == 27) {
rank1.rankani.ranktext = "27- Nyarlatothep";
}
if (_level0.currentrank == 28) {
rank1.rankani.ranktext = "28- The Unnameable";
}
if (_level0.currentrank == 29) {
rank1.rankani.ranktext = "29- Spawn of Cthulhu";
}
if (_level0.currentrank == 30) {
rank1.rankani.ranktext = "30- Great Cthulhu";
}
if (_level0.score <= 49) {
newrank.rankani.ranktext = "1- Thug";
_level0.currentrank = 1;
}
if ((_level0.score >= 50) && (_level0.score <= 99)) {
newrank.rankani.ranktext = "2- Hoodlum";
_level0.currentrank = 2;
}
if ((_level0.score >= 100) && (_level0.score <= 149)) {
newrank.rankani.ranktext = "3- Mobster";
_level0.currentrank = 3;
}
if ((_level0.score >= 150) && (_level0.score <= 249)) {
newrank.rankani.ranktext = "4- Mob Boss";
_level0.currentrank = 4;
}
if ((_level0.score >= 250) && (_level0.score <= 349)) {
newrank.rankani.ranktext = "5- Cult Initiate";
_level0.currentrank = 5;
}
if ((_level0.score >= 350) && (_level0.score <= 449)) {
newrank.rankani.ranktext = "6- Cult Priest";
_level0.currentrank = 6;
}
if ((_level0.score >= 450) && (_level0.score <= 549)) {
newrank.rankani.ranktext = "7- Cult Leader";
_level0.currentrank = 7;
}
if ((_level0.score >= 550) && (_level0.score <= 649)) {
newrank.rankani.ranktext = "8- Cult High Priest";
_level0.currentrank = 8;
}
if ((_level0.score >= 650) && (_level0.score <= 749)) {
newrank.rankani.ranktext = "9- Ghoul";
_level0.currentrank = 9;
}
if ((_level0.score >= 750) && (_level0.score <= 849)) {
newrank.rankani.ranktext = "10- Necromancer";
_level0.currentrank = 10;
}
if ((_level0.score >= 850) && (_level0.score <= 949)) {
newrank.rankani.ranktext = "11- Deep One Spawn";
_level0.currentrank = 11;
}
if ((_level0.score >= 950) && (_level0.score <= 1049)) {
newrank.rankani.ranktext = "12- Deep One Priest";
_level0.currentrank = 12;
}
if ((_level0.score >= 1050) && (_level0.score <= 1149)) {
newrank.rankani.ranktext = "13- Elder Deep One";
_level0.currentrank = 13;
}
if ((_level0.score >= 1150) && (_level0.score <= 1249)) {
newrank.rankani.ranktext = "14- Mi-Go Slave";
_level0.currentrank = 14;
}
if ((_level0.score >= 1250) && (_level0.score <= 1349)) {
newrank.rankani.ranktext = "15- Mi-Go Warrior";
_level0.currentrank = 15;
}
if ((_level0.score >= 1350) && (_level0.score <= 1449)) {
newrank.rankani.ranktext = "16- Mi-Go Surgeon";
_level0.currentrank = 16;
}
if ((_level0.score >= 1450) && (_level0.score <= 1549)) {
newrank.rankani.ranktext = "17- Mi-Go General";
_level0.currentrank = 17;
}
if ((_level0.score >= 1550) && (_level0.score <= 1649)) {
newrank.rankani.ranktext = "18- Yithian Peasant";
_level0.currentrank = 18;
}
if ((_level0.score >= 1650) && (_level0.score <= 1749)) {
newrank.rankani.ranktext = "19- Yithian Librarian";
_level0.currentrank = 19;
}
if ((_level0.score >= 1750) && (_level0.score <= 1849)) {
newrank.rankani.ranktext = "20- Yithian Scholar";
_level0.currentrank = 20;
}
if ((_level0.score >= 1850) && (_level0.score <= 1949)) {
newrank.rankani.ranktext = "21- Proto-Shoggoth";
_level0.currentrank = 21;
}
if ((_level0.score >= 1950) && (_level0.score <= 2049)) {
newrank.rankani.ranktext = "22- Slave Shoggoth";
_level0.currentrank = 22;
}
if ((_level0.score >= 2050) && (_level0.score <= 2149)) {
newrank.rankani.ranktext = "23- Rebel Shoggoth";
_level0.currentrank = 23;
}
if ((_level0.score >= 2150) && (_level0.score <= 2249)) {
newrank.rankani.ranktext = "24- Elder Thing";
_level0.currentrank = 24;
}
if ((_level0.score >= 2250) && (_level0.score <= 2349)) {
newrank.rankani.ranktext = "25- Servant of Hastur";
_level0.currentrank = 25;
}
if ((_level0.score >= 2350) && (_level0.score <= 2449)) {
newrank.rankani.ranktext = "26- King in Yellow";
_level0.currentrank = 26;
}
if ((_level0.score >= 2450) && (_level0.score <= 2549)) {
newrank.rankani.ranktext = "27- Nyarlatothep";
_level0.currentrank = 27;
}
if ((_level0.score >= 2550) && (_level0.score <= 2649)) {
newrank.rankani.ranktext = "28- The Unnameable";
_level0.currentrank = 28;
}
if ((_level0.score >= 2650) && (_level0.score <= 2749)) {
newrank.rankani.ranktext = "29- Spawn of Cthulhu";
_level0.currentrank = 29;
}
if ((_level0.score >= 2750) && (_level0.score <= 9000)) {
newrank.rankani.ranktext = "30- Great Cthulhu";
_level0.currentrank = 30;
}
if (_level0.currentrank == 1) {
_level0.rank1.rankani.ranktext = "1- Thug";
}
if (_level0.currentrank == 2) {
_level0.rank1.rankani.ranktext = "2- Hoodlum";
}
if (_level0.currentrank == 3) {
_level0.rank1.rankani.ranktext = "3- Mobster";
}
if (_level0.currentrank == 4) {
_level0.rank1.rankani.ranktext = "4- Mob Boss";
}
if (_level0.currentrank == 5) {
_level0.rank1.rankani.ranktext = "5- Cult Initiate";
}
if (_level0.currentrank == 6) {
_level0.rank1.rankani.ranktext = "6- Cult Priest";
}
if (_level0.currentrank == 7) {
_level0.rank1.rankani.ranktext = "7- Cult Leader";
}
if (_level0.currentrank == 8) {
_level0.rank1.rankani.ranktext = "8- Cult High Priest";
}
if (_level0.currentrank == 9) {
_level0.rank1.rankani.ranktext = "9- Ghoul";
}
if (_level0.currentrank == 10) {
_level0.rank1.rankani.ranktext = "10- Necromancer";
}
if (_level0.currentrank == 11) {
_level0.rank1.rankani.ranktext = "11- Deep One Spawn";
}
if (_level0.currentrank == 12) {
_level0.rank1.rankani.ranktext = "12- Deep One Priest";
}
if (_level0.currentrank == 13) {
_level0.rank1.rankani.ranktext = "13- Elder Deep One";
}
if (_level0.currentrank == 14) {
_level0.rank1.rankani.ranktext = "14- Mi-Go Slave";
}
if (_level0.currentrank == 15) {
_level0.rank1.rankani.ranktext = "15- Mi-Go Warrior";
}
if (_level0.currentrank == 16) {
_level0.rank1.rankani.ranktext = "16- Mi-Go Surgeon";
}
if (_level0.currentrank == 17) {
_level0.rank1.rankani.ranktext = "17- Mi-Go General";
}
if (_level0.currentrank == 18) {
_level0.rank1.rankani.ranktext = "18- Yithian Peasant";
}
if (_level0.currentrank == 19) {
_level0.rank1.rankani.ranktext = "19- Yithian Librarian";
}
if (_level0.currentrank == 20) {
_level0.rank1.rankani.ranktext = "20- Yithian Scholar";
}
if (_level0.currentrank == 21) {
_level0.rank1.rankani.ranktext = "21- Proto-Shoggoth";
}
if (_level0.currentrank == 22) {
_level0.rank1.rankani.ranktext = "22- Slave Shoggoth";
}
if (_level0.currentrank == 23) {
_level0.rank1.rankani.ranktext = "23- Rebel Shoggoth";
}
if (_level0.currentrank == 24) {
_level0.rank1.rankani.ranktext = "24- Elder Thing";
}
if (_level0.currentrank == 25) {
_level0.rank1.rankani.ranktext = "25- Servant of Hastur";
}
if (_level0.currentrank == 26) {
_level0.rank1.rankani.ranktext = "26- King in Yellow";
}
if (_level0.currentrank == 27) {
_level0.rank1.rankani.ranktext = "27- Nyarlatothep";
}
if (_level0.currentrank == 28) {
_level0.rank1.rankani.ranktext = "28- The Unnameable";
}
if (_level0.currentrank == 29) {
_level0.rank1.rankani.ranktext = "29- Spawn of Cthulhu";
}
if (_level0.currentrank == 30) {
_level0.rank1.rankani.ranktext = "30- Great Cthulhu";
}
_root.kongregateStats.submit("BestAttack", _level0.highbesthit);
_root.kongregateStats.submit("Arcane", _level0.higharcane);
_root.kongregateStats.submit("Elder", _level0.highelder);
_root.kongregateStats.submit("Taint", _level0.hightaint);
_root.kongregateStats.submit("TimesInsane", _level0.highsanity);
_root.kongregateStats.submit("HighestRank", _level0.currentrank);
_root.kongregateStats.submit("GameComplete", 1);
_level0.level = 1;
_root.setCookie("cardgame", "level", _level0.level);
_root.setCookie("cardgame", "score", _level0.score);
_root.setCookie("cardgame", "rank", _level0.currentrank);
_root.setCookie("cardgame", "bestattack", _level0.highbesthit);
_root.setCookie("cardgame", "higharcane", _level0.higharcane);
_root.setCookie("cardgame", "highelder", _level0.highelder);
_root.setCookie("cardgame", "highsanity", _level0.highsanity);
_root.setCookie("cardgame", "hightaint", _level0.hightaint);
_root.setCookie("cardgame", "complete", _level0.gamecomplete);
stop();
Symbol 1002 Button
on (release) {
library_cards.gotoAndStop(7);
}
Symbol 1003 Button
on (release) {
library_cards.gotoAndStop(10);
}
Symbol 1004 Button
on (release) {
library_cards.gotoAndStop(2);
}
Symbol 1005 Button
on (release) {
library_cards.gotoAndStop(8);
}
Symbol 1006 Button
on (release) {
library_cards.gotoAndStop(4);
}
Symbol 1007 Button
on (release) {
library_cards.gotoAndStop(5);
}
Symbol 1008 Button
on (release) {
library_cards.gotoAndStop(12);
}
Symbol 1009 Button
on (release) {
library_cards.gotoAndStop(13);
}
Symbol 1010 Button
on (release) {
library_cards.gotoAndStop(3);
}
Symbol 1011 Button
on (release) {
library_cards.gotoAndStop(11);
}
Symbol 1012 Button
on (release) {
library_cards.gotoAndStop(14);
}
Symbol 1013 Button
on (release) {
library_cards.gotoAndStop(6);
}
Symbol 1014 Button
on (release) {
library_cards.gotoAndStop(9);
}
Symbol 1015 Button
on (release) {
library_cards.gotoAndStop(15);
}
Symbol 1016 Button
on (release) {
library_cards.gotoAndStop(16);
}
Symbol 1017 Button
on (release) {
library_cards.gotoAndStop(17);
}
Symbol 1018 Button
on (release) {
library_cards.gotoAndStop(20);
}
Symbol 1019 Button
on (release) {
library_cards.gotoAndStop(19);
}
Symbol 1020 Button
on (release) {
library_cards.gotoAndStop(18);
}
Symbol 1021 Button
on (release) {
library_cards.gotoAndStop(21);
}
Symbol 1022 Button
on (release) {
library_cards.gotoAndStop(22);
}
Symbol 1023 Button
on (release) {
library_cards.gotoAndStop(23);
}
Symbol 1024 Button
on (release) {
library_cards.gotoAndStop(24);
}
Symbol 1025 Button
on (release) {
library_cards.gotoAndStop(25);
}
Symbol 1026 Button
on (release) {
library_cards.gotoAndStop(27);
}
Symbol 1027 Button
on (release) {
library_cards.gotoAndStop(26);
}
Symbol 1028 Button
on (release) {
library_cards.gotoAndStop(29);
}
Symbol 1029 Button
on (release) {
library_cards.gotoAndStop(31);
}
Symbol 1033 Button
on (release) {
nextFrame();
}
Symbol 1034 Button
on (release) {
gotoAndPlay ("menu");
}
Symbol 1035 MovieClip Frame 1
stop();
Symbol 1036 Button
on (release) {
library_cards.gotoAndStop(28);
}
Symbol 1037 Button
on (release) {
library_cards.gotoAndStop(32);
}
Symbol 1038 Button
on (release) {
library_cards.gotoAndStop(30);
}
Symbol 1039 Button
on (release) {
library_cards.gotoAndStop(33);
}
Symbol 1040 Button
on (release) {
library_cards.gotoAndStop(35);
}
Symbol 1041 Button
on (release) {
library_cards.gotoAndStop(36);
}
Symbol 1042 Button
on (release) {
library_cards.gotoAndStop(34);
}
Symbol 1043 Button
on (release) {
library_cards.gotoAndStop(37);
}
Symbol 1047 Button
on (release) {
prevFrame();
}