Frame 3
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
_root.gage = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + "%";
if (loadedbytes == totalbytes) {
gotoAndStop (4);
} else {
gotoAndPlay (1);
}
Frame 4
Stage.scaleMode = "noScale";
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
fscommand ("trapallkeys", "true");
fscommand ("showmenu", "false");
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
_root.viewernbr = 3;
stop();
Instance of Symbol 406 MovieClip "viewermc" in Frame 8
onClipEvent (load) {
this.gotoAndStop(3);
}
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
function isHealing(cardnbr) {
if ((((((((((((((((((cardnbr == 13) || (cardnbr == 14)) || (cardnbr == 15)) || (cardnbr == 16)) || (cardnbr == 17)) || (cardnbr == 18)) || (cardnbr == 19)) || (cardnbr == 32)) || (cardnbr == 45)) || (cardnbr == 46)) || (cardnbr == 55)) || (cardnbr == 56)) || (cardnbr == 64)) || (cardnbr == 67)) || (cardnbr == 103)) || (cardnbr == 109)) || (cardnbr == 111)) || (cardnbr == 115)) {
return(true);
}
return(false);
}
function isDamaging(cardnbr) {
if (((((((((((((((((((((((((((((cardnbr == 3) || (cardnbr == 4)) || (cardnbr == 5)) || (cardnbr == 6)) || (cardnbr == 7)) || (cardnbr == 8)) || (cardnbr == 9)) || (cardnbr == 10)) || (cardnbr == 11)) || (cardnbr == 12)) || (cardnbr == 41)) || (cardnbr == 42)) || (cardnbr == 43)) || (cardnbr == 44)) || (cardnbr == 52)) || (cardnbr == 57)) || (cardnbr == 58)) || (cardnbr == 59)) || (cardnbr == 60)) || (cardnbr == 61)) || (cardnbr == 68)) || (cardnbr == 71)) || (cardnbr == 72)) || (cardnbr == 75)) || (cardnbr == 79)) || (cardnbr == 84)) || (cardnbr == 104)) || (cardnbr == 111)) || (cardnbr == 116)) {
return(true);
}
return(false);
}
function winloose() {
if (_root.tournamentround > 0) {
if (_root.enemylife <= 0) {
_root.tournamentround++;
_root.tournamentlife = _root.playerlife;
tellTarget (_root) {
gotoAndStop ("tournamentframe");
};
}
if (_root.playerlife <= 0) {
tellTarget (_root) {
gotoAndStop ("loosez");
};
}
} else if (_root.trial > 0) {
if (_root.enemylife <= 0) {
tellTarget (_root) {
gotoAndStop ("trialwin");
};
}
if (_root.playerlife <= 0) {
tellTarget (_root) {
gotoAndStop ("trialloose");
};
}
} else {
if (_root.enemylife <= 0) {
tellTarget (_root) {
gotoAndStop ("winz");
};
}
if (_root.playerlife <= 0) {
tellTarget (_root) {
gotoAndStop ("loosez");
};
}
}
}
function giveCard(type) {
if (type == "player") {
_root.gcpt = 0;
_root.cardcpt = 0;
_root.cardneeded = 0;
while (gcpt < 8) {
if (_root.playerhand[_root.gcpt] > 2) {
_root.cardcpt++;
}
_root.gcpt++;
}
if (_root.cardcpt < _root.playermaxcard) {
_root.cardneeded = _root.playermaxcard - _root.cardcpt;
_root.gcpt = 0;
while (_root.cardneeded > 0) {
if (_root.playerhand[_root.gcpt] < 3) {
x = random(115) + 3;
_root.playerhand[_root.gcpt] = x;
tellTarget (["_root.pcard" + (_root.gcpt + 1)]) {
gotoAndPlay (1);
};
_root.cardneeded--;
}
_root.gcpt++;
}
}
} else {
_root.gcpt = 0;
_root.cardcpt = 0;
_root.cardneeded = 0;
while (this.gcpt < 8) {
if (_root.enemyhand[_root.gcpt] > 2) {
_root.cardcpt++;
}
_root.gcpt++;
}
if (_root.cardcpt < _root.enemymaxcard) {
_root.cardneeded = _root.enemymaxcard - _root.cardcpt;
_root.gcpt = 0;
while (_root.cardneeded > 0) {
if (_root.enemyhand[_root.gcpt] < 3) {
x = random(115) + 3;
_root.enemyhand[_root.gcpt] = x;
tellTarget (["_root.ecard" + (_root.gcpt + 1)]) {
gotoAndPlay (1);
};
_root.cardneeded--;
}
_root.gcpt++;
}
}
}
}
function priority() {
healz = 0;
offz = 0;
defz = 0;
haz = 0;
damz = 2;
prio = "";
healz = ((_root.enemylifemax - _root.enemylife) / 5) + ((_root.playerlife - _root.enemylife) / 4);
offz = _root.playeroffence - _root.enemyoffence;
defz = _root.playerdefence - _root.enemydefence;
haz = (_root.playerhazumi - _root.enemyhazumi) / 6;
damz = damz + ((40 - _root.playerlife) / 8);
if ((((healz > offz) && (healz > defz)) && (healz >= haz)) && (healz >= damz)) {
prio = "heal";
} else if ((((offz > healz) && (offz > defz)) && (offz > haz)) && (offz > damz)) {
prio = "off";
} else if ((((defz > healz) && (defz > offz)) && (defz > haz)) && (defz > damz)) {
prio = "def";
} else if ((((hazz > healz) && (hazz > offz)) && (haz > defz)) && (hazz > damz)) {
prio = "haz";
} else {
prio = "dam";
}
return(prio);
}
function damagecard(cardtype) {
switch (cardtype) {
case 3 :
valuez = 1 + _root.enemyoffence;
break;
case 4 :
valuez = 2 + _root.enemyoffence;
break;
case 5 :
valuez = 3 + _root.enemyoffence;
break;
case 6 :
valuez = 4 + _root.enemyoffence;
break;
case 7 :
valuez = 5 + _root.enemyoffence;
break;
case 8 :
valuez = 6 + _root.enemyoffence;
break;
case 9 :
valuez = 7 + _root.enemyoffence;
break;
case 10 :
valuez = 8 + _root.enemyoffence;
break;
case 11 :
valuez = 9 + _root.enemyoffence;
break;
case 12 :
valuez = 10 + _root.enemyoffence;
break;
case 43 :
valuez = 2 + _root.enemyoffence;
break;
case 44 :
valuez = 2 + _root.enemyoffence;
break;
case 52 :
valuez = 5 + _root.enemyoffence;
break;
case 57 :
valuez = _root.enemyoffence + _root.enemyhazumi;
break;
case 58 :
valuez = (1 + _root.enemyoffence) + _root.playerdefence;
break;
case 59 :
valuez = 1 + _root.enemyoffence;
break;
case 60 :
valuez = 2 + _root.enemyoffence;
break;
case 61 :
valuez = 1 + _root.enemyoffence;
break;
case 71 :
valuez = _root.playerdefence + _root.enemyoffence;
break;
case 72 :
valuez = _root.enemylastdamage + _root.enemyoffence;
break;
case 75 :
valuez = _root.playerhazumi + _root.enemyoffence;
break;
case 84 :
valuez = _root.enemylastdamage;
break;
case 116 :
valuez = 2;
break;
default :
valuez = 0;
}
return(valuez);
}
function healvalue(cardtype) {
switch (cardtype) {
case 13 :
valuez = 1;
break;
case 14 :
valuez = 2;
break;
case 15 :
valuez = 3;
break;
case 16 :
valuez = 4;
break;
case 17 :
valuez = 5;
break;
case 18 :
valuez = 6;
break;
case 19 :
valuez = 7;
break;
case 32 :
valuez = 4;
break;
case 46 :
valuez = 1;
break;
case 32 :
valuez = 4;
break;
case 55 :
valuez = 3.9;
break;
case 56 :
valuez = _root.enemyhazumi;
break;
default :
valuez = 0;
}
return(valuez);
}
function findhealcard() {
hand1 = 0;
hand2 = 0;
hand3 = 0;
hand4 = 0;
hand5 = 0;
hand6 = 0;
hand1 = _root.healvalue(_root.enemyhand[0]);
hand2 = _root.healvalue(_root.enemyhand[1]);
hand3 = _root.healvalue(_root.enemyhand[2]);
hand4 = _root.healvalue(_root.enemyhand[3]);
hand5 = _root.healvalue(_root.enemyhand[4]);
hand6 = _root.healvalue(_root.enemyhand[5]);
if (((((hand1 != hand2) || (hand1 != hand3)) || (hand1 != hand4)) || (hand1 != hand5)) || (hand1 != hand6)) {
if (((((hand1 >= hand2) && (hand1 >= hand3)) && (hand1 >= hand4)) && (hand1 >= hand5)) && (hand1 >= hand6)) {
return(0);
}
if (((((hand2 >= hand1) && (hand2 >= hand3)) && (hand2 >= hand4)) && (hand2 >= hand5)) && (hand2 >= hand6)) {
return(1);
}
if (((((hand3 >= hand1) && (hand3 >= hand2)) && (hand3 >= hand4)) && (hand3 >= hand5)) && (hand3 >= hand6)) {
return(2);
}
if (((((hand5 >= hand1) && (hand5 >= hand2)) && (hand5 >= hand4)) && (hand5 >= hand3)) && (hand3 >= hand6)) {
return(4);
}
if (((((hand4 >= hand1) && (hand4 >= hand2)) && (hand4 >= hand3)) && (hand4 >= hand5)) && (hand4 >= hand6)) {
return(3);
}
if (((((hand6 >= hand1) && (hand6 >= hand2)) && (hand6 >= hand4)) && (hand6 >= hand5)) && (hand6 >= hand3)) {
return(5);
}
return(77);
}
return(99);
}
function bestcard(cardtypez) {
valuez = 0;
switch (cardtypez) {
case 0 :
valuez = -999;
break;
case 3 :
valuez = (1 + _root.enemyoffence) - _root.playerdefence;
break;
case 4 :
valuez = (2 + _root.enemyoffence) - _root.playerdefence;
break;
case 5 :
valuez = (3 + _root.enemyoffence) - _root.playerdefence;
break;
case 6 :
valuez = (4 + _root.enemyoffence) - _root.playerdefence;
break;
case 7 :
valuez = (5 + _root.enemyoffence) - _root.playerdefence;
break;
case 8 :
valuez = (6 + _root.enemyoffence) - _root.playerdefence;
break;
case 9 :
valuez = (7 + _root.enemyoffence) - _root.playerdefence;
break;
case 10 :
valuez = (8 + _root.enemyoffence) - _root.playerdefence;
break;
case 11 :
valuez = (9 + _root.enemyoffence) - _root.playerdefence;
break;
case 12 :
valuez = (10 + _root.enemyoffence) - _root.playerdefence;
break;
case 20 :
valuez = 1.1;
break;
case 21 :
valuez = 2.1;
break;
case 22 :
valuez = 3.1;
break;
case 23 :
valuez = 4.1;
break;
case 24 :
valuez = 5.1;
break;
case 25 :
valuez = 6.1;
break;
case 26 :
valuez = 5 + (_root.playeroffence - _root.enemydefence);
break;
case 27 :
valuez = 10 + (_root.playeroffence - _root.enemydefence);
break;
case 28 :
valuez = 15 + (_root.playeroffence - _root.enemydefence);
break;
case 29 :
valuez = 5 + (_root.playerdefence - _root.enemyoffence);
break;
case 30 :
valuez = 10 + (_root.playerdefence - _root.enemyoffence);
break;
case 31 :
valuez = 15 + (_root.playerdefence - _root.enemyoffence);
break;
case 32 :
if ((_root.priority == "heal") && (_root.enemyhazumi > 4)) {
valuez = 5;
} else {
valuez = 0;
}
break;
case 33 :
if (_root.playerhazumi > 0) {
valuez = 1;
}
break;
case 34 :
if (_root.playerhazumi > 1) {
valuez = 2;
} else {
valuez = 0;
}
break;
case 35 :
if (_root.playerhazumi > 2) {
valuez = 3;
} else if (_root.playerhazumi > 1) {
} else {
valuez = 0;
}
break;
case 36 :
if (_root.playerhazumi > 3) {
valuez = 4;
} else if (_root.playerhazumi > 1) {
} else {
valuez = 0;
}
break;
case 37 :
if (_root.playerhazumi > 4) {
valuez = 5;
} else if (_root.playerhazumi > 1) {
} else {
valuez = 0;
}
break;
case 38 :
if (_root.playerdefence > 0) {
valuez = 3 + (_root.playerdefence - _root.enemyoffence);
} else {
valuez = 0;
}
break;
case 39 :
if (_root.playerdefence > 1) {
valuez = 4 + (_root.playerdefence - _root.enemyoffence);
} else if (_root.playerdefence > 0) {
valuez = 0.1;
} else {
valuez = 0;
}
break;
case 40 :
if (_root.playerdefence > 2) {
valuez = 6 + (_root.playerdefence - _root.enemyoffence);
} else if (_root.playerdefence > 0) {
valuez = 0.2;
} else {
valuez = 0;
}
break;
case 41 :
valuez = 10 + (_root.playerbleed * 2);
break;
case 42 :
valuez = 10 + (_root.playerbleed * 2);
break;
case 43 :
valuez = (2 + _root.enemyoffence) - _root.playerdefence;
break;
case 44 :
valuez = (2 + _root.enemyoffence) - _root.playerdefence;
break;
case 45 :
if (_root.enemybleed > 0) {
valuez = 10 * _root.enemybleed;
} else {
valuez = -10;
}
break;
case 46 :
if (_root.enemybleed > 0) {
valuez = 10 * _root.enemybleed;
} else if (_root.priority() == "heal") {
valuez = 1;
} else {
valuez = 0;
}
break;
case 47 :
if (_root.playerbleed > 0) {
valuez = _root.playerbleed * 5;
} else {
valuez = 0.1;
}
break;
case 48 :
if (_root.playerlife < _root.enemylife) {
valuez = 1.5 + _root.playerpoison;
} else {
valuez = 0.5;
}
break;
case 49 :
if (_root.playerlife < _root.enemylife) {
valuez = 3 + _root.playerpoison;
} else {
valuez = 0.7;
}
break;
case 50 :
if (_root.playerlife < _root.enemylife) {
valuez = 4.5 + _root.playerpoison;
} else {
valuez = 0.9;
}
break;
case 51 :
if (_root.playerhazumi > _root.enemyhazumi) {
valuez = (_root.playerhazumi - _root.enemyhazumi) / 2;
} else {
valuez = -5;
}
break;
case 52 :
if (_root.enemydefence > 3) {
valuez = (5 + _root.enemyoffence) - _root.playerdefence;
} else {
valuez = 0.3;
}
break;
case 53 :
if (_root.enemyhazumi > 5) {
valuez = (_root.enemyhazumi / 5) + (_root.playerdefence - _root.enemyoffence);
} else {
valuez = 0.1;
}
break;
case 54 :
if (_root.enemyhazumi > 5) {
valuez = (_root.enemyhazumi / 5) + (_root.playeroffence - _root.enemydefence);
} else {
valuez = 0.1;
}
break;
case 57 :
valuez = (_root.enemyhazumi + _root.enemyoffence) - _root.playerdefence;
break;
case 58 :
valuez = ((_root.playerdefence - _root.enemyoffence) + 1) + _root.enemyoffence;
break;
case 59 :
valuez = (1 + _root.enemyoffence) - _root.playerdefence;
break;
case 60 :
valuez = (2 + _root.enemyoffence) - _root.playerdefence;
break;
case 61 :
valuez = (1 + _root.enemyoffence) - _root.playerdefence;
break;
case 62 :
valuez = 0;
if (_root.playeroffence > _root.enemydefence) {
valuez++;
}
if ((_root.playerlife - _root.enemylife) > 15) {
valuez++;
}
if (_root.enemylife < 15) {
valuez = valuez + 5;
}
if (_root.enemylife < 10) {
valuez = valuez + 5;
}
if (_root.enemylife < 5) {
valuez = valuez + 5;
}
break;
case 63 :
if ((_root.enemylifemax - _root.enemylife) <= 10) {
valuez = 5;
} else {
valuez = 3.5;
}
break;
case 64 :
valuez = 10;
break;
case 65 :
valuez = 5.2;
break;
case 66 :
valuez = _root.enemylastdamage + 0.1;
break;
case 67 :
valuez = _root.enemylastdamage + 0.2;
break;
case 68 :
valuez = 5.15;
break;
case 69 :
valuez = 5.3;
break;
case 70 :
valuez = 10.3;
break;
case 71 :
valuez = _root.playerdefence + _root.enemyoffence;
break;
case 72 :
valuez = _root.enemylastdamage + _root.playeroffence;
break;
case 73 :
valuez = -2;
if (_root.enemypoison > 1) {
valuez = 3;
if (_root.enemylife < 20) {
valuez = valuez + 3;
}
if ((_root.playerlife - _root.enemylife) > 10) {
valuez = valuez + 3;
}
if (_root.enemypoison > 4) {
valuez = valuez + 3;
}
}
break;
case 74 :
valuez = (_root.playerregen * 2) + (_root.playehazumiregen * 2);
break;
case 75 :
valuez = _root.playerhazumi;
break;
case 76 :
valuez = _root.playerdefence - _root.enemydefence;
break;
case 78 :
valuez = -2;
if (_root.playerdefence > 0) {
valuez = valuez + 1;
}
if (_root.playeroffence > 0) {
valuez = valuez + 1;
}
if (_root.playeroffence > _root.enemyoffence) {
valuez = valuez + 1.5;
}
if (_root.playerdefence > _root.enemydefence) {
valuez = valuez + 1.5;
}
break;
case 77 :
valuez = _root.playeroffence - _root.enemyoffence;
break;
case 78 :
valuez = -2;
if (_root.playerdefence > 0) {
valuez = valuez + 1;
}
if (_root.playeroffence > 0) {
valuez = valuez + 1;
}
if (_root.playeroffence > _root.enemyoffence) {
valuez = valuez + 1.5;
}
if (_root.playerdefence > _root.enemydefence) {
valuez = valuez + 1.5;
}
break;
case 79 :
valuez = 10 * _root.enemypoison;
break;
case 80 :
valuez = 0;
if ((_root.playerdefence > 0) && (_root.playerhazumi > 0)) {
valuez = _root.playerdefence;
if (_root.playerdefence > _root.playerhazumi) {
valuez = _root.playerhazumi - 1;
}
}
break;
case 81 :
valuez = (_root.enemyhazumi - _root.playerhazumi) / 2;
break;
case 82 :
valuez = _root.enemyhazumi / 2;
break;
case 83 :
valuez = _root.enemyhazumi / 2;
break;
case 84 :
valuez = _root.enemylastdamage;
break;
case 85 :
valuez = (_root.playeroffence - _root.enemydefence) * 3;
break;
case 86 :
valuez = (_root.playeroffence - _root.enemydefence) * 2;
break;
case 87 :
valuez = (_root.playeroffence - _root.enemydefence) * 1;
break;
case 88 :
valuez = _root.playerreflect * 2;
break;
case 89 :
if (_root.playermaxcard > 2) {
valuez = 8;
} else {
valuez = 0;
}
break;
case 90 :
if (_root.enemymaxcard < 6) {
valuez = 8;
} else {
valuez = 0;
}
break;
case 91 :
valuez = 0.3;
break;
case 92 :
valuez = random(4) + 1;
break;
case 93 :
temp = 0;
_root.xi = 0;
while (_root.xi < 6) {
if (_root.damagecard(_root.enemyhand[_root.xi]) > temp) {
temp = _root.damagecard(_root.enemyhand[_root.xi]);
}
_root.xi++;
}
valuez = temp;
trace(("***fonction damagecard retourne:" + temp) + " est -ce bon?? checker pour carte offencive");
break;
case 94 :
valuez = 5;
break;
case 95 :
valuez = 4;
break;
case 96 :
valuez = 0;
if ((_root.playerlife - _root.enemylife) > 20) {
valuez = valuez + 4;
}
temp = 0;
_root.xi = 0;
while (_root.xi < 6) {
if (_root.damagecard(_root.enemyhand[_root.xi]) > temp) {
temp = _root.damagecard(_root.enemyhand[_root.xi]);
}
_root.xi++;
}
if (temp < 1) {
valuez = valuez + 10;
}
if (temp < 7) {
valuez = valuez + 2;
}
if (temp < 10) {
valuez = valuez + 1;
}
break;
case 97 :
valuez = 2 + _root.playercurse;
break;
case 98 :
valuez = 3 + _root.playercurse;
break;
case 99 :
valuez = 4 + _root.playercurse;
break;
case 100 :
if (_root.playerdefence > _root.enemydefence) {
valuez = _root.playerdefence - (_root.enemydefence * 3);
} else {
valuez = -10;
}
break;
case 101 :
if (_root.playeroffence > _root.enemyoffence) {
valuez = _root.playeroffence - (_root.enemyoffence * 3);
} else {
valuez = -10;
}
break;
case 102 :
if (_root.enemydefence != _root.enemyoffence) {
valuez = (_root.enemydefence - _root.playerdefence) - (((_root.playeroffence - _root.enemyoffence) * ((_root.enemylifemax - _root.enemylife) / 5)) * 3);
}
break;
case 103 :
if (_root.enemyhazumi > 19) {
valuez = ((_root.enemylife * 100) / _root.enemylifemax) / 5;
}
break;
case 104 :
if ((_root.enemylife > (_root.playeroffence * 2)) && (_root.enemylife > 10)) {
valuez = _root.enemylife - (_root.playerlife * 2);
} else if (_root.playerlife < 10) {
valuez = _root.enemylife - (_root.playerlife * 2);
}
break;
case 105 :
if (_root.playeroffence > _root.enemydefence) {
valuez = valuez + (_root.playeroffence - _root.enemydefence);
}
if (_root.enemylife < 15) {
valuez = valuez + (15 - _root.enemylife);
}
break;
case 106 :
temp = 0;
_root.xi = 0;
while (_root.xi < 6) {
if (_root.damagecard(_root.enemyhand[_root.xi]) > temp) {
temp = _root.damagecard(_root.enemyhand[_root.xi]);
}
_root.xi++;
}
valuez = temp + _root.enemyoffence;
break;
case 107 :
if (_root.enemyhazumi < _root.playerhazumi) {
valuez = ((_root.playerhazumi - _root.enemyhazumi) * 2) * _root.inquisition;
}
break;
case 108 :
if (_root.enemylife > _root.playerlife) {
valuez = valuez + 1;
}
if (_root.playerlife <= 10) {
valuez = valuez + 1;
}
if (_root.enemyoffence > _root.playerdefence) {
valuez = valuez + 2;
}
break;
case 109 :
valuez = ((_root.enemypoison + _root.enemycurse) + _root.enemybleed) - (_root.enemyhazumi / 10);
if ((_root.enemylife < 10) && (valuez > 0)) {
valuez * 3;
}
break;
case 110 :
if (_root.playerhazumi > 4) {
valuez = 6;
} else {
valuez = 1;
}
if (_root.playerhazumi == 0) {
valuez = 0;
}
break;
case 111 :
valuez = 10;
break;
case 112 :
valuez = (_root.playeroffence - _root.enemydefence) + (_root.playerdefence - _root.enemyoffence);
if (_root.enemylife < 10) {
valuez = valuez + (valuez * 2);
}
break;
case 113 :
break;
case 114 :
break;
case 115 :
if (_root.enemylife <= (_root.enemylifemax - (_root.enemyoffence + _root.enemydefence))) {
valuez = _root.enemyoffence + _root.enemydefence;
} else {
valuez = _root.enemylifemax - (_root.enemylife / 2);
}
break;
case 116 :
_root.xi = 0;
combo = 0;
while (_root.xi < 6) {
if (_root.enemyhand[_root.xi] == 116) {
combo++;
}
_root.xi++;
}
valuez = (combo * 2) * combo;
break;
case 117 :
_root.xi = 0;
combo = 0;
while (_root.xi < 6) {
if (_root.enemyhand[_root.xi] == 116) {
combo++;
}
_root.xi++;
}
valuez = (combo * 2) * combo;
break;
default :
valuez = 0;
}
return(valuez);
}
function findbestcard() {
hand1z = _root.enemyhand[0];
hand2z = _root.enemyhand[1];
hand3z = _root.enemyhand[2];
hand4z = _root.enemyhand[3];
hand5z = _root.enemyhand[4];
hand6z = _root.enemyhand[5];
hand1z = _root.bestcard(_root.enemyhand[0]);
hand2z = _root.bestcard(_root.enemyhand[1]);
hand3z = _root.bestcard(_root.enemyhand[2]);
hand4z = _root.bestcard(_root.enemyhand[3]);
hand5z = _root.bestcard(_root.enemyhand[4]);
hand6z = _root.bestcard(_root.enemyhand[5]);
trace((("enemy hand 1 is " + _root.enemyhand[0]) + " and value is ") + hand1z);
trace((("enemy hand 2 is " + _root.enemyhand[1]) + " and value is ") + hand2z);
trace((("enemy hand 3 is " + _root.enemyhand[2]) + " and value is ") + hand3z);
trace((("enemy hand 4 is " + _root.enemyhand[3]) + " and value is ") + hand4z);
trace((("enemy hand 5 is " + _root.enemyhand[4]) + " and value is ") + hand5z);
trace((("enemy hand 6 is " + _root.enemyhand[5]) + " and value is ") + hand6z);
if (((((hand1z != hand2z) || (hand1z != hand3z)) || (hand1z != hand4z)) || (hand1z != hand5z)) || (hand1z != hand6z)) {
if (((((hand1z >= hand2z) && (hand1z >= hand3z)) && (hand1z >= hand4z)) && (hand1z >= hand5z)) && (hand1z >= hand6z)) {
trace("find best returns 1");
return(0);
}
if (((((hand2z >= hand1z) && (hand2z >= hand3z)) && (hand2z >= hand4z)) && (hand2z >= hand5z)) && (hand2z >= hand6z)) {
trace("find best returns 2");
return(1);
}
if (((((hand3z >= hand1z) && (hand3z >= hand2z)) && (hand3z >= hand4z)) && (hand3z >= hand5z)) && (hand3z >= hand6z)) {
trace("find best returns 3");
return(2);
}
if (((((hand5z >= hand1z) && (hand5z >= hand2z)) && (hand5z >= hand4z)) && (hand5z >= hand3z)) && (hand3z >= hand6z)) {
trace("find best returns 5");
return(4);
}
if (((((hand4z >= hand1z) && (hand4z >= hand2z)) && (hand4z >= hand3z)) && (hand4z >= hand5z)) && (hand4z >= hand6z)) {
trace("find best returns 4");
return(3);
}
if (((((hand6z >= hand1z) && (hand6z >= hand2z)) && (hand6z >= hand4z)) && (hand6z >= hand5z)) && (hand6z >= hand3z)) {
trace("find best returns 6");
return(5);
}
trace("find best founds all card equal?!!");
return(55);
}
return(66);
}
function findworstcard() {
hand1z = _root.enemyhand[0];
hand2z = _root.enemyhand[1];
hand3z = _root.enemyhand[2];
hand4z = _root.enemyhand[3];
hand5z = _root.enemyhand[4];
hand6z = _root.enemyhand[5];
hand1z = _root.bestcard(_root.enemyhand[0]);
hand2z = _root.bestcard(_root.enemyhand[1]);
hand3z = _root.bestcard(_root.enemyhand[2]);
hand4z = _root.bestcard(_root.enemyhand[3]);
hand5z = _root.bestcard(_root.enemyhand[4]);
hand6z = _root.bestcard(_root.enemyhand[5]);
if (((((hand1z != hand2z) || (hand1z != hand3z)) || (hand1z != hand4z)) || (hand1z != hand5z)) || (hand1z != hand6z)) {
if (((((hand1z <= hand2z) && (hand1z <= hand3z)) && (hand1z <= hand4z)) && (hand1z <= hand5z)) && (hand1z <= hand6z)) {
return(0);
}
if (((((hand2z <= hand1z) && (hand2z <= hand3z)) && (hand2z <= hand4z)) && (hand2z <= handz5)) && (hand2z <= hand6z)) {
return(1);
}
if (((((hand3z <= hand1z) && (hand3z <= hand2z)) && (hand3z <= hand4z)) && (hand3z <= hand5z)) && (hand3z <= hand6z)) {
return(2);
}
if (((((hand5z <= hand1z) && (hand5z <= hand2z)) && (hand5z <= hand4z)) && (hand5z <= hand3z)) && (hand3z <= hand6z)) {
return(4);
}
if (((((hand4z <= hand1z) && (hand4z <= hand2z)) && (hand4z <= hand3z)) && (hand4z <= hand5z)) && (hand4z <= hand6z)) {
return(3);
}
if (((((hand6z <= hand1z) && (hand6z <= hand2z)) && (hand6z <= hand4z)) && (hand6z <= hand5z)) && (hand6z <= hand3z)) {
return(5);
}
trace("no worst card found");
return(55);
}
trace("all card of equal suckability");
return(66);
}
_root.viewernbr = 3;
_root.ebut1._visible = false;
_root.ebut2._visible = false;
_root.ebut3._visible = false;
_root.ebut4._visible = false;
_root.ebut5._visible = false;
_root.ebut6._visible = false;
_root.enemyview1.gotoAndStop(1);
_root.enemyview2.gotoAndStop(1);
_root.enemyview3.gotoAndStop(1);
_root.enemyview4.gotoAndStop(1);
_root.enemyview5.gotoAndStop(1);
_root.enemyview6.gotoAndStop(1);
_root.moved = 0;
_root.matchstart = 1;
_root.sensei.enemyoffencivestancecpt = 0;
_root.sensei.enemydefencivecivestancecpt = 0;
_root.sensei.playeroffencivestancecpt = 0;
_root.sensei.playerdefencivestancecpt = 0;
_root.sensei.enemyoffencivestance = 0;
_root.sensei.enemydefencivestance = 0;
_root.sensei.playeroffencivestance = 0;
_root.sensei.playerdefencivestance = 0;
_root.sensei.playerfeint = 0;
_root.sensei.enemyfeint = 0;
_root.sensei.playerdualweild = 0;
_root.sensei.enemydualweild = 0;
_root.sensei.playerdisarm = 0;
_root.sensei.playerdisarmcpt = 0;
_root.sensei.playertackle = 0;
_root.sensei.playertacklecpt = 0;
_root.sensei.enemydisarm = 0;
_root.sensei.enemydisarmcpt = 0;
_root.sensei.enemytackle = 0;
_root.sensei.enemytacklecpt = 0;
_root.sensei.enemydiscard = 0;
_root.sensei.playerdiscard = 0;
_root.inquisition = 0;
_root.fogofwar = 0;
_root.truefogofwar = 0;
matchlength = 0;
playerturn = random(2);
if (_root.tournamentround < 1) {
playerlife = 40;
playerlifemax = 40;
} else {
playerlife = _root.tournamentlife;
playerlifemax = _root.tournamentlife;
}
playerlastdamage = 0;
playerarmor = 0;
playerhazumi = 0;
player10hazumi = 0;
player20hazumi = 0;
player30hazumi = 0;
playerreflect = 0;
playerregen = 0;
playerhazumiregen = 0;
playeroffence = 0;
playerdefence = 0;
playerbleed = 0;
playerpoison = 0;
playercurse = 0;
playerstun = 0;
playermaxcard = 6;
playerfeint = 0;
playercurse = 0;
enemylife = 40;
enemylifemax = 40;
enemyarmor = 0;
enemyhazumi = 0;
enemy10hazumi = 0;
enemy20hazumi = 0;
enemy30hazumi = 0;
enemyreflect = 0;
enemyoffence = 0;
enemydefence = 0;
enemyreflect = 0;
enemyregen = 0;
enemyhazumiregen = 0;
enemybleed = 0;
enemypoison = 0;
enemycurse = 0;
enemylastdamage = 0;
enemystun = 0;
enemymaxcard = 6;
enemyfeint = 0;
enemycurse = 0;
if (_root.trial > 0) {
_root.enemylifemax = _root.enemylifemax + (_root.stats.data.belt * 5);
_root.enemylife = _root.enemylife + (_root.stats.data.belt * 5);
}
playerhand = new Array();
x = 0;
while (x < 8) {
playerhand[x] = 1;
x++;
}
enemyhand = new Array();
x = 0;
while (x < 8) {
enemyhand[x] = 1;
x++;
}
giveCard("player");
giveCard("enemy");
stop();
if ((playerturn == 0) && (matchstart == 1)) {
matchstart = 0;
playerturn = 1;
tellTarget (_root.sensei) {
gotoAndPlay (81);
};
}
Frame 13
stop();
_root.stats.data.forfeit = 0;
_root.stats.data.win++;
_root.stats.data.wininarow++;
_root.stats.data.looseinarow = 0;
if (_root.belttrial == 1) {
_root.stats.data.belt++;
_root.belttrial = 0;
}
if (_root.stats.data.wininarow > _root.stats.data.winstrike) {
_root.stats.data.winstrike = _root.stats.data.wininarow;
}
if (_root.matchlength > _root.stats.data.longest) {
_root.stats.data.longest = _root.matchlength;
}
if (_root.matchlength < _root.stats.data.shortest) {
_root.stats.data.shortest = _root.matchlength;
}
_root.win = _root.stats.data.win;
_root.loss = _root.stats.data.loss;
stop();
Frame 14
stop();
_root.stats.data.forfeit = 0;
_root.stats.data.loss++;
_root.stats.data.looseinarow++;
_root.stats.data.wininarow = 0;
if (_root.belttrial == 1) {
_root.stats.data.belt--;
_root.belttrial = 0;
}
if (_root.stats.data.belt < 0) {
_root.stats.data.belt = 0;
}
if (_root.stats.data.looseinarow > _root.stats.data.loosestrike) {
_root.stats.data.loosestrike = _root.stats.data.looseinarow;
}
if (_root.matchlength > _root.stats.data.longest) {
_root.stats.data.longest = _root.matchlength;
}
if (_root.matchlength < _root.stats.data.shortest) {
_root.stats.data.shortest = _root.matchlength;
}
_root.win = _root.stats.data.win;
_root.loss = _root.stats.data.loss;
Frame 15
function belttell(beltnumber) {
switch (beltnumber) {
case 1 :
belt = "White belt";
break;
case 2 :
belt = "Yellow belt";
break;
case 3 :
belt = "Orange belt";
break;
case 4 :
belt = "Green belt";
break;
case 5 :
belt = "Blue belt";
break;
case 6 :
belt = "Brown belt";
break;
case 7 :
belt = "Silver belt";
break;
case 8 :
belt = "Gray belt";
break;
case 9 :
belt = "Black Belt";
break;
case 10 :
belt = "Black Belt 1rst dahn";
break;
case 11 :
belt = "Black Belt 2nd dahn";
break;
case 12 :
belt = "Black Belt 3rd dahn";
break;
case 13 :
belt = "Black Belt 4th dahn";
break;
case 14 :
belt = "Blood Belt";
break;
case 15 :
belt = "Gold Belt";
break;
default :
belt = "Girly belt";
}
return(belt);
}
_root.tournamentround = 0;
temoin = "";
if (_root.stats.data.forfeit > 0) {
_root.stats.data.loss++;
_root.stats.data.looseinarow++;
_root.stats.data.wininarow = 0;
if (_root.stats.data.belt < 0) {
_root.stats.data.belt = 0;
}
if (_root.stats.data.looseinarow > _root.stats.data.loosestrike) {
_root.stats.data.loosestrike = _root.stats.data.looseinarow;
}
_root.temoin = "You fled your last fight!!";
_root.stats.data.forfeit = 0;
}
if (_root.stats.data.forfeittrial > 0) {
_root.stats.data.loss++;
_root.stats.data.belt--;
_root.stats.data.looseinarow++;
_root.stats.data.wininarow = 0;
if (_root.stats.data.belt < 0) {
_root.stats.data.belt = 0;
}
if (_root.stats.data.looseinarow > _root.stats.data.loosestrike) {
_root.stats.data.loosestrike = _root.stats.data.looseinarow;
}
_root.temoin = "You fled your last trial!!";
_root.stats.data.forfeittrial = 0;
}
if (_root.mailonce < 1) {
_root.mailonce = 1;
if (random(100) < _root.stats.data.belt) {
tellTarget (_root.scrollmc) {
gotoAndPlay (2);
};
}
}
stop();
_root.training = 0;
_root.trial = 0;
playername = _root.stats.data.playername;
_root.playerbeltz = _root.belttell(_root.stats.data.belt);
playerloss = _root.stats.data.loss;
playerwin = _root.stats.data.win;
z1 = _root.stats.data.winstrike;
z2 = _root.stats.data.loosestrike;
if (_root.stats.data.shortest == 0) {
_root.stats.data.shortest = _root.stats.data.longest;
}
z3 = _root.stats.data.shortest;
z4 = _root.stats.data.longest;
z5 = _root.stats.data.greatesthit;
z6 = _root.stats.data.bestdefence;
z7 = _root.stats.data.bestoffence;
z8 = _root.stats.data.tophazumi;
tellTarget (_root.playermc.beltcolormc) {
gotoAndStop(_root.stats.data.belt);
};
_root.stats.flush();
Frame 16
stop();
Frame 17
stop();
Frame 18
stop();
Frame 19
argh = new Sound();
argh.attachSound("wingame");
argh.start(99);
beltgranted = _root.belttell(_root.stats.data.belt + 1);
_root.stats.data.win++;
_root.stats.data.wininarow++;
_root.stats.data.looseinarow = 0;
_root.stats.data.belt++;
_root.stats.data.forfeittrial = 0;
if (_root.stats.data.wininarow > _root.stats.data.winstrike) {
_root.stats.data.winstrike = _root.stats.data.wininarow;
}
if (_root.matchlength > _root.stats.data.longest) {
_root.stats.data.longest = _root.matchlength;
}
if (_root.matchlength < _root.stats.data.shortest) {
_root.stats.data.shortest = _root.matchlength;
}
stop();
Frame 20
_root.stats.data.belt--;
_root.stats.data.loss++;
_root.stats.data.looseinarow++;
_root.stats.data.wininarow = 0;
_root.stats.data.forfeittrial = 0;
if (_root.stats.data.belt < 0) {
_root.stats.data.belt = 0;
}
if (_root.stats.data.looseinarow > _root.stats.data.loosestrike) {
_root.stats.data.loosestrike = _root.stats.data.looseinarow;
}
if (_root.matchlength > _root.stats.data.longest) {
_root.stats.data.longest = _root.matchlength;
}
if (_root.matchlength < _root.stats.data.shortest) {
_root.stats.data.shortest = _root.matchlength;
}
stop();
Frame 21
if (_root.tournamentround < 2) {
_root.textpanel = "Congratulations, you draw enough attention on yourself to be invited to a tournament. To prove your worthiness at claiming the prize, you must best 6 opponents while having a limited amount of health (120), only the best can achieve this";
_root.tournamentlife = 120;
} else if (_root.tournamentround < 7) {
_root.textpanel = ((((("Fantastic!! You have have defeated the opponent number " + (_root.tournamentround - 1)) + " on your list, ") + (7 - _root.tournamentround)) + " more to go and you will be the champion and claim your prize. But be careful you only have ") + _root.tournamentlife) + " health points left.";
} else if (_root.tournamentround == 7) {
_root.textpanel = "You are the new champion of this prestigious and nearly impossible competition!! Hit continue to se what is your prize.";
}
stop();
Frame 22
stop();
tournamentprize = random(3) + 1;
_root.prizemc.gotoAndStop(tournamentprize);
prizecpt = 0;
tagz = 0;
if (tournamentprize == 1) {
while (tagz == 0) {
prizecpt = random(4) + 1;
tagz = random(5);
}
_root.stats.data.prizeoff = _root.stats.data.prizeoff + prizecpt;
_root.relicdescription = ("Great work!! You just unlocked " + prizecpt) + " offensive bonus points.";
} else if (tournamentprize == 2) {
while (tagz == 0) {
prizecpt = random(4) + 1;
tagz = random(5);
}
_root.stats.data.prizedef = _root.stats.data.prizedef + prizecpt;
_root.relicdescription = ("Great work!! You just unlocked " + prizecpt) + " defence bonus points.";
} else if (tournamentprize == 3) {
while (tagz == 0) {
prizecpt = random(10) + 5;
tagz = random(5);
}
_root.stats.data.prizeheal = _root.stats.data.prizeheal + prizecpt;
_root.relicdescription = ("Great work!! You just unlocked " + prizecpt) + " healing bonus points.";
}
_root.relicdescription = _root.relicdescription + "You may use these anytime in game by clicking the appropriate button.";
Frame 23
ratescore = 0;
ratescore = (_root.stats.data.win - _root.stats.data.loss) * (1 + (_root.stats.data.belt / 10));
scoretable.filename = "gekisenscores3/demo.sco";
scoretable.scoresize = 10;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = "";
scoretable.winscore = 0;
scoretable.loadVariables("http://www.urbanprophet.com/gekisenscores3.php", "GET");
stop();
Symbol 5 Button
on (release) {
getURL ("http://www.urbanprophet.com", "_blank");
}
Symbol 17 Button
on (release) {
stopAllSounds();
_root.stats = SharedObject.getLocal("gekisenzzz2");
if (_root.stats.data.noob != 1) {
_root.stats.data.win = 0;
_root.stats.data.loss = 0;
_root.stats.data.noob = 1;
}
_root.tournamentround = 0;
_root.belttrail = 0;
gotoAndPlay (12);
}
Symbol 20 Button
on (release) {
_root.tournamentround = 0;
gotoAndPlay (5);
}
Symbol 21 Button
on (release) {
gotoAndPlay (8);
}
Symbol 22 Button
on (release) {
getURL ("http://www.urbanprophet.com/modules.php?name=Forums&file=viewforum&f=7", "_blank");
}
Symbol 23 Button
on (release) {
gotoAndPlay (9);
}
Symbol 24 Button
on (release) {
gotoAndPlay (10);
}
Symbol 31 Button
on (release) {
gotoAndPlay (6);
}
Symbol 32 Button
on (release) {
gotoAndPlay (7);
}
Symbol 56 Button
on (release) {
_root.mailonce = 0;
_root.stats = SharedObject.getLocal(_root.playername + "gek");
_root.stats.data.playername = _root.playername;
_root.stats.data.loss = 0;
_root.stats.data.win = 0;
_root.stats.data.belt = 1;
_root.stats.data.skill = 1;
_root.stats.data.winstrike = 0;
_root.stats.data.loosestrike = 0;
_root.stats.data.wininarow = 0;
_root.stats.data.looseinarow = 0;
_root.stats.data.shortest = 0;
_root.stats.data.longest = 0;
_root.stats.data.greatesthit = 0;
_root.stats.data.bestdefence = 0;
_root.stats.data.bestoffence = 0;
_root.stats.data.tophazumi = 0;
_root.stats.data.invitation = 0;
_root.stats.data.forfeit = 0;
_root.stats.data.forfeittrial = 0;
_root.stats.data.noob = 1;
_root.stats.data.prizedef = 0;
_root.stats.data.prizeoff = 0;
_root.stats.data.prizeheal = 0;
_root.stats.flush();
gotoAndPlay ("charactersheet");
stopAllSounds();
}
Symbol 63 Button
on (release) {
stopAllSounds();
_root.mailonce = 0;
feh = _root.playername;
_root.stats = SharedObject.getLocal(_root.playername + "gek");
if (_root.stats.data.noob != 1) {
textpanel = "Sorry but this charcater does not exist on this computer";
} else {
gotoAndPlay ("charactersheet");
}
}
Symbol 66 Button
on (release) {
gotoAndPlay (4);
stopAllSounds();
}
Symbol 406 MovieClip Frame 1
stop();
Symbol 408 Button
on (release) {
_root.viewernbr = _root.viewernbr - 10;
if (_root.viewernbr < 3) {
_root.viewernbr = 116;
}
_root.viewermc.gotoAndStop(_root.viewernbr);
}
Symbol 410 Button
on (release) {
_root.viewernbr = _root.viewernbr + 10;
if (_root.viewernbr > 116) {
_root.viewernbr = 3;
}
_root.viewermc.gotoAndStop(_root.viewernbr);
}
Symbol 412 Button
on (release) {
_root.viewernbr++;
if (_root.viewernbr > 116) {
_root.viewernbr = 3;
}
_root.viewermc.gotoAndStop(_root.viewernbr);
}
Symbol 414 Button
on (release) {
_root.viewernbr--;
if (_root.viewernbr < 3) {
_root.viewernbr = 116;
}
_root.viewermc.gotoAndStop(_root.viewernbr);
}
Symbol 432 Button
on (release) {
gotoAndPlay (11);
stopAllSounds();
}
Symbol 443 MovieClip Frame 15
stop();
Symbol 444 MovieClip Frame 16
stop();
Symbol 445 MovieClip Frame 17
stop();
Symbol 445 MovieClip Frame 18
stop();
Symbol 446 MovieClip Frame 18
stop();
Symbol 447 MovieClip Frame 19
stop();
Symbol 448 MovieClip Frame 20
stop();
Symbol 450 MovieClip Frame 15
tellTarget (_root.playercard1mc) {
gotoAndStop(_root.playerhand[0]);
};
Symbol 450 MovieClip Frame 16
stop();
Symbol 451 MovieClip Frame 16
tellTarget (_root.playercard2mc) {
gotoAndStop(_root.playerhand[1]);
};
Symbol 451 MovieClip Frame 17
stop();
Symbol 452 MovieClip Frame 17
tellTarget (_root.playercard3mc) {
gotoAndStop(_root.playerhand[2]);
};
Symbol 452 MovieClip Frame 18
stop();
Symbol 453 MovieClip Frame 16
tellTarget (_root.playercard4mc) {
gotoAndStop(_root.playerhand[3]);
};
Symbol 453 MovieClip Frame 18
Symbol 453 MovieClip Frame 19
stop();
Symbol 454 MovieClip Frame 17
tellTarget (_root.playercard5mc) {
gotoAndStop(_root.playerhand[4]);
};
Symbol 454 MovieClip Frame 19
Symbol 454 MovieClip Frame 20
stop();
Symbol 455 MovieClip Frame 20
tellTarget (_root.playercard6mc) {
gotoAndStop(_root.playerhand[5]);
};
Symbol 455 MovieClip Frame 21
stop();
Symbol 461 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.playerhand[0]);
};
}
}
on (release) {
if ((_root.playerturn > 0) && (_root.moved != 1)) {
tellTarget (playercard1mc) {
gotoAndPlay (1);
};
tellTarget (sensei) {
gotoAndPlay (2);
};
cardplayed = playerhand[0];
playerhand[0] = 0;
}
}
Symbol 462 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.playerhand[1]);
};
}
}
on (release) {
if ((_root.playerturn > 0) && (_root.moved != 1)) {
tellTarget (playercard2mc) {
gotoAndPlay (1);
};
tellTarget (sensei) {
gotoAndPlay (2);
};
cardplayed = playerhand[1];
playerhand[1] = 0;
}
}
Symbol 463 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.playerhand[2]);
};
}
}
on (release) {
if ((_root.playerturn > 0) && (_root.moved != 1)) {
tellTarget (playercard3mc) {
gotoAndPlay (1);
};
tellTarget (sensei) {
gotoAndPlay (2);
};
cardplayed = playerhand[2];
playerhand[2] = 0;
}
}
Symbol 464 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.playerhand[3]);
};
}
}
on (release) {
if ((_root.playerturn > 0) && (_root.moved != 1)) {
tellTarget (playercard4mc) {
gotoAndPlay (1);
};
tellTarget (sensei) {
gotoAndPlay (2);
};
cardplayed = playerhand[3];
playerhand[3] = 0;
}
}
Symbol 465 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.playerhand[4]);
};
}
}
on (release) {
if ((_root.playerturn > 0) && (_root.moved != 1)) {
tellTarget (playercard5mc) {
gotoAndPlay (1);
};
tellTarget (sensei) {
gotoAndPlay (2);
};
cardplayed = playerhand[4];
playerhand[4] = 0;
}
}
Symbol 466 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.playerhand[5]);
};
}
}
on (release) {
if ((_root.playerturn > 0) && (_root.moved != 1)) {
tellTarget (playercard6mc) {
gotoAndPlay (1);
};
tellTarget (sensei) {
gotoAndPlay (2);
};
cardplayed = playerhand[5];
playerhand[5] = 0;
}
}
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
_root.moved = 1;
_root.gamedesc = "";
Symbol 469 MovieClip Frame 3
if (playerdiscard > 0) {
trace("va jouer le 110 direct");
gotoAndPlay (82);
}
Symbol 469 MovieClip Frame 6
if (playerdiscard > 1) {
trace("hmmmm joue les cartes pareil..");
}
playeroffencivestancecpt--;
if (playeroffencivestancecpt < 1) {
_root.playeroffence = _root.playeroffence - playeroffencivestance;
playeroffencivestance = 0;
}
enemyoffencivestancecpt--;
if (enemyoffencivestancecpt < 1) {
_root.enemyoffence = _root.enemyoffence - enemyoffencivestance;
enemyoffencivestance = 0;
}
playerdefencivestancecpt--;
if (playerdefencivestancecpt < 1) {
_root.playerdefence = _root.playerdefence - playerdefencivestance;
playerdefencivestance = 0;
}
enemydefencivestancecpt--;
if (enemydefencivestancecpt < 1) {
_root.enemydefence = _root.enemydefence - enemydefencivestance;
enemydefencivestance = 0;
}
enemydisarmcpt--;
if (enemydisarmcpt < 1) {
_root.enemyoffence = _root.enemyoffence + enemydisarm;
enemydisarm = 0;
}
playerdisarmcpt--;
if (playerdisarmcpt < 1) {
_root.playeroffence = _root.playeroffence + playerdisarm;
playerdisarm = 0;
}
enemytacklecpt--;
if (enemytacklecpt < 1) {
_root.enemydefence = _root.enemydefence + enemytackle;
enemytackle = 0;
}
playertacklecpt--;
if (playertacklecpt < 1) {
_root.playerdefence = _root.playerdefence + playertackle;
playertackle = 0;
}
if ((((playerdualweild < 1) && (enemydualweild < 1)) && (enemydiscard < 1)) && (playerdiscard < 1)) {
if (_root.playerturn != 1) {
_root.playerpoison--;
if (_root.playerpoison < 0) {
_root.playerpoison = 0;
}
_root.playercurse--;
if (_root.playercurse < 0) {
_root.playercurse = 0;
}
} else {
_root.enemypoison--;
if (_root.enemypoison < 0) {
_root.enemypoison = 0;
}
_root.enemycurse--;
if (_root.enemycurse < 0) {
_root.enemycurse = 0;
}
}
}
_root.ebut1._visible = false;
_root.ebut2._visible = false;
_root.ebut3._visible = false;
_root.ebut4._visible = false;
_root.ebut5._visible = false;
_root.ebut6._visible = false;
_root.enemyview1.gotoAndStop(1);
_root.enemyview2.gotoAndStop(1);
_root.enemyview3.gotoAndStop(1);
_root.enemyview4.gotoAndStop(1);
_root.enemyview5.gotoAndStop(1);
_root.enemyview6.gotoAndStop(1);
_root.playerfeint--;
_root.enemyfeint--;
playerflyback = 0;
enemyflyback = 0;
hisdegat = 0;
mydamage = 0;
hisdamage = 0;
myhazumi = 0;
hishazumi = 0;
myheal = 0;
hisheal = 0;
myoffbonus = 0;
mydefbonus = 0;
hisoffbonus = 0;
hisdefbonus = 0;
hishazumiloss = 0;
myhazumiloss = 0;
hisoffmalus = 0;
hisdefmalus = 0;
hisbleed = 0;
mybleed = 0;
myoffmalus = 0;
mydefmalus = 0;
mybleedstop = 0;
hisbleedstop = 0;
mypoison = 0;
hispoison = 0;
myregen = 0;
hisregen = 0;
myreflect = 0;
hisreflect = 0;
myreflectmalus = 0;
hisreflectmalus = 0;
hisstun = 0;
mystun = 0;
hiscurse = 0;
mycurse = 0;
switch (_root.cardplayed) {
case 3 :
hisdamage = 1;
break;
case 4 :
hisdamage = 2;
break;
case 5 :
hisdamage = 3;
break;
case 6 :
hisdamage = 4;
break;
case 7 :
hisdamage = 5;
break;
case 8 :
hisdamage = 6;
break;
case 9 :
hisdamage = 7;
break;
case 10 :
hisdamage = 8;
break;
case 11 :
hisdamage = 9;
break;
case 12 :
hisdamage = 10;
break;
case 13 :
myheal = 1;
break;
case 14 :
myheal = 2;
break;
case 15 :
myheal = 3;
break;
case 16 :
myheal = 4;
break;
case 17 :
myheal = 5;
break;
case 18 :
myheal = 6;
break;
case 19 :
myheal = 7;
break;
case 20 :
myhazumi = 1;
break;
case 21 :
myhazumi = 2;
break;
case 22 :
myhazumi = 3;
break;
case 23 :
myhazumi = 4;
break;
case 24 :
myhazumi = 5;
break;
case 25 :
myhazumi = 6;
break;
case 26 :
mydefbonus = 1;
break;
case 27 :
mydefbonus = 2;
break;
case 28 :
mydefbonus = 3;
break;
case 29 :
myoffbonus = 1;
break;
case 30 :
myoffbonus = 2;
break;
case 31 :
myoffbonus = 3;
break;
case 32 :
if (_root.playerturn == 1) {
if (_root.playerhazumi > 5) {
myhazumiloss = 5;
myheal = 5;
}
} else if (_root.enemyhazumi > 5) {
myhazumiloss = 5;
myheal = 5;
}
break;
case 33 :
hishazumiloss = 1;
break;
case 34 :
hishazumiloss = 2;
break;
case 35 :
hishazumiloss = 3;
break;
case 36 :
hishazumiloss = 4;
break;
case 37 :
hishazumiloss = 5;
break;
case 38 :
hisdefmalus = 1;
break;
case 39 :
hisdefmalus = 2;
break;
case 40 :
hisdefmalus = 3;
break;
case 41 :
hisbleed = 1;
break;
case 42 :
hisbleed = 1;
break;
case 43 :
hisdamage = 2;
break;
case 44 :
hisdamage = 2;
break;
case 45 :
mybleedstop = 100;
break;
case 46 :
mybleedstop = 100;
myheal = 1;
break;
case 47 :
if (_root.playerturn == 1) {
hisbleed = hisbleed + _root.enemybleed;
} else {
hisbleed = hisbleed + _root.playerbleed;
}
break;
case 48 :
hispoison = 1;
break;
case 49 :
hispoison = 2;
break;
case 50 :
hispoison = 3;
break;
case 51 :
if (_root.playerturn == 1) {
hishazumi = _root.playerhazumi;
myhazumi = _root.enemyhazumi;
_root.playerhazumi = 0;
_root.enemyhazumi = 0;
} else {
hishazumi = _root.enemyhazumi;
myhazumi = _root.playerhazumi;
_root.playerhazumi = 0;
_root.enemyhazumi = 0;
}
break;
case 52 :
mydamage = 3;
hisdamage = 5;
break;
case 53 :
if (_root.playerturn == 1) {
myoffbonus = Math.round(_root.playerhazumi / 10);
} else {
myoffbonus = Math.round(_root.enemyhazumi / 10);
}
break;
case 54 :
if (_root.playerturn == 1) {
mydefbonus = Math.round(_root.playerhazumi / 10);
} else {
mydefbonus = Math.round(_root.enemyhazumi / 10);
}
break;
case 55 :
myhazumiloss = 1000;
myheal = 5;
break;
case 56 :
if (_root.playerturn == 1) {
myheal = _root.playerhazumi;
} else {
myheal = _root.enemyhazumi;
}
break;
case 57 :
if (_root.playerturn == 1) {
hisdamage = _root.playerhazumi;
} else {
hisdamage = _root.enemyhazumi;
}
break;
case 58 :
if (_root.playerturn == 1) {
hisdegat = 1 + _root.playeroffence;
} else {
hisdegat = 1 + _root.enemyoffence;
}
break;
case 59 :
hisdamage = 1;
break;
case 60 :
hisdamage = 2;
break;
case 61 :
hisdamage = 1;
break;
case 62 :
if (_root.playerturn == 1) {
_root.truefogofwar = _root.truefogofwar + 3;
} else {
_root.truefogofwar = _root.truefogofwar + 2.5;
}
_root.fogofwar = Math.round(_root.truefogofwar);
break;
case 63 :
if (_root.playerturn == 1) {
_root.playerlifemax = _root.playerlifemax + 5;
} else {
_root.enemylifemax = _root.enemylifemax + 5;
}
break;
case 64 :
if (_root.playerturn == 1) {
_root.playerregen++;
} else {
_root.enemyregen++;
}
break;
case 65 :
if (_root.playerturn == 1) {
_root.playerhazumiregen++;
} else {
_root.enemyhazumiregen++;
}
break;
case 66 :
if (_root.playerturn == 1) {
myhazumi = _root.playerlastdamage;
} else {
myhazumi = _root.enemylastdamage;
}
break;
case 67 :
if (_root.playerturn == 1) {
myheal = _root.playerlastdamage;
} else {
myheal = _root.enemylastdamage;
}
break;
case 68 :
myreflect = 1;
break;
case 69 :
hisstun = 1;
break;
case 70 :
hisstun = 2;
break;
case 71 :
if (_root.playerturn == 1) {
hisdamage = _root.enemydefence * 2;
} else {
hisdamage = _root.playerdefence * 2;
}
break;
case 72 :
if (_root.playerturn == 1) {
hisdamage = _root.playerlastdamage + _root.enemyoffence;
} else {
hisdamage = _root.enemylastdamage + _root.playeroffence;
}
break;
case 73 :
if (_root.playerturn == 1) {
_root.playerpoison = 0;
} else {
_root.enemypoison = 0;
}
break;
case 74 :
if (_root.playerturn == 1) {
_root.enemyregen = 0;
_root.enemyhazumiregen = 0;
} else {
_root.playerregen = 0;
_root.playerhazumiregen = 0;
}
break;
case 75 :
if (_root.playerturn == 1) {
hisdamage = _root.enemyhazumi;
} else {
hisdamage = _root.playerhazumi;
}
break;
case 76 :
if (_root.playerturn == 1) {
hisdefbonus = _root.playerdefence;
mydefbonus = _root.enemydefence;
_root.playerdefence = 0;
_root.enemydefence = 0;
} else {
hisdefbonus = _root.enemydefence;
mydefbonus = _root.playerdefence;
_root.playerdefence = 0;
_root.enemydefence = 0;
}
break;
case 77 :
if (_root.playerturn == 1) {
hisoffbonus = _root.playeroffence;
myoffbonus = _root.enemyoffence;
_root.playeroffence = 0;
_root.enemyoffence = 0;
} else {
hisoffbonus = _root.enemyoffence;
myoffbonus = _root.playeroffence;
_root.playeroffence = 0;
_root.enemyoffence = 0;
}
break;
case 78 :
if (_root.playerturn == 1) {
if (_root.enemyoffence > 0) {
myoffbonus = 1;
hisoffmalus = 1;
}
if (_root.enemydefence > 0) {
mydefbonus = 1;
hisdefmalus = 1;
}
} else {
if (_root.playeroffence > 0) {
myoffbonus = 1;
hisoffmalus = 1;
}
if (_root.playerdefence > 0) {
mydefbonus = 1;
hisdefmalus = 1;
}
}
break;
case 79 :
if (_root.playerturn == 1) {
hisbleed = _root.playerpoison;
} else {
hisbleed = _root.enemypoison;
}
break;
case 80 :
if (_root.playerturn == 1) {
hishazumiloss = _root.enemydefence;
} else {
hishazumiloss = _root.playerdefence;
}
break;
case 81 :
_root.inquisition++;
break;
case 82 :
if (_root.playerturn == 1) {
_root.playeroffence = _root.playeroffence - playeroffencivestance;
playeroffencivestance = _root.playerhazumi;
_root.playeroffence = _root.playeroffence + playeroffencivestance;
playeroffencivestancecpt = 3;
} else {
_root.enemyoffence = _root.enemyoffence - enemyoffencivestance;
enemyoffencivestance = _root.enemyhazumi;
_root.enemyoffence = _root.enemyoffence + enemyoffencivestance;
enemyoffencivestancecpt = 3;
}
break;
case 83 :
if (_root.playerturn == 1) {
_root.playerdefence = _root.playerdefence - playerdefencivestance;
playerdefencivestance = _root.playerhazumi;
_root.playerdefence = _root.playerdefence + playerdefencivestance;
playerdefencivestancecpt = 3;
} else {
_root.enemydefence = _root.enemydefence - enemydefencivestance;
enemydefencivestance = _root.enemyhazumi;
_root.enemydefence = _root.enemydefence + enemydefencivestance;
enemydefencivestancecpt = 3;
}
break;
case 84 :
if (_root.playerturn == 1) {
hisdegat = _root.playerlastdamage;
} else {
hisdegat = _root.enemylastdamage;
}
break;
case 85 :
hisoffmalus = 1;
break;
case 86 :
hisoffmalus = 2;
break;
case 87 :
hisoffmalus = 3;
break;
case 88 :
if (_root.playerturn == 1) {
hisreflectmalus = _root.enemyreflect;
} else {
hisreflectmalus = _root.playerreflect;
}
break;
case 89 :
if (_root.playerturn == 1) {
_root.enemymaxcard--;
if (_root.enemymaxcard < 1) {
_root.enemymaxcard = 1;
}
} else {
_root.playermaxcard--;
if (_root.playermaxcard < 1) {
_root.playermaxcard = 1;
}
}
break;
case 90 :
if (_root.playerturn != 1) {
_root.enemymaxcard++;
if (_root.enemymaxcard > 6) {
_root.enemymaxcard = 6;
}
} else {
_root.playermaxcard++;
if (_root.playermaxcard > 6) {
_root.playermaxcard = 6;
}
}
break;
case 91 :
if (_root.playerturn == 1) {
_root.playerhand[0] = 1;
_root.playerhand[1] = 1;
_root.playerhand[2] = 1;
_root.playerhand[3] = 1;
_root.playerhand[4] = 1;
_root.playerhand[5] = 1;
tellTarget (_root.playercard1mc) {
gotoAndStop (1);
};
tellTarget (_root.playercard2mc) {
gotoAndStop (1);
};
tellTarget (_root.playercard3mc) {
gotoAndStop (1);
};
tellTarget (_root.playercard4mc) {
gotoAndStop (1);
};
tellTarget (_root.playercard5mc) {
gotoAndStop (1);
};
tellTarget (_root.playercard6mc) {
gotoAndStop (1);
};
} else {
_root.enemyhand[0] = 1;
_root.enemyhand[1] = 1;
_root.enemyhand[2] = 1;
_root.enemyhand[3] = 1;
_root.enemyhand[4] = 1;
_root.enemyhand[5] = 1;
tellTarget (_root.ecard1) {
gotoAndStop (50);
};
tellTarget (_root.ecard2) {
gotoAndStop (50);
};
tellTarget (_root.ecard3) {
gotoAndStop (50);
};
tellTarget (_root.ecard4) {
gotoAndStop (50);
};
tellTarget (_root.ecard5) {
gotoAndStop (50);
};
tellTarget (_root.ecard6) {
gotoAndStop (50);
};
}
break;
case 92 :
_root.ebut1._visible = true;
_root.ebut2._visible = true;
_root.ebut3._visible = true;
_root.ebut4._visible = true;
_root.ebut5._visible = true;
_root.ebut6._visible = true;
_root.enemyview1.gotoAndStop(_root.enemyhand[0]);
_root.enemyview2.gotoAndStop(_root.enemyhand[1]);
_root.enemyview3.gotoAndStop(_root.enemyhand[2]);
_root.enemyview4.gotoAndStop(_root.enemyhand[3]);
_root.enemyview5.gotoAndStop(_root.enemyhand[4]);
_root.enemyview6.gotoAndStop(_root.enemyhand[5]);
break;
case 93 :
if (_root.playerturn == 1) {
_root.playerfeint = 3;
} else {
_root.enemyfeint = 3;
}
break;
case 94 :
if (_root.playerturn == 1) {
playerdualweild = 2;
} else {
enemydualweild = 2;
}
break;
case 95 :
if (_root.playerturn == 1) {
if (_root.isHealing(_root.enemyhand[0]) == true) {
_root.enemyhand[0] = 1;
_root.ecard1.gotoAndStop(50);
}
if (_root.isHealing(_root.enemyhand[1]) == true) {
_root.enemyhand[1] = 1;
_root.ecard2.gotoAndStop(50);
}
if (_root.isHealing(_root.enemyhand[2]) == true) {
_root.enemyhand[2] = 1;
_root.ecard3.gotoAndStop(50);
}
if (_root.isHealing(_root.enemyhand[3]) == true) {
_root.enemyhand[3] = 1;
_root.ecard4.gotoAndStop(50);
}
if (_root.isHealing(_root.enemyhand[4]) == true) {
_root.enemyhand[4] = 1;
_root.ecard5.gotoAndStop(50);
}
if (_root.isHealing(_root.enemyhand[5]) == true) {
_root.enemyhand[5] = 1;
_root.ecard6.gotoAndStop(50);
}
} else {
if (_root.isHealing(_root.playerhand[0]) == true) {
_root.playerhand[0] = 1;
_root.playercard1mc.gotoAndStop(1);
}
if (_root.isHealing(_root.playerhand[1]) == true) {
_root.playerhand[1] = 1;
_root.playercard2mc.gotoAndStop(1);
}
if (_root.isHealing(_root.playerhand[2]) == true) {
_root.playerhand[2] = 1;
_root.playercard3mc.gotoAndStop(1);
}
if (_root.isHealing(_root.playerhand[3]) == true) {
_root.playerhand[3] = 1;
_root.playercard4mc.gotoAndStop(1);
}
if (_root.isHealing(_root.playerhand[4]) == true) {
_root.playerhand[4] = 1;
_root.playercard5mc.gotoAndStop(1);
}
if (_root.isHealing(_root.playerhand[5]) == true) {
_root.playerhand[5] = 1;
_root.playercard6mc.gotoAndStop(1);
}
}
break;
case 96 :
if (_root.isDamaging(_root.enemyhand[0]) == true) {
_root.enemyhand[0] = 1;
_root.ecard1.gotoAndStop(50);
}
if (_root.isDamaging(_root.enemyhand[1]) == true) {
_root.enemyhand[1] = 1;
_root.ecard2.gotoAndStop(50);
}
if (_root.isDamaging(_root.enemyhand[2]) == true) {
_root.enemyhand[2] = 1;
_root.ecard3.gotoAndStop(50);
}
if (_root.isDamaging(_root.enemyhand[3]) == true) {
_root.enemyhand[3] = 1;
_root.ecard4.gotoAndStop(50);
}
if (_root.isDamaging(_root.enemyhand[4]) == true) {
_root.enemyhand[4] = 1;
_root.ecard5.gotoAndStop(50);
}
if (_root.isDamaging(_root.enemyhand[5]) == true) {
_root.enemyhand[5] = 1;
_root.ecard6.gotoAndStop(50);
}
if (_root.isDamaging(_root.playerhand[0]) == true) {
_root.playerhand[0] = 1;
_root.playercard1mc.gotoAndStop(1);
}
if (_root.isDamaging(_root.playerhand[1]) == true) {
_root.playerhand[1] = 1;
_root.playercard2mc.gotoAndStop(1);
}
if (_root.isDamaging(_root.playerhand[2]) == true) {
_root.playerhand[2] = 1;
_root.playercard3mc.gotoAndStop(1);
}
if (_root.isDamaging(_root.playerhand[3]) == true) {
_root.playerhand[3] = 1;
_root.playercard4mc.gotoAndStop(1);
}
if (_root.isDamaging(_root.playerhand[4]) == true) {
_root.playerhand[4] = 1;
_root.playercard5mc.gotoAndStop(1);
}
if (_root.isDamaging(_root.playerhand[5]) == true) {
_root.playerhand[5] = 1;
_root.playercard6mc.gotoAndStop(1);
}
break;
case 97 :
hiscurse = 1;
break;
case 98 :
hiscurse = 2;
break;
case 99 :
hiscurse = 3;
break;
case 100 :
if (_root.playerturn == 1) {
_root.playerdefence = _root.enemydefence;
} else {
_root.enemydefence = _root.playerdefence;
}
break;
case 101 :
if (_root.playerturn == 1) {
_root.playeroffence = _root.enemyoffence;
} else {
_root.enemyoffence = _root.playeroffence;
}
break;
case 102 :
if (_root.playerturn == 1) {
temp = _root.playeroffence;
_root.playeroffence = _root.playerdefence;
_root.playerdefence = temp;
} else {
temp = _root.enemyoffence;
_root.enemyoffence = _root.enemydefence;
_root.enemydefence = temp;
}
break;
case 103 :
if (_root.playerturn == 1) {
if (_root.playerhazumi >= 20) {
myhazumiloss = 20;
myheal = _root.playerlifemax - _root.playerlife;
}
} else if (_root.enemyhazumi >= 20) {
myhazumiloss = 20;
myheal = _root.enemylifemax - _root.enemylife;
}
break;
case 104 :
_root.playerlife = Math.round(_root.playerlife / 2);
_root.enemylife = Math.round(_root.enemylife / 2);
break;
case 105 :
if (_root.playerturn != 1) {
_root.playeroffence = _root.playeroffence + playerdisarm;
playerdisarm = _root.playeroffence;
_root.playeroffence = _root.playeroffence - playerdisarm;
playerdisarmcpt = 2;
} else {
_root.enemyoffence = _root.enemyoffence + enemydisarm;
enemydisarm = _root.enemyoffence;
_root.enemyoffence = _root.enemyoffence - enemydisarm;
enemydisarmcpt = 2;
}
break;
case 106 :
if (_root.playerturn != 1) {
_root.playerdefence = _root.playerdefence + playertackle;
playertackle = _root.playerdefence;
_root.playerdefence = _root.playerdefence - playertackle;
playertacklecpt = 2;
} else {
_root.enemydefence = _root.enemydefence + enemytackle;
enemytackle = _root.enemydefence;
_root.enemydefence = _root.enemydefence - enemytackle;
enemytacklecpt = 2;
}
break;
case 107 :
_root.inquisition = 0;
break;
case 108 :
_root.fogofwar = 0;
_root.truefogofwar = 0;
break;
case 109 :
if (_root.playerturn == 1) {
_root.playerbleed = 0;
_root.playercurse = 0;
_root.playerpoison = 0;
_root.playerhazumi = 0;
} else {
_root.enemybleed = 0;
_root.enemycurse = 0;
_root.enemypoison = 0;
_root.enemyhazumi = 0;
}
break;
case 110 :
if (_root.playerturn == 1) {
if (_root.enemyhazumi >= 5) {
myhazumi = 5;
hishazumiloss = 5;
} else {
myhazumi = _root.enemyhazumi;
hishazumiloss = _root.enemyhazumi;
}
} else if (_root.playerhazumi >= 5) {
myhazumi = 5;
hishazumiloss = 5;
} else {
myhazumi = _root.playerhazumi;
hishazumiloss = _root.playerhazumi;
}
break;
case 111 :
hisdegat = 5;
myheal = 5;
break;
case 112 :
_root.playeroffence = 0;
_root.playerdefence = 0;
_root.enemyoffence = 0;
_root.enemydefence = 0;
break;
case 113 :
if (_root.playerturn == 1) {
playerdiscard = 2;
gotoAndPlay (82);
} else {
enemydiscard = 1;
}
break;
case 114 :
if (_root.playerturn == 1) {
playerdiscard = 3;
gotoAndPlay (82);
} else {
enemydiscard = 2;
}
break;
case 115 :
if (_root.playerturn == 1) {
myheal = _root.playerdefence + _root.playeroffence;
} else {
myheal = _root.enemydefence + _root.enemyoffence;
}
break;
case 118 :
if (_root.playerturn == 1) {
_root.sensei.foo = 0;
_root.sensei.woo = 0;
while (foo < 6) {
if ((_root.playerhand[_root.sensei.foo] >= 116) && (_root.playerhand[_root.sensei.foo] <= 118)) {
woo++;
}
foo++;
}
if (woo == 0) {
hisdamage = 2;
}
if (woo == 1) {
hisdamage = 10;
}
if (woo == 2) {
hisdamage = 20;
}
if (woo >= 3) {
hisdamage = 40;
}
} else {
_root.sensei.foo = 0;
_root.sensei.woo = 0;
while (foo < 6) {
if ((_root.enemyhand[_root.sensei.foo] >= 116) && (_root.enemyhand[_root.sensei.foo] <= 118)) {
woo++;
}
foo++;
}
if (woo == 0) {
hisdamage = 2;
}
if (woo == 1) {
hisdamage = 10;
}
if (woo == 2) {
hisdamage = 20;
}
if (woo >= 3) {
hisdamage = 40;
}
}
break;
case 116 :
if (_root.playerturn == 1) {
_root.sensei.foo = 0;
_root.sensei.woo = 0;
while (foo < 6) {
if ((_root.playerhand[_root.sensei.foo] >= 116) && (_root.playerhand[_root.sensei.foo] <= 118)) {
woo++;
}
foo++;
}
if (woo == 0) {
hisdamage = 2;
}
if (woo == 1) {
hisdamage = 10;
}
if (woo == 2) {
hisdamage = 20;
}
if (woo >= 3) {
hisdamage = 40;
}
} else {
_root.sensei.foo = 0;
_root.sensei.woo = 0;
while (foo < 6) {
if ((_root.enemyhand[_root.sensei.foo] >= 116) && (_root.enemyhand[_root.sensei.foo] <= 118)) {
woo++;
}
foo++;
}
if (woo == 0) {
hisdamage = 2;
}
if (woo == 1) {
hisdamage = 10;
}
if (woo == 2) {
hisdamage = 20;
}
if (woo >= 3) {
hisdamage = 40;
}
}
break;
case 117 :
if (_root.playerturn == 1) {
_root.sensei.foo = 0;
_root.sensei.woo = 0;
while (foo < 6) {
if ((_root.playerhand[_root.sensei.foo] >= 116) && (_root.playerhand[_root.sensei.foo] <= 118)) {
woo++;
}
foo++;
}
if (woo == 0) {
hisdamage = 2;
}
if (woo == 1) {
hisdamage = 10;
}
if (woo == 2) {
hisdamage = 20;
}
if (woo >= 3) {
hisdamage = 40;
}
} else {
_root.sensei.foo = 0;
_root.sensei.woo = 0;
while (foo < 6) {
if ((_root.enemyhand[_root.sensei.foo] >= 116) && (_root.enemyhand[_root.sensei.foo] <= 118)) {
woo++;
}
foo++;
}
if (woo == 0) {
hisdamage = 2;
}
if (woo == 1) {
hisdamage = 10;
}
if (woo == 2) {
hisdamage = 20;
}
if (woo >= 3) {
hisdamage = 40;
}
}
break;
default :
trace("no case tested true");
}
if (_root.enemylife < 0) {
tellTarget (_root) {
gotoAndPlay (8);
};
} else if (_root.playerlife < 0) {
tellTarget (_root) {
gotoAndPlay (9);
};
}
Symbol 469 MovieClip Frame 7
if (_root.fogofwar < 1) {
if (hisdamage > 0) {
if (_root.playerturn == 1) {
hisdamage = hisdamage + (_root.playeroffence + _root.sensei.playeroffencivestance);
trace("***his damage= " + hisdamage);
hisdamage = hisdamage - (_root.enemydefence + _root.sensei.enemydefencivestance);
trace("feint est a " + _root.playerfeint);
if (_root.playerfeint > 0) {
hisdamage = hisdamage * 2;
trace("Donc les degat double a " + hisdamage);
}
trace("***his damage- defence and defencive stance= " + hisdamage);
if (hisdamage > _root.stats.data.greatesthit) {
_root.stats.data.greatesthit = hisdamage;
}
if (hisdamage > 0) {
if (_root.enemyreflect > 0) {
if (hisdamage > _root.enemyreflect) {
playerflyback = _root.enemyreflect;
} else {
playerflyback = hisdamage;
}
}
_root.enemylife = _root.enemylife - hisdamage;
_root.enemylastdamage = hisdamage;
_root.enemydamagemc.number = hisdamage;
tellTarget (_root.enemydamagemc) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.enemyarmormc) {
gotoAndPlay (2);
};
}
} else {
hisdamage = ((hisdamage + _root.enemyoffence) + _root.sensei.enemyoffencivestance) - (_root.playerdefence + _root.sensei.playerdefencivestance);
if (_root.enemyfeint > 0) {
hisdamage = hisdamage * 2;
}
if (hisdamage > 0) {
if (_root.playerreflect > 0) {
if (hisdamage > _root.playerreflect) {
enemyflyback = _root.playerreflect;
} else {
enemyflyback = hisdamage;
}
}
_root.playerlife = _root.playerlife - hisdamage;
_root.playerlastdamage = hisdamage;
tellTarget (_root.playerdamagemc) {
gotoAndPlay (2);
};
_root.playerdamagemc.number = hisdamage;
} else {
tellTarget (_root.playerarmormc) {
gotoAndPlay (2);
};
}
}
}
if (mydamage > 0) {
if (_root.playerturn == 1) {
mydamage = mydamage - _root.playerdefence;
if (mydamage > 0) {
_root.playerlife = _root.playerlife - mydamage;
tellTarget (_root.playerdamagemc) {
gotoAndPlay (2);
};
_root.playerdamagemc.number = mydamage;
} else {
tellTarget (_root.playerarmormc) {
gotoAndPlay (2);
};
}
} else {
mydamage = mydamage - _root.enemydefence;
if (mydamage > 0) {
_root.enemylife = _root.enemylife - mydamage;
tellTarget (_root.enemydamagemc) {
gotoAndPlay (2);
};
_root.enemydamagemc.number = mydamage;
} else {
tellTarget (_root.enemyarmormc) {
gotoAndPlay (2);
};
}
}
}
if (hisdegat > 0) {
if (_root.playerturn == 1) {
if (_root.playerfeint > 0) {
hisdegat = hisdegat * 2;
}
_root.enemylife = _root.enemylife - hisdegat;
_root.enemylastdamage = hisdegat;
_root.enemydamagemc.number = hisdegat;
tellTarget (_root.enemydamagemc) {
gotoAndPlay (2);
};
} else {
if (_root.enemyfeint > 0) {
hisdegat = hisdegat * 2;
}
_root.playerlife = _root.playerlife - hisdegat;
_root.playerlastdamage = hisdegat;
_root.playerdamagemc.number = hisdegat;
tellTarget (_root.playerdamagemc) {
gotoAndPlay (2);
};
}
}
} else if (_root.playerturn == 1) {
_root.truefogofwar = _root.truefogofwar - 0.5;
_root.fogofwar = Math.round(_root.truefogofwar);
}
_root.winloose();
Symbol 469 MovieClip Frame 14
if (playerflyback > 0) {
_root.playerflybackmc.number = playerflyback;
tellTarget (_root.playerflybackmc) {
gotoAndPlay (2);
};
_root.playerlife = _root.playerlife - playerflyback;
}
if (enemyflyback > 0) {
_root.enemyflybackmc.number = enemyflyback;
tellTarget (_root.enemyflybackmc) {
gotoAndPlay (2);
};
_root.enemylife = _root.enemylife - enemyflyback;
}
_root.winloose();
Symbol 469 MovieClip Frame 17
if (myheal > 0) {
if (_root.playerturn == 1) {
if (_root.playerpoison < 1) {
_root.playerlife = _root.playerlife + myheal;
if (_root.playerlife > _root.playerlifemax) {
_root.playerlife = _root.playerlifemax;
}
tellTarget (_root.playerhealingmc) {
gotoAndPlay (2);
};
_root.playerhealingmc.number = myheal;
}
} else if (_root.enemypoison < 1) {
_root.enemylife = _root.enemylife + myheal;
if (_root.enemylife > _root.enemylifemax) {
_root.enemylife = _root.enemylifemax;
}
tellTarget (_root.enemyhealingmc) {
gotoAndPlay (2);
};
_root.enemyhealingmc.number = myheal;
}
}
_root.winloose();
Symbol 469 MovieClip Frame 20
if ((((playerdualweild < 1) && (enemydualweild < 1)) && (enemydiscard < 1)) && (playerdiscard < 1)) {
if (_root.playerturn == 1) {
if (_root.playerhazumiregen > 0) {
_root.playerhazumi = _root.playerhazumi + _root.playerhazumiregen;
_root.playerhazumiregenmc.number = _root.playerhazumiregen;
tellTarget (_root.playerhazumiregenmc) {
gotoAndPlay (2);
};
}
} else if (_root.enemyhazumiregen > 0) {
_root.enemyhazumi = _root.enemyhazumi + _root.enemyhazumiregen;
_root.enemyhazumiregenmc.number = _root.enemyhazumiregen;
tellTarget (_root.enemyhazumiregenmc) {
gotoAndPlay (2);
};
}
}
Symbol 469 MovieClip Frame 23
if (myhazumi > 0) {
if (_root.playerturn == 1) {
if (_root.playercurse < 1) {
_root.playerhazumi = _root.playerhazumi + myhazumi;
tellTarget (_root.playerhazumimc) {
gotoAndPlay (2);
};
_root.playerhazumimc.number = myhazumi;
}
} else if (_root.enemycurse < 1) {
_root.enemyhazumi = _root.enemyhazumi + myhazumi;
tellTarget (_root.enemyhazumimc) {
gotoAndPlay (2);
};
_root.enemyhazumimc.number = myhazumi;
}
}
if (hishazumi > 0) {
if (_root.playerturn == 1) {
if (_root.enemycurse < 1) {
_root.enemyhazumi = _root.enemyhazumi + hishazumi;
tellTarget (_root.enemyhazumimc) {
gotoAndPlay (2);
};
_root.enemyhazumimc.number = hishazumi;
}
} else if (_root.playercurse < 1) {
_root.playerhazumi = _root.playerhazumi + hishazumi;
tellTarget (_root.playerhazumimc) {
gotoAndPlay (2);
};
_root.playerhazumimc.number = hishazumi;
}
}
if (myhazumiloss > 0) {
if (_root.playerturn == 1) {
_root.playerhazumi = _root.playerhazumi - myhazumiloss;
tellTarget (_root.playerhazumilossmc) {
gotoAndPlay (2);
};
_root.playerhazumilossmc.number = myhazumiloss;
} else {
_root.enemyhazumi = _root.enemyhazumi - myhazumiloss;
tellTarget (_root.enemyhazumilossmc) {
gotoAndPlay (2);
};
_root.enemyhazumilossmc.number = myhazumiloss;
}
}
if (hishazumiloss > 0) {
if (_root.playerturn == 1) {
_root.enemyhazumi = _root.enemyhazumi - hishazumiloss;
tellTarget (_root.enemyhazumilossmc) {
gotoAndPlay (2);
};
_root.enemyhazumilossmc.number = hishazumiloss;
} else {
_root.playerhazumi = _root.playerhazumi - hishazumiloss;
tellTarget (_root.playerhazumilossmc) {
gotoAndPlay (2);
};
_root.playerhazumilossmc.number = hishazumiloss;
}
}
if (_root.playerhazumi < 0) {
_root.playerhazumi = 0;
}
if (_root.enemyhazumi < 0) {
_root.enemyhazumi = 0;
}
if (_root.playerhazumi > _root.stats.data.tophazumi) {
_root.stats.data.tophazumi = _root.playerhazumi;
}
_root.winloose();
Symbol 469 MovieClip Frame 26
if ((_root.playerhazumi >= 10) && (_root.player10hazumi < 1)) {
_root.playerdefence++;
_root.playeroffence++;
_root.player10hazumi = 1;
tellTarget (_root.playerpromotionmc) {
gotoAndPlay (2);
};
} else if ((_root.playerhazumi >= 20) && (_root.player20hazumi < 1)) {
_root.playerreflect = _root.playerreflect + 2;
_root.playerdefence = _root.playerdefence + 2;
_root.playeroffence = _root.playeroffence + 2;
_root.player20hazumi = 1;
tellTarget (_root.playerpromotionmc) {
gotoAndPlay (2);
};
} else if ((_root.playerhazumi >= 30) && (_root.player30hazumi < 1)) {
_root.playerdefence = _root.playerdefence + 3;
_root.playeroffence = _root.playeroffence + 3;
_root.player30hazumi = 1;
_root.playerregen++;
tellTarget (_root.playerpromotionmc) {
gotoAndPlay (2);
};
}
if ((_root.enemyhazumi >= 10) && (_root.enemy10hazumi < 1)) {
_root.enemydefence++;
_root.enemyoffence++;
_root.enemy10hazumi = 1;
tellTarget (_root.enemypromotionmc) {
gotoAndPlay (2);
};
} else if ((_root.enemyhazumi >= 20) && (_root.enemy20hazumi < 1)) {
_root.enemyreflect = _root.enemyreflect + 2;
_root.enemydefence++;
_root.enemyoffence++;
_root.enemy20hazumi = 1;
tellTarget (_root.enemypromotionmc) {
gotoAndPlay (2);
};
} else if ((_root.enemyhazumi >= 30) && (_root.enemy30hazumi < 1)) {
_root.enemydefence = _root.enemydefence + 3;
_root.enemyoffence = _root.enemyoffence + 3;
_root.enemy30hazumi = 1;
_root.enemyregen++;
tellTarget (_root.enemypromotionmc) {
gotoAndPlay (2);
};
}
if (_root.enemydefence < 0) {
_root.enemydefence = 0;
}
if (_root.playerdefence < 0) {
_root.playerdefence = 0;
}
if (_root.enemyoffence < 0) {
_root.enemyoffence = 0;
}
if (_root.playeroffence < 0) {
_root.playeroffence = 0;
}
_root.winloose();
Symbol 469 MovieClip Frame 29
if (_root.playerturn == 1) {
if (_root.playercurse < 1) {
if (myoffbonus > 0) {
_root.playeroffence = _root.playeroffence + myoffbonus;
tellTarget (_root.playeroffencebonusmc) {
gotoAndPlay (2);
};
_root.playeroffencebonusmc.number = myoffbonus;
}
if (mydefbonus > 0) {
_root.playerdefence = _root.playerdefence + mydefbonus;
tellTarget (_root.playerdefencebonusmc) {
gotoAndPlay (2);
};
_root.playerdefencebonusmc.number = mydefbonus;
}
}
if (hisoffbonus > 0) {
_root.enemyoffence = _root.enemyoffence + hisoffbonus;
tellTarget (_root.enemyoffencebonusmc) {
gotoAndPlay (2);
};
_root.enemyoffencebonusmc.number = hisoffbonus;
}
if (hisdefbonus > 0) {
_root.enemydefence = _root.enemydefence + hisdefbonus;
tellTarget (_root.enemydefencebonusmc) {
gotoAndPlay (2);
};
_root.enemydefencebonusmc.number = hisdefbonus;
}
} else {
if (_root.enemycurse < 1) {
if (myoffbonus > 0) {
_root.enemyoffence = _root.enemyoffence + myoffbonus;
tellTarget (_root.enemyoffencebonusmc) {
gotoAndPlay (2);
};
_root.enemyoffencebonusmc.number = myoffbonus;
}
if (mydefbonus > 0) {
_root.enemydefence = _root.enemydefence + mydefbonus;
tellTarget (_root.enemydefencebonusmc) {
gotoAndPlay (2);
};
_root.enemydefencebonusmc.number = mydefbonus;
}
}
if (hisoffbonus > 0) {
_root.playeroffence = _root.playeroffence + hisoffbonus;
tellTarget (_root.playeroffencebonusmc) {
gotoAndPlay (2);
};
_root.playeroffencebonusmc.number = hisoffbonus;
}
if (hisdefbonus > 0) {
_root.playerdefence = _root.playerdefence + hisdefbonus;
tellTarget (_root.playerdefencebonusmc) {
gotoAndPlay (2);
};
_root.playerdefencebonusmc.number = hisdefbonus;
}
}
_root.winloose();
Symbol 469 MovieClip Frame 32
if (_root.playerturn == 1) {
if (myoffmalus > 0) {
_root.playeroffence = _root.playeroffence - myoffmalus;
tellTarget (_root.playeroffencemalusmc) {
gotoAndPlay (2);
};
_root.playeroffencemalusmc.number = myoffmalus;
}
if (mydefmalus > 0) {
_root.playerdefence = _root.playerdefence - mydefmalus;
tellTarget (_root.playerdefencemalusmc) {
gotoAndPlay (2);
};
_root.playerdefencemalusmc.number = myoffmalus;
}
if (hisoffmalus > 0) {
_root.enemyoffence = _root.enemyoffence - hisoffmalus;
tellTarget (_root.enemyoffencemalusmc) {
gotoAndPlay (2);
};
_root.enemyoffencemalusmc.number = hisoffmalus;
}
if (hisdefmalus > 0) {
_root.enemydefence = _root.enemydefence - hisdefmalus;
tellTarget (_root.enemydefencemalusmc) {
gotoAndPlay (2);
};
_root.enemydefencemalusmc.number = hisdefmalus;
}
} else {
if (myoffmalus > 0) {
_root.enemyoffence = _root.enemyoffence - myoffmalus;
tellTarget (_root.enemyoffencemalusmc) {
gotoAndPlay (2);
};
_root.enemyoffencemalusmc.number = myoffmalus;
}
if (mydefmalus > 0) {
_root.enemydefence = _root.enemydefence - mydefmalus;
tellTarget (_root.enemydefencemalusmc) {
gotoAndPlay (2);
};
_root.enemydefencemalusmc.number = mydefmalus;
}
if (hisoffmalus > 0) {
_root.playeroffence = _root.playeroffence - hisoffmalus;
tellTarget (_root.playeroffencemalusmc) {
gotoAndPlay (2);
};
_root.playeroffencemalusmc.number = hisoffmalus;
}
if (hisdefmalus > 0) {
_root.playerdefence = _root.playerdefence - hisdefmalus;
tellTarget (_root.playerdefencemalusmc) {
gotoAndPlay (2);
};
_root.playerdefencemalusmc.number = hisdefmalus;
}
}
_root.winloose();
Symbol 469 MovieClip Frame 35
if ((((playerdualweild < 1) && (enemydualweild < 1)) && (enemydiscard < 1)) && (playerdiscard < 1)) {
if (_root.playerturn == 1) {
if (hisbleed > 0) {
_root.enemybleed = _root.enemybleed + hisbleed;
}
if (mybleed > 0) {
_root.playerbleed = _root.playerbleed + mybleed;
}
if (_root.playerbleed < 0) {
_root.playerbleed = 0;
}
_root.playerbleed = _root.playerbleed - mybleedstop;
if (_root.playerbleed < 0) {
_root.playerbleed = 0;
}
if (_root.playerbleed > 0) {
_root.playerlife = _root.playerlife - _root.playerbleed;
tellTarget (_root.playerbleedmc) {
gotoAndPlay (2);
};
}
} else {
if (hisbleed > 0) {
_root.playerbleed = _root.playerbleed + hisbleed;
}
if (mybleed > 0) {
_root.enemybleed = _root.enemybleed + mybleed;
}
if (_root.enemybleed < 0) {
_root.enemybleed = 0;
}
_root.enemybleed = _root.enemybleed - mybleedstop;
if (_root.enemybleed < 0) {
_root.enemybleed = 0;
}
if (_root.enemybleed > 0) {
_root.enemylife = _root.enemylife - _root.enemybleed;
tellTarget (_root.enemybleedmc) {
gotoAndPlay (2);
};
}
}
}
_root.winloose();
Symbol 469 MovieClip Frame 38
_root.winloose();
Symbol 469 MovieClip Frame 41
if (_root.playerturn == 1) {
if (hispoison >= 1) {
_root.enemypoison = _root.enemypoison + hispoison;
tellTarget (_root.enemypoisonmc) {
gotoAndPlay (2);
};
} else if (mypoison > 1) {
_root.playerpoison = _root.playerpoison + mypoison;
}
if (_root.playerpoison > 0) {
tellTarget (_root.playerpoisonmc) {
gotoAndPlay (2);
};
}
} else {
if (hispoison >= 1) {
_root.playerpoison = _root.playerpoison + hispoison;
tellTarget (_root.playerpoisonmc) {
gotoAndPlay (2);
};
} else if (mypoison > 1) {
_root.enemypoison = _root.enemypoison + mypoison;
}
if (_root.enemypoison > 0) {
tellTarget (_root.enemypoisonmc) {
gotoAndPlay (2);
};
}
}
Symbol 469 MovieClip Frame 44
if ((((playerdualweild < 1) && (enemydualweild < 1)) && (enemydiscard < 1)) && (playerdiscard < 1)) {
if (_root.playerturn == 1) {
if (_root.playerlife < _root.playerlifemax) {
if (_root.playerpoison < 1) {
if (_root.playerregen > 0) {
_root.playerlife = _root.playerlife + _root.playerregen;
if (_root.playerlife > _root.playerlifemax) {
_root.playerlife = _root.playerlifemax;
}
_root.playerregenmc.number = _root.playerregen;
tellTarget (_root.playerregenmc) {
gotoAndPlay (2);
};
}
}
}
} else if (_root.enemylife < _root.enemylifemax) {
if (_root.enemypoison < 1) {
if (_root.enemyregen > 0) {
_root.enemylife = _root.enemylife + _root.enemyregen;
if (_root.enemylife > _root.enemylifemax) {
_root.enemylife = _root.enemylifemax;
}
_root.enemyregenmc.number = _root.enemyregen;
tellTarget (_root.enemyregenmc) {
gotoAndPlay (2);
};
}
}
}
}
Symbol 469 MovieClip Frame 47
if (myreflect > 0) {
if (_root.playerturn == 1) {
_root.playerreflect = _root.playerreflect + myreflect;
_root.playerreflectbonusmc.number = myreflect;
tellTarget (_root.playerreflectbonusmc) {
gotoAndPlay (2);
};
} else {
_root.enemyreflect = _root.enemyreflect + myreflect;
_root.enemyreflectbonusmc.number = myreflect;
tellTarget (_root.enemyreflectbonusmc) {
gotoAndPlay (2);
};
}
}
if (hisreflectmalus > 0) {
if (_root.playerturn == 1) {
_root.enemyreflectmalusmc.number = hisreflectmalus;
_root.enemyreflect = 0;
tellTarget (_root.enemyreflectmalusmc) {
gotoAndPlay (2);
};
} else {
_root.playerreflectmalusmc.number = hisreflectmalus;
_root.playerreflect = 0;
tellTarget (_root.playerreflectmalusmc) {
gotoAndPlay (2);
};
}
}
Symbol 469 MovieClip Frame 50
if ((((playerdualweild < 1) && (enemydualweild < 1)) && (enemydiscard < 1)) && (playerdiscard < 1)) {
if (hisstun > 0) {
if (_root.playerturn == 1) {
_root.enemystun = _root.enemystun + hisstun;
} else {
_root.playerstun = _root.playerstun + hisstun;
}
}
}
Symbol 469 MovieClip Frame 53
if ((((playerdualweild < 1) && (enemydualweild < 1)) && (enemydiscard < 1)) && (playerdiscard < 1)) {
if (_root.inquisition > 0) {
if (_root.playerhazumi != _root.enemyhazumi) {
if (_root.playerturn == 1) {
if (_root.playerhazumi > _root.enemyhazumi) {
tellTarget (_root.enemyinquisitionmc) {
gotoAndPlay (2);
};
_root.enemyinquisitionmc.number = _root.inquisition;
_root.enemylife = _root.enemylife - _root.inquisition;
}
} else if (_root.enemyhazumi > _root.playerhazumi) {
tellTarget (_root.playerinquisitionmc) {
gotoAndPlay (2);
};
_root.playerinquisitionmc.number = _root.inquisition;
_root.playerlife = _root.playerlife - _root.inquisition;
}
}
}
}
_root.winloose();
Symbol 469 MovieClip Frame 56
if (_root.playerturn == 1) {
if (hiscurse >= 1) {
_root.enemycurse = _root.enemycurse + hiscurse;
tellTarget (_root.enemycursemc) {
gotoAndPlay (2);
};
} else if (mypoison > 1) {
_root.playercurse = _root.playercurse + mycurse;
}
if (_root.playercurse > 0) {
tellTarget (_root.playercursemc) {
gotoAndPlay (2);
};
}
} else {
if (hiscurse >= 1) {
_root.playercurse = _root.playercurse + hiscurse;
tellTarget (_root.playercursemc) {
gotoAndPlay (2);
};
} else if (mycurse > 1) {
_root.enemycurse = _root.enemycurse + mycurse;
}
if (_root.enemycurse > 0) {
tellTarget (_root.enemycursemc) {
gotoAndPlay (2);
};
}
}
Symbol 469 MovieClip Frame 58
if (_root.fogofwar > 0) {
_root.fogofwarmc.gotoAndPlay(2);
}
Symbol 469 MovieClip Frame 61
if ((((playerdualweild < 1) && (enemydualweild < 1)) && (enemydiscard < 1)) && (playerdiscard < 1)) {
x = 0;
if (_root.playerturn == 1) {
_root.matchlength++;
_root.giveCard("enemy");
} else {
_root.giveCard("player");
}
}
Symbol 469 MovieClip Frame 82
enemyplay = 0;
decision = 0;
veronik = 0;
if (_root.playerdefence > _root.stats.data.bestdefence) {
_root.stats.data.bestdefence = _root.playerdefence;
}
if (_root.playeroffence > _root.stats.data.bestoffence) {
_root.stats.data.bestoffence = _root.playeroffence;
}
if (_root.playerturn == 1) {
if (playerdiscard > 1) {
_root.moved = 0;
playerdiscard--;
gotoAndPlay (1);
} else {
if (playerdiscard > 0) {
playerdiscard = 0;
_root.giveCard("enemy");
}
if (playerdualweild < 1) {
if (_root.enemystun < 1) {
_root.playerturn = 0;
if (_root.enemypoison < 1) {
if (_root.priority() == "heal") {
trace("finding healing card");
enemyplay = _root.findhealcard();
trace("findhealcard retourne: " + _root.findhealcard());
trace("best healing card found at " + enemyplay);
} else {
trace("utilise le find best card no heal required");
enemyplay = _root.findbestcard();
}
if (enemyplay == 99) {
trace("no healing card found");
enemyplay = _root.findbestcard();
}
} else {
trace("utilise le find best card currently poisoned");
enemyplay = _root.findbestcard();
}
if (enemyplay > 6) {
trace("no card found saddly");
enemyplay = random(6);
}
argh = new Sound();
argh.attachSound("enemyattack");
argh.start();
tellTarget (["_root.ecard" + (this.enemyplay + 1)]) {
gotoAndStop (50);
};
tellTarget (_root.playerdeck) {
gotoAndStop(_root.enemyhand[this.enemyplay]);
};
_root.cardplayed = _root.enemyhand[this.enemyplay];
_root.enemyhand[this.enemyplay] = 0;
gotoAndPlay (2);
} else {
_root.enemystun--;
tellTarget (_root.enemystunnedmc) {
gotoAndPlay (2);
};
_root.giveCard("player");
_root.moved = 0;
gotoAndPlay (1);
}
} else {
playerdualweild--;
_root.moved = 0;
gotoAndPlay (1);
}
}
} else if (enemydiscard > 0) {
trace("discard une carte pas bonne");
enemyplay = _root.findworstcard();
if (enemyplay > 6) {
trace("trouve pas une mauvaise carte");
enemyplay = random(6);
}
tellTarget (["_root.ecard" + (this.enemyplay + 1)]) {
gotoAndStop (50);
};
_root.enemyhand[this.enemyplay] = 0;
enemydiscard--;
if (enemydiscard == 0) {
_root.moved = 0;
_root.playerturn = 1;
gotoAndPlay (1);
} else {
gotoAndPlay ("discard loop");
}
} else if (enemydualweild < 1) {
if (_root.playerstun < 1) {
_root.giveCard("player");
_root.playerturn = 1;
_root.moved = 0;
} else {
tellTarget (_root.playerstunnedmc) {
gotoAndPlay (2);
};
_root.playerstun--;
_root.matchlength++;
_root.giveCard("enemy");
if (_root.enemypoison < 1) {
if (_root.priority() == "heal") {
trace("finding healing card");
enemyplay = _root.findhealcard();
trace("findhealcard retourne: " + _root.findhealcard());
trace("best healing card found at " + enemyplay);
} else {
trace("utilise le find best card no heal required");
enemyplay = _root.findbestcard();
}
if (enemyplay == 99) {
trace("no healing card found");
enemyplay = _root.findbestcard();
}
} else {
trace("utilise le find best card currently poisoned");
enemyplay = _root.findbestcard();
}
if (enemyplay > 6) {
trace("no card found saddly");
enemyplay = random(6);
}
argh = new Sound();
argh.attachSound("enemyattack");
argh.start();
tellTarget (["_root.ecard" + (this.enemyplay + 1)]) {
gotoAndStop (50);
};
tellTarget (_root.playerdeck) {
gotoAndStop(_root.enemyhand[this.enemyplay]);
};
_root.cardplayed = _root.enemyhand[this.enemyplay];
_root.enemyhand[this.enemyplay] = 0;
gotoAndPlay (2);
}
} else {
enemydualweild--;
if (_root.enemypoison < 1) {
if (_root.priority() == "heal") {
trace("finding healing card");
enemyplay = _root.findhealcard();
trace("findhealcard retourne: " + _root.findhealcard());
trace("best healing card found at " + enemyplay);
} else {
trace("utilise le find best card no heal required");
enemyplay = _root.findbestcard();
}
if (enemyplay == 99) {
trace("no healing card found");
enemyplay = _root.findbestcard();
}
} else {
trace("utilise le find best card currently poisoned");
enemyplay = _root.findbestcard();
}
if (enemyplay > 6) {
trace("no card found saddly");
enemyplay = random(6);
}
argh = new Sound();
argh.attachSound("enemyattack");
argh.start();
tellTarget (["_root.ecard" + (this.enemyplay + 1)]) {
gotoAndStop (50);
};
tellTarget (_root.playerdeck) {
gotoAndStop(_root.enemyhand[this.enemyplay]);
};
_root.cardplayed = _root.enemyhand[this.enemyplay];
_root.enemyhand[this.enemyplay] = 0;
gotoAndPlay (2);
}
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 16
argh = new Sound();
x = random(20) + 1;
argh.attachSound("mhit" + x);
argh.start();
Symbol 490 MovieClip Frame 25
this.number = "";
Symbol 495 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 25
this.number = "";
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 25
this.number = "";
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 25
this.number = "";
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 25
this.number = "";
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 25
this.number = "";
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 25
this.number = "";
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 25
this.number = "";
Symbol 576 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 25
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 16
argh = new Sound();
x = random(20) + 1;
argh.attachSound("mhit" + x);
argh.start();
Symbol 612 MovieClip Frame 25
this.number = "";
Symbol 624 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 25
this.number = "";
Symbol 641 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 25
this.number = "";
Symbol 647 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 25
this.number = "";
Symbol 649 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 25
this.number = "";
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 25
this.number = "";
Symbol 654 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.enemyhand[0]);
};
}
}
Symbol 655 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.enemyhand[1]);
};
}
}
Symbol 656 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.enemyhand[2]);
};
}
}
Symbol 657 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.enemyhand[3]);
};
}
}
Symbol 658 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.enemyhand[4]);
};
}
}
Symbol 659 Button
on (rollOver) {
if (_root.playerturn > 0) {
tellTarget (playerdeck) {
gotoAndStop(_root.enemyhand[5]);
};
}
}
Symbol 664 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 25
this.number = "";
Symbol 668 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 25
this.number = "";
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 25
this.number = "";
Symbol 676 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 25
this.number = "";
Symbol 682 Button
on (release) {
if (_root.stats.data.prizeoff > 0) {
_root.playeroffence++;
_root.stats.data.prizeoff--;
argh = new Sound();
argh.attachSound("bleep11");
argh.start();
_root.gamedesc = ("You just used a healing bonus point, you now have " + _root.stats.data.prizeoff) + " points left";
} else {
_root.gamedesc = "You don't have enough offence bonus points, you can get more by winning tournaments.";
argh = new Sound();
argh.attachSound("bleep13");
argh.start();
}
}
Symbol 683 Button
on (release) {
if (_root.stats.data.prizedef > 0) {
_root.playerdefence++;
_root.stats.data.prizedef--;
argh = new Sound();
argh.attachSound("bleep11");
argh.start();
_root.gamedesc = ("You just used a healing bonus point, you now have " + _root.stats.data.prizedef) + " points left";
} else {
_root.gamedesc = "You don't have enough defence bonus points, you can get more by winning tournaments.";
argh = new Sound();
argh.attachSound("bleep13");
argh.start();
}
}
Symbol 684 Button
on (release) {
if (_root.stats.data.prizeheal > 0) {
_root.playerlife++;
_root.stats.data.prizeheal--;
argh = new Sound();
argh.attachSound("bleep11");
argh.start();
_root.gamedesc = ("You just used a healing bonus point, you now have " + _root.stats.data.prizeheal) + " points left";
} else {
_root.gamedesc = "You don't have enough healing bonus points, you can get more by winning tournaments.";
argh = new Sound();
argh.attachSound("bleep13");
argh.start();
}
}
Symbol 685 Button
on (rollOver) {
_root.gamedesc = "This is your hit points, when this number reach 0 you are cooked.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 686 Button
on (rollOver) {
_root.gamedesc = "This is your hazumi points, you will have special power ups when you reach 10,20,30 points.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 687 Button
on (rollOver) {
_root.gamedesc = "This is your offence points, they are bonuses to your damage output.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 688 Button
on (rollOver) {
_root.gamedesc = "This is your defence points, they are malus to your enemy's damage output.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 689 Button
on (rollOver) {
_root.gamedesc = "This is your regeneration points, you gain health equal to this number each turn if you are injured.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 690 Button
on (rollOver) {
_root.gamedesc = "This is your reflect damage points, If the enemy is goin thru your amror, this amount of damage can be reflected to him.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 691 Button
on (rollOver) {
_root.gamedesc = "This is the inquisition counter, when above 0, the player with less hazumi will take damage equal to this number.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 692 Button
on (rollOver) {
_root.gamedesc = "This is the fog of war counter, when above 0, all attack cards will have no effect.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 694 Button
on (rollOver) {
_root.gamedesc = "This is your bleed counter, you lose this amount of life points per turn.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 695 Button
on (rollOver) {
_root.gamedesc = "This is your poison counter, while poisoned you may not heal.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 696 Button
on (rollOver) {
_root.gamedesc = "This is your curse counter, while cursed you may not increase your hazumi, offence and defence scores.";
}
on (rollOut) {
_root.gamedesc = "";
}
Symbol 701 Button
on (release) {
if (_root.training > 0) {
gotoAndPlay (15);
} else {
gotoAndPlay (4);
}
stopAllSounds();
}
Symbol 706 Button
on (release) {
if (_root.training > 0) {
gotoAndPlay (15);
} else {
gotoAndPlay (4);
}
}
Symbol 723 Button
on (release) {
_root.belttrial = 1;
if (_root.stats.data.belt < 15) {
gotoAndPlay (17);
}
}
Symbol 724 Button
on (release) {
_root.belttrial = 0;
gotoAndPlay (16);
}
Symbol 725 Button
on (release) {
gotoAndPlay (23);
}
Symbol 729 Button
on (release) {
gotoAndPlay (26);
}
Symbol 731 Button
on (release) {
gotoAndStop (1);
tellTarget (_root) {
_root.tournamentround = 1;
gotoAndPlay ("tournament");
};
}
Symbol 732 Button
on (release) {
gotoAndStop (1);
}
Symbol 734 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 2
gotoAndPlay (3);
Symbol 734 MovieClip Frame 25
gotoAndPlay (2);
Symbol 734 MovieClip Frame 26
stop();
Symbol 736 Button
on (release) {
_root.stats.data.forfeit = 1;
_root.training = 1;
_root.mailonce = 0;
gotoAndPlay (12);
}
Symbol 737 Button
on (release) {
gotoAndPlay (15);
}
Symbol 740 Button
on (release) {
gotoAndPlay (18);
}
Symbol 741 Button
on (release) {
gotoAndPlay (15);
}
Symbol 742 Button
on (release) {
_root.stats.data.forfeittrial = 1;
_root.trial = 1;
_root.mailonce = 0;
gotoAndPlay (12);
}
Symbol 750 Button
on (release) {
gotoAndPlay (15);
stopAllSounds();
}
Symbol 755 Button
on (release) {
if (_root.tournamentround < 7) {
gotoAndPlay (12);
} else if (_root.tournamentround == 7) {
gotoAndPlay (22);
} else {
gotoAndPlay (15);
_root.tournamentlife = 0;
}
}
Symbol 758 Button
on (release) {
gotoAndPlay (12);
_root.tournamentlife = 0;
}
Symbol 760 Button
on (release) {
_root.mailonce = 0;
gotoAndPlay (15);
}
Symbol 768 Button
on (release) {
gotoAndPlay (15);
_root.oncezz = 0;
}
Symbol 777 Button
on (release) {
if (_root.oncezz < 1) {
if (_root.stats.data.playername != "Maru") {
scoretable.filename = "gekisenscores3/demo.sco";
scoretable.scoresize = 10;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = _root.stats.data.playername;
scoretable.winscore = _root.ratescore;
scoretable.loadVariables("http://www.urbanprophet.com/gekisenscores3.php", "GET");
_root.oncezz = 1;
}
}
}