Frame 1
LIBRARY_X = 31;
LIBRARY_Y = 300;
P1RECIPE_X = 1;
P1RECIPE_Y = 420;
P2RECIPE_X = 1;
P2RECIPE_Y = 180;
P1HAND_BASE_X = 120;
P1HAND_BASE_Y = 570;
P2HAND_BASE_X = 120;
P2HAND_BASE_Y = 30;
TEMPSTACK_BASE_X = 280;
TEMPSTACK_BASE_Y = 200;
CARD_SPACE = 50;
CARD_SPACE_UNSORTED = 63;
CARD_SCALE = 50;
FOOD_MAX = 51;
RECIPE_MAX = 12;
OVEN_X = 90;
OVEN_Y = 450;
FOODSTACK_X = 80;
FOODSTACK_SX = 55;
FOODSTACK_Y = 140;
FOODSTACK_SY = 20;
FOODSTACK_SCALE = 30;
_global.arraySub = function (ar1, ar2) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < Math.max(ar1.length, ar2.length)) {
_local4.push(ar1[_local1] - ar2[_local1]);
_local1++;
}
return(_local4);
};
_global.isIn = function (n, ar) {
var _local1 = 0;
while (_local1 < ar.length) {
if (ar[_local1] == n) {
return(true);
}
_local1++;
}
return(false);
};
_global.setPileSize = function () {
_root.ms.food_pile.gotoAndStop(((_root.lib.getPileLength() > 0) ? "\u98DF\u6750\u88CF" : "none"));
_root.ms.p1recipe_pile.gotoAndStop(((_root.p1rec.getPileLength() > 0) ? "\u300C\u300D\u306E\u30EC\u30B7\u30D4\u88CF" : "none"));
_root.ms.p2recipe_pile.gotoAndStop(((_root.p2rec.getPileLength() > 0) ? "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\u88CF" : "none"));
_root.ms.food_ind.gotoAndStop(((_root.lib.getPileLength() > ((_root.FOOD_MAX / 3) * 2)) ? 1 : (((_root.lib.getPileLength() > (_root.FOOD_MAX / 3)) ? 2 : (((_root.lib.getPileLength() > 3) ? 3 : (((_root.lib.getPileLength() == 3) ? 4 : (((_root.lib.getPileLength() == 2) ? 5 : (((_root.lib.getPileLength() == 1) ? 6 : 7))))))))))));
_root.ms.p1rec_ind.gotoAndStop(((_root.p1rec.getPileLength() > (_root.RECIPE_MAX / 2)) ? 1 : (((_root.p1rec.getPileLength() > 3) ? 2 : (((_root.p1rec.getPileLength() == 3) ? 3 : (((_root.p1rec.getPileLength() == 2) ? 4 : (((_root.p1rec.getPileLength() == 1) ? 5 : 6))))))))));
_root.ms.p2rec_ind.gotoAndStop(((_root.p2rec.getPileLength() > (_root.RECIPE_MAX / 2)) ? 1 : (((_root.p2rec.getPileLength() > 3) ? 2 : (((_root.p2rec.getPileLength() == 3) ? 3 : (((_root.p2rec.getPileLength() == 2) ? 4 : (((_root.p2rec.getPileLength() == 1) ? 5 : 6))))))))));
};
_global.checkClothing = function (cf) {
var _local3 = 0;
var _local4 = _root.p1made.getPileLength();
_local3 = (((((((((((((((((0 + (_root.maman.apron != "\u30A8\u30D7\u30ED\u30F3")) + _root.maman.glass) + (_root.maman.nit != "\u30BB\u30FC\u30BF\u30FC")) + _root.maman.necklace) + (_root.maman.skirt != "\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8")) + _root.maman.rope) + (_root.maman.bust != "\u30D6\u30E9\u30B8\u30E3\u30FC")) + (_root.maman.skirt == "\u30B9\u30AF\u6C34")) + (_root.maman.torso != "\u30B7\u30E7\u30FC\u30C4")) + _root.maman.inut) + (_root.maman.tights != "\u9ED2\u30B9\u30C8")) + _root.maman.massager) + (_root.maman.hair == "\u30ED\u30F3\u30B0\u30D8\u30A2")) + _root.maman.osyaburi) + (!_root.maman.underhair)) + (_root.maman.apron == "\u3088\u3060\u308C\u304B\u3051")) + _root.maman.drug) + _root.maman.diaper;
var _local2 = _local3 < _local4;
_root.ms.b_apron.gotoAndStop(((_root.maman.apron == "none") ? 1 : (((_local2 && (_root.maman.apron == "\u30A8\u30D7\u30ED\u30F3")) ? 2 : 3))));
_root.ms.b_nit.gotoAndStop((((_root.maman.skirt != "\u30B9\u30AF\u6C34") && (_root.maman.nit == "none")) ? 1 : (((((!_local2) || (_root.maman.skirt == "\u30B9\u30AF\u6C34")) || (_root.maman.nit != "\u30BB\u30FC\u30BF\u30FC")) ? 3 : 2))));
_root.ms.b_skirt.gotoAndStop(((_root.maman.skirt == "none") ? 1 : ((((!_local2) || (_root.maman.skirt != "\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8")) ? 3 : 2))));
_root.ms.b_bra.gotoAndStop((((_root.maman.skirt != "\u30B9\u30AF\u6C34") && (_root.maman.bust == "none")) ? 1 : (((((!_local2) || (_root.maman.skirt == "\u30B9\u30AF\u6C34")) || (_root.maman.bust != "\u30D6\u30E9\u30B8\u30E3\u30FC")) ? 3 : 2))));
_root.ms.b_shorts.gotoAndStop(((((_root.maman.skirt != "\u30B9\u30AF\u6C34") && (_root.maman.torso == "none")) && (!_root.maman.diaper)) ? 1 : ((((((!_local2) || (_root.maman.skirt == "\u30B9\u30AF\u6C34")) || (_root.maman.torso != "\u30B7\u30E7\u30FC\u30C4")) || (_root.maman.diaper)) ? 3 : 2))));
_root.ms.b_tights.gotoAndStop((((_root.maman.skirt != "\u30B9\u30AF\u6C34") && (_root.maman.tights == "none")) ? 1 : (((((!_local2) || (_root.maman.skirt == "\u30B9\u30AF\u6C34")) || (_root.maman.tights != "\u9ED2\u30B9\u30C8")) ? 3 : 2))));
_root.ms.b_longhair.gotoAndStop(((_root.maman.hair == "\u30ED\u30F3\u30B0\u30D8\u30A2") ? 1 : (((_local2 && (!_root.maman.hair_cut)) ? 2 : 3))));
_root.ms.b_underhair.gotoAndStop((_root.maman.underhair ? ((_local2 ? 1 : 3)) : 2));
_root.ms.b_drug._visible = _root.canDrugged;
if (_root.canDrugged) {
_root.ms.b_drug.gotoAndStop(((_root.maman.drug || (!_local2)) ? 3 : 1));
}
_root.ms.b_glass.gotoAndStop((_root.maman.glass ? 2 : (((!_local2) ? 3 : 1))));
_root.ms.b_chain.gotoAndStop((_root.maman.necklace ? 2 : (((!_local2) ? 3 : 1))));
_root.ms.b_swimwear.gotoAndStop(((_root.maman.skirt == "\u30B9\u30AF\u6C34") ? 2 : (((((((_local2 && (_root.maman.nit == "none")) && (_root.maman.skirt == "none")) && (_root.maman.bust == "none")) && (_root.maman.torso == "none")) && (!_root.maman.diaper)) ? 1 : 3))));
_root.ms.b_rope.gotoAndStop((_root.maman.rope ? 2 : (((((!_local2) || (_root.maman.bust != "none")) || (_root.maman.torso != "none")) ? 3 : 1))));
_root.ms.b_inuT.gotoAndStop((_root.maman.inut ? 2 : (((!_local2) ? 3 : 1))));
_root.ms.b_massager.gotoAndStop((_root.maman.massager ? 2 : (((!_local2) ? 3 : 1))));
_root.ms.b_osyaburi.gotoAndStop((_root.maman.osyaburi ? 2 : (((!_local2) ? 3 : 1))));
_root.ms.b_yodarekake.gotoAndStop(((_root.maman.apron == "\u3088\u3060\u308C\u304B\u3051") ? 2 : ((((!_local2) || (_root.maman.apron != "none")) ? 3 : 1))));
_root.ms.b_diaper.gotoAndStop((_root.maman.diaper ? 2 : (((((!_local2) || (_root.maman.skirt == "\u30B9\u30AF\u6C34")) || (_root.maman.torso != "none")) ? 3 : 1))));
_root.ms.i_cancut._visible = _root.canCut && (!_root.maman.zooming);
_root.ms.b_zoom._visible = _root.canZoom;
_root.ms.b_zoom.gotoAndStop((_root.maman.zooming ? 2 : 1));
_root.ms.peeppoint.gotoAndStop(_local3 + 1);
_root.ms.peepmax.gotoAndStop(_local4 + 1);
_root.shame = (((((((((((((((_root.maman.bust == "none") + (((_root.maman.bust == "none") && (_root.maman.nit != "\u30BB\u30FC\u30BF\u30FC")) * 2)) + ((_root.maman.torso == "none") * 2)) + (((_root.maman.torso == "none") && (_root.maman.skirt != "\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8")) * 2)) + (_root.maman.rope * 2)) + (_root.maman.nit == "none")) + (_root.maman.skirt == "none")) + ((_root.maman.skirt == "\u30B9\u30AF\u6C34") * 3)) + (_root.maman.necklace * 3)) + (_root.maman.massager * 4)) + (_root.maman.diaper * 3)) + _root.maman.nit_cut) + _root.maman.skirt_cut) + _root.maman.swimsuit_cut) + _root.maman.tights_cut) + _root.maman.shorts_cut;
trace("shame : " + _root.shame);
_root.mamanf.spit._visible = (((_root.maman.drug && ((_root.maman.tights != "\u9ED2\u30B9\u30C8") || (_root.maman.tights_cut))) && ((_root.maman.torso != "\u30B7\u30E7\u30FC\u30C4") || (_root.maman.shorts_cut))) && ((_root.maman.skirt != "\u30B9\u30AF\u6C34") || (_root.maman.swimsuit_cut))) && (!_root.maman.diaper);
_root.mamanf.milk._visible = (_root.maman.drug && (_root.maman.bust != "\u30D6\u30E9\u30B8\u30E3\u30FC")) && ((_root.maman.nit != "\u30BB\u30FC\u30BF\u30FC") || (_root.maman.nit_cut));
_root.ms.cb_nit_1._visible = (_root.ms.cb_nit_2._visible = ((((!_root.maman.zooming) && (_root.canCut)) && (!_root.maman.nit_cut)) && (_root.maman.nit == "\u30BB\u30FC\u30BF\u30FC")) && (_root.maman.apron != "\u30A8\u30D7\u30ED\u30F3"));
_root.ms.cb_torso._visible = (((_root.maman.apron != "\u30A8\u30D7\u30ED\u30F3") && (_root.canCut)) && (!_root.maman.zooming)) && (((((!_root.maman.skirt_cut) && (_root.maman.skirt == "\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8")) || ((!_root.maman.swimsuit_cut) && (_root.maman.skirt == "\u30B9\u30AF\u6C34"))) || (((!_root.maman.tights_cut) && (_root.maman.skirt == "none")) && (_root.maman.tights == "\u9ED2\u30B9\u30C8"))) || (((((!_root.maman.shorts_cut) && (_root.maman.skirt == "none")) && (_root.maman.tights == "none")) && (_root.maman.torso == "\u30B7\u30E7\u30FC\u30C4")) && (!_root.maman.diaper)));
_root.ms.cb_hair._visible = (_root.canCut && (!_root.maman.zooming)) && (!_root.maman.hair_cut);
if (cf && (_root.shame > 3)) {
fukidashiManage("\u6065\u305A\u304B\u3057\u3044\u30AB\u30C3\u30B3");
}
};
_global.fukidashiManage = function (str) {
var _local2;
if (_root.maman.drug) {
switch (str) {
case "\u624B\u756A\u6E21\u3057" :
_local2 = 4;
break;
case "\u30AD\u30C3\u30C1\u30F3\u3078" :
case "\u7740\u305B\u66FF\u3048" :
_local2 = 3;
break;
case "\u30EC\u30B7\u30D4\u5B8C\u6210" :
case "\u6065\u305A\u304B\u3057\u3044\u30AB\u30C3\u30B3" :
case "\u52DD\u6557\u52DD\u3061" :
case "\u30EC\u30B7\u30D4\u5931\u6557" :
case "\u7F9E\u6065" :
case "\u30EC\u30B7\u30D4\u6295\u4E0B" :
case "\u30B9\u30FC\u30D1\u30FC\u3078\u88F8\u3067" :
case "\u52DD\u6557\u3075\u3064\u3046" :
_local2 = 2;
break;
case "\u60A9\u3080" :
_local2 = 1;
break;
case "none" :
_root.fuki.gotoAndStop("none");
return(undefined);
case "\u8A18\u61B6" :
return(undefined);
}
_root.fuki.gotoAndStop((str + "b") + Math.floor(Math.random() * _local2));
} else {
switch (str) {
case "\u7F9E\u6065" :
_local2 = 5;
break;
case "\u30EC\u30B7\u30D4\u5B8C\u6210" :
_local2 = 4;
break;
case "\u958B\u59CB\u6642" :
case "\u30AD\u30C3\u30C1\u30F3\u3078" :
case "\u30EC\u30B7\u30D4\u5931\u6557" :
case "\u6065\u305A\u304B\u3057\u3044\u30AB\u30C3\u30B3" :
case "\u7740\u305B\u66FF\u3048" :
case "\u52DD\u6557\u52DD\u3061" :
_local2 = 3;
break;
case "\u8A18\u61B6" :
case "\u30EC\u30B7\u30D4\u6295\u4E0B" :
case "\u624B\u756A\u6E21\u3057" :
case "\u30B9\u30FC\u30D1\u30FC\u3078" :
case "\u30B9\u30FC\u30D1\u30FC\u3078\u88F8\u3067" :
case "\u60A9\u3080" :
case "\u52DD\u6557\u3075\u3064\u3046" :
_local2 = 2;
break;
case "none" :
_root.fuki.gotoAndStop("none");
return(undefined);
}
_root.fuki.gotoAndStop(str + Math.floor(Math.random() * _local2));
}
};
_global.buttonon = function () {
snd = new Sound();
snd.attachSound("buttonon");
snd.start();
};
_global.buttonpush = function () {
snd = new Sound();
snd.attachSound("buttonpush");
snd.start();
};
_global.carddeal = function () {
snd = new Sound();
snd.attachSound("carddeal");
snd.start();
};
_global.sndplay = function (s) {
snd = new Sound();
snd.attachSound(s);
snd.start();
};
Frame 2
stop();
gauge._xscale = 0;
Instance of Symbol 13 MovieClip "gauge" in Frame 2
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
this._xscale = (loaded / total) * 100;
if (loaded == total) {
_root.play();
}
}
Instance of Symbol 53 MovieClip [wildcard_alert] in Frame 3
onClipEvent (load) {
init = true;
}
Instance of Symbol 88 MovieClip [supply_alert2] in Frame 3
onClipEvent (load) {
init = true;
}
Instance of Symbol 124 MovieClip [rest_alert] in Frame 3
onClipEvent (load) {
init = true;
}
Instance of Symbol 133 MovieClip [chaos_alert] in Frame 3
onClipEvent (load) {
init = true;
}
Instance of Symbol 136 MovieClip [supply_alert] in Frame 3
onClipEvent (load) {
init = true;
}
Frame 4
stop();
_root.allVanish = true;
_root.maman = {zooming:false};
Frame 5
_root.allVanish = false;
_root.canDrugged = false;
_root.canCut = false;
_root.canZoom = false;
Instance of Symbol 311 MovieClip "mamanf" in Frame 5
onClipEvent (load) {
mamanb._visible = false;
}
Instance of Symbol 162 MovieClip [pcard] "helper_card" in Frame 5
onClipEvent (load) {
this.role = "helper";
this.gotoAndStop("none");
this.but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 7
onClipEvent (load) {
gotoAndStop ("\u5A9A\u85AC");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 7
onClipEvent (load) {
gotoAndStop ("\u30D1\u30A4\u751F\u5730");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 7
onClipEvent (load) {
gotoAndStop ("\u30C1\u30FC\u30BA");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 7
onClipEvent (load) {
gotoAndStop ("\u30D0\u30CA\u30CA");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 7
onClipEvent (load) {
gotoAndStop ("\u30EA\u30F3\u30B4");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 7
onClipEvent (load) {
gotoAndStop ("\u304A\u306B\u304F");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 8
onClipEvent (load) {
gotoAndStop ("\u300C\u300D\u306E\u30EC\u30B7\u30D4\u88CF");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 8
onClipEvent (load) {
gotoAndStop ("\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30FC\u30C8\u30D1\u30A4");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 9
onClipEvent (load) {
gotoAndStop ("\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30AB\u30AA\u30B9\u30D1\u30A4");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 10
onClipEvent (load) {
gotoAndStop ("\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u5A9A\u85AC\u30D1\u30A4");
role = "help";
but.useHandCursor = false;
}
Instance of Symbol 162 MovieClip [pcard] in Frame 10
onClipEvent (load) {
gotoAndStop ("\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u3046\u306A\u30D1\u30A4");
role = "help";
but.useHandCursor = false;
}
Symbol 11 MovieClip [tell_p2fail] Frame 3
sndplay("recipe_failure");
Symbol 11 MovieClip [tell_p2fail] Frame 51
_root.ms.tc.vanishCard();
_root.ms.tc.setRole("library");
_root.p2rec.unshiftCard(_root.ms.tc);
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\uFF11\u56DE\u76EE\u306F\u3058\u3081");
this.removeMovieClip();
Symbol 717 MovieClip [__Packages.Recipe] Frame 0
class Recipe
{
var n;
function Recipe (rn) {
if ((rn > 6) && (rn < 22)) {
n = rn - 7;
} else if (rn > 21) {
n = rn - 22;
} else {
n = 15;
}
}
function getRecipeNumber() {
return(n);
}
function getRecipeName() {
if (n == 0) {
return("\u30DF\u30FC\u30C8\u30D1\u30A4");
}
if (n == 1) {
return("\u30A2\u30C3\u30D7\u30EB\u30D1\u30A4");
}
if (n == 2) {
return("\u30D0\u30CA\u30CA\u30D1\u30A4");
}
if (n == 3) {
return("\u30AF\u30EA\u30FC\u30E0\u30D1\u30A4");
}
if (n == 4) {
return("\u30C1\u30FC\u30BA\u30D1\u30A4");
}
if (n == 5) {
return("\u30DF\u30F3\u30B9\u30D1\u30A4");
}
if (n == 6) {
return("\u30D5\u30EB\u30FC\u30C4\u30D1\u30A4");
}
if (n == 7) {
return("\u30D0\u30CA\u30CA\u30C1\u30FC\u30BA\u30BF\u30EB\u30C8");
}
if (n == 8) {
return("\u30C6\u30A3\u30E9\u30DF\u30B9\u30BF\u30EB\u30C8");
}
if (n == 9) {
return("\u30C1\u30FC\u30BA\u30D4\u30ED\u30B7\u30AD");
}
if (n == 10) {
return("\u3084\u307E\u3060\u30D1\u30A4");
}
if (n == 11) {
return("\u3046\u306A\u30D1\u30A4");
}
if (n == 12) {
return("\u30AB\u30AA\u30B9\u30D1\u30A4");
}
if (n == 13) {
return("\u30D5\u30EB\u30FC\u30C4\u30AD\u30C3\u30B7\u30E5");
}
if (n == 14) {
return("\u5A9A\u85AC\u30D1\u30A4");
}
return("\u672A\u5B9A\u7FA9");
}
function getRecipeRequires() {
if (n == 0) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u304A\u306B\u304F\uFF14");
}
if (n == 1) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u30EA\u30F3\u30B4\uFF14");
}
if (n == 2) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u30D0\u30CA\u30CA\uFF14");
}
if (n == 3) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u30AF\u30EA\u30FC\u30E0\uFF14");
}
if (n == 4) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u30C1\u30FC\u30BA\uFF14");
}
if (n == 5) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u304A\u306B\u304F\uFF13\u3001\u30EA\u30F3\u30B4\uFF12");
}
if (n == 6) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u30EA\u30F3\u30B4\uFF13\u3001\u30D0\u30CA\u30CA\uFF12");
}
if (n == 7) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u30D0\u30CA\u30CA\uFF13\u3001\u30C1\u30FC\u30BA\uFF12");
}
if (n == 8) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u30AF\u30EA\u30FC\u30E0\uFF13\u3001\u30C1\u30FC\u30BA\uFF12");
}
if (n == 9) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u30C1\u30FC\u30BA\uFF13\u3001\u304A\u306B\u304F\uFF12");
}
if (n == 10) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u6700\u3082\u5C11\u306A\u3044\u7D20\u6750\u4E00\u7A2E\u3092\uFF13");
}
if (n == 11) {
return("\u30D1\u30A4\u751F\u5730\uFF12\u3001\u597D\u304D\u306A\u7D20\u6750\u4E00\u7A2E\u3092\uFF16");
}
if (n == 12) {
return("\u30D1\u30A4\u751F\u5730\uFF12\u3001\u7D20\u6750\u306A\u3093\u3067\u3082\u5408\u8A08\uFF11\uFF13\u4EE5\u4E0A");
}
if (n == 13) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u7D20\u6750\u5404\u7A2E\uFF11\u305A\u3064");
}
if (n == 14) {
return("\u30D1\u30A4\u751F\u5730\uFF11\u3001\u5A9A\u85AC\uFF11\u3001\u597D\u304D\u306A\u7D20\u6750\u4E00\u7A2E\u3092\uFF14");
}
return("\u672A\u5B9A\u7FA9");
}
function isSufficient(ar, fs) {
var _local4 = new Array();
_local4.push(0);
if (n < 0) {
return(false);
}
if (n < 5) {
var _local2 = 0;
while (_local2 < 4) {
_local4.push(n + 1);
_local2++;
}
} else if (n < 10) {
var _local2 = 0;
while (_local2 < 5) {
_local4.push(((_local2 < 3) ? (n - 4) : (((n - 4) % 5) + 1)));
_local2++;
}
} else if (n == 10) {
} else if (n == 11) {
var _local3 = new Array();
var _local5 = 0;
var _local2 = 0;
while (_local2 < 5) {
_local3.push(fs.getFoodNum(_local2 + 1));
_local2++;
}
_local2 = 0;
while (_local2 < ar.length) {
_local3[ar[_local2] - 1]++;
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
_local5 = Math.max(_local5, _local3[_local2]);
_local2++;
}
return(_local5 > 5);
}
}
function getRecipeArray() {
if (n == 0) {
return([4, 0, 0, 0, 0, 1, 0, 0]);
}
if (n == 1) {
return([0, 4, 0, 0, 0, 1, 0, 0]);
}
if (n == 2) {
return([0, 0, 4, 0, 0, 1, 0, 0]);
}
if (n == 3) {
return([0, 0, 0, 4, 0, 1, 0, 0]);
}
if (n == 4) {
return([0, 0, 0, 0, 4, 1, 0, 0]);
}
if (n == 5) {
return([3, 2, 0, 0, 0, 1, 0, 0]);
}
if (n == 6) {
return([0, 3, 2, 0, 0, 1, 0, 0]);
}
if (n == 7) {
return([0, 0, 3, 0, 2, 1, 0, 0]);
}
if (n == 8) {
return([0, 0, 0, 3, 2, 1, 0, 0]);
}
if (n == 9) {
return([2, 0, 0, 0, 3, 1, 0, 0]);
}
if (n == 10) {
return([0, 0, 0, 0, 0, 1, 0, 1]);
}
if (n == 11) {
return([0, 0, 0, 0, 0, 2, 0, 2]);
}
if (n == 12) {
return([0, 0, 0, 0, 0, 2, 0, 3]);
}
if (n == 13) {
return([1, 1, 1, 0, 1, 1, 0, 0]);
}
if (n == 14) {
return([0, 0, 0, 0, 0, 1, 1, 4]);
}
return([0, 0, 0, 0, 0, 0, 0, 5]);
}
}
Symbol 718 MovieClip [__Packages.FoodStack] Frame 0
class FoodStack
{
var ar;
function FoodStack () {
ar = new Array();
}
function pushStack(c) {
ar.push(c);
}
function popStack() {
return(ar.pop());
}
function viewStack(p) {
if (p > ar.length) {
return({role:"undef"});
}
return(ar[p]);
}
function viewTopmost() {
return(viewStack(ar.length - 1));
}
function removeFoods(fs, fn) {
var _local5 = 0;
var _local4 = 0;
while (_local4 < ar.length) {
if (ar[_local4].getCardNumber() == fs) {
_local5++;
}
_local4++;
}
_local5 = Math.min(_local5, fn);
while (_local5 > 0) {
_local4 = 0;
while (true) {
if (ar[_local4].getCardNumber() == fs) {
var _local3 = ar.splice(_local4, 1)[0];
_local3.vanishCard();
_local3.setRole("library");
_root.lib.pushCard(_local3);
_local5--;
break;
}
_local4++;
if (_local4 >= ar.length) {
return(false);
}
}
}
return(true);
}
function removeAllFoods() {
ar = new Array();
}
function getFoodNum(fs) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < ar.length) {
_local3 = _local3 + ((ar[_local2].getCardNumber() == fs) ? 1 : 0);
_local2++;
}
return(_local3);
}
function getFoodArray() {
var _local3 = [0, 0, 0, 0, 0, 0, 0];
var _local2 = 0;
while (_local2 < ar.length) {
_local3[ar[_local2].getCardNumber()]++;
_local2++;
}
return(_local3);
}
function doSort() {
var _local4 = [0, 0, 0, 0, 0, 0, 0];
var _local3 = 0;
while (_local3 < ar.length) {
ar[_local3].setToPos(_root.FOODSTACK_X + (((ar[_local3].getCardNumber() > 3) ? (ar[_local3].getCardNumber() - 1) : (ar[_local3].getCardNumber())) * _root.FOODSTACK_SX), _root.FOODSTACK_Y + (_local4[ar[_local3].getCardNumber()] * _root.FOODSTACK_SY));
_local4[ar[_local3].getCardNumber()]++;
_local3++;
}
}
function getStackLength() {
return(ar.length);
}
}
Symbol 719 MovieClip [__Packages.Card] Frame 0
class Card
{
var cn, isGenerated, px, py, role, rootName, hover;
function Card (icn, r, rcn) {
cn = icn;
isGenerated = false;
px = (py = 0);
role = r;
rootName = rcn;
hover = false;
}
function getCardNumber() {
return(cn);
}
function getCardName() {
var _local2 = ["\u304A\u306B\u304F", "\u30EA\u30F3\u30B4", "\u30D0\u30CA\u30CA", "\u30AF\u30EA\u30FC\u30E0", "\u30C1\u30FC\u30BA", "\u30D1\u30A4\u751F\u5730", "\u5A9A\u85AC", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30FC\u30C8\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30A2\u30C3\u30D7\u30EB\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30D0\u30CA\u30CA\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30AF\u30EA\u30FC\u30E0\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30C1\u30FC\u30BA\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30F3\u30B9\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30D5\u30EB\u30FC\u30C4\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30D0\u30CA\u30CA\u30C1\u30FC\u30BA\u30BF\u30EB\u30C8", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30C6\u30A3\u30E9\u30DF\u30B9\u30BF\u30EB\u30C8", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30C1\u30FC\u30BA\u30D4\u30ED\u30B7\u30AD", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u3084\u307E\u3060\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u3046\u306A\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30AB\u30AA\u30B9\u30D1\u30A4", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30D5\u30EB\u30FC\u30C4\u30AD\u30C3\u30B7\u30E5", "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u5A9A\u85AC\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30FC\u30C8\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30A2\u30C3\u30D7\u30EB\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30D0\u30CA\u30CA\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30AF\u30EA\u30FC\u30E0\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30C1\u30FC\u30BA\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30F3\u30B9\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30D5\u30EB\u30FC\u30C4\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30D0\u30CA\u30CA\u30C1\u30FC\u30BA\u30BF\u30EB\u30C8", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30C6\u30A3\u30E9\u30DF\u30B9\u30BF\u30EB\u30C8", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30C1\u30FC\u30BA\u30D4\u30ED\u30B7\u30AD", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u3084\u307E\u3060\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u3046\u306A\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30AB\u30AA\u30B9\u30D1\u30A4", "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30D5\u30EB\u30FC\u30C4\u30AD\u30C3\u30B7\u30E5"];
if ((cn > -1) && (cn < _local2.length)) {
return(_local2[cn]);
}
return("\u672A\u5B9A\u7FA9");
}
function getCardAlignment() {
if (cn < 7) {
return(0);
}
if (cn < 22) {
return(1);
}
if (cn < 36) {
return(2);
}
return(-1);
}
function getCardRole() {
return(role);
}
function setCardRole(s) {
role = s;
}
function getCardX(now) {
if (now) {
return(_root[rootName]._x);
}
return(px);
}
function getCardY(now) {
if (now) {
return(_root[rootName]._y);
}
return(py);
}
function setCardPos(tx, ty) {
px = tx;
py = ty;
}
function setCardNowPos() {
px = _root[rootName]._x;
py = _root[rootName]._y;
}
function setToPos(tx, ty) {
_root[rootName].toX = tx;
_root[rootName].toY = ty;
_root[rootName].toMove = true;
}
function setCardRootName(rn) {
rootName = rn;
}
function getCardRootName() {
return(rootName);
}
function setHighestDepth() {
_root[rootName].swapDepths(_root.getNextHighestDepth());
}
function setHover(b) {
hover = b;
}
function getHover() {
return(hover);
}
function vanishCard() {
_root[rootName].removeMovieClip();
}
function setCardEnabled(b) {
_root[rootName].but.useHandCursor = b;
_root[rootName].shader._visible = !b;
}
}
Symbol 720 MovieClip [__Packages.Pile] Frame 0
class Pile
{
var ar;
function Pile () {
ar = new Array();
}
function pushCard(c) {
ar.push(c);
}
function popCard() {
return(ar.pop());
}
function shiftCard() {
return(ar.shift());
}
function unshiftCard(c) {
ar.unshift(c);
}
function shufflePile() {
var _local2 = ar.slice();
ar = new Array();
while (_local2.length > 0) {
ar.push(_local2.splice(Math.floor(Math.random() * _local2.length), 1)[0]);
}
}
function sortPile() {
var _local3 = ar.slice();
ar = new Array();
var _local4 = 0;
while (_local4 < 40) {
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getCardNumber() == _local4) {
ar.push(_local3.splice(_local2, 1)[0]);
} else {
_local2++;
}
}
if (_local3.length == 0) {
break;
}
_local4++;
}
}
function getCardNumber(n) {
if (n > ar.length) {
return(-1);
}
return(ar[n].getCardNumber());
}
function popOneCard(n) {
if (n > ar.length) {
return({role:"undef"});
}
return(ar.splice(n, 1)[0]);
}
function getPileLength() {
return(ar.length);
}
function viewTopmost() {
return(ar[ar.length - 1]);
}
function viewBottommost() {
return(ar[0]);
}
function viewCard(i) {
return(ar[i]);
}
}
Symbol 721 MovieClip [__Packages.Hand] Frame 0
class Hand
{
var ar, bx, by, sx;
function Hand (tx, spx, ty) {
ar = new Array();
bx = tx;
by = ty;
sx = spx;
}
function pushHand(c) {
ar.push(c);
}
function sortHand() {
var _local3 = ar.slice();
ar = new Array();
var _local4 = 0;
while (_local4 < 40) {
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getCardNumber() == _local4) {
ar.push(_local3.splice(_local2, 1)[0]);
} else {
_local2++;
}
}
if (_local3.length == 0) {
break;
}
_local4++;
}
}
function sortSecretHand() {
var _local3 = ar.slice();
ar = new Array();
var _local4 = 0;
while (_local4 < 3) {
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getCardAlignment() == _local4) {
ar.push(_local3.splice(_local2, 1)[0]);
} else {
_local2++;
}
}
if (_local3.length == 0) {
break;
}
_local4++;
_local4++;
}
}
function getCard(p) {
if (p > ar.length) {
return({role:"undef"});
}
return(ar.splice(p, 1)[0]);
}
function viewCard(p) {
if (p > ar.length) {
return({role:"undef"});
}
return(ar[p]);
}
function doSort() {
if (ar.length == 0) {
return(undefined);
}
ar[0].setToPos(bx, by - (ar[0].getHover() ? 30 : 0));
ar[0].setHighestDepth();
var _local3 = bx;
var _local2 = 1;
while (_local2 < ar.length) {
_local3 = _local3 + (sx / ((ar[_local2 - 1].getCardName() == ar[_local2].getCardName()) ? 3 : 1));
ar[_local2].setToPos(_local3, by - (ar[_local2].getHover() ? 30 : 0));
ar[_local2].setHighestDepth();
_local2++;
}
}
function doSecretSort() {
if (ar.length == 0) {
return(undefined);
}
ar[0].setToPos(bx, by);
ar[0].setHighestDepth();
var _local3 = bx;
var _local2 = 1;
while (_local2 < ar.length) {
_local3 = _local3 + sx;
ar[_local2].setToPos(_local3, by);
ar[_local2].setHighestDepth();
_local2++;
}
}
function sequenceHover(nam, b, rep) {
var _local3 = getSequence(nam, false);
var _local2 = 0;
while (_local2 < (rep ? (_local3.length) : 1)) {
_local3[_local2].setHover(b);
_local2++;
}
}
function getSequence(nam, spl) {
var _local3 = new Array();
var _local2 = 0;
_local2 = 0;
while (_local2 < ar.length) {
if (ar[_local2].getCardRootName() == nam) {
break;
}
_local2++;
}
var _local4 = ar[_local2].getCardName();
do {
if (_local2 <= -1) {
break;
}
if (spl) {
_local3.push(ar.splice(_local2, 1)[0]);
} else {
_local3.push(ar[_local2]);
}
_local2--;
if (_local2 == -1) {
break;
}
} while (ar[_local2].getCardName() == _local4);
return(_local3);
}
function clearHand() {
ar = new Array();
}
function getHandLength() {
return(ar.length);
}
function hasRecipe() {
return((getCardNumByAlignment(1).length + getCardNumByAlignment(2).length) > 0);
}
function getCardNumByAlignment(al) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < ar.length) {
if (ar[_local2].getCardAlignment() == al) {
_local3.push(_local2);
}
_local2++;
}
return(_local3);
}
function getChunk(p, spl) {
var _local3 = new Array();
var _local4 = ar[p].getCardName();
var _local2 = 0;
while (_local2 < ar.length) {
if (ar[_local2].getCardName() == _local4) {
if (spl) {
_local3.push(ar.splice(_local2, 1)[0]);
} else {
_local3.push(ar[_local2]);
}
}
_local2++;
}
return(_local3);
}
function getFoodArray() {
var _local3 = [0, 0, 0, 0, 0, 0, 0];
var _local2 = 0;
while (_local2 < ar.length) {
if (ar[_local2].getCardNumber() < 7) {
_local3[ar[_local2].getCardNumber()]++;
}
_local2++;
}
return(_local3);
}
function viewCardByName(n) {
var _local2 = 0;
while (_local2 < ar.length) {
if (ar[_local2].getCardRootName() == n) {
return(ar[_local2]);
}
_local2++;
}
}
}
Symbol 722 MovieClip [__Packages.Memory] Frame 0
class Memory
{
var ar;
function Memory (tar) {
ar = tar.slice();
}
function addFood(n, m) {
ar[n] = ar[n] + m;
trace("memory : " + ar);
}
function fuzzyise() {
var _local4 = 0;
var _local2 = 0;
while (_local2 < ar.length) {
if (ar[_local2] > 0) {
_local4++;
}
_local2++;
}
if (_local4 > 2) {
while (true) {
var _local3 = Math.floor(Math.random() * ar.length);
if (ar[_local3] > 0) {
ar[_local3] = ar[_local3] + ((Math.floor(Math.random() * 2) + Math.floor(Math.random() * 2)) - 1);
break;
}
}
trace("fuzzised memory : " + ar);
}
}
function recipeReduceByProb(rar, prob) {
if (prob[0]) {
if (rar[7] == 0) {
var _local2 = 0;
while (_local2 < 7) {
ar[_local2] = Math.max(ar[_local2] - rar[_local2], 0);
_local2++;
}
} else if (rar[7] == 1) {
} else if (rar[7] == 2) {
var _local5 = Math.floor(prob[1].length * Math.random());
ar[prob[1][_local5]] = Math.max(ar[prob[1][_local5]] - 6, 0);
ar[5] = Math.max(ar[5] - rar[5], 0);
} else if (rar[7] == 3) {
ar = [0, 0, 0, 0, 0, 0, ar[6]];
} else if (rar[7] == 4) {
var _local5 = Math.floor(prob[1].length * Math.random());
ar[prob[1][_local5]] = Math.max(ar[prob[1][_local5]] - 4, 0);
ar[5] = Math.max(ar[5] - rar[5], 0);
ar[6] = Math.max(ar[6] - rar[6], 0);
}
}
trace("recipe applied memory : " + ar);
}
function recipeReduce(rec) {
recipeReduceByProb(rec.getRecipeArray(), recipeProb(rec));
}
function recipeProb(rec) {
var _local6 = rec.getRecipeArray();
var _local3 = 0;
var _local5 = new Array();
var _local7 = _root.lib.getPileLength() / _root.FOOD_MAX;
if (_local6[7] == 0) {
var _local4 = 0;
while (_local4 < 7) {
_local3 = _local3 + Math.max(_local6[_local4] - ar[_local4], 0);
_local4++;
}
} else if (_local6[7] == 1) {
} else if (_local6[7] == 2) {
_local3 = Infinity;
var _local4 = 0;
while (_local4 < 5) {
if (_local3 >= Math.max(6 - ar[_local4], 0)) {
if (_local3 == Math.max(6 - ar[_local4], 0)) {
_local5.push[_local4];
} else {
_local5 = [_local4];
}
_local3 = Math.max(6 - ar[_local4], 0);
}
_local4++;
}
_local3 = _local3 + Math.max(_local6[5] - ar[5], 0);
} else if (_local6[7] == 3) {
_local3 = 13;
var _local4 = 0;
while (_local4 < 5) {
_local3 = Math.max(_local3 - ar[_local4], 0);
_local4++;
}
_local3 = _local3 + Math.max(_local6[5] - ar[5], 0);
} else if (_local6[7] == 4) {
_local3 = Infinity;
var _local4 = 0;
while (_local4 < 5) {
if (_local3 >= Math.max(4 - ar[_local4], 0)) {
if (_local3 == Math.max(4 - ar[_local4], 0)) {
_local5.push[_local4];
} else {
_local5 = [_local4];
}
_local3 = Math.max(4 - ar[_local4], 0);
}
_local4++;
}
_local3 = _local3 + (Math.max(_local6[5] - ar[5], 0) + Math.max(_local6[6] - ar[6], 0));
}
return([Math.random() < Math.pow(_local7, _local3), _local5]);
}
function getMemoryLength() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < 7) {
_local3 = _local3 + ar[_local2];
_local2++;
}
return(_local3);
}
}
Symbol 29 Button
on (press) {
_root.foodStack.removeFoods(2, _parent._parent.wildfood);
_root.foodStack.removeFoods(5, _parent._parent.wildsheet);
_root.foodStack.removeFoods(6, _parent._parent.drug);
_root.foodStack.doSort();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 31 Button
on (press) {
f = _root.foodStack.getFoodArray();
ol = (lack = Math.max(0, _parent._parent.wildfood - f[2]));
ol2 = (lack2 = Math.max(0, _parent._parent.wildsheet - f[5]));
ol3 = (lack3 = Math.max(0, _parent._parent.drug - f[6]));
i = 0;
while ((((lack > 0) || (lack2 > 0)) || (lack3 > 0)) && (i < _root.p1hand.getHandLength())) {
vc = _root.p1hand.viewCard(i);
if ((vc.getCardNumber() == 2) && (lack > 0)) {
lack--;
vc.setHover(true);
} else if ((vc.getCardNumber() == 5) && (lack2 > 0)) {
lack2--;
vc.setHover(true);
} else if ((vc.getCardNumber() == 6) && (lack3 > 0)) {
lack3--;
vc.setHover(true);
}
i++;
}
_root.p1hand.doSort();
_root.ms.stlackfoods = [0, 0, _parent._parent.wildfood - ol, 0, 0, _parent._parent.wildsheet - ol2, _parent._parent.drug - ol3];
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:_parent._parent.cantcancel, wildsheet:_parent._parent.wildsheet, wildfood:_parent._parent.wildfood, drug:_parent._parent.drug};
_root.attachMovie("supply_alert2", "supply_alert", _root.getNextHighestDepth(), tobj);
_root.supply_alert.cantcancel = _parent.cantcancel;
_root.supply_alert.sh.lack_0._visible = false;
_root.supply_alert.sh.lack_1._visible = false;
_root.supply_alert.sh.lack_2._visible = ol > 0;
_root.supply_alert.sh.lack_3._visible = false;
_root.supply_alert.sh.lack_4._visible = false;
_root.supply_alert.sh.lack_5._visible = ol2 > 0;
_root.supply_alert.sh.lack_6._visible = ol3 > 0;
_root.supply_alert.sh.lack_2.digit.gotoAndStop(ol + 1);
_root.supply_alert.sh.lack_5.digit.gotoAndStop(ol2 + 1);
_root.supply_alert.sh.lack_6.digit.gotoAndStop(ol3 + 1);
_root.phase == "lack_waiting";
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 36 Button
on (press) {
_root.foodStack.removeFoods(4, _parent._parent.wildfood);
_root.foodStack.removeFoods(5, _parent._parent.wildsheet);
_root.foodStack.removeFoods(6, _parent._parent.drug);
_root.foodStack.doSort();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 37 Button
on (press) {
f = _root.foodStack.getFoodArray();
ol = (lack = Math.max(0, _parent._parent.wildfood - f[4]));
ol2 = (lack2 = Math.max(0, _parent._parent.wildsheet - f[5]));
ol3 = (lack3 = Math.max(0, _parent._parent.drug - f[6]));
i = 0;
while ((((lack > 0) || (lack2 > 0)) || (lack3 > 0)) && (i < _root.p1hand.getHandLength())) {
vc = _root.p1hand.viewCard(i);
if ((vc.getCardNumber() == 4) && (lack > 0)) {
lack--;
vc.setHover(true);
} else if ((vc.getCardNumber() == 5) && (lack2 > 0)) {
lack2--;
vc.setHover(true);
} else if ((vc.getCardNumber() == 6) && (lack3 > 0)) {
lack3--;
vc.setHover(true);
}
i++;
}
_root.p1hand.doSort();
_root.ms.stlackfoods = [0, 0, 0, 0, _parent._parent.wildfood - ol, _parent._parent.wildsheet - ol2, _parent.drug - ol3];
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:_parent._parent.cantcancel, wildsheet:_parent._parent.wildsheet, wildfood:_parent._parent.wildfood, drug:_parent._parent.drug};
_root.attachMovie("supply_alert2", "supply_alert", _root.getNextHighestDepth(), tobj);
_root.supply_alert.cantcancel = _parent.cantcancel;
_root.supply_alert.sh.lack_0._visible = false;
_root.supply_alert.sh.lack_1._visible = false;
_root.supply_alert.sh.lack_2._visible = false;
_root.supply_alert.sh.lack_3._visible = false;
_root.supply_alert.sh.lack_4._visible = ol > 0;
_root.supply_alert.sh.lack_5._visible = ol2 > 0;
_root.supply_alert.sh.lack_6._visible = ol3 > 0;
_root.supply_alert.sh.lack_4.digit.gotoAndStop(ol + 1);
_root.supply_alert.sh.lack_5.digit.gotoAndStop(ol2 + 1);
_root.supply_alert.sh.lack_6.digit.gotoAndStop(ol3 + 1);
_root.phase == "lack_waiting";
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 41 Button
on (press) {
_root.foodStack.removeFoods(1, _parent._parent.wildfood);
_root.foodStack.removeFoods(5, _parent._parent.wildsheet);
_root.foodStack.removeFoods(6, _parent._parent.drug);
_root.foodStack.doSort();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 42 Button
on (press) {
f = _root.foodStack.getFoodArray();
ol = (lack = Math.max(0, _parent._parent.wildfood - f[1]));
ol2 = (lack2 = Math.max(0, _parent._parent.wildsheet - f[5]));
ol3 = (lack3 = Math.max(0, _parent._parent.drug - f[6]));
i = 0;
while ((((lack > 0) || (lack2 > 0)) || (lack3 > 0)) && (i < _root.p1hand.getHandLength())) {
vc = _root.p1hand.viewCard(i);
if ((vc.getCardNumber() == 1) && (lack > 0)) {
lack--;
vc.setHover(true);
} else if ((vc.getCardNumber() == 5) && (lack2 > 0)) {
lack2--;
vc.setHover(true);
} else if ((vc.getCardNumber() == 6) && (lack3 > 0)) {
lack3--;
vc.setHover(true);
}
i++;
}
_root.p1hand.doSort();
_root.ms.stlackfoods = [0, _parent._parent.wildfood - ol, 0, 0, 0, _parent._parent.wildsheet - ol2, _parent._parent.drug - ol3];
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:_parent._parent.cantcancel, wildsheet:_parent._parent.wildsheet, wildfood:_parent._parent.wildfood, drug:_parent._parent.drug};
_root.attachMovie("supply_alert2", "supply_alert", _root.getNextHighestDepth(), tobj);
_root.supply_alert.cantcancel = _parent.cantcancel;
_root.supply_alert.sh.lack_0._visible = false;
_root.supply_alert.sh.lack_1._visible = ol > 0;
_root.supply_alert.sh.lack_2._visible = false;
_root.supply_alert.sh.lack_3._visible = false;
_root.supply_alert.sh.lack_4._visible = false;
_root.supply_alert.sh.lack_5._visible = ol2 > 0;
_root.supply_alert.sh.lack_6._visible = ol3 > 0;
_root.supply_alert.sh.lack_1.digit.gotoAndStop(ol + 1);
_root.supply_alert.sh.lack_5.digit.gotoAndStop(ol2 + 1);
_root.supply_alert.sh.lack_6.digit.gotoAndStop(ol3 + 1);
_root.phase == "lack_waiting";
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 46 Button
on (press) {
_root.foodStack.removeFoods(0, _parent._parent.wildfood);
_root.foodStack.removeFoods(5, _parent._parent.wildsheet);
_root.foodStack.removeFoods(6, _parent._parent.drug);
_root.foodStack.doSort();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 47 Button
on (press) {
f = _root.foodStack.getFoodArray();
ol = (lack = Math.max(0, _parent._parent.wildfood - f[0]));
ol2 = (lack2 = Math.max(0, _parent._parent.wildsheet - f[5]));
ol3 = (lack3 = Math.max(0, _parent._parent.drug - f[6]));
i = 0;
while ((((lack > 0) || (lack2 > 0)) || (lack3 > 0)) && (i < _root.p1hand.getHandLength())) {
vc = _root.p1hand.viewCard(i);
if ((vc.getCardNumber() == 0) && (lack > 0)) {
lack--;
vc.setHover(true);
} else if ((vc.getCardNumber() == 5) && (lack2 > 0)) {
lack2--;
vc.setHover(true);
} else if ((vc.getCardNumber() == 6) && (lack3 > 0)) {
lack3--;
vc.setHover(true);
}
i++;
}
_root.p1hand.doSort();
_root.ms.stlackfoods = [_parent._parent.wildfood - ol, 0, 0, 0, 0, _parent._parent.wildsheet - ol2, _parent._parent.drug - ol3];
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:_parent._parent.cantcancel, wildsheet:_parent._parent.wildsheet, wildfood:_parent._parent.wildfood, drug:_parent._parent.drug};
_root.attachMovie("supply_alert2", "supply_alert", _root.getNextHighestDepth(), tobj);
_root.supply_alert.cantcancel = _parent.cantcancel;
_root.supply_alert.sh.lack_0._visible = ol > 0;
_root.supply_alert.sh.lack_1._visible = false;
_root.supply_alert.sh.lack_2._visible = false;
_root.supply_alert.sh.lack_3._visible = false;
_root.supply_alert.sh.lack_4._visible = false;
_root.supply_alert.sh.lack_5._visible = ol2 > 0;
_root.supply_alert.sh.lack_6._visible = ol3 > 0;
_root.supply_alert.sh.lack_0.digit.gotoAndStop(ol + 1);
_root.supply_alert.sh.lack_5.digit.gotoAndStop(ol2 + 1);
_root.supply_alert.sh.lack_6.digit.gotoAndStop(ol3 + 1);
_root.phase == "lack_waiting";
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 52 MovieClip Frame 1
db.useHandCursor = false;
if (!_parent.init) {
sndplay("popup");
}
Instance of Symbol 52 MovieClip "sh" in Symbol 53 MovieClip [wildcard_alert] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + ((_parent.toX - _parent._x) / 3);
_parent._y = _parent._y + ((_parent.toY - _parent._y) / 3);
}
Symbol 57 Button
on (press) {
i = 0;
while (i < _root.p1hand.getHandLength()) {
_root.p1hand.viewCard(i).setHover(false);
i++;
}
_root.p1hand.doSort();
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:_parent.cantcancel, wildfood:_parent.wildfood, wildsheet:_parent.wildsheet, drug:_parent.drug};
_root.attachMovie("wildcard_alert", "wildcard_alert", _root.getNextHighestDepth(), tobj);
i = 0;
while (i < 5) {
_root.wildcard_alert.sh["wild_" + i].gotoAndStop(((((_root.ms.stfoods[i] >= _parent.wildfood) && (_root.ms.stfoods[5] >= _parent.wildsheet)) && (_root.ms.stfoods[6] >= _parent.drug)) ? 1 : (((_root.ms.allfoods[i] >= _parent.wildfood) ? 2 : 3))));
i++;
}
_parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 59 Button
on (press) {
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5931\u6557");
_parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 61 Button
on (press) {
i = 0;
while (i < 7) {
_root.foodStack.removeFoods(i, _root.ms.stlackfoods[i]);
i++;
}
i = 0;
while (i < _root.p1hand.getHandLength()) {
j = _root.p1hand.viewCard(i);
if (j.getHover()) {
j = _root.p1hand.getCard(i);
j.vanishCard();
j.setRole("library");
_root.lib.pushCard(j);
} else {
i++;
}
}
_root.p1hand.doSort();
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
_parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 87 MovieClip Frame 1
db.useHandCursor = false;
if (!_parent.init) {
sndplay("popup");
}
Symbol 88 MovieClip [supply_alert2] Frame 1
cancel._visible = _parent.cantcancel;
Instance of Symbol 87 MovieClip "sh" in Symbol 88 MovieClip [supply_alert2] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + ((_parent.toX - _parent._x) / 3);
_parent._y = _parent._y + ((_parent.toY - _parent._y) / 3);
}
Symbol 91 MovieClip [tell_finish] Frame 3
sndplay("phase_change");
Symbol 91 MovieClip [tell_finish] Frame 51
i = 0;
while (i < _root.p1hand.getHandLength()) {
_root.p1hand.viewCard(i).vanishCard();
i++;
}
i = 0;
while (i < _root.p2hand.getHandLength()) {
_root.p2hand.viewCard(i).vanishCard();
i++;
}
i = 0;
while (i < 7) {
_root.foodStack.removeFoods(i, 99);
i++;
}
_root.ms.gotoAndStop("\u6700\u7D42\u7D50\u679C");
this.removeMovieClip();
Symbol 94 MovieClip [tell_gather3] Frame 3
sndplay("phase_change");
Symbol 94 MovieClip [tell_gather3] Frame 51
_root.ms.gotoAndStop("\u6750\u6599\u53CE\u96C6\u98DF\u6750\u9078\u3073");
this.removeMovieClip();
Symbol 97 MovieClip [tell_make2] Frame 3
sndplay("phase_change");
Symbol 97 MovieClip [tell_make2] Frame 51
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\uFF11\u56DE\u76EE\u306F\u3058\u3081");
this.removeMovieClip();
Symbol 100 MovieClip [tell_make3] Frame 3
sndplay("phase_change");
Symbol 100 MovieClip [tell_make3] Frame 51
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\uFF11\u56DE\u76EE\u306F\u3058\u3081");
this.removeMovieClip();
Symbol 103 MovieClip [tell_gather2] Frame 3
sndplay("phase_change");
Symbol 103 MovieClip [tell_gather2] Frame 51
_root.ms.gotoAndStop("\u6750\u6599\u53CE\u96C6\u98DF\u6750\u9078\u3073");
this.removeMovieClip();
Symbol 106 MovieClip [tell_gather1] Frame 3
sndplay("phase_change");
Symbol 106 MovieClip [tell_gather1] Frame 51
_root.ms.gotoAndStop("\u6750\u6599\u53CE\u96C6\uFF11\u56DE\u76EE\u306F\u3058\u3081");
this.removeMovieClip();
stop();
Symbol 109 MovieClip [tell_p2made] Frame 3
sndplay("recipe_success");
Symbol 109 MovieClip [tell_p2made] Frame 51
_root.ms.tc.vanishCard();
_root.ms.tc.setRole("library");
_root.p2made.pushCard(_root.ms.tc);
_root.ms.p2score.gotoAndStop(_root.p2made.getPileLength() + 1);
i = 0;
while (i < _root.p2hand.getHandLength()) {
rn = _root.p2hand.viewCard(i).getCardRootName();
if (_root[rn]._currentframe < 8) {
rc = _root.p2hand.getCard(i);
rc.vanishCard();
rc.setRole("library");
_root.lib.pushCard(rc);
} else {
i++;
}
}
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\uFF11\u56DE\u76EE\u306F\u3058\u3081");
this.removeMovieClip();
Symbol 112 MovieClip [tell_make1] Frame 3
sndplay("phase_change");
Symbol 112 MovieClip [tell_make1] Frame 51
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\uFF11\u56DE\u76EE\u306F\u3058\u3081");
this.removeMovieClip();
Symbol 115 MovieClip [tell_p1fail] Frame 3
sndplay("recipe_failure");
Symbol 115 MovieClip [tell_p1fail] Frame 51
_root.ms.tc.vanishCard();
_root.ms.tc.setRole("library");
_root.p1rec.unshiftCard(_root.ms.tc);
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\uFF11\u56DE\u76EE\u306F\u3058\u3081");
this.removeMovieClip();
Symbol 118 MovieClip [tell_p1made] Frame 3
sndplay("recipe_success");
Symbol 118 MovieClip [tell_p1made] Frame 51
_root.ms.tc.vanishCard();
_root.ms.tc.setRole("library");
_root.p1made.pushCard(_root.ms.tc);
_root.ms.p1score.gotoAndStop(_root.p1made.getPileLength() + 1);
_root.ms.gotoAndStop("\u8131\u304C\u305B\u30BF\u30A4\u30E0");
this.removeMovieClip();
Symbol 120 Button
on (press) {
while (_root.foodStack.getStackLength() > 0) {
rc = _root.foodStack.popStack();
rc.vanishCard();
rc.setRole("library");
_root.oven.pushCard(rc);
}
_root.turn++;
_root.ms.gotoAndStop("\u30B9\u30FC\u30D1\u30FC\u3078");
_parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 123 MovieClip Frame 1
db.useHandCursor = false;
if (!_parent.init) {
sndplay("popup");
}
Instance of Symbol 123 MovieClip "sh" in Symbol 124 MovieClip [rest_alert] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + ((_parent.toX - _parent._x) / 3);
_parent._y = _parent._y + ((_parent.toY - _parent._y) / 3);
}
Symbol 127 Button
on (press) {
i = 0;
while (i < _root.p1hand.getHandLength()) {
j = _root.p1hand.viewCard(i);
if (j.getHover()) {
j = _root.p1hand.getCard(i);
j.vanishCard();
j.setRole("library");
_root.lib.pushCard(j);
} else {
i++;
}
}
_root.p1hand.doSort();
i = 0;
while (i < 6) {
_root.foodStack.removeFoods(i, 99);
i++;
}
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
_parent._parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
db.useHandCursor = false;
if (!_parent.init) {
sndplay("popup");
}
Instance of Symbol 132 MovieClip "sh" in Symbol 133 MovieClip [chaos_alert] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + ((_parent.toX - _parent._x) / 3);
_parent._y = _parent._y + ((_parent.toY - _parent._y) / 3);
}
Symbol 134 Button
on (press) {
i = 0;
while (i < 6) {
_root.foodStack.removeFoods(i, _root.ms.stlackfoods[i]);
i++;
}
i = 0;
while (i < _root.p1hand.getHandLength()) {
j = _root.p1hand.viewCard(i);
if (j.getHover()) {
j = _root.p1hand.getCard(i);
j.vanishCard();
j.setRole("library");
_root.lib.pushCard(j);
} else {
i++;
}
}
_root.p1hand.doSort();
_root.ms.gotoAndStop("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
_parent.removeMovieClip();
}
on (rollOver) {
buttonon();
}
Symbol 135 MovieClip Frame 1
db.useHandCursor = false;
if (!_parent.init) {
sndplay("popup");
}
Instance of Symbol 135 MovieClip "sh" in Symbol 136 MovieClip [supply_alert] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + ((_parent.toX - _parent._x) / 3);
_parent._y = _parent._y + ((_parent.toY - _parent._y) / 3);
}
Symbol 140 Button
on (rollOver) {
if ((role != "helper") && (this._currentframe < 38)) {
_root.helpnum = this._currentframe - 1;
}
if (role == "p1hand") {
if ((_root.phase == "p1foodchoice") && (this._currentframe < 9)) {
_root.p1hand.sequenceHover(this._name, true, true);
_root.p1hand.doSort();
} else if ((_root.phase == "p1recipechoice") && (this._currentframe > 8)) {
_root.p1hand.sequenceHover(this._name, true, true);
_root.p1hand.doSort();
}
}
if (but.useHandCursor) {
buttonon();
}
}
on (press) {
if ((((_root.phase == "p1foodchoice") && (this._currentframe < 9)) && (role == "p1hand")) || (((_root.phase == "p1recipechoice") && (this._currentframe > 8)) && (role == "p1hand"))) {
tar = _root.p1hand.getSequence(this._name, true);
_root.p1hand.doSort();
if (_root.phase == "p1foodchoice") {
_root.p2memory.addFood(tar[0].getCardNumber(), tar.length);
i = 0;
while (i < _root.tempStack.getHandLength()) {
_root.tempStack.viewCard(i).vanishCard();
i++;
}
_root.tempStack.clearHand();
} else if (_root.phase == "p1recipechoice") {
_root.p2memory.recipeReduce(new Recipe(this._currentframe - 2));
}
i = 0;
while (i < tar.length) {
tar[i].setCardRole("stacking");
tar[i].setHover(false);
_root[tar[i].getCardRootName()].role = "stacking";
_root.oven.pushCard(tar[i]);
_root.tempStack.pushHand(tar[i]);
i++;
}
_root.tempStack.sortHand();
_root.tempStack.doSort();
carddeal();
if (_root.phase == "p1foodchoice") {
if (_root.p1hand.hasRecipe()) {
_root.ms.gotoAndStop("\u6750\u6599\u53CE\u96C6\u30EC\u30B7\u30D4\u9078\u3073");
} else {
_root.ms.gotoAndStop("\u6750\u6599\u53CE\u96C6\u30C9\u30ED\u30FC\u5C71\u672D\u9078\u3073");
}
} else if (_root.phase == "p1recipechoice") {
_root.ms.gotoAndStop("\u6750\u6599\u53CE\u96C6\u30C9\u30ED\u30FC\u5C71\u672D\u9078\u3073");
}
} else if (((((_root.phase == "p1recipechoice") || (_root.phase == "p1drawchoice")) && (role == "pile")) && (_root.p1hand.getHandLength() < 7)) && (((this._name == "food_pile") && (_root.lib.getPileLength() > 0)) || ((this._name == "p1recipe_pile") && (_root.p1rec.getPileLength() > 0)))) {
while ((_root.p1hand.getHandLength() < 7) && (((this._name == "food_pile") && (_root.lib.getPileLength() > 0)) || ((this._name == "p1recipe_pile") && (_root.p1rec.getPileLength() > 0)))) {
if (this._name == "food_pile") {
nc = _root.lib.popCard();
nc.setCardPos(_root.LIBRARY_X, _root.LIBRARY_Y);
setPileSize();
} else if (this._name == "p1recipe_pile") {
nc = _root.p1rec.popCard();
nc.setCardPos(_root.P1RECIPE_X, _root.P1RECIPE_Y);
setPileSize();
} else {
trace("unknown pile");
}
newname = "c_p1hand_" + (_root.p1cn++);
newrole = "p1hand";
nc.setHover(false);
nc.setCardRole(newrole);
nc.setCardRootName(newname);
_root.attachMovie("pcard", newname, _root.getNextHighestDepth());
_root[newname].gotoAndStop(nc.getCardName());
_root[newname]._x = ((this._name == "food_pile") ? (_root.LIBRARY_X) : (_root.P1RECIPE_X));
_root[newname]._y = ((this._name == "food_pile") ? (_root.LIBRARY_Y) : (_root.P1RECIPE_Y));
_root[newname]._xscale = (_root[newname]._yscale = _root.CARD_SCALE);
_root[newname].role = newrole;
_root.p1hand.pushHand(nc);
}
_root.p1hand.sortHand();
_root.p1hand.doSort();
carddeal();
_root.ms.gotoAndPlay("\u300C\u300D\u304B\u3089\u30DE\u30DE\u30F3\u3078\u624B\u756A\u59D4\u8B72");
} else if (_root.phase == "waiting_chaos") {
trace((("sum : " + _root.ms.sum) + ", stfoods[5] : ") + _root.ms.stfoods[5]);
tsum_food = 0;
tsum_sheet = 0;
i = 0;
while (i < _root.p1hand.getHandLength()) {
if (_root[_root.p1hand.viewCard(i).getCardRootName()].role == "p1hand_chosen_food") {
tsum_food++;
} else if (_root[_root.p1hand.viewCard(i).getCardRootName()].role == "p1hand_chosen_sheet") {
tsum_sheet++;
}
i++;
}
if (role == "p1hand_waiting") {
if ((_root.p1hand.viewCardByName(this._name).getCardNumber() < 5) && ((tsum_food + _root.ms.sum) < 13)) {
role = "p1hand_chosen_food";
tsum_food++;
_root.p1hand.viewCardByName(this._name).setHover(true);
buttonpush();
} else if ((_root.p1hand.viewCardByName(this._name).getCardNumber() == 5) && ((tsum_sheet + _root.ms.stfoods[5]) < 2)) {
role = "p1hand_chosen_sheet";
tsum_sheet++;
_root.p1hand.viewCardByName(this._name).setHover(true);
buttonpush();
}
_root.p1hand.doSort();
} else if ((role == "p1hand_chosen_food") || (role == "p1hand_chosen_sheet")) {
if (role == "p1hand_chosen_food") {
tsum_food--;
} else {
tsum_sheet--;
}
role = "p1hand_waiting";
_root.p1hand.viewCardByName(this._name).setHover(false);
buttonpush();
_root.p1hand.doSort();
}
_root.chaos_alert.sh.d_normal.gotoAndStop((14 - _root.ms.sum) - tsum_food);
_root.chaos_alert.sh.d_sheet.gotoAndStop((3 - _root.ms.stfoods[5]) - tsum_sheet);
_root.chaos_alert.sh.but_make.gotoAndStop(((((_root.ms.sum + tsum_food) >= 13) && ((_root.ms.stfoods[5] + tsum_sheet) >= 2)) ? 2 : 1));
}
}
on (rollOut) {
_root.helpnum = 0;
if (role == "p1hand") {
if ((_root.phase == "p1foodchoice") || (_root.phase == "p1recipechoice")) {
_root.p1hand.sequenceHover(this._name, false, true);
_root.p1hand.doSort();
}
}
}
Instance of Symbol 138 MovieClip "shader" in Symbol 162 MovieClip [pcard] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 141 MovieClip in Symbol 162 MovieClip [pcard] Frame 1
onClipEvent (enterFrame) {
if (_root.allVanish) {
_parent.removeMovieClip();
}
if (_parent.toMove) {
if ((Math.pow(_parent._x - _parent.toX, 2) + Math.pow(_parent._y - _parent.toY, 2)) < 4) {
_parent.toMove = false;
_parent._x = _parent.toX;
_parent._y = _parent.toY;
} else {
_parent._x = _parent._x + ((_parent.toX - _parent._x) / 3);
_parent._y = _parent._y + ((_parent.toY - _parent._y) / 3);
}
}
if (_parent.role == "helper") {
_parent.gotoAndStop(_root.helpnum + 1);
_root.ms.helpwin.gotoAndStop(((_root.helpnum > 22) ? (_root.helpnum - 14) : (_root.helpnum + 1)));
}
_parent._visible = _root.cardVisible;
}
Symbol 165 MovieClip Frame 20
stop();
Symbol 167 Button
on (press) {
if (_root.maman.zooming) {
startDrag (this);
}
}
on (release) {
if (_root.maman.zooming) {
stopDrag();
}
}
on (releaseOutside) {
if (_root.maman.zooming) {
stopDrag();
}
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
gotoAndPlay(Math.floor((Math.random() * 15) + 2));
Symbol 186 MovieClip Frame 1
gotoAndPlay(Math.floor((Math.random() * 15) + 2));
Symbol 186 MovieClip Frame 94
_parent.gotoAndStop("\u666E\u901A");
Symbol 197 MovieClip Frame 1
gotoAndPlay(Math.floor((Math.random() * 15) + 2));
Symbol 200 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 1
stop();
Instance of Symbol 141 MovieClip in Symbol 311 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.maman.zooming) {
_parent._x = Math.max(150, Math.min(350, _parent._x));
_parent._y = Math.max(-570, Math.min(150, _parent._y));
}
}
Instance of Symbol 170 MovieClip "osyaburi" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 173 MovieClip "glass" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 176 MovieClip "inuT_hair" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 206 MovieClip "inuT_left" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 209 MovieClip "necklace" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 217 MovieClip "milk" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 242 MovieClip "massager" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
stop();
}
Instance of Symbol 245 MovieClip "inuT_right" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 259 MovieClip "spit" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "rope" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 300 MovieClip "inuT_tail" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 303 MovieClip "necklace_back" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 311 MovieClip in Symbol 312 MovieClip Frame 2
onClipEvent (load) {
mamanb._visible = false;
}
Symbol 312 MovieClip Frame 19
stop();
Symbol 317 Button
on (press) {
_root.cardVisible = true;
_root.allVanish = false;
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF11");
}
on (rollOver) {
buttonon();
}
Symbol 320 Button
on (press) {
buttonpush();
_root.nextFrame();
}
on (rollOver) {
buttonon();
}
Symbol 325 MovieClip Frame 120
stop();
Symbol 325 MovieClip Frame 240
stop();
Symbol 325 MovieClip Frame 360
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
function deal(pl, pile, cn, beginx, beginy, tobx, toby, revealsort) {
carddeal();
newname = (("c_p" + pl) + "hand_") + cn;
newrole = ("p" + pl) + "hand";
nc = pile.popCard();
nc.setCardRole(newrole);
nc.setCardRootName(newname);
nc.setCardPos(beginx, beginy);
_root.attachMovie("pcard", newname, _root.getNextHighestDepth());
_root[newname].gotoAndStop(((revealsort == 0) ? (nc.getCardName()) : (((revealsort == 1) ? "\u98DF\u6750\u88CF" : "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\u88CF"))));
_root[newname]._x = beginx;
_root[newname]._y = beginy;
_root[newname]._xscale = (_root[newname]._yscale = _root.CARD_SCALE);
nc.setToPos(tobx + (_root.CARD_SPACE * _root[("p" + pl) + "hand"].getHandLength()), toby);
_root[newname].role = newrole;
if (pl != 1) {
_root[newname].but.useHandCursor = false;
}
_root[("p" + pl) + "hand"].pushHand(nc);
}
_root.p1cn = 0;
_root.p2cn = 0;
Symbol 412 MovieClip Frame 3
deal(1, _root.lib, _root.p1cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P1HAND_BASE_X, _root.P1HAND_BASE_Y, 0);
Symbol 412 MovieClip Frame 5
deal(2, _root.lib, _root.p2cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P2HAND_BASE_X, _root.P2HAND_BASE_Y, 1);
Symbol 412 MovieClip Frame 7
deal(1, _root.lib, _root.p1cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P1HAND_BASE_X, _root.P1HAND_BASE_Y, 0);
Symbol 412 MovieClip Frame 9
deal(2, _root.lib, _root.p2cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P2HAND_BASE_X, _root.P2HAND_BASE_Y, 1);
Symbol 412 MovieClip Frame 11
deal(1, _root.lib, _root.p1cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P1HAND_BASE_X, _root.P1HAND_BASE_Y, 0);
Symbol 412 MovieClip Frame 13
deal(2, _root.lib, _root.p2cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P2HAND_BASE_X, _root.P2HAND_BASE_Y, 1);
Symbol 412 MovieClip Frame 15
deal(1, _root.lib, _root.p1cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P1HAND_BASE_X, _root.P1HAND_BASE_Y, 0);
Symbol 412 MovieClip Frame 17
deal(2, _root.lib, _root.p2cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P2HAND_BASE_X, _root.P2HAND_BASE_Y, 1);
Symbol 412 MovieClip Frame 19
deal(1, _root.lib, _root.p1cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P1HAND_BASE_X, _root.P1HAND_BASE_Y, 0);
Symbol 412 MovieClip Frame 21
deal(2, _root.lib, _root.p2cn++, _root.LIBRARY_X, _root.LIBRARY_Y, _root.P2HAND_BASE_X, _root.P2HAND_BASE_Y, 1);
Symbol 412 MovieClip Frame 23
deal(1, _root.p1rec, _root.p1cn++, _root.P1RECIPE_X, _root.P1RECIPE_Y, _root.P1HAND_BASE_X, _root.P1HAND_BASE_Y, 0);
Symbol 412 MovieClip Frame 25
deal(2, _root.p2rec, _root.p2cn++, _root.P2RECIPE_X, _root.P2RECIPE_Y, _root.P2HAND_BASE_X, _root.P2HAND_BASE_Y, 3);
Symbol 412 MovieClip Frame 27
deal(1, _root.p1rec, _root.p1cn++, _root.P1RECIPE_X, _root.P1RECIPE_Y, _root.P1HAND_BASE_X, _root.P1HAND_BASE_Y, 0);
Symbol 412 MovieClip Frame 29
deal(2, _root.p2rec, _root.p2cn++, _root.P2RECIPE_X, _root.P2RECIPE_Y, _root.P2HAND_BASE_X, _root.P2HAND_BASE_Y, 3);
Symbol 412 MovieClip Frame 41
_root.p1hand.sortHand();
_root.p1hand.doSort();
Symbol 412 MovieClip Frame 42
stop();
_root.ms.gotoAndStop("\u6750\u6599\u53CE\u96C6\u98DF\u6750\u9078\u3073");
Symbol 417 Button
on (press) {
_root.maman.hair_cut = true;
_root.mamanf.hair.gotoAndStop("\u30B7\u30E7\u30FC\u30C8\u30D8\u30A2");
_root.maman.hair = "\u30B7\u30E7\u30FC\u30C8\u30D8\u30A2";
checkClothing(true);
buttonpush();
_root.ms.hasamicur.aim = false;
_root.ms.hasamicur._x = -500;
}
on (rollOver) {
_root.ms.hasamicur.aim = true;
buttonon();
}
on (rollOut) {
_root.ms.hasamicur.aim = false;
_root.ms.hasamicur._x = -500;
}
Symbol 418 Button
on (press) {
if ((_root.maman.skirt == "\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8") && (!_root.maman.skirt_cut)) {
_root.maman.skirt_cut = true;
_root.mamanf.skirt.gotoAndStop("\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8\u5207\u308A\u53D6\u308A");
} else if ((_root.maman.skirt == "\u30B9\u30AF\u6C34") && (!_root.maman.swimsuit_cut)) {
_root.maman.swimsuit_cut = true;
_root.mamanf.skirt.gotoAndStop("\u30B9\u30AF\u6C34\u5207\u308A\u53D6\u308A");
} else if (((_root.maman.skirt == "none") && (_root.maman.tights == "\u9ED2\u30B9\u30C8")) && (!_root.maman.tights_cut)) {
_root.maman.tights_cut = true;
if (_root.maman.torso == "\u30B7\u30E7\u30FC\u30C4") {
_root.mamanf.tights.gotoAndStop("\u9ED2\u30B9\u30C8\u30B7\u30E7\u30FC\u30C4\u5207\u308A\u53D6\u308A");
} else {
_root.mamanf.tights.gotoAndStop("\u9ED2\u30B9\u30C8\u5207\u308A\u53D6\u308A");
}
} else if (((((_root.maman.skirt == "none") && (_root.maman.tights == "none")) && (_root.maman.torso == "\u30B7\u30E7\u30FC\u30C4")) && (!_root.maman.shorts_cut)) && (!_root.maman.diaper)) {
_root.maman.shorts_cut = true;
if (_root.maman.underhair) {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u6BDB\u5207\u308A\u53D6\u308A");
} else {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u5207\u308A\u53D6\u308A");
}
}
checkClothing(true);
buttonpush();
_root.ms.hasamicur.aim = false;
_root.ms.hasamicur._x = -500;
}
on (rollOver) {
_root.ms.hasamicur.aim = true;
buttonon();
}
on (rollOut) {
_root.ms.hasamicur.aim = false;
_root.ms.hasamicur._x = -500;
}
Symbol 419 Button
on (press) {
_root.maman.nit_cut = true;
_root.mamanf.nit.gotoAndStop("\u30BB\u30FC\u30BF\u30FC\u5207\u308A\u53D6\u308A");
checkClothing(true);
buttonpush();
_root.ms.hasamicur.aim = false;
_root.ms.hasamicur._x = -500;
}
on (rollOver) {
_root.ms.hasamicur.aim = true;
buttonon();
}
on (rollOut) {
_root.ms.hasamicur.aim = false;
_root.ms.hasamicur._x = -500;
}
Symbol 424 Button
on (press) {
_root.maman.zooming = true;
_root.mamanf._xscale = (_root.mamanf._yscale = 100);
_root.mamanf.mamanb._visible = true;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 427 Button
on (press) {
_root.maman.zooming = false;
_root.mamanf._xscale = (_root.mamanf._yscale = 50);
_root.mamanf._x = 467.5;
_root.mamanf._y = 0;
_root.mamanf.mamanb._visible = false;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 430 MovieClip Frame 1
stop();
Symbol 445 Button
on (press) {
_root.maman.diaper = true;
if (_root.maman.drug) {
_root.mamanf.diaper.gotoAndStop("\u7D19\u304A\u3080\u3064\u3057\u307F");
} else {
_root.mamanf.diaper.gotoAndStop("\u7D19\u304A\u3080\u3064");
}
_root.maman.underhair_reduce = true;
if (_root.maman.underhair) {
_root.mamanf.torso.gotoAndStop("\u6BDB\u524A\u9664");
} else {
_root.mamanf.torso.gotoAndStop("none");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 448 Button
on (press) {
_root.maman.diaper = false;
_root.mamanf.diaper.gotoAndStop("none");
_root.maman.underhair_reduce = false;
if (_root.maman.underhair) {
_root.mamanf.torso.gotoAndStop("\u6BDB");
} else {
_root.mamanf.torso.gotoAndStop("none");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 451 MovieClip Frame 1
stop();
Symbol 454 Button
on (press) {
_root.maman.apron = "\u3088\u3060\u308C\u304B\u3051";
_root.mamanf.apron.gotoAndStop("\u3088\u3060\u308C\u304B\u3051");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 456 Button
on (press) {
_root.maman.apron = "none";
_root.mamanf.apron.gotoAndStop("none");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 458 MovieClip Frame 1
stop();
Symbol 460 Button
on (press) {
_root.maman.osyaburi = true;
_root.mamanf.osyaburi._visible = true;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 462 Button
on (press) {
_root.maman.osyaburi = false;
_root.mamanf.osyaburi._visible = false;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 464 MovieClip Frame 1
stop();
Symbol 466 Button
on (press) {
_root.maman.drug = true;
if (_root.maman.nit == "\u30BB\u30FC\u30BF\u30FC") {
_root.mamanf.nit.gotoAndStop("\u30BB\u30FC\u30BF\u30FC\u306B\u3058\u307F");
}
if (_root.maman.skirt == "\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8") {
_root.mamanf.skirt.gotoAndStop("\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8\u306B\u3058\u307F");
}
if (_root.maman.skirt == "\u30B9\u30AF\u6C34") {
_root.mamanf.skirt.gotoAndStop("\u30B9\u30AF\u6C34\u306B\u3058\u307F");
}
if (_root.maman.bust == "\u30D6\u30E9\u30B8\u30E3\u30FC") {
_root.mamanf.bust.gotoAndStop("\u30D6\u30E9\u30B8\u30E3\u30FC\u306B\u3058\u307F");
}
if (_root.maman.torso == "\u30B7\u30E7\u30FC\u30C4") {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u306B\u3058\u307F");
}
checkClothing(true);
fukidashiManage("\u7F9E\u6065");
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 470 MovieClip Frame 1
stop();
Symbol 472 Button
on (press) {
_root.maman.hair = "none";
_root.mamanf.hair.gotoAndStop("none");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 474 Button
on (press) {
_root.maman.hair = "\u30ED\u30F3\u30B0\u30D8\u30A2";
_root.mamanf.hair.gotoAndStop("\u30ED\u30F3\u30B0\u30D8\u30A2");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 476 MovieClip Frame 1
stop();
Symbol 478 Button
on (press) {
_root.maman.massager = true;
_root.mamanf.massager._visible = true;
_root.mamanf.massager.play();
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 480 Button
on (press) {
_root.maman.massager = false;
_root.mamanf.massager._visible = false;
_root.mamanf.massager.stop();
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 482 MovieClip Frame 1
stop();
Symbol 484 Button
on (press) {
_root.maman.inut = true;
_root.mamanf.inuT_hair._visible = (_root.mamanf.inuT_left._visible = (_root.mamanf.inuT_right._visible = (_root.mamanf.inuT_tail._visible = true)));
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 486 Button
on (press) {
_root.maman.inut = false;
_root.mamanf.inuT_hair._visible = (_root.mamanf.inuT_left._visible = (_root.mamanf.inuT_right._visible = (_root.mamanf.inuT_tail._visible = false)));
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 488 MovieClip Frame 1
stop();
Symbol 490 Button
on (press) {
_root.maman.rope = true;
_root.mamanf.rope._visible = true;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 492 Button
on (press) {
_root.maman.rope = false;
_root.mamanf.rope._visible = false;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 494 MovieClip Frame 1
stop();
Symbol 496 Button
on (press) {
_root.maman.glass = true;
_root.mamanf.glass._visible = true;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 498 Button
on (press) {
_root.maman.glass = false;
_root.mamanf.glass._visible = false;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 500 MovieClip Frame 1
stop();
Symbol 507 Button
on (press) {
buttonpush();
if (_root.turn < 99) {
_root.cardVisible = true;
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\uFF11\u56DE\u76EE\u306F\u3058\u3081");
} else {
_root.bg.gotoAndPlay("\u30B9\u30FC\u30D1\u30FC\u3078");
_root.gotoAndStop("\u30BF\u30A4\u30C8\u30EB");
}
}
on (rollOver) {
buttonon();
}
Symbol 509 Button
on (press) {
_root.maman.tights = "\u9ED2\u30B9\u30C8";
if (_root.maman.tights_cut) {
if (_root.maman.shorts == "\u30B7\u30E7\u30FC\u30C4") {
_root.mamanf.tights.gotoAndStop("\u9ED2\u30B9\u30C8\u30B7\u30E7\u30FC\u30C4\u5207\u308A\u53D6\u308A");
} else {
_root.mamanf.tights.gotoAndStop("\u9ED2\u30B9\u30C8\u5207\u308A\u53D6\u308A");
}
} else if (_root.maman.shorts == "\u30B7\u30E7\u30FC\u30C4") {
_root.mamanf.tights.gotoAndStop("\u9ED2\u30B9\u30C8\u30B7\u30E7\u30FC\u30C4");
} else {
_root.mamanf.tights.gotoAndStop("\u9ED2\u30B9\u30C8");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 511 Button
on (press) {
_root.maman.tights = "none";
_root.mamanf.tights.gotoAndStop("none");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 515 Button
on (press) {
_root.maman.underhair = false;
if (_root.maman.torso == "\u30B7\u30E7\u30FC\u30C4") {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4");
} else {
_root.mamanf.torso.gotoAndStop("none");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 517 Button
on (press) {
_root.maman.underhair = true;
if (_root.maman.torso == "\u30B7\u30E7\u30FC\u30C4") {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u6BDB");
} else if (_root.maman.underhair_reduce) {
_root.mamanf.torso.gotoAndStop("\u6BDB\u524A\u9664");
} else {
_root.mamanf.torso.gotoAndStop("\u6BDB");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 519 MovieClip Frame 1
stop();
Symbol 521 Button
on (press) {
_root.maman.necklace = true;
_root.mamanf.necklace._visible = true;
_root.mamanf.necklace_back._visible = true;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 523 Button
on (press) {
_root.maman.necklace = false;
_root.mamanf.necklace._visible = false;
_root.mamanf.necklace_back._visible = false;
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 525 MovieClip Frame 1
stop();
Symbol 527 Button
on (press) {
_root.maman.skirt = "\u30B9\u30AF\u6C34";
_root.maman.underhair_reduce = _root.maman.swimsuit_cut;
if (_root.maman.swimsuit_cut) {
_root.mamanf.skirt.gotoAndStop("\u30B9\u30AF\u6C34\u5207\u308A\u53D6\u308A");
} else if (_root.maman.drug) {
_root.mamanf.skirt.gotoAndStop("\u30B9\u30AF\u6C34\u3057\u307F");
} else {
_root.mamanf.skirt.gotoAndStop("\u30B9\u30AF\u6C34");
}
if (_root.maman.underhair) {
if (_root.maman.swimsuit_cut) {
_root.mamanf.torso.gotoAndStop("\u6BDB\u524A\u9664");
}
} else {
_root.mamanf.torso.gotoAndStop("none");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 529 Button
on (press) {
_root.maman.skirt = "none";
_root.maman.underhair_reduce = false;
_root.mamanf.skirt.gotoAndStop("none");
if (_root.maman.underhair) {
_root.mamanf.torso.gotoAndStop("\u6BDB");
} else {
_root.mamanf.torso.gotoAndStop("none");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 531 MovieClip Frame 1
stop();
Symbol 533 Button
on (press) {
_root.maman.torso = "\u30B7\u30E7\u30FC\u30C4";
if (_root.maman.shorts_cut) {
if (_root.maman.underhair) {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u6BDB\u5207\u308A\u53D6\u308A");
} else {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u5207\u308A\u53D6\u308A");
}
} else if (_root.maman.drug) {
if (_root.maman.underhair) {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u6BDB\u3057\u307F");
} else {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u3057\u307F");
}
} else if (_root.maman.underhair) {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4\u6BDB");
} else {
_root.mamanf.torso.gotoAndStop("\u30B7\u30E7\u30FC\u30C4");
}
if (_root.maman.tights == "\u9ED2\u30B9\u30C8") {
_root.mamanf.tights.gotoAndStop("\u9ED2\u30B9\u30C8\u30B7\u30E7\u30FC\u30C4");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 535 Button
on (press) {
_root.maman.torso = "none";
if (_root.maman.underhair) {
_root.mamanf.torso.gotoAndStop("\u6BDB");
} else {
_root.mamanf.torso.gotoAndStop("none");
}
if (_root.maman.tights == "\u9ED2\u30B9\u30C8\u30B7\u30E7\u30FC\u30C4") {
_root.mamanf.tights.gotoAndStop("\u9ED2\u30B9\u30C8");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 537 MovieClip Frame 1
stop();
Symbol 539 Button
on (press) {
_root.maman.bust = "\u30D6\u30E9\u30B8\u30E3\u30FC";
if (_root.maman.drug) {
_root.mamanf.bust.gotoAndStop("\u30D6\u30E9\u30B8\u30E3\u30FC\u3057\u307F");
} else {
_root.mamanf.bust.gotoAndStop("\u30D6\u30E9\u30B8\u30E3\u30FC");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 541 Button
on (press) {
_root.maman.bust = "none";
_root.mamanf.bust.gotoAndStop("none");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 543 MovieClip Frame 1
stop();
Symbol 545 Button
on (press) {
_root.maman.skirt = "\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8";
if (_root.maman.skirt_cut) {
_root.mamanf.skirt.gotoAndStop("\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8\u5207\u308A\u53D6\u308A");
} else if (_root.maman.drug) {
_root.mamanf.skirt.gotoAndStop("\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8\u3057\u307F");
} else {
_root.mamanf.skirt.gotoAndStop("\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 547 Button
on (press) {
_root.maman.skirt = "none";
_root.mamanf.skirt.gotoAndStop("none");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 549 MovieClip Frame 1
stop();
Symbol 551 Button
on (press) {
_root.maman.nit = "\u30BB\u30FC\u30BF\u30FC";
if (_root.maman.torso == "\u30B7\u30E7\u30FC\u30C4") {
_root.mamanf.nit_sleeve.gotoAndStop("\u30BB\u30FC\u30BF\u30FC\u30B7\u30E7\u30FC\u30C4");
} else {
_root.mamanf.nit_sleeve.gotoAndStop("\u30BB\u30FC\u30BF\u30FC");
}
if (_root.maman.nit_cut) {
_root.mamanf.nit.gotoAndStop("\u30BB\u30FC\u30BF\u30FC\u5207\u308A\u53D6\u308A");
} else if (_root.maman.drug) {
_root.mamanf.nit.gotoAndStop("\u30BB\u30FC\u30BF\u30FC\u3057\u307F");
} else {
_root.mamanf.nit.gotoAndStop("\u30BB\u30FC\u30BF\u30FC");
}
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 553 Button
on (press) {
_root.maman.nit = "none";
_root.mamanf.nit_sleeve.gotoAndStop("none");
_root.mamanf.nit.gotoAndStop("none");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 555 MovieClip Frame 1
stop();
Symbol 557 Button
on (press) {
_root.maman.apron = "\u30A8\u30D7\u30ED\u30F3";
_root.mamanf.apron.gotoAndStop("\u30A8\u30D7\u30ED\u30F3");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 559 Button
on (press) {
_root.maman.apron = "none";
_root.mamanf.apron.gotoAndStop("none");
checkClothing(true);
buttonpush();
}
on (rollOver) {
buttonon();
}
Symbol 561 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 1
function deal(pl, pile, cn, beginx, beginy, tobx, toby, revealsort) {
newname = (("c_p" + pl) + "result_") + cn;
newrole = "result";
nc = pile.viewCard(cn);
nc.setCardRole(newrole);
nc.setCardRootName(newname);
nc.setCardPos(beginx, beginy);
_root.attachMovie("pcard", newname, _root.getNextHighestDepth());
_root[newname].gotoAndStop(nc.getCardName());
_root[newname]._x = beginx;
_root[newname]._y = beginy;
_root[newname]._xscale = (_root[newname]._yscale = 50);
nc.setToPos(tobx + (20 * (cn - 1)), toby);
_root[newname].role = newrole;
}
res1 = (res2 = 0);
Symbol 564 MovieClip Frame 2
if (res1 < _root.p1made.getPileLength()) {
deal(1, _root.p1made, res1++, -50, 380, 100, 380, 0);
}
if (res2 < _root.p2made.getPileLength()) {
deal(2, _root.p2made, res2++, -50, 200, 100, 200, 0);
}
carddeal();
Symbol 564 MovieClip Frame 5
if ((_root.p1made.getPileLength() > res1) || (_root.p2made.getPileLength() > res2)) {
gotoAndPlay (2);
} else {
_root.ms.winner.gotoAndStop(((res1 > res2) ? 2 : (((res1 < res2) ? 1 : 3))));
if (res1 > res2) {
fukidashiManage("\u52DD\u6557\u52DD\u3061");
} else {
fukidashiManage("\u52DD\u6557\u3075\u3064\u3046");
}
_root.ms.endbut._visible = true;
stop();
}
Symbol 571 Button
on (press) {
buttonpush();
_root.turn = 100;
_root.cardVisible = false;
gotoAndStop ("\u8131\u304C\u305B\u30BF\u30A4\u30E0");
}
on (rollOver) {
buttonon();
}
Symbol 574 MovieClip Frame 1
stop();
_root.turn = 0;
_root.lib = new Pile();
i = 0;
while (i < 50) {
if (Math.floor(i / 10) != 3) {
_root.lib.pushCard(new Card(Math.floor(i / 10), "library"));
}
i++;
}
i = 0;
while (i < 11) {
_root.lib.pushCard(new Card(Math.floor(i / 10) + 5, "library"));
i++;
}
_root.lib.shufflePile();
_root.p1rec = new Pile();
i = 7;
while (i < 22) {
if (((i != 10) && (i != 15)) && (i != 17)) {
_root.p1rec.pushCard(new Card(i, "library"));
}
i++;
}
_root.p1rec.shufflePile();
_root.p2rec = new Pile();
i = 22;
while (i < 36) {
if (((i != 25) && (i != 30)) && (i != 32)) {
_root.p2rec.pushCard(new Card(i, "library"));
}
i++;
}
_root.p2rec.shufflePile();
_root.oven = new Pile();
_root.tempStack = new Hand(_root.TEMPSTACK_BASE_X, (_root.CARD_SPACE / 3) * 2, _root.TEMPSTACK_BASE_Y);
_root.p1hand = new Hand(_root.P1HAND_BASE_X, _root.CARD_SPACE_UNSORTED, _root.P1HAND_BASE_Y);
_root.p2hand = new Hand(_root.P2HAND_BASE_X, _root.CARD_SPACE, _root.P2HAND_BASE_Y);
_root.p2memory = new Memory([0, 0, 0, 0, 0, 0, 0]);
_root.p1made = new Pile();
_root.p2made = new Pile();
_root.maman = {apron:"\u30A8\u30D7\u30ED\u30F3", necklace:false, nit:"\u30BB\u30FC\u30BF\u30FC", skirt:"\u30DF\u30CB\u30B9\u30AB\u30FC\u30C8", bust:"\u30D6\u30E9\u30B8\u30E3\u30FC", torso:"\u30B7\u30E7\u30FC\u30C4", hair:"none", glass:false, rope:false, underhair:true, underhair_reduce:false, inut:false, massager:false, drug:false, tights:"\u9ED2\u30B9\u30C8", osyaburi:false, diaper:false, nit_cut:false, skirt_cut:false, swimsuit_cut:false, shorts_cut:false, tights_cut:false, zooming:false, hair_cut:false};
_root.cardVisible = true;
_root.shame = 0;
_root.canDrugged = false;
_root.canCut = false;
_root.canZoom = false;
tobj = {_x:400, _y:300};
_root.attachMovie("tell_gather1", "tell_gather1", _root.getNextHighestDepth(), tobj);
fukidashiManage("\u958B\u59CB\u6642");
Instance of Symbol 162 MovieClip [pcard] "food_stack" in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("none");
this.role = "food_stack";
}
Instance of Symbol 162 MovieClip [pcard] "p2recipe_pile" in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\u88CF");
this.role = "opponent_pile";
this.but.useHandCursor = false;
this.shader._visible = true;
}
Instance of Symbol 162 MovieClip [pcard] "p1recipe_pile" in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("\u300C\u300D\u306E\u30EC\u30B7\u30D4\u88CF");
this.role = "pile";
this.but.useHandCursor = false;
this.shader._visible = true;
}
Instance of Symbol 162 MovieClip [pcard] "food_pile" in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("\u98DF\u6750\u88CF");
this.role = "pile";
this.but.useHandCursor = false;
this.shader._visible = true;
}
Symbol 574 MovieClip Frame 3
_root.phase = "p1foodchoice";
if (_root.p1hand.getCardNumByAlignment(0).length == 0) {
gotoAndStop ("\u6750\u6599\u53CE\u96C6\u30EC\u30B7\u30D4\u9078\u3073");
} else {
i = 0;
while (i < _root.p1hand.getHandLength()) {
tc = _root.p1hand.viewCard(i);
tb = _root.p1hand.viewCard(i).getCardAlignment() == 0;
_root[tc.getCardRootName()].but.useHandCursor = tb;
_root[tc.getCardRootName()].shader._visible = !tb;
_root[tc.getCardRootName()].role = "p1hand";
i++;
}
_root.ms.food_pile.but.useHandCursor = (_root.ms.p1recipe_pile.but.useHandCursor = (_root.ms.p2recipe_pile.but.useHandCursor = false));
_root.ms.food_pile.shader._visible = (_root.ms.p1recipe_pile.shader._visible = (_root.ms.p2recipe_pile.shader._visible = true));
}
setPileSize();
Symbol 574 MovieClip Frame 4
_root.phase = "p1recipechoice";
i = 0;
while (i < _root.p1hand.getHandLength()) {
tc = _root.p1hand.viewCard(i);
tb = _root.p1hand.viewCard(i).getCardAlignment() == 1;
_root[tc.getCardRootName()].but.useHandCursor = tb;
_root[tc.getCardRootName()].shader._visible = !tb;
i++;
}
_root.ms.food_pile.but.useHandCursor = (_root.ms.p1recipe_pile.but.useHandCursor = (_root.ms.p2recipe_pile.but.useHandCursor = true));
_root.ms.food_pile.shader._visible = (_root.ms.p1recipe_pile.shader._visible = (_root.ms.p2recipe_pile.shader._visible = false));
Symbol 574 MovieClip Frame 5
_root.phase = "p1drawchoice";
i = 0;
while (i < _root.p1hand.getHandLength()) {
tc = _root.p1hand.viewCard(i);
tb = false;
_root[tc.getCardRootName()].but.useHandCursor = tb;
_root[tc.getCardRootName()].shader._visible = !tb;
i++;
}
_root.ms.food_pile.but.useHandCursor = (_root.ms.p1recipe_pile.but.useHandCursor = (_root.ms.p2recipe_pile.but.useHandCursor = true));
_root.ms.food_pile.shader._visible = (_root.ms.p1recipe_pile.shader._visible = (_root.ms.p2recipe_pile.shader._visible = false));
Symbol 574 MovieClip Frame 6
_root.phase = "p1top2";
_root.p2memory.fuzzyise();
i = 0;
while (i < _root.p1hand.getHandLength()) {
tc = _root.p1hand.viewCard(i);
tb = false;
_root[tc.getCardRootName()].but.useHandCursor = tb;
_root[tc.getCardRootName()].shader._visible = !tb;
i++;
}
_root.ms.food_pile.but.useHandCursor = (_root.ms.p1recipe_pile.but.useHandCursor = (_root.ms.p2recipe_pile.but.useHandCursor = false));
_root.ms.food_pile.shader._visible = (_root.ms.p1recipe_pile.shader._visible = (_root.ms.p2recipe_pile.shader._visible = true));
food_stack.gotoAndStop(_root.oven.viewTopmost().getCardName());
if (_root.p2memory.getMemoryLength() > 19) {
fukidashiManage("\u8A18\u61B6");
} else {
fukidashiManage("none");
}
Symbol 574 MovieClip Frame 18
if (_root.lib.getPileLength() == 0) {
gotoAndStop ("\u30AD\u30C3\u30C1\u30F3\u3078");
}
Symbol 574 MovieClip Frame 29
p2_foods = _root.p2hand.getCardNumByAlignment(0);
i = 0;
while (i < _root.tempStack.getHandLength()) {
_root.tempStack.viewCard(i).vanishCard();
i++;
}
_root.tempStack.clearHand();
if (p2_foods.length > 0) {
tar = _root.p2hand.getChunk(p2_foods[Math.floor(p2_foods.length * Math.random())], true);
_root.p2hand.doSecretSort();
_root.p2memory.addFood(tar[0].getCardNumber(), tar.length);
i = 0;
while (i < tar.length) {
tar[i].setCardRole("stacking");
_root[tar[i].getCardRootName()].gotoAndStop(tar[i].getCardName());
_root[tar[i].getCardRootName()].role = "stacking";
_root.oven.pushCard(tar[i]);
_root.tempStack.pushHand(tar[i]);
i++;
}
_root.tempStack.sortHand();
_root.tempStack.doSort();
carddeal();
}
Symbol 574 MovieClip Frame 46
p2_recipes_t = _root.p2hand.getCardNumByAlignment(2);
p2_recipes = new Array();
recipePlayed = false;
while (p2_recipes_t.length > 0) {
p2_recipes.push(p2_recipes_t.splice(Math.floor(Math.random() * p2_recipes_t.length), 1)[0]);
}
i = 0;
while (i < p2_recipes.length) {
tar = _root.p2hand.viewCard(p2_recipes[i]);
prob = _root.p2memory.recipeProb(new Recipe(tar.getCardNumber()));
if (prob[0]) {
_root.p2memory.recipeReduceByProb(new Recipe(tar.getCardNumber()).getRecipeArray(), prob);
tar = _root.p2hand.getCard(p2_recipes[i]);
_root.p2hand.doSecretSort();
tar.setCardRole("stacking");
_root[tar.getCardRootName()].gotoAndStop(tar.getCardName());
_root[tar.getCardRootName()].role = "stacking";
_root.oven.pushCard(tar);
_root.tempStack.pushHand(tar);
_root.tempStack.sortHand();
_root.tempStack.doSort();
recipePlayed = true;
carddeal();
fukidashiManage("\u30EC\u30B7\u30D4\u6295\u4E0B");
break;
}
i++;
}
Symbol 574 MovieClip Frame 64
drawRecipe = false;
if ((Math.random() < (1 - (_root.p2hand.getCardNumByAlignment(2).length / 3))) && (_root.p2hand.getCardNumByAlignment(0).length > 1)) {
drawRecipe = _root.p2rec.getPileLength() > 0;
}
while ((_root.p2hand.getHandLength() < 7) && (((!drawRecipe) && (_root.lib.getPileLength() > 0)) || (drawRecipe && (_root.p2rec.getPileLength() > 0)))) {
if (!drawRecipe) {
nc = _root.lib.popCard();
nc.setCardPos(_root.LIBRARY_X, _root.LIBRARY_Y);
setPileSize();
} else {
nc = _root.p2rec.popCard();
nc.setCardPos(_root.P2RECIPE_X, _root.P2RECIPE_Y);
setPileSize();
}
newname = "c_p2hand_" + (_root.p2cn++);
newrole = "p2hand";
nc.setCardRole(newrole);
nc.setCardRootName(newname);
nc.setHover(false);
_root.attachMovie("pcard", newname, _root.getNextHighestDepth());
_root[newname].gotoAndStop((drawRecipe ? "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\u88CF" : "\u98DF\u6750\u88CF"));
_root[newname]._x = ((!drawRecipe) ? (_root.LIBRARY_X) : (_root.P2RECIPE_X));
_root[newname]._y = ((!drawRecipe) ? (_root.LIBRARY_Y) : (_root.P2RECIPE_Y));
_root[newname]._xscale = (_root[newname]._yscale = _root.CARD_SCALE);
_root[newname].role = newrole;
_root.p2hand.pushHand(nc);
}
_root.p2hand.sortSecretHand();
_root.p2hand.doSecretSort();
carddeal();
if (!recipePlayed) {
fukidashiManage("\u624B\u756A\u6E21\u3057");
}
Symbol 574 MovieClip Frame 69
food_stack.gotoAndStop(_root.oven.viewTopmost().getCardName());
if (_root.lib.getPileLength() == 0) {
gotoAndStop ("\u30AD\u30C3\u30C1\u30F3\u3078");
} else {
gotoAndStop ("\u6750\u6599\u53CE\u96C6\u98DF\u6750\u9078\u3073");
}
Symbol 574 MovieClip Frame 83
stop();
i = 0;
while (i < _root.tempStack.getHandLength()) {
_root.tempStack.viewCard(i).vanishCard();
i++;
}
_root.tempStack.clearHand();
food_pile.toX = (p1recipe_pile.toX = (p2recipe_pile.toX = -50));
food_stack.toX = _root.OVEN_X;
food_pile.toY = food_pile._y;
p1recipe_pile.toY = p1recipe_pile._y;
p2recipe_pile.toY = p2recipe_pile._y;
food_stack.toY = _root.OVEN_Y;
food_pile.toMove = (p1recipe_pile.toMove = (p2recipe_pile.toMove = (food_stack.toMove = true)));
food_stack.gotoAndStop("\u98DF\u6750\u88CF");
_root.foodStack = new FoodStack();
_root.fscn = 0;
_root.bg.gotoAndPlay("\u30AD\u30C3\u30C1\u30F3\u3078");
_root.handarea.gotoAndPlay("\u9752\u304B\u3089\u8D64\u3078");
tobj = {_x:400, _y:300};
if (_root.turn == 0) {
_root.attachMovie("tell_make1", "tell_make1", _root.getNextHighestDepth(), tobj);
} else if (_root.turn == 1) {
_root.attachMovie("tell_make2", "tell_make2", _root.getNextHighestDepth(), tobj);
} else if (_root.turn == 2) {
_root.attachMovie("tell_make3", "tell_make3", _root.getNextHighestDepth(), tobj);
}
fukidashiManage("\u30AD\u30C3\u30C1\u30F3\u3078");
Symbol 574 MovieClip Frame 84
if (_root.oven.getPileLength() > 0) {
setPileSize();
carddeal();
_root.p1hand.doSort();
_root.p2hand.doSecretSort();
trace(_root.foodStack.getFoodArray());
tc = _root.oven.shiftCard();
if (_root.oven.getPileLength() > 0) {
al = _root.oven.viewBottommost().getCardAlignment();
food_stack.gotoAndStop(((al == 0) ? "\u98DF\u6750\u88CF" : (((al == 1) ? "\u300C\u300D\u306E\u30EC\u30B7\u30D4\u88CF" : "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\u88CF"))));
} else {
food_stack.gotoAndStop("none");
}
newname = "fs_" + (_root.fscn++);
newrole = "food_stack";
tc.setCardRole(newrole);
tc.setCardRootName(newname);
tc.setCardPos(_root.OVEN_X, _root.OVEN_Y - 30);
_root.attachMovie("pcard", newname, _root.getNextHighestDepth());
_root[newname].gotoAndStop(tc.getCardName());
_root[newname]._x = _root.OVEN_X;
_root[newname]._y = _root.OVEN_Y - 30;
_root[newname].role = newrole;
switch (tc.getCardAlignment()) {
case 0 :
_root[newname]._xscale = (_root[newname]._yscale = _root.FOODSTACK_SCALE);
_root.foodStack.pushStack(tc);
_root.foodStack.doSort();
gotoAndPlay ("\u30D1\u30A4\u88FD\u4F5C\u98DF\u6750\u30A6\u30A7\u30A4\u30C8");
break;
case 1 :
_root[newname]._xscale = (_root[newname]._yscale = _root.CARD_SCALE);
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5224\u5B9A");
break;
case 2 :
_root[newname]._xscale = (_root[newname]._yscale = _root.CARD_SCALE);
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5224\u5B9A");
}
} else {
gotoAndStop ("\u6B8B\u308A\u98DF\u6750\u78BA\u8A8D");
}
Symbol 574 MovieClip Frame 101
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\uFF11\u56DE\u76EE\u306F\u3058\u3081");
Symbol 574 MovieClip Frame 102
p1foods = _root.p1hand.getFoodArray();
stfoods = _root.foodStack.getFoodArray();
allfoods = [0, 0, 0, 0, 0, 0, 0];
lackfoods = [0, 0, 0, 0, 0, 0, 0];
i = 0;
while (i < 7) {
allfoods[i] = p1foods[i] + stfoods[i];
i++;
}
rec = new Recipe(tc.getCardNumber());
switch (tc.getCardName()) {
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30A2\u30C3\u30D7\u30EB\u30D1\u30A4" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30D0\u30CA\u30CA\u30D1\u30A4" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30AF\u30EA\u30FC\u30E0\u30D1\u30A4" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30C1\u30FC\u30BA\u30D1\u30A4" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30FC\u30C8\u30D1\u30A4" :
nfood = rec.getRecipeNumber();
if ((stfoods[nfood] >= 4) && (stfoods[5] >= 1)) {
_root.foodStack.removeFoods(nfood, 4);
_root.foodStack.removeFoods(5, 1);
_root.foodStack.doSort();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
} else if ((allfoods[nfood] < 4) || (allfoods[5] < 1)) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5931\u6557");
} else {
lackfoods = arraySub(rec.getRecipeArray(), stfoods);
i = 0;
while (i < lackfoods.length) {
lackfoods[i] = Math.max(0, lackfoods[i]);
i++;
}
stlackfoods = arraySub(rec.getRecipeArray(), lackfoods);
trace((tc.getCardName() + " \u8DB3\u3089\u305A : ") + lackfoods);
_root.attachMovie("supply_alert", "supply_alert", _root.getNextHighestDepth());
_root.supply_alert._x = 1000;
_root.supply_alert._y = 300;
_root.supply_alert.toX = 620;
_root.supply_alert.toY = 460;
i = 0;
while (i < 7) {
if (lackfoods[i] == 0) {
_root.supply_alert.sh["lack_" + i]._visible = false;
} else {
_root.supply_alert.sh["lack_" + i].digit.gotoAndStop(lackfoods[i] + 1);
j = lackfoods[i];
k = 0;
while ((j > 0) && (k < _root.p1hand.getHandLength())) {
if (_root.p1hand.viewCard(k).getCardNumber() == i) {
_root.p1hand.viewCard(k).setHover(true);
_root[_root.p1hand.viewCard(k).getCardRootName()].role = "p1hand_chosen";
j--;
}
k++;
}
}
i++;
}
_root.p1hand.doSort();
_root.phase == "lack_waiting";
}
break;
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30D5\u30EB\u30FC\u30C4\u30D1\u30A4" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30C8\u30ED\u30D4\u30AB\u30EB\u30D1\u30A4" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30D0\u30CA\u30CA\u30C1\u30FC\u30BA\u30BF\u30EB\u30C8" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30C6\u30A3\u30E9\u30DF\u30B9\u30BF\u30EB\u30C8" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30C1\u30FC\u30BA\u30D4\u30ED\u30B7\u30AD" :
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30F3\u30B9\u30D1\u30A4" :
nfood = rec.getRecipeNumber() % 5;
nfood2 = (rec.getRecipeNumber() + 1) % 5;
if (nfood2 == 3) {
nfood2 = 4;
}
if (((stfoods[nfood] >= 3) && (stfoods[nfood2] >= 2)) && (stfoods[5] >= 1)) {
_root.foodStack.removeFoods(nfood, 3);
_root.foodStack.removeFoods(nfood2, 2);
_root.foodStack.removeFoods(5, 1);
_root.foodStack.doSort();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
} else if (((allfoods[nfood] < 3) || (allfoods[nfood2] < 2)) || (allfoods[5] < 1)) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5931\u6557");
} else {
lackfoods = arraySub(rec.getRecipeArray(), stfoods);
i = 0;
while (i < lackfoods.length) {
lackfoods[i] = Math.max(0, lackfoods[i]);
i++;
}
stlackfoods = arraySub(rec.getRecipeArray(), lackfoods);
trace((tc.getCardName() + " \u8DB3\u3089\u305A : ") + lackfoods);
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:false};
_root.attachMovie("supply_alert", "supply_alert", _root.getNextHighestDepth(), tobj);
i = 0;
while (i < 7) {
if (lackfoods[i] == 0) {
_root.supply_alert.sh["lack_" + i]._visible = false;
} else {
_root.supply_alert.sh["lack_" + i].digit.gotoAndStop(lackfoods[i] + 1);
j = lackfoods[i];
k = 0;
while ((j > 0) && (k < _root.p1hand.getHandLength())) {
if (_root.p1hand.viewCard(k).getCardNumber() == i) {
_root.p1hand.viewCard(k).setHover(true);
_root[_root.p1hand.viewCard(k).getCardRootName()].role = "p1hand_chosen";
j--;
}
k++;
}
}
i++;
}
_root.p1hand.doSort();
_root.phase == "lack_waiting";
}
break;
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30AB\u30AA\u30B9\u30D1\u30A4" :
resv_cut = true;
sum = 0;
i = 0;
while (i < 5) {
sum = sum + stfoods[i];
i++;
}
if ((sum >= 13) && (stfoods[5] >= 2)) {
i = 0;
while (i < 6) {
_root.foodStack.removeFoods(i, stfoods[i]);
i++;
}
_root.foodStack.doSort();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
} else {
sum = 0;
i = 0;
while (i < 5) {
sum = sum + allfoods[i];
i++;
}
if ((sum < 13) || (allfoods[5] < 2)) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5931\u6557");
} else {
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:false};
_root.attachMovie("chaos_alert", "chaos_alert", _root.getNextHighestDepth(), tobj);
sum = 0;
i = 0;
while (i < 5) {
sum = sum + stfoods[i];
i++;
}
_root.chaos_alert.sh.d_normal.gotoAndStop(Math.max(1, 14 - sum));
_root.chaos_alert.sh.d_sheet.gotoAndStop(Math.max(1, 3 - stfoods[5]));
i = 0;
while (i < _root.p1hand.getHandLength()) {
if (_root.p1hand.viewCard(i).getCardAlignment() == 0) {
_root[_root.p1hand.viewCard(i).getCardRootName()].role = "p1hand_waiting";
_root.p1hand.viewCard(i).setCardEnabled(true);
}
i++;
}
_root.phase = "waiting_chaos";
}
}
break;
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u30D5\u30EB\u30FC\u30C4\u30AD\u30C3\u30B7\u30E5" :
ahead = true;
i = 0;
while (i < 6) {
if ((stfoods[i] == 0) && (i != 3)) {
ahead = false;
}
i++;
}
if (ahead) {
i = 0;
while (i < 6) {
_root.foodStack.removeFoods(i, 1);
i++;
}
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5B8C\u6210");
} else {
ahead = true;
i = 0;
while (i < 6) {
if ((allfoods[i] == 0) && (i != 3)) {
ahead = false;
}
i++;
}
if (!ahead) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5931\u6557");
} else {
lackfoods = arraySub(rec.getRecipeArray(), stfoods);
i = 0;
while (i < lackfoods.length) {
lackfoods[i] = Math.max(0, lackfoods[i]);
i++;
}
stlackfoods = arraySub(rec.getRecipeArray(), lackfoods);
trace((tc.getCardName() + " \u8DB3\u3089\u305A : ") + lackfoods);
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:false};
_root.attachMovie("supply_alert", "supply_alert", _root.getNextHighestDepth(), tobj);
i = 0;
while (i < 7) {
if (lackfoods[i] == 0) {
_root.supply_alert.sh["lack_" + i]._visible = false;
} else {
_root.supply_alert.sh["lack_" + i].digit.gotoAndStop(lackfoods[i] + 1);
j = lackfoods[i];
k = 0;
while ((j > 0) && (k < _root.p1hand.getHandLength())) {
if (_root.p1hand.viewCard(k).getCardNumber() == i) {
_root.p1hand.viewCard(k).setHover(true);
_root[_root.p1hand.viewCard(k).getCardRootName()].role = "p1hand_chosen";
j--;
}
k++;
}
}
i++;
}
_root.p1hand.doSort();
_root.phase == "lack_waiting";
}
}
break;
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u3046\u306A\u30D1\u30A4" :
ahead = false;
resv_zoom = true;
i = 0;
while (i < 5) {
if (allfoods[i] >= 6) {
ahead = true;
}
i++;
}
if (allfoods[5] < 2) {
ahead = false;
}
if (ahead) {
cantcancel = false;
i = 0;
while (i < 5) {
if (stfoods[i] >= 6) {
cantcancel = true;
}
i++;
}
if (stfoods[5] < 2) {
cantcancel = false;
}
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:cantcancel, wildfood:6, wildsheet:2, drug:0};
_root.attachMovie("wildcard_alert", "wildcard_alert", _root.getNextHighestDepth(), tobj);
i = 0;
while (i < 5) {
_root.wildcard_alert.sh["wild_" + i].gotoAndStop((((stfoods[i] >= 6) && (stfoods[5] >= 2)) ? 1 : (((allfoods[i] >= 6) ? 2 : 3))));
i++;
}
} else {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5931\u6557");
}
break;
case "\u300C\u300D\u306E\u30EC\u30B7\u30D4\uFF1A\u5A9A\u85AC\u30D1\u30A4" :
ahead = false;
i = 0;
while (i < 5) {
if (allfoods[i] >= 4) {
ahead = true;
}
i++;
}
if ((allfoods[5] == 0) || (allfoods[6] == 0)) {
ahead = false;
}
if (ahead) {
cantcancel = false;
i = 0;
while (i < 5) {
if (stfoods[i] >= 4) {
cantcancel = true;
}
i++;
}
if ((stfoods[5] == 0) || (stfoods[6] == 0)) {
cantcancel = false;
}
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:cantcancel, wildfood:4, wildsheet:1, drug:1};
_root.attachMovie("wildcard_alert", "wildcard_alert", _root.getNextHighestDepth(), tobj);
i = 0;
while (i < 5) {
_root.wildcard_alert.sh["wild_" + i].gotoAndStop(((((stfoods[i] >= 4) && (stfoods[5] >= 1)) && (stfoods[6] >= 1)) ? 1 : (((allfoods[i] >= 4) ? 2 : 3))));
i++;
}
resv_drug = true;
} else {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u300C\u300D\u30EC\u30B7\u30D4\u5931\u6557");
}
}
Symbol 574 MovieClip Frame 103
tobj = {_x:400, _y:300};
if (resv_drug) {
_root.canDrugged = true;
}
if (resv_cut) {
_root.canCut = true;
}
if (resv_zoom) {
_root.canZoom = true;
}
resv_drug = false;
resv_cut = false;
resv_zoom = false;
_root.attachMovie("tell_p1made", "tell_p1made", _root.getNextHighestDepth(), tobj);
fukidashiManage("\u30EC\u30B7\u30D4\u5B8C\u6210");
Symbol 574 MovieClip Frame 104
i = 0;
while (i < _root.p1hand.getHandLength()) {
j = _root.p1hand.viewCard(i);
j.setHover(false);
_root[j.getCardRootName()].role = "p1hand";
i++;
}
_root.p1hand.doSort();
resv_drug = false;
resv_cut = false;
resv_zoom = false;
tobj = {_x:400, _y:300};
_root.attachMovie("tell_p1fail", "tell_p1fail", _root.getNextHighestDepth(), tobj);
fukidashiManage("\u30EC\u30B7\u30D4\u5931\u6557");
Symbol 574 MovieClip Frame 105
p2foods = _root.p2hand.getFoodArray();
stfoods = _root.foodStack.getFoodArray();
allfoods = [0, 0, 0, 0, 0, 0, 0];
lackfoods = [0, 0, 0, 0, 0, 0, 0];
i = 0;
while (i < 7) {
allfoods[i] = p2foods[i] + stfoods[i];
i++;
}
rec = new Recipe(tc.getCardNumber());
p2choice = new Array();
switch (tc.getCardName()) {
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30A2\u30C3\u30D7\u30EB\u30D1\u30A4" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30D0\u30CA\u30CA\u30D1\u30A4" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30AF\u30EA\u30FC\u30E0\u30D1\u30A4" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30C1\u30FC\u30BA\u30D1\u30A4" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30FC\u30C8\u30D1\u30A4" :
nfood = rec.getRecipeNumber();
if ((stfoods[nfood] >= 4) && (stfoods[5] >= 1)) {
_root.foodStack.removeFoods(nfood, 4);
_root.foodStack.removeFoods(5, 1);
_root.foodStack.doSort();
(stlackfoods = rec);
getRecipeArray();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5B8C\u6210");
} else if ((allfoods[nfood] < 4) || (allfoods[5] < 1)) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5931\u6557");
} else {
lackfoods = arraySub(rec.getRecipeArray(), stfoods);
lackall = 0;
i = 0;
while (i < 6) {
lackfoods[i] = Math.max(0, lackfoods[i]);
lackall = lackall + lackfoods[i];
i++;
}
trace("lack : " + lackall);
stlackfoods = arraySub(rec.getRecipeArray(), lackfoods);
j = 0;
while (j < 6) {
i = 0;
while ((lackfoods[j] > 0) && (i < _root.p2hand.getHandLength())) {
if (_root.p2hand.viewCard(i).getCardNumber() == j) {
lackfoods[j]--;
p2choice.push(i);
}
i++;
}
j++;
}
gotoAndPlay ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u60A9\u307F\u30A6\u30A7\u30A4\u30C8");
}
break;
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30D5\u30EB\u30FC\u30C4\u30D1\u30A4" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30C8\u30ED\u30D4\u30AB\u30EB\u30D1\u30A4" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30D0\u30CA\u30CA\u30C1\u30FC\u30BA\u30BF\u30EB\u30C8" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30C6\u30A3\u30E9\u30DF\u30B9\u30BF\u30EB\u30C8" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30C1\u30FC\u30BA\u30D4\u30ED\u30B7\u30AD" :
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30DF\u30F3\u30B9\u30D1\u30A4" :
nfood = rec.getRecipeNumber() % 5;
nfood2 = (rec.getRecipeNumber() + 1) % 5;
if (nfood2 == 3) {
nfood2 = 4;
}
if (((stfoods[nfood] >= 3) && (stfoods[nfood2] >= 2)) && (stfoods[5] >= 1)) {
_root.foodStack.removeFoods(nfood, 3);
_root.foodStack.removeFoods(nfood2, 2);
_root.foodStack.removeFoods(5, 1);
_root.foodStack.doSort();
(stlackfoods = rec);
getRecipeArray();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5B8C\u6210");
} else if (((allfoods[nfood] < 3) || (allfoods[nfood2] < 2)) || (allfoods[5] < 1)) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5931\u6557");
} else {
lackfoods = arraySub(rec.getRecipeArray(), stfoods);
lackall = 0;
i = 0;
while (i < lackfoods.length) {
lackfoods[i] = Math.max(0, lackfoods[i]);
lackall = lackall + lackfoods[i];
i++;
}
trace("lack : " + lackall);
stlackfoods = arraySub(rec.getRecipeArray(), lackfoods);
j = 0;
while (j < 6) {
i = 0;
while ((lackfoods[j] > 0) && (i < _root.p2hand.getHandLength())) {
if (_root.p2hand.viewCard(i).getCardNumber() == j) {
lackfoods[j]--;
p2choice.push(i);
}
i++;
}
j++;
}
gotoAndPlay ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u60A9\u307F\u30A6\u30A7\u30A4\u30C8");
}
break;
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u3046\u306A\u30D1\u30A4" :
ahead = false;
i = 0;
while (i < 5) {
if (allfoods[i] >= 6) {
ahead = true;
}
i++;
}
if (allfoods[5] < 2) {
ahead = false;
}
if (ahead) {
prob = new Array();
max = Infinity;
i = 0;
while (i < 5) {
now = Math.max(0, 6 - stfoods[i]);
if (now <= p2foods[i]) {
if (max == now) {
prob.push(i);
} else if (max > now) {
max = now;
prob = [i];
}
}
i++;
}
dec = prob[Math.floor(Math.random() * prob.length)];
stlackfoods = [0, 0, 0, 0, 0, Math.min(stfoods[5], 2), 0];
stlackfoods[dec] = Math.min(stfoods[dec], 6);
lack = 6 - stlackfoods[dec];
i = 0;
while ((lack > 0) && (i < _root.p2hand.getHandLength())) {
if (_root.p2hand.viewCard(i).getCardNumber() == dec) {
lack--;
p2choice.push(i);
}
i++;
}
if (p2choice.length == 0) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5B8C\u6210");
} else {
gotoAndPlay ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u60A9\u307F\u30A6\u30A7\u30A4\u30C8");
}
} else {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5931\u6557");
}
break;
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30AB\u30AA\u30B9\u30D1\u30A4" :
sum = 0;
i = 0;
while (i < 5) {
sum = sum + stfoods[i];
i++;
}
if ((sum >= 13) && (stfoods[5] >= 2)) {
i = 0;
while (i < 6) {
_root.foodStack.removeFoods(i, stfoods[i]);
i++;
}
_root.foodStack.doSort();
stlackfoods = [99, 99, 99, 99, 99, 99, 0];
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5B8C\u6210");
} else {
sum = 0;
i = 0;
while (i < 5) {
sum = sum + allfoods[i];
i++;
}
if ((sum < 13) || (allfoods[5] < 2)) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5931\u6557");
} else {
stlackfoods = [99, 99, 99, 99, 99, 99, 0];
j = 13 - sum;
while (j > 0) {
while (isIn((r = Math.floor(Math.random() * _root.p2hand.getHandLength())), p2choice)) {
}
if (_root.p2hand.viewCard(r).getCardNumber() < 5) {
j--;
p2choice.push(r);
}
}
j = 2 - stfoods[5];
i = 0;
while ((j > 0) && (i < _root.p2hand.getHandLength())) {
if (_root.p2hand.viewCard(i).getCardNumber() == 5) {
j--;
p2choice.push(i);
}
i++;
}
if (p2choice.length == 0) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5B8C\u6210");
} else {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u60A9\u307F\u30A6\u30A7\u30A4\u30C8");
}
}
}
break;
case "\u30DE\u30DE\u30F3\u306E\u30EC\u30B7\u30D4\uFF1A\u30D5\u30EB\u30FC\u30C4\u30AD\u30C3\u30B7\u30E5" :
ahead = true;
i = 0;
while (i < 6) {
if ((stfoods[i] == 0) && (i != 3)) {
ahead = false;
}
i++;
}
if (ahead) {
i = 0;
while (i < 6) {
_root.foodStack.removeFoods(i, 1);
i++;
}
(stlackfoods = rec);
getRecipeArray();
trace(tc.getCardName() + " \u5B8C\u6210\uFF01");
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5B8C\u6210");
} else {
ahead = true;
i = 0;
while (i < 6) {
if ((allfoods[i] == 0) && (i != 3)) {
ahead = false;
}
i++;
}
if (!ahead) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5931\u6557");
} else {
lackfoods = arraySub(rec.getRecipeArray(), stfoods);
lackall = 0;
i = 0;
while (i < lackfoods.length) {
lackfoods[i] = Math.max(0, lackfoods[i]);
lackall = lackall + lackfoods[i];
i++;
}
trace("lack : " + lackall);
stlackfoods = arraySub(rec.getRecipeArray(), lackfoods);
j = 0;
while (j < 6) {
i = 0;
while ((lackfoods[j] > 0) && (i < _root.p2hand.getHandLength())) {
if (_root.p2hand.viewCard(i).getCardNumber() == j) {
lackfoods[j]--;
p2choice.push(i);
}
i++;
}
j++;
}
gotoAndPlay ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u60A9\u307F\u30A6\u30A7\u30A4\u30C8");
}
}
}
Symbol 574 MovieClip Frame 106
fukidashiManage("\u60A9\u3080");
Symbol 574 MovieClip Frame 131
if (p2choice.length == 0) {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5931\u6557");
} else {
gotoAndStop ("\u30D1\u30A4\u88FD\u4F5C\u30DE\u30DE\u30F3\u30EC\u30B7\u30D4\u5B8C\u6210");
}
Symbol 574 MovieClip Frame 132
i = 0;
while (i < p2choice.length) {
_root[_root.p2hand.viewCard(p2choice[i]).getCardRootName()].gotoAndStop(_root.p2hand.viewCard(p2choice[i]).getCardName());
i++;
}
i = 0;
while (i < 6) {
_root.foodStack.removeFoods(i, stlackfoods[i]);
i++;
}
tobj = {_x:400, _y:300};
_root.attachMovie("tell_p2made", "tell_p2made", _root.getNextHighestDepth(), tobj);
fukidashiManage("\u30EC\u30B7\u30D4\u5B8C\u6210");
Symbol 574 MovieClip Frame 133
tobj = {_x:400, _y:300};
_root.attachMovie("tell_p2fail", "tell_p2fail", _root.getNextHighestDepth(), tobj);
fukidashiManage("\u30EC\u30B7\u30D4\u5931\u6557");
Symbol 574 MovieClip Frame 134
if (_root.turn < 2) {
tobj = {_x:1000, _y:300, toX:620, toY:460, cc:false};
_root.attachMovie("rest_alert", "rest_alert", _root.getNextHighestDepth(), tobj);
fa = _root.foodStack.getFoodArray();
i = 0;
while (i < 7) {
_root.rest_alert.sh["lack_" + i].digit.gotoAndStop(fa[i] + 1);
i++;
}
if ((_root.shame > 3) || (_root.maman.drug)) {
fukidashiManage("\u30B9\u30FC\u30D1\u30FC\u3078\u88F8\u3067");
} else {
fukidashiManage("\u30B9\u30FC\u30D1\u30FC\u3078");
}
_root.p2memory = new Memory(fa);
} else {
tobj = {_x:400, _y:300};
_root.attachMovie("tell_finish", "tell_finish", _root.getNextHighestDepth(), tobj);
}
Symbol 574 MovieClip Frame 135
if (_root.turn < 3) {
_root.lib.shufflePile();
setPileSize();
_root.p1hand.doSort();
_root.p2hand.doSecretSort();
food_pile.toX = _root.LIBRARY_X;
p1recipe_pile.toX = _root.P1RECIPE_X;
p2recipe_pile.toX = _root.P2RECIPE_X;
food_stack.toX = _root.TEMPSTACK_BASE_X;
food_pile.toY = food_pile._y;
p1recipe_pile.toY = p1recipe_pile._y;
p2recipe_pile.toY = p2recipe_pile._y;
food_stack.toY = _root.TEMPSTACK_BASE_Y;
food_pile.toMove = (p1recipe_pile.toMove = (p2recipe_pile.toMove = (food_stack.toMove = true)));
food_stack.gotoAndStop(((_root.oven.getPileLength() == 0) ? "none" : (_root.oven.viewTopmost().getCardName())));
_root.bg.gotoAndPlay("\u30B9\u30FC\u30D1\u30FC\u3078");
_root.handarea.gotoAndPlay("\u8D64\u304B\u3089\u9752\u3078");
tobj = {_x:400, _y:300};
if (_root.turn == 1) {
_root.attachMovie("tell_gather2", "tell_gather2", _root.getNextHighestDepth(), tobj);
} else if (_root.turn == 2) {
_root.attachMovie("tell_gather3", "tell_gather3", _root.getNextHighestDepth(), tobj);
}
}
Symbol 574 MovieClip Frame 136
_root.cardVisible = false;
checkClothing(false);
fukidashiManage("\u7740\u305B\u66FF\u3048");
Instance of Symbol 436 MovieClip "hasamicur" in Symbol 574 MovieClip Frame 136
onClipEvent (enterFrame) {
if (aim && (!_root.maman.zooming)) {
_x = _root.ms._xmouse;
_y = _root.ms._ymouse;
}
}
onClipEvent (load) {
aim = false;
}
Symbol 574 MovieClip Frame 137
winner.gotoAndStop(4);
endbut._visible = false;
Symbol 648 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 2
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 3
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 4
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 5
_root.mamanf.smile.gotoAndStop("\u60A9\u307F");
Symbol 648 MovieClip Frame 6
_root.mamanf.smile.gotoAndStop("\u60A9\u307F");
Symbol 648 MovieClip Frame 7
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 8
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 9
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 10
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 11
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 12
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 13
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 14
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 15
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 16
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 17
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 18
_root.mamanf.smile.gotoAndStop("\u60A9\u307F");
Symbol 648 MovieClip Frame 19
_root.mamanf.smile.gotoAndStop("\u60A9\u307F");
Symbol 648 MovieClip Frame 20
_root.mamanf.smile.gotoAndStop("\u60A9\u307F");
Symbol 648 MovieClip Frame 21
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 22
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u60A9\u307F");
Symbol 648 MovieClip Frame 23
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 24
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 25
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 26
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 27
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 28
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u60A9\u307F");
Symbol 648 MovieClip Frame 29
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u60A9\u307F");
Symbol 648 MovieClip Frame 30
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 31
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 32
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 33
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 34
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u60A9\u307F");
Symbol 648 MovieClip Frame 35
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 36
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 37
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 38
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 39
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 40
_root.mamanf.smile.gotoAndStop("\u5FAE\u7B11\u307F");
Symbol 648 MovieClip Frame 41
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 42
_root.mamanf.smile.gotoAndStop("\u666E\u901A");
Symbol 648 MovieClip Frame 43
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 44
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 45
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 46
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 47
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 48
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 49
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 50
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 51
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 52
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 53
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 54
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 55
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 56
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 57
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 58
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 59
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 60
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 61
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 62
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 63
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 64
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 65
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 66
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 67
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 648 MovieClip Frame 68
_root.mamanf.smile.gotoAndStop("\u7F9E\u6065\u7B11\u307F");
Symbol 648 MovieClip Frame 69
_root.mamanf.smile.gotoAndStop("\u5A9A\u85AC");
Symbol 650 MovieClip Frame 1
stop();
Symbol 650 MovieClip Frame 10
stop();
Symbol 650 MovieClip Frame 20
gotoAndStop (1);
Symbol 653 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF12\uFF14");
}
on (rollOver) {
buttonon();
}
Symbol 655 Button
on (press) {
buttonpush();
gotoAndStop ("\u30BF\u30A4\u30C8\u30EB");
}
on (rollOver) {
buttonon();
}
Symbol 657 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF16");
}
on (rollOver) {
buttonon();
}
Symbol 659 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF15");
}
on (rollOver) {
buttonon();
}
Symbol 661 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF14");
}
on (rollOver) {
buttonon();
}
Symbol 663 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF13\uFF13");
}
on (rollOver) {
buttonon();
}
Symbol 665 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF13\uFF12");
}
on (rollOver) {
buttonon();
}
Symbol 667 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF13\uFF11");
}
on (rollOver) {
buttonon();
}
Symbol 669 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF13");
}
on (rollOver) {
buttonon();
}
Symbol 671 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF12\uFF13");
}
on (rollOver) {
buttonon();
}
Symbol 673 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF12\uFF12");
}
on (rollOver) {
buttonon();
}
Symbol 675 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF12\uFF11");
}
on (rollOver) {
buttonon();
}
Symbol 677 Button
on (press) {
buttonpush();
gotoAndStop ("\u30D8\u30EB\u30D7\uFF11");
}
on (rollOver) {
buttonon();
}