Section 1
//advanceMax_54 (ec3DEMO_fla.advanceMax_54)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class advanceMax_54 extends MovieClip {
public function advanceMax_54(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 2
//advanceTag_55 (ec3DEMO_fla.advanceTag_55)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class advanceTag_55 extends MovieClip {
public function advanceTag_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 3
//bgArt_5 (ec3DEMO_fla.bgArt_5)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class bgArt_5 extends MovieClip {
public function bgArt_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 4
//btnCombat_19 (ec3DEMO_fla.btnCombat_19)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class btnCombat_19 extends MovieClip {
public var btnStartCombat:MovieClip;
public function btnCombat_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 5
//btnDiscardCard_81 (ec3DEMO_fla.btnDiscardCard_81)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class btnDiscardCard_81 extends MovieClip {
public var btnDiscard2:MovieClip;
public var btnDiscard3:MovieClip;
public var btnDiscard1:MovieClip;
public var btnDiscard4:MovieClip;
public var btnDiscard5:MovieClip;
public function btnDiscardCard_81(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 6
//buff14_44 (ec3DEMO_fla.buff14_44)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class buff14_44 extends MovieClip {
public function buff14_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 7
//buff4_34 (ec3DEMO_fla.buff4_34)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class buff4_34 extends MovieClip {
public function buff4_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 8
//buff6_36 (ec3DEMO_fla.buff6_36)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class buff6_36 extends MovieClip {
public function buff6_36(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 9
//cursorBlock_56 (ec3DEMO_fla.cursorBlock_56)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class cursorBlock_56 extends MovieClip {
public function cursorBlock_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 10
//headerColorBar_29 (ec3DEMO_fla.headerColorBar_29)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class headerColorBar_29 extends MovieClip {
public function headerColorBar_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 11
//interStory_94 (ec3DEMO_fla.interStory_94)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class interStory_94 extends MovieClip {
public function interStory_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 12
//labelActText_91 (ec3DEMO_fla.labelActText_91)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class labelActText_91 extends MovieClip {
public function labelActText_91(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 13
//labelCardInfo_79 (ec3DEMO_fla.labelCardInfo_79)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class labelCardInfo_79 extends MovieClip {
public function labelCardInfo_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 14
//labelInfluence1_86 (ec3DEMO_fla.labelInfluence1_86)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class labelInfluence1_86 extends MovieClip {
public function labelInfluence1_86(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 15
//labelInfluence2_87 (ec3DEMO_fla.labelInfluence2_87)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class labelInfluence2_87 extends MovieClip {
public function labelInfluence2_87(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 16
//labelInfluence3_88 (ec3DEMO_fla.labelInfluence3_88)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class labelInfluence3_88 extends MovieClip {
public function labelInfluence3_88(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 17
//labelInfluence4_89 (ec3DEMO_fla.labelInfluence4_89)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class labelInfluence4_89 extends MovieClip {
public function labelInfluence4_89(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 18
//labelTradeMenu_72 (ec3DEMO_fla.labelTradeMenu_72)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class labelTradeMenu_72 extends MovieClip {
public var btnTrain:MovieClip;
public var btnDummy:MovieClip;
public var btnTradeExit:MovieClip;
public var btnTalk:MovieClip;
public function labelTradeMenu_72(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 19
//labelWinLose_100 (ec3DEMO_fla.labelWinLose_100)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class labelWinLose_100 extends MovieClip {
public var btnReplay:MovieClip;
public function labelWinLose_100(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 20
//MainTimeline (ec3DEMO_fla.MainTimeline)
package ec3DEMO_fla {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var wndTradeMenu:MovieClip;
public var textCloud0:MovieClip;
public var labelCombat:MovieClip;
public var txtPlayerInfluence:TextField;
public var barGreen:MovieClip;
public var bgArt:MovieClip;
public var wndIntermission:MovieClip;
public var labelInfluence4:MovieClip;
public var wndMap:MovieClip;
public var cloudTreshold:MovieClip;
public var labelInfluence3:MovieClip;
public var labelCardInfo:MovieClip;
public var wndCardLibrary:MovieClip;
public var barPurple:MovieClip;
public var labelInfluence2:MovieClip;
public var textCloud4:MovieClip;
public var textCloudFinished:MovieClip;
public var wndCharacterSwitcher:MovieClip;
public var btnIntroStart:introStartButton;
public var labelInfluence1:MovieClip;
public var guideText:MovieClip;
public var barBlack:MovieClip;
public var btnLoadGame:MovieClip;
public var barRed:MovieClip;
public var barBlue:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var dmgCloud:MovieClip;
public var swimsuit_ground1:MovieClip;
public var btnIllida:MovieClip;
public var wndHand:MovieClip;
public var cursorBlock:MovieClip;
public var labelAct:MovieClip;
public var swimsuit_ground2:MovieClip;
public var wndConsole:MovieClip;
public var demoSprite:MovieClip;
public var labelWinLose:MovieClip;
public var hoverUI:MovieClip;
public var btnConsole:MovieClip;
public var barWhite:MovieClip;
public var textCloud2:MovieClip;
public var textCloud3:MovieClip;
public var bDebugOpp;
public var bSaveExists;
public var iLevel;
public var arrDeck:Array;
public var iCurrentPlayer;
public var arrInfluence:Array;
public var saveData:SharedObject;
public var bSuppressUIanimations;
public var iPlayer1;
public var iPlayer2;
public var bReplay;
public var iStrip;
public var iSwimsuitStateL;
public var iSwimsuitStateR;
public var iAnimationPhase;
public var bWalking;
public var arrCharColours:Array;
public var arrAnimation:Array;
public var arrReplayArray:Array;
public var arrReplayTmp:Array;
public var iFrameCount;
public var objAni;
public var myColor:ColorTransform;
public var iCurrentFrameShown;
public var bAnimationLOCK;
public var myInterval2:uint;
public var bExoticSkins;
public var bExoticHair;
public var bSuperSize;
public var bTerminateAnimation;
public var bFinalAnimation;
public var arrDialogs:Array;
public var arrQuestionIDs:Array;
public var arrQuestion1:Array;
public var arrQuestion2:Array;
public var arrQuestion3:Array;
public var iCardReward;
public var arrConsoleHistory:Array;
public var iInfluencePlayer:Number;
public var iInfluenceRed:Number;
public var iInfluenceGreen:Number;
public var iInfluenceBlue:Number;
public var iInfluenceBlack:Number;
public var iInfluencePurple:Number;
public var iInfluenceGray:Number;
public var bChar1Down;
public var bChar2Down;
public var bChar3Down;
public var bChar4Down;
public var iShopDeckFocus;
public var iShopAvailableFocus;
public var arrShopAvailableCards:Array;
public var myTween:Tween;
public var card1Tween:Tween;
public var card2Tween:Tween;
public var card3Tween:Tween;
public var iCardsPlayedThisTurn;
public var dmgTween:Tween;
public var hihiTween:Tween;
public var arrOppDeck:Array;
public var arrDiscardPile:Array;
public var arrOppDiscardPile:Array;
public var arrStats:Array;
public var arrHand:Array;
public var iTurn;
public var iWinner;
public var iChosenCard:Number;
public var bAIForceEndTurn:Boolean;
public var arrCardVal:Array;
public var arrAdvCost:Array;
public var iTreshold;
public var boardSlideTween:Tween;
public var menuSlideTween:Tween;
public var iPlayerCombat;
public var iOpponentNr;
public var bLevelSwitch;
public var bConflict;
public var iOpponentTotal;
public var iBonusDmg;
public var bMaxDmgThisTurn;
public var iCurrentTile;
public var bEndGame;
public var iCitySizeBalanceShift;
public var iCurrentQuad;
public var iCurrentLocation;
public var iCurrentRotation;
public var objTile:MovieClip;
public var iPhase;
public var iCountDown;
public var highestPriority;
public var iTradeLevel;
public var arrTiles:Array;
public var arrTileObjects:Array;
public var arrTileContent:Array;
public var arrContestion:Array;
public var arrTileOwner:Array;
public var arrTileLayout:Array;
public var arrCityTile:Array;
public var arrCityQuad:Array;
public var arrBuffs:Array;
public var arrPriority:Array;
public var myInterval:uint;
public var arrMapTileDeck;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
var _local2:* = this.loaderInfo.url;
var _local3:* = false;
if (_local2.search("deviantart.net") != -1){
_local3 = true;
};
if (_local3 == true){
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
};
if (bSaveExists == true){
btnLoadGame.alpha = 1;
btnLoadGame.addEventListener(MouseEvent.CLICK, loadGame);
};
}
public function startGame(_arg1:MouseEvent):void{
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
btnLoadGame.removeEventListener(MouseEvent.CLICK, loadGame);
btnIllida.removeEventListener(MouseEvent.CLICK, illida);
gotoAndStop(2);
}
public function loadGame(_arg1:MouseEvent):void{
btnLoadGame.removeEventListener(MouseEvent.CLICK, loadGame);
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
loadEleptoclypseData();
btnIllida.removeEventListener(MouseEvent.CLICK, illida);
gotoAndStop(2);
}
public function illida(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://illionore.deviantart.com/");
navigateToURL(_local2, "_blank");
}
public function saveEleptoclypseData():void{
}
public function loadEleptoclypseData():void{
iLevel = saveData.data.iLevel;
iCurrentPlayer = iLevel;
arrInfluence = saveData.data.arrInfluence;
arrDeck = saveData.data.arrDeck;
trace(("Level loaded:" + iLevel));
trace(("arrInfluence load: " + arrInfluence));
trace(("arrDeck load: " + arrDeck));
}
public function clearEleptoclypseData():void{
saveData.clear();
}
public function startAnimation():void{
bFinalAnimation = false;
iSwimsuitStateL = 1;
iSwimsuitStateR = 1;
iPlayer1 = iLevel;
swimsuit_ground1.alpha = 0;
swimsuit_ground2.alpha = 0;
iAnimationPhase = 0;
bReplay = false;
bWalking = false;
arrAnimation = [];
arrReplayArray = [];
if (iOpponentNr == 5){
getRandomColour("skin", 208, 100, 100, 247, 231, 231);
getRandomColour("swim", 6, 126, 28, 33, 213, 67);
getRandomColour("hair", 0, 0, 0, 0, 0, 0);
} else {
if (iOpponentNr == 6){
getRandomColour("skin", 197, 143, 80, 225, 198, 151);
getRandomColour("swim", 30, 37, 162, 137, 142, 233);
getRandomColour("hair", 0, 0, 0, 0, 0, 0);
} else {
if (iOpponentNr == 7){
getRandomColour("skin", 111, 57, 25, 196, 109, 74);
getRandomColour("swim", 207, 9, 9, 247, 78, 78);
getRandomColour("hair", 0, 0, 0, 0, 0, 0);
} else {
if (iOpponentNr == 8){
getRandomColour("skin", 111, 138, 139, 133, 165, 150);
getRandomColour("swim", 16, 16, 16, 66, 66, 66);
getRandomColour("hair", 0, 0, 0, 0, 0, 0);
} else {
if (iOpponentNr == 9){
getRandomColour("skin", 208, 124, 124, 247, 231, 231);
getRandomColour("swim", 131, 131, 131, 131, 131, 131);
getRandomColour("hair", 0, 0, 0, 0, 0, 0);
} else {
if (iOpponentNr == 1){
arrCharColours[0] = [198, 166, 138, 73, 50, 29, 207, 2, 95];
};
};
};
};
};
};
showAnimationNr(1);
bTerminateAnimation = false;
}
public function exitAnimation():void{
var _local1:*;
bAnimationLOCK = true;
bTerminateAnimation = true;
iAnimationPhase = 0;
if (objAni != null){
if ((((objAni.scaleX == -1)) || ((objAni.scaleX == -2)))){
_local1 = iSwimsuitStateL;
iSwimsuitStateL = iSwimsuitStateR;
iSwimsuitStateR = _local1;
};
removeChild(objAni);
objAni = null;
};
swimsuit_ground1.alpha = 0;
swimsuit_ground2.alpha = 0;
}
public function startRandomTickleAnimation(_arg1):void{
var _local2:* = Math.floor((Math.random() * 2));
if (_arg1 == false){
showAnimationNr((11 + _local2));
} else {
showAnimationNr((21 + _local2));
};
}
public function getRandomColour(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7):void{
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
if (_arg1 == "hair"){
_local17 = Math.floor((Math.random() * 3));
if (_local17 == 0){
_local8 = 189;
_local9 = 6;
_local10 = 27;
_local11 = 229;
_local12 = 107;
_local13 = 58;
} else {
if (_local17 == 1){
_local8 = 238;
_local9 = 219;
_local10 = 11;
_local11 = 0xFF;
_local12 = 0xFF;
_local13 = 0xFF;
} else {
_local8 = 53;
_local9 = 25;
_local10 = 3;
_local11 = 84;
_local12 = 33;
_local13 = 8;
};
};
} else {
_local8 = _arg2;
_local9 = _arg3;
_local10 = _arg4;
_local11 = _arg5;
_local12 = _arg6;
_local13 = _arg7;
};
_local14 = (Math.floor((Math.random() * (_local11 - _local8))) + _local8);
_local15 = (Math.floor((Math.random() * (_local12 - _local9))) + _local9);
_local16 = (Math.floor((Math.random() * (_local13 - _local10))) + _local10);
if ((((_arg1 == "skin")) && ((((iOpponentNr == 5)) || ((iOpponentNr == 9)))))){
if (_local14 < _local16){
_local16 = 100;
};
_local16 = _local15;
};
if (_arg1 == "skin"){
if (bExoticSkins == false){
arrCharColours[0][0] = _local14;
arrCharColours[0][1] = _local15;
arrCharColours[0][2] = _local16;
} else {
arrCharColours[0][0] = Math.floor((Math.random() * 0xFF));
arrCharColours[0][1] = Math.floor((Math.random() * 0xFF));
arrCharColours[0][2] = Math.floor((Math.random() * 0xFF));
};
} else {
if (_arg1 == "hair"){
if (bExoticHair == false){
arrCharColours[0][3] = _local14;
arrCharColours[0][4] = _local15;
arrCharColours[0][5] = _local16;
} else {
arrCharColours[0][3] = Math.floor((Math.random() * 0xFF));
arrCharColours[0][4] = Math.floor((Math.random() * 0xFF));
arrCharColours[0][5] = Math.floor((Math.random() * 0xFF));
};
} else {
arrCharColours[0][6] = _local14;
arrCharColours[0][7] = _local15;
arrCharColours[0][8] = _local16;
};
};
}
public function getAnimation(_arg1, _arg2, _arg3, _arg4):void{
var _local5:* = 0;
if (objAni != null){
if ((((objAni.scaleX == -1)) || ((objAni.scaleX == -2)))){
_local5 = iSwimsuitStateL;
iSwimsuitStateL = iSwimsuitStateR;
iSwimsuitStateR = _local5;
};
removeChild(objAni);
objAni = null;
};
var _local6:* = false;
if (_arg1 == "walking"){
_local6 = true;
objAni = new ani_walking();
iFrameCount = 3;
bWalking = true;
} else {
if (_arg1 == "idle"){
_local6 = true;
objAni = new ani_idle();
iFrameCount = 7;
} else {
if (_arg1 == "dodge"){
_local6 = true;
objAni = new ani_dodge();
iFrameCount = 7;
} else {
if (_arg1 == "pull"){
_local6 = true;
objAni = new ani_pull();
iFrameCount = 7;
} else {
if (_arg1 == "pullup"){
_local6 = true;
objAni = new ani_pullup();
iFrameCount = 7;
} else {
if (_arg1 == "butt"){
_local6 = true;
objAni = new ani_butt();
iFrameCount = 7;
} else {
if (_arg1 == "victory"){
_local6 = true;
objAni = new ani_victory();
iFrameCount = 7;
bFinalAnimation = true;
} else {
if (_arg1 == "strip"){
_local6 = true;
objAni = new ani_strip();
iFrameCount = 7;
};
};
};
};
};
};
};
};
if (_local6 == false){
trace(("Tried to load invalid animation: " + _arg1));
} else {
objAni.x = 535;
objAni.y = 551;
if (_arg4 == false){
if (bSuperSize == true){
objAni.scaleX = 2;
objAni.scaleY = 2;
swimsuit_ground1.scaleX = 2;
swimsuit_ground1.scaleY = 2;
swimsuit_ground2.scaleX = 2;
swimsuit_ground2.scaleY = 2;
} else {
objAni.scaleX = 1;
objAni.scaleY = 1;
swimsuit_ground1.scaleX = 1;
swimsuit_ground1.scaleY = 1;
swimsuit_ground2.scaleX = 1;
swimsuit_ground2.scaleY = 1;
};
} else {
_local5 = iSwimsuitStateL;
iSwimsuitStateL = iSwimsuitStateR;
iSwimsuitStateR = _local5;
if (bSuperSize == true){
objAni.scaleX = -2;
objAni.scaleY = 2;
swimsuit_ground1.scaleX = 2;
swimsuit_ground1.scaleY = 2;
swimsuit_ground2.scaleX = 2;
swimsuit_ground2.scaleY = 2;
} else {
objAni.scaleX = -1;
objAni.scaleY = 1;
swimsuit_ground1.scaleX = 1;
swimsuit_ground1.scaleY = 1;
swimsuit_ground2.scaleX = 1;
swimsuit_ground2.scaleY = 1;
};
};
addChild(objAni);
applyColoursToSprites(_arg2, _arg3, _arg4);
iCurrentFrameShown = 1;
showFrame(1, true);
showFrame(2, false);
showFrame(3, false);
if (iFrameCount > 3){
showFrame(4, false);
showFrame(5, false);
showFrame(6, false);
showFrame(7, false);
};
};
setChildIndex(demoSprite, (numChildren - 1));
}
public function getSwimsuitAlpha(_arg1, _arg2):Number{
if (_arg1 == 0){
return (0);
};
return (_arg2);
}
public function showFrame(_arg1, _arg2):void{
var _local3:* = 0;
if (bTerminateAnimation == false){
if (_arg2 == true){
_local3 = 1;
iCurrentFrameShown = _arg1;
if (bWalking == true){
objAni.skinL1.x = (objAni.skinL1.x + 40);
objAni.hairL1.x = (objAni.hairL1.x + 40);
objAni.swimColL1.x = (objAni.swimColL1.x + 40);
objAni.swimLinesL1.x = (objAni.swimLinesL1.x + 40);
objAni.lines1.x = (objAni.lines1.x + 40);
objAni.lines1b.x = (objAni.lines1b.x - 40);
objAni.skinR1.x = (objAni.skinR1.x - 40);
objAni.hairR1.x = (objAni.hairR1.x - 40);
objAni.swimColR1.x = (objAni.swimColR1.x - 40);
objAni.swimLinesR1.x = (objAni.swimLinesR1.x - 40);
objAni.skinL2.x = (objAni.skinL2.x + 40);
objAni.hairL2.x = (objAni.hairL2.x + 40);
objAni.swimColL2.x = (objAni.swimColL2.x + 40);
objAni.swimLinesL2.x = (objAni.swimLinesL2.x + 40);
objAni.lines2.x = (objAni.lines2.x + 40);
objAni.lines2b.x = (objAni.lines2b.x - 40);
objAni.skinR2.x = (objAni.skinR2.x - 40);
objAni.hairR2.x = (objAni.hairR2.x - 40);
objAni.swimColR2.x = (objAni.swimColR2.x - 40);
objAni.swimLinesR2.x = (objAni.swimLinesR2.x - 40);
objAni.skinL3.x = (objAni.skinL3.x + 40);
objAni.hairL3.x = (objAni.hairL3.x + 40);
objAni.swimColL3.x = (objAni.swimColL3.x + 40);
objAni.swimLinesL3.x = (objAni.swimLinesL3.x + 40);
objAni.lines3.x = (objAni.lines3.x + 40);
objAni.lines3b.x = (objAni.lines3b.x - 40);
objAni.skinR3.x = (objAni.skinR3.x - 40);
objAni.hairR3.x = (objAni.hairR3.x - 40);
objAni.swimColR3.x = (objAni.swimColR3.x - 40);
objAni.swimLinesR3.x = (objAni.swimLinesR3.x - 40);
};
};
if (_arg1 == 1){
objAni.skinL1.alpha = _local3;
objAni.hairL1.alpha = _local3;
objAni.swimColL1.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.swimLinesL1.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.lines1.alpha = _local3;
objAni.skinR1.alpha = _local3;
objAni.hairR1.alpha = _local3;
objAni.swimColR1.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
objAni.swimLinesR1.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
if (bWalking == true){
objAni.lines1b.alpha = _local3;
};
} else {
if (_arg1 == 2){
objAni.skinL2.alpha = _local3;
objAni.hairL2.alpha = _local3;
objAni.swimColL2.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.swimLinesL2.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.lines2.alpha = _local3;
objAni.skinR2.alpha = _local3;
objAni.hairR2.alpha = _local3;
objAni.swimColR2.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
objAni.swimLinesR2.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
if (bWalking == true){
objAni.lines2b.alpha = _local3;
};
} else {
if (_arg1 == 3){
objAni.skinL3.alpha = _local3;
objAni.hairL3.alpha = _local3;
objAni.swimColL3.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.swimLinesL3.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.lines3.alpha = _local3;
objAni.skinR3.alpha = _local3;
objAni.hairR3.alpha = _local3;
objAni.swimColR3.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
objAni.swimLinesR3.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
if (bWalking == true){
objAni.lines3b.alpha = _local3;
};
} else {
if (_arg1 == 4){
objAni.skinL4.alpha = _local3;
objAni.hairL4.alpha = _local3;
objAni.swimColL4.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.swimLinesL4.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.lines4.alpha = _local3;
objAni.skinR4.alpha = _local3;
objAni.hairR4.alpha = _local3;
objAni.swimColR4.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
objAni.swimLinesR4.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
} else {
if (_arg1 == 5){
objAni.skinL5.alpha = _local3;
objAni.hairL5.alpha = _local3;
objAni.swimColL5.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.swimLinesL5.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.lines5.alpha = _local3;
objAni.skinR5.alpha = _local3;
objAni.hairR5.alpha = _local3;
objAni.swimColR5.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
objAni.swimLinesR5.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
} else {
if (_arg1 == 6){
objAni.skinL6.alpha = _local3;
objAni.hairL6.alpha = _local3;
objAni.swimColL6.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.swimLinesL6.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.lines6.alpha = _local3;
objAni.skinR6.alpha = _local3;
objAni.hairR6.alpha = _local3;
objAni.swimColR6.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
objAni.swimLinesR6.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
} else {
if (_arg1 == 7){
objAni.skinL7.alpha = _local3;
objAni.hairL7.alpha = _local3;
objAni.swimColL7.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.swimLinesL7.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateL);
objAni.lines7.alpha = _local3;
objAni.skinR7.alpha = _local3;
objAni.hairR7.alpha = _local3;
objAni.swimColR7.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
objAni.swimLinesR7.alpha = getSwimsuitAlpha(_local3, iSwimsuitStateR);
};
};
};
};
};
};
};
};
}
public function applyColoursToSprites(_arg1, _arg2, _arg3):void{
var _local4:* = 0xFF;
var _local5:* = 225;
var _local6:* = 225;
myColor = new ColorTransform(0, 0, 0, 1, arrCharColours[_arg1][0], arrCharColours[_arg1][1], arrCharColours[_arg1][2], 0);
objAni.skinL1.transform.colorTransform = myColor;
if (iFrameCount > 1){
objAni.skinL2.transform.colorTransform = myColor;
};
if (iFrameCount > 2){
objAni.skinL3.transform.colorTransform = myColor;
};
if (iFrameCount > 3){
objAni.skinL4.transform.colorTransform = myColor;
};
if (iFrameCount > 4){
objAni.skinL5.transform.colorTransform = myColor;
};
if (iFrameCount > 5){
objAni.skinL6.transform.colorTransform = myColor;
};
if (iFrameCount > 6){
objAni.skinL7.transform.colorTransform = myColor;
};
myColor = new ColorTransform(0, 0, 0, 1, arrCharColours[_arg1][3], arrCharColours[_arg1][4], arrCharColours[_arg1][5], 0);
objAni.hairL1.transform.colorTransform = myColor;
if (iFrameCount > 1){
objAni.hairL2.transform.colorTransform = myColor;
};
if (iFrameCount > 2){
objAni.hairL3.transform.colorTransform = myColor;
};
if (iFrameCount > 3){
objAni.hairL4.transform.colorTransform = myColor;
};
if (iFrameCount > 4){
objAni.hairL5.transform.colorTransform = myColor;
};
if (iFrameCount > 5){
objAni.hairL6.transform.colorTransform = myColor;
};
if (iFrameCount > 6){
objAni.hairL7.transform.colorTransform = myColor;
};
myColor = new ColorTransform(0, 0, 0, 1, arrCharColours[_arg1][6], arrCharColours[_arg1][7], arrCharColours[_arg1][8], 0);
objAni.swimColL1.transform.colorTransform = myColor;
if (iFrameCount > 1){
objAni.swimColL2.transform.colorTransform = myColor;
};
if (iFrameCount > 2){
objAni.swimColL3.transform.colorTransform = myColor;
};
if (iFrameCount > 3){
objAni.swimColL4.transform.colorTransform = myColor;
};
if (iFrameCount > 4){
objAni.swimColL5.transform.colorTransform = myColor;
};
if (iFrameCount > 5){
objAni.swimColL6.transform.colorTransform = myColor;
};
if (iFrameCount > 6){
objAni.swimColL7.transform.colorTransform = myColor;
};
myColor = new ColorTransform(0, 0, 0, 1, arrCharColours[_arg2][0], arrCharColours[_arg2][1], arrCharColours[_arg2][2], 0);
objAni.skinR1.transform.colorTransform = myColor;
objAni.skinR2.transform.colorTransform = myColor;
objAni.skinR3.transform.colorTransform = myColor;
if (iFrameCount > 3){
objAni.skinR4.transform.colorTransform = myColor;
};
if (iFrameCount > 4){
objAni.skinR5.transform.colorTransform = myColor;
};
if (iFrameCount > 5){
objAni.skinR6.transform.colorTransform = myColor;
};
if (iFrameCount > 6){
objAni.skinR7.transform.colorTransform = myColor;
};
myColor = new ColorTransform(0, 0, 0, 1, arrCharColours[_arg2][3], arrCharColours[_arg2][4], arrCharColours[_arg2][5], 0);
objAni.hairR1.transform.colorTransform = myColor;
objAni.hairR2.transform.colorTransform = myColor;
objAni.hairR3.transform.colorTransform = myColor;
if (iFrameCount > 3){
objAni.hairR4.transform.colorTransform = myColor;
};
if (iFrameCount > 4){
objAni.hairR5.transform.colorTransform = myColor;
};
if (iFrameCount > 5){
objAni.hairR6.transform.colorTransform = myColor;
};
if (iFrameCount > 6){
objAni.hairR7.transform.colorTransform = myColor;
};
myColor = new ColorTransform(0, 0, 0, 1, arrCharColours[_arg2][6], arrCharColours[_arg2][7], arrCharColours[_arg2][8], 0);
objAni.swimColR1.transform.colorTransform = myColor;
objAni.swimColR2.transform.colorTransform = myColor;
objAni.swimColR3.transform.colorTransform = myColor;
if (iFrameCount > 3){
objAni.swimColR4.transform.colorTransform = myColor;
};
if (iFrameCount > 4){
objAni.swimColR5.transform.colorTransform = myColor;
};
if (iFrameCount > 5){
objAni.swimColR6.transform.colorTransform = myColor;
};
if (iFrameCount > 6){
objAni.swimColR7.transform.colorTransform = myColor;
};
}
public function flipSprite():void{
var _local1:*;
if (objAni.scaleX == 1){
applyColoursToSprites(iPlayer2, iPlayer1, true);
objAni.scaleX = -1;
_local1 = iSwimsuitStateL;
iSwimsuitStateL = iSwimsuitStateR;
iSwimsuitStateR = _local1;
} else {
applyColoursToSprites(iPlayer1, iPlayer2, false);
objAni.scaleX = 1;
_local1 = iSwimsuitStateL;
iSwimsuitStateL = iSwimsuitStateR;
iSwimsuitStateR = _local1;
};
if (iCurrentFrameShown == 1){
showFrame(1, true);
} else {
showFrame(1, false);
};
if (iCurrentFrameShown == 2){
showFrame(2, true);
} else {
showFrame(2, false);
};
if (iCurrentFrameShown == 3){
showFrame(3, true);
} else {
showFrame(3, false);
};
if (iFrameCount > 3){
if (iCurrentFrameShown == 4){
showFrame(4, true);
} else {
showFrame(4, false);
};
if (iCurrentFrameShown == 5){
showFrame(5, true);
} else {
showFrame(5, false);
};
if (iCurrentFrameShown == 6){
showFrame(6, true);
} else {
showFrame(6, false);
};
if (iCurrentFrameShown == 7){
showFrame(7, true);
} else {
showFrame(7, false);
};
};
}
public function myTimer2():void{
var _local1:* = 0;
if (iAnimationPhase == 100){
return;
};
if (iAnimationPhase != 0){
if (arrAnimation.length > 0){
showFrame(iCurrentFrameShown, false);
iCurrentFrameShown = arrAnimation.splice(0, 1);
showFrame(iCurrentFrameShown, true);
} else {
if (iAnimationPhase == 1){
if (iWinner == 1){
iAnimationPhase = 100;
showWinLoseLabel();
fadeAnimationOut();
iWinner = 8;
} else {
if (iWinner == 2){
iAnimationPhase = 100;
showWinLoseLabel();
fadeAnimationOut();
iWinner = 8;
} else {
if (bFinalAnimation == true){
iAnimationPhase = 0;
} else {
bAnimationLOCK = true;
bWalking = false;
iAnimationPhase = 2;
iCurrentFrameShown = 1;
getAnimation("idle", iPlayer1, iPlayer2, false);
bAnimationLOCK = false;
};
};
};
} else {
if (bReplay == true){
if (arrReplayTmp.length == 0){
bReplay = false;
} else {
showAnimationNr(arrReplayTmp[0]);
arrReplayTmp.splice(0, 1);
};
} else {
if (iAnimationPhase == 2){
showFrame(iCurrentFrameShown, false);
if (Math.floor((Math.random() * 100)) < 5){
iCurrentFrameShown = (Math.ceil((Math.random() * 2)) + 4);
} else {
iCurrentFrameShown = Math.ceil((Math.random() * 4));
};
showFrame(iCurrentFrameShown, true);
};
};
};
};
};
}
public function showAnimationNr(_arg1):void{
if (_arg1 == 1){
bAnimationLOCK = true;
getAnimation("walking", iPlayer1, iPlayer2, false);
arrAnimation = [2, 3, 2, 1, 2, 3];
iAnimationPhase = 1;
bAnimationLOCK = false;
} else {
if (_arg1 == 11){
bAnimationLOCK = true;
bWalking = false;
getAnimation("pull", iPlayer1, iPlayer2, false);
arrAnimation = [1, 2, 3, 4, 5, 3, 5, 4, 3, 5, 4, 5, 3, 6, 7];
iAnimationPhase = 1;
bAnimationLOCK = false;
} else {
if (_arg1 == 21){
bAnimationLOCK = true;
bWalking = false;
getAnimation("pull", iPlayer2, iPlayer1, true);
arrAnimation = [1, 2, 3, 4, 5, 3, 5, 4, 3, 5, 4, 5, 3, 6, 7];
iAnimationPhase = 1;
bAnimationLOCK = false;
} else {
if (_arg1 == 12){
bAnimationLOCK = true;
bWalking = false;
getAnimation("pullup", iPlayer1, iPlayer2, false);
arrAnimation = [1, 2, 3, 4, 5, 3, 5, 4, 3, 5, 4, 5, 3, 6, 7];
iAnimationPhase = 1;
bAnimationLOCK = false;
} else {
if (_arg1 == 22){
bAnimationLOCK = true;
bWalking = false;
getAnimation("pullup", iPlayer2, iPlayer1, true);
arrAnimation = [1, 2, 3, 4, 5, 3, 5, 4, 3, 5, 4, 5, 3, 6, 7];
iAnimationPhase = 1;
bAnimationLOCK = false;
};
};
};
};
};
if (bReplay == false){
arrReplayArray.push(_arg1);
};
}
public function showConsole():void{
wndConsole.y = 146;
wndConsole.alpha = 1;
}
public function hideConsole():void{
wndConsole.alpha = 0;
wndConsole.y = -1000;
}
public function console(_arg1):void{
}
public function consoleApply():void{
}
public function askQuestion(_arg1):void{
console(("Ask question " + _arg1));
arrDialogs[(iLevel - 1)].splice(arrQuestionIDs[arrQuestionIDs[_arg1]], 1);
if (_arg1 == 0){
textCloudFinished.txtText.text = arrQuestion1[0];
textCloud2.txtText.text = arrQuestion1[1];
textCloud3.txtText.text = arrQuestion1[2];
textCloud4.txtText.text = arrQuestion1[3];
iCardReward = arrQuestion1[4];
trace(("provide card: " + iCardReward));
} else {
if (_arg1 == 1){
textCloudFinished.txtText.text = arrQuestion2[0];
textCloud2.txtText.text = arrQuestion2[1];
textCloud3.txtText.text = arrQuestion2[2];
textCloud4.txtText.text = arrQuestion2[3];
iCardReward = arrQuestion2[4];
trace(("provide card: " + iCardReward));
} else {
if (_arg1 == 2){
textCloudFinished.txtText.text = arrQuestion3[0];
textCloud2.txtText.text = arrQuestion3[1];
textCloud3.txtText.text = arrQuestion3[2];
textCloud4.txtText.text = arrQuestion3[3];
iCardReward = arrQuestion3[4];
trace(("provide card: " + iCardReward));
};
};
};
textCloud0.btnQuestion3.alpha = 0;
textCloud0.btnQuestion2.alpha = 0;
textCloud0.btnQuestion1.alpha = 0;
textCloudFinished.y = textCloud0.y;
}
public function doDialog(){
var _local2:*;
var _local3:*;
var _local4:*;
console("Dialogue");
slideBoard(false);
wndTradeMenu.x = -900;
arrQuestionIDs = [0, 0, 0];
iCardReward = 0;
var _local1:* = arrDialogs[(iLevel - 1)].length;
if (_local1 > 3){
_local1 = 3;
};
if (_local1 > 0){
_local2 = 0;
while (_local2 < _local1) {
_local3 = false;
while (_local3 == false) {
_local4 = Math.floor((Math.random() * arrDialogs[(iLevel - 1)].length));
trace(("length checked of array (should be 30): " + arrDialogs[(iLevel - 1)].length));
if (((!((arrDialogs[(iLevel - 1)][_local4] == arrQuestionIDs[0]))) && (!((arrDialogs[(iLevel - 1)][_local4] == arrQuestionIDs[1]))))){
trace((("text value: " + arrDialogs[(iLevel - 1)][_local4]) + " <"));
arrQuestionIDs[_local2] = arrDialogs[(iLevel - 1)][_local4];
_local3 = true;
};
if (_local2 >= arrDialogs[(iLevel - 1)].length){
trace("Not enough positions. Exit=forced without value");
_local3 = true;
};
};
_local2++;
};
} else {
trace("TO DO: warning! no questions left! skip this?");
};
arrQuestion1 = ["", "", "", "", 0];
arrQuestion2 = ["", "", "", "", 0];
arrQuestion3 = ["", "", "", "", 0];
if (arrQuestionIDs[0] != 0){
arrQuestion1 = getDialogText(arrQuestionIDs[0]);
};
if (arrQuestionIDs[1] != 0){
arrQuestion2 = getDialogText(arrQuestionIDs[1]);
};
if (arrQuestionIDs[2] != 0){
arrQuestion3 = getDialogText(arrQuestionIDs[2]);
};
if (arrQuestionIDs[0] != 0){
textCloud0.y = 65;
if (arrQuestionIDs[0] != 0){
textCloud0.btnQuestion1.alpha = 1;
textCloud0.btnQuestion1.txtText.text = arrQuestion1[0];
} else {
textCloud0.btnQuestion1.alpha = 0.2;
textCloud0.btnQuestion1.txtText.text = "";
};
if (arrQuestionIDs[1] != 0){
textCloud0.btnQuestion2.alpha = 1;
textCloud0.btnQuestion2.txtText.text = arrQuestion2[0];
} else {
textCloud0.btnQuestion2.alpha = 0.2;
textCloud0.btnQuestion2.txtText.text = "";
};
if (arrQuestionIDs[2] != 0){
textCloud0.btnQuestion3.alpha = 1;
textCloud0.btnQuestion3.txtText.text = arrQuestion3[0];
} else {
textCloud0.btnQuestion3.alpha = 0.2;
textCloud0.btnQuestion3.txtText.text = "";
};
} else {
trace("ALL QUESTIONS ASKED! TO DO...");
wndTradeMenu.x = 0;
};
}
public function getDialogText(_arg1):Array{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:Array = [];
_local2 = "";
_local3 = "";
_local4 = "";
_local5 = "";
_local6 = 1;
_local7.push(_local2);
_local7.push(_local3);
_local7.push(_local4);
_local7.push(_local5);
_local7.push(_local6);
return (_local7);
}
public function resetCharacter(_arg1):void{
console(("Reset Character " + _arg1));
var _local2:* = 0;
while (_local2 < 7) {
arrStats[_arg1][_local2] = arrStats[(_arg1 + 5)][_local2];
_local2++;
};
}
public function showDamage(_arg1, _arg2, _arg3, _arg4, _arg5):void{
console("Show Damage");
if (_arg5 == true){
dmgCloud.x = 320;
} else {
dmgCloud.x = 580;
};
dmgTween.stop();
if (_arg4 == true){
dmgCloud.labelEvaded.text = "Evaded";
dmgCloud.txtDmgEvade.text = (("(" + _arg1) + ")");
dmgCloud.labelCrit.text = "";
dmgCloud.txtDmgCrit.text = "";
dmgCloud.txtDmg.text = "";
dmgCloud.txtDmgBlocked.text = "";
} else {
if (_arg3 == true){
dmgCloud.labelEvaded.text = "";
dmgCloud.txtDmgEvade.text = "";
dmgCloud.labelCrit.text = "CRITICAL HIT!";
dmgCloud.txtDmgCrit.text = ("-" + _arg1);
dmgCloud.txtDmg.text = "";
if (_arg2 > 0){
dmgCloud.txtDmgBlocked.text = (("(" + _arg2) + " blocked)");
} else {
dmgCloud.txtDmgBlocked.text = "";
};
} else {
dmgCloud.labelEvaded.text = "";
dmgCloud.txtDmgEvade.text = "";
dmgCloud.labelCrit.text = "";
dmgCloud.txtDmgCrit.text = "";
dmgCloud.txtDmg.text = ("-" + _arg1);
if (_arg2 > 0){
dmgCloud.txtDmgBlocked.text = (("(" + _arg2) + " blocked)");
} else {
dmgCloud.txtDmgBlocked.text = "";
};
};
};
dmgTween = new Tween(dmgCloud, "y", Strong.easeIn, 250, -90, 2.5, true);
dmgTween.FPS = 40;
}
public function updateStats(_arg1:Number):void{
var _local2:Object;
var _local3:Object;
var _local4:* = 0;
if (_arg1 < 5){
_local2 = hoverUI.infoCardPlayer;
_local3 = hoverUI.advanceBar1;
} else {
_local2 = hoverUI.infoCardOp;
_local3 = hoverUI.advanceBar2;
};
_local2.txtStat1.text = ((((qDef(_arg1) + "\n") + qAdv(_arg1)) + "\n") + qEnd(_arg1));
_local2.txtStat2.text = (((qEvade(_arg1) + "%\n") + qCrit(_arg1)) + "%");
_local2.txtStat3.text = ((qRegen(_arg1) + "/turn\n") + qMaxAdv(_arg1));
if (_arg1 == 1){
_local2.txtName.text = "Player";
hoverUI.txtHP1.text = qEnd(_arg1);
} else {
hoverUI.txtHP2.text = qEnd(_arg1);
};
_local4 = qMaxAdv(_arg1);
if (_local4 == 8){
_local3.advanceMax.gotoAndStop(1);
} else {
if (_local4 == 16){
_local3.advanceMax.gotoAndStop(3);
} else {
_local3.advanceMax.gotoAndStop(2);
};
};
if (_arg1 < 5){
_local3.advanceTag.gotoAndStop((arrStats[_arg1][1] + 1));
} else {
_local3.advanceTag.gotoAndStop((arrStats[0][1] + 1));
};
}
public function disableCharacterSwitcherButtons():void{
wndCharacterSwitcher.btnPeggy.alpha = 0.2;
wndCharacterSwitcher.btnJenny.alpha = 0.2;
wndCharacterSwitcher.btnAmanda.alpha = 0.2;
wndCharacterSwitcher.btnJennifer.alpha = 0.2;
}
public function updateCharacterSwitcher():void{
if (bChar1Down == true){
wndCharacterSwitcher.btnPeggy.alpha = 0.2;
} else {
wndCharacterSwitcher.btnPeggy.alpha = 1;
};
if (bChar2Down == true){
wndCharacterSwitcher.btnJenny.alpha = 0.2;
} else {
wndCharacterSwitcher.btnJenny.alpha = 1;
};
if (bChar3Down == true){
wndCharacterSwitcher.btnAmanda.alpha = 0.2;
} else {
wndCharacterSwitcher.btnAmanda.alpha = 1;
};
if (bChar4Down == true){
wndCharacterSwitcher.btnJennifer.alpha = 0.2;
} else {
wndCharacterSwitcher.btnJennifer.alpha = 1;
};
if (iLevel == 1){
wndCharacterSwitcher.btnPeggy.alpha = 0.2;
};
if (iLevel == 2){
wndCharacterSwitcher.btnJenny.alpha = 0.2;
};
if (iLevel == 3){
wndCharacterSwitcher.btnAmanda.alpha = 0.2;
};
if (iLevel == 4){
wndCharacterSwitcher.btnJennifer.alpha = 0.2;
};
updateStats(iLevel);
showHand();
}
public function createOpponent(_arg1):void{
var _local2:String;
var _local3:String;
console("Create opponent");
var _local4:Array = ["Flebby", "Wlubby", "Flekky", "Minny", "Mouy", "Linna", "Sei", "Yeyy", "Newwt", "Ipki", "Ikka", "Jensy", "Melfy", "Traisi", "Wensi", "Iie", "Zoie", "Seffie", "Meywie", "Lilli", "Repja", "Lowsi", "Eefie", "Yowji", "Lelli", "Demi", "Somi", "Sonji", "Dafli", "Simsi", "Muffy", "Bibi", "Apli", "Sneffa", "Titti", "Taity", "Totti", "Wibbli", "Fussi", "Tutty", "Obi", "Jamske", "Munski", "Tupski", "Bunsja", "Latsja", "Nopju", "Topsi", "Aitwu", "Missi", "Sarra"];
var _local5:Array = ["Shrib", "Smmit", "Screp", "Tupp", "Twiep", "Tinks", "Verk", "Vinnk", "Vlaks", "Wukk", "Warp", "Worr", "Zapp", "Zeft", "Zirk", "Affak", "Artpf", "Arki", "Breft", "Buffa", "Banaa", "Dapmi", "Doops", "Dubba", "Fleppr", "Frops", "Fumbl", "Gopps", "Grapm", "Gunst", "Hekkt", "Hamprt", "Hobst", "Jumps", "Johko", "Jisnt", "Klek", "Karrm", "Khahn", "Lbfah", "Loohs", "Lukmt", "Mohn", "Mapst", "Mehmn", "Nommn", "Nonom", "Napkf", "Paops", "Pemps", "Prepk", "Rars", "Ropms", "Rewpk"];
_local2 = _local4[Math.floor((Math.random() * _local4.length))];
_local3 = _local5[Math.floor((Math.random() * _local5.length))];
hoverUI.infoCardOp.headerColorBar.gotoAndStop((_arg1 - 3));
arrStats[0][5] = 4;
arrStats[0][6] = 12;
if (_arg1 == 5){
_local3 = (_local3 + "wlob");
arrStats[0][0] = 3;
arrStats[0][1] = 4;
arrStats[0][2] = 40;
arrStats[0][3] = 15;
arrStats[0][4] = 15;
} else {
if (_arg1 == 6){
_local3 = ("Wiz" + _local3.toLowerCase());
arrStats[0][0] = 2;
arrStats[0][1] = 4;
arrStats[0][2] = 70;
arrStats[0][3] = 10;
arrStats[0][4] = 20;
} else {
if (_arg1 == 7){
_local3 = ("Firr" + _local3.toLowerCase());
arrStats[0][0] = 1;
arrStats[0][1] = 8;
arrStats[0][2] = 60;
arrStats[0][3] = 10;
arrStats[0][4] = 25;
} else {
if (_arg1 == 8){
_local3 = (_local3 + "bly");
arrStats[0][0] = 2;
arrStats[0][1] = 2;
arrStats[0][2] = 60;
arrStats[0][3] = 10;
arrStats[0][4] = 20;
} else {
if (_arg1 == 9){
_local3 = (_local3 + "sum");
arrStats[0][0] = 2;
arrStats[0][1] = 2;
arrStats[0][2] = 60;
arrStats[0][3] = 10;
arrStats[0][4] = 15;
};
};
};
};
};
arrStats[0][2] = (arrStats[0][2] + Math.floor((Math.random() * 8)));
arrStats[0][3] = ((arrStats[0][3] + Math.floor((Math.random() * 5))) - 2);
arrStats[0][4] = ((arrStats[0][4] + Math.floor((Math.random() * 5))) - 2);
if (_arg1 == 10){
_local2 = "Kelsey";
_local3 = "Pennerchop";
arrStats[0][0] = 4;
arrStats[0][1] = 10;
arrStats[0][2] = 340;
arrStats[0][3] = 10;
arrStats[0][4] = 20;
arrStats[0][5] = 4;
arrStats[0][6] = 12;
};
hoverUI.infoCardOp.txtName.text = ((_local2 + " ") + _local3);
}
public function showTradeMenu():void{
if (((!((iPhase == 0))) && ((bConflict == false)))){
if (iTradeLevel == 0){
} else {
console("Show trade menu");
if (arrDialogs[(iLevel - 1)].length == 0){
wndTradeMenu.labelTradeMenu.btnTalk.alpha = 0.2;
};
wndTradeMenu.labelTradeMenu.gotoAndStop((iTradeLevel + 1));
wndTradeMenu.x = 24;
wndTradeMenu.y = 225;
};
};
}
public function closeTradeWindow():void{
console("Close trade menu");
wndCardLibrary.x = -475;
wndTradeMenu.x = -900;
if (wndTradeMenu.labelTradeMenu.btnTalk != null){
wndTradeMenu.labelTradeMenu.btnTalk.alpha = 1;
};
if (wndTradeMenu.labelTradeMenu.btnTrain != null){
wndTradeMenu.labelTradeMenu.btnTrain.alpha = 1;
};
wndTradeMenu.labelReceiveCard.x = -400;
}
public function turnMouseWheel(_arg1:MouseEvent):void{
labelCardInfo.alpha = 0;
if ((((((wndCardLibrary.x > 200)) && ((mouseY > 237)))) && ((mouseY < 0x0300)))){
if (_arg1.delta > 0){
if ((((mouseX > 216)) && ((mouseX < 438)))){
rotateCards(true, true);
} else {
if ((((mouseX > 438)) && ((mouseX < 673)))){
rotateCards(false, true);
};
};
} else {
if (_arg1.delta < 0){
if ((((mouseX > 216)) && ((mouseX < 438)))){
rotateCards(true, false);
} else {
if ((((mouseX > 438)) && ((mouseX < 673)))){
rotateCards(false, false);
};
};
};
};
};
}
public function rotateCards(_arg1, _arg2):void{
if (_arg1 == true){
if (_arg2 == true){
iShopDeckFocus--;
} else {
iShopDeckFocus++;
};
if (iShopDeckFocus < 0){
iShopDeckFocus = 0;
};
if (iShopDeckFocus > 39){
iShopDeckFocus = 39;
};
if ((iShopDeckFocus - 2) >= 0){
wndCardLibrary.libTile1.gotoAndStop((arrDeck[iLevel][(iShopDeckFocus - 2)] + 1));
} else {
wndCardLibrary.libTile1.gotoAndStop(1);
};
if ((iShopDeckFocus - 1) >= 0){
wndCardLibrary.libTile2.gotoAndStop((arrDeck[iLevel][(iShopDeckFocus - 1)] + 1));
} else {
wndCardLibrary.libTile2.gotoAndStop(1);
};
wndCardLibrary.libTile3.gotoAndStop((arrDeck[iLevel][iShopDeckFocus] + 1));
if ((iShopDeckFocus + 1) < 41){
wndCardLibrary.libTile4.gotoAndStop((arrDeck[iLevel][(iShopDeckFocus + 1)] + 1));
} else {
wndCardLibrary.libTile4.gotoAndStop(1);
};
if ((iShopDeckFocus + 2) < 41){
wndCardLibrary.libTile5.gotoAndStop((arrDeck[iLevel][(iShopDeckFocus + 2)] + 1));
} else {
wndCardLibrary.libTile5.gotoAndStop(1);
};
} else {
if (wndCardLibrary.mouseRU.alpha == 1){
if (_arg2 == true){
iShopAvailableFocus--;
} else {
iShopAvailableFocus++;
};
if (iShopAvailableFocus < 0){
iShopAvailableFocus = 0;
};
if (iShopAvailableFocus > (arrShopAvailableCards.length - 1)){
iShopAvailableFocus = (arrShopAvailableCards.length - 1);
};
if ((iShopAvailableFocus - 2) >= 0){
wndCardLibrary.libTile6.gotoAndStop((arrShopAvailableCards[(iShopAvailableFocus - 2)] + 1));
} else {
wndCardLibrary.libTile6.gotoAndStop(1);
};
if ((iShopAvailableFocus - 1) >= 0){
wndCardLibrary.libTile7.gotoAndStop((arrShopAvailableCards[(iShopAvailableFocus - 1)] + 1));
} else {
wndCardLibrary.libTile7.gotoAndStop(1);
};
wndCardLibrary.libTile8.gotoAndStop((arrShopAvailableCards[iShopAvailableFocus] + 1));
if ((iShopAvailableFocus + 1) < (arrShopAvailableCards.length + 1)){
wndCardLibrary.libTile9.gotoAndStop((arrShopAvailableCards[(iShopAvailableFocus + 1)] + 1));
} else {
wndCardLibrary.libTile9.gotoAndStop(1);
};
if ((iShopAvailableFocus + 2) < (arrShopAvailableCards.length + 1)){
wndCardLibrary.libTile10.gotoAndStop((arrShopAvailableCards[(iShopAvailableFocus + 2)] + 1));
} else {
wndCardLibrary.libTile10.gotoAndStop(1);
};
};
};
}
public function openCardLibrary(_arg1):void{
var _local2:Array;
var _local3:Array;
var _local4:Array;
console("Open card library");
slideMenu(true);
wndCardLibrary.btnReplace.alpha = 1;
wndCardLibrary.libTile1.gotoAndStop((arrDeck[iLevel][(iShopDeckFocus - 2)] + 1));
wndCardLibrary.libTile2.gotoAndStop((arrDeck[iLevel][(iShopDeckFocus - 1)] + 1));
wndCardLibrary.libTile3.gotoAndStop((arrDeck[iLevel][iShopDeckFocus] + 1));
wndCardLibrary.libTile4.gotoAndStop((arrDeck[iLevel][(iShopDeckFocus + 1)] + 1));
wndCardLibrary.libTile5.gotoAndStop((arrDeck[iLevel][(iShopDeckFocus + 2)] + 1));
if (_arg1 > 0){
wndCardLibrary.mouseRU.alpha = 0;
wndCardLibrary.mouseRD.alpha = 0;
wndCardLibrary.libTile6.alpha = 0;
wndCardLibrary.libTile7.alpha = 0;
wndCardLibrary.libTile9.alpha = 0;
wndCardLibrary.libTile10.alpha = 0;
wndCardLibrary.libTile8.gotoAndStop((iCardReward + 1));
} else {
wndCardLibrary.mouseRU.alpha = 1;
wndCardLibrary.mouseRD.alpha = 1;
wndCardLibrary.libTile6.alpha = 1;
wndCardLibrary.libTile7.alpha = 1;
wndCardLibrary.libTile9.alpha = 1;
wndCardLibrary.libTile10.alpha = 1;
_local2 = [1, 2, 3, 4, 5, 6, 14, 15, 16, 18, 21, 23, 26, 29, 30, 31, 32];
_local3 = [7, 8, 9, 17, 19, 20, 22, 24, 25, 27, 28];
_local4 = [];
if (iLevel == 1){
_local4 = [33, 34, 35];
} else {
if (iLevel == 2){
_local4 = [11, 36, 37, 38];
} else {
if (iLevel == 3){
_local4 = [12, 39, 40, 41];
} else {
if (iLevel == 4){
_local4 = [13, 42, 43, 44];
};
};
};
};
arrShopAvailableCards = [];
arrShopAvailableCards.push(_local2[Math.floor((Math.random() * _local2.length))]);
arrShopAvailableCards.push(_local2[Math.floor((Math.random() * _local2.length))]);
arrShopAvailableCards.push(_local2[Math.floor((Math.random() * _local2.length))]);
if (wndTradeMenu.labelTradeMenu.currentFrame > 3){
arrShopAvailableCards.push(_local3[Math.floor((Math.random() * _local3.length))]);
arrShopAvailableCards.push(_local3[Math.floor((Math.random() * _local3.length))]);
};
if (wndTradeMenu.labelTradeMenu.currentFrame == 5){
arrShopAvailableCards.push(_local4[Math.floor((Math.random() * _local4.length))]);
};
wndCardLibrary.libTile6.gotoAndStop(1);
wndCardLibrary.libTile7.gotoAndStop(1);
wndCardLibrary.libTile8.gotoAndStop((arrShopAvailableCards[0] + 1));
wndCardLibrary.libTile9.gotoAndStop((arrShopAvailableCards[1] + 1));
wndCardLibrary.libTile10.gotoAndStop((arrShopAvailableCards[2] + 1));
};
}
public function qDef(_arg1):Number{
var _local2:* = 0;
if ((((_arg1 < 5)) && ((hoverUI.infoCardPlayer.wndBuffs.buff19.alpha == 1)))){
_local2 = 2;
};
if ((((_arg1 == 5)) && ((hoverUI.infoCardOp.wndBuffs.buff19.alpha == 1)))){
_local2 = 3;
};
if ((((_arg1 == 6)) && ((hoverUI.infoCardOp.wndBuffs.buff19.alpha == 1)))){
_local2 = 2;
};
if ((((_arg1 == 7)) && ((hoverUI.infoCardOp.wndBuffs.buff19.alpha == 1)))){
_local2 = 1;
};
if ((((_arg1 == 8)) && ((hoverUI.infoCardOp.wndBuffs.buff19.alpha == 1)))){
_local2 = 2;
};
if ((((_arg1 == 9)) && ((hoverUI.infoCardOp.wndBuffs.buff19.alpha == 1)))){
_local2 = 2;
};
if ((((_arg1 == 10)) && ((hoverUI.infoCardOp.wndBuffs.buff19.alpha == 1)))){
_local2 = 4;
};
if (_arg1 < 5){
if (hoverUI.infoCardPlayer.wndBuffs.buff10.alpha == 1){
_local2 = (_local2 + 2);
};
if (hoverUI.infoCardPlayer.wndBuffs.buff13.alpha == 1){
_local2 = (_local2 + 4);
};
_local2 = (_local2 + (labelInfluence1.currentFrame - 1));
} else {
if (hoverUI.infoCardOp.wndBuffs.buff10.alpha == 1){
_local2 = (_local2 + 2);
};
if (hoverUI.infoCardOp.wndBuffs.buff13.alpha == 1){
_local2 = (_local2 + 4);
};
};
return (_local2);
}
public function qAdv(_arg1):Number{
var _local2:* = 0;
if ((((_arg1 > 0)) && ((_arg1 < 5)))){
_local2 = arrStats[_arg1][1];
} else {
_local2 = arrStats[0][1];
};
return (_local2);
}
public function qEnd(_arg1):Number{
var _local2:* = 0;
if ((((_arg1 > 0)) && ((_arg1 < 5)))){
_local2 = arrStats[_arg1][2];
} else {
_local2 = arrStats[0][2];
};
return (_local2);
}
public function qEvade(_arg1):Number{
var _local2:* = 0;
if ((((_arg1 > 0)) && ((_arg1 < 5)))){
_local2 = arrStats[_arg1][3];
if (hoverUI.infoCardPlayer.wndBuffs.buff8.alpha == 1){
_local2 = (_local2 + 30);
};
if (hoverUI.infoCardPlayer.wndBuffs.buff20.alpha == 1){
_local2 = (_local2 + 60);
};
} else {
_local2 = arrStats[0][3];
if (hoverUI.infoCardOp.wndBuffs.buff8.alpha == 1){
_local2 = (_local2 + 30);
};
if (hoverUI.infoCardOp.wndBuffs.buff20.alpha == 1){
_local2 = (_local2 + 60);
};
};
return (_local2);
}
public function qCrit(_arg1):Number{
var _local2:* = 0;
if ((((_arg1 > 0)) && ((_arg1 < 5)))){
_local2 = arrStats[_arg1][4];
if (hoverUI.infoCardPlayer.wndBuffs.buff9.alpha == 1){
_local2 = (_local2 + 30);
};
if (hoverUI.infoCardPlayer.wndBuffs.buff21.alpha == 1){
_local2 = (_local2 + 60);
};
} else {
_local2 = arrStats[0][4];
if (hoverUI.infoCardOp.wndBuffs.buff9.alpha == 1){
_local2 = (_local2 + 30);
};
if (hoverUI.infoCardOp.wndBuffs.buff21.alpha == 1){
_local2 = (_local2 + 60);
};
};
return (_local2);
}
public function qRegen(_arg1):Number{
var _local2:* = 0;
if ((((_arg1 > 0)) && ((_arg1 < 5)))){
_local2 = arrStats[_arg1][5];
if (hoverUI.infoCardPlayer.wndBuffs.buff6.alpha == 1){
_local2 = (_local2 - hoverUI.infoCardPlayer.wndBuffs.buff6.currentFrame);
} else {
if (hoverUI.infoCardPlayer.wndBuffs.buff4.alpha == 1){
_local2 = (_local2 + hoverUI.infoCardPlayer.wndBuffs.buff4.currentFrame);
};
};
if (hoverUI.infoCardPlayer.wndBuffs.buff3.alpha == 1){
_local2 = (_local2 + 3);
};
_local2 = (_local2 + (labelInfluence2.currentFrame - 1));
} else {
_local2 = arrStats[0][5];
if (hoverUI.infoCardOp.wndBuffs.buff6.alpha == 1){
_local2 = (_local2 - hoverUI.infoCardOp.wndBuffs.buff6.currentFrame);
} else {
if (hoverUI.infoCardOp.wndBuffs.buff4.alpha == 1){
_local2 = (_local2 + hoverUI.infoCardOp.wndBuffs.buff4.currentFrame);
};
};
if (hoverUI.infoCardOp.wndBuffs.buff3.alpha == 1){
_local2 = (_local2 + 3);
};
};
if (_local2 < 2){
_local2 = 2;
};
return (_local2);
}
public function qMaxAdv(_arg1):Number{
var _local2:* = 12;
if ((((_arg1 > 0)) && ((_arg1 < 5)))){
if (hoverUI.infoCardPlayer.wndBuffs.buff7.alpha == 1){
_local2 = 8;
} else {
if (hoverUI.infoCardPlayer.wndBuffs.buff5.alpha == 1){
_local2 = 16;
};
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff7.alpha == 1){
_local2 = 8;
} else {
if (hoverUI.infoCardOp.wndBuffs.buff5.alpha == 1){
_local2 = 16;
};
};
};
return (_local2);
}
public function resetAllBuffs():void{
console("Reset all buffs");
hoverUI.infoCardPlayer.wndBuffs.buff1.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff2.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff3.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff4.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff5.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff6.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff7.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff8.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff9.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff10.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff11.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff12.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff13.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff14.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff15.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff16.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff17.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff18.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff19.alpha = 1;
hoverUI.infoCardPlayer.wndBuffs.buff20.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff21.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff22.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff1.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff2.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff3.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff4.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff5.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff6.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff7.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff8.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff9.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff10.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff11.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff12.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff13.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff14.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff15.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff16.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff17.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff18.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff19.alpha = 1;
hoverUI.infoCardOp.wndBuffs.buff20.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff21.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff22.alpha = 0;
swimsuit_ground2.alpha = 0;
swimsuit_ground1.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff4.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff6.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff4.gotoAndStop(1);
hoverUI.infoCardOp.wndBuffs.buff6.gotoAndStop(1);
}
public function shoveCard(_arg1):void{
var _local2:*;
var _local3:*;
var _local4:Number;
var _local5:* = true;
console("Shove card");
iCardsPlayedThisTurn++;
if (iCardsPlayedThisTurn > 3){
iCardsPlayedThisTurn = 1;
};
if (_arg1 == 1){
_local2 = wndHand.card1.x;
_local3 = wndHand.card1.y;
_local4 = (Number(arrHand[iLevel][0]) + 1);
wndHand.card1.gotoAndStop(1);
} else {
if (_arg1 == 2){
_local2 = wndHand.card2.x;
_local3 = wndHand.card2.y;
_local4 = (Number(arrHand[iLevel][1]) + 1);
wndHand.card2.gotoAndStop(1);
} else {
if (_arg1 == 3){
_local2 = wndHand.card3.x;
_local3 = wndHand.card3.y;
_local4 = (Number(arrHand[iLevel][2]) + 1);
wndHand.card3.gotoAndStop(1);
} else {
if (_arg1 == 4){
_local2 = wndHand.card4.x;
_local3 = wndHand.card4.y;
_local4 = (Number(arrHand[iLevel][3]) + 1);
wndHand.card4.gotoAndStop(1);
} else {
if (_arg1 == 5){
_local2 = wndHand.card5.x;
_local3 = wndHand.card5.y;
_local4 = (Number(arrHand[iLevel][4]) + 1);
wndHand.card5.gotoAndStop(1);
} else {
if (_arg1 == 6){
_local2 = wndHand.card6.x;
_local3 = wndHand.card6.y;
if ((((((_local3 == wndHand.playedCard1.y)) || ((_local3 == wndHand.playedCard2.y)))) || ((_local3 == wndHand.playedCard3.y)))){
_local3 = wndHand.card8.y;
trace("CARD LOC FIX HACK!");
};
_local4 = (Number(arrHand[0][0]) + 1);
wndHand.card6.gotoAndStop(1);
_local5 = false;
} else {
if (_arg1 == 7){
_local2 = wndHand.card7.x;
_local3 = wndHand.card7.y;
if ((((((_local3 == wndHand.playedCard1.y)) || ((_local3 == wndHand.playedCard2.y)))) || ((_local3 == wndHand.playedCard3.y)))){
_local3 = wndHand.card9.y;
trace("CARD LOC FIX HACK!");
};
_local4 = (Number(arrHand[0][1]) + 1);
wndHand.card7.gotoAndStop(1);
_local5 = false;
} else {
if (_arg1 == 8){
_local2 = wndHand.card8.x;
_local3 = wndHand.card8.y;
if ((((((_local3 == wndHand.playedCard1.y)) || ((_local3 == wndHand.playedCard2.y)))) || ((_local3 == wndHand.playedCard3.y)))){
_local3 = wndHand.card10.y;
trace("CARD LOC FIX HACK!");
};
_local4 = (Number(arrHand[0][2]) + 1);
wndHand.card8.gotoAndStop(1);
_local5 = false;
} else {
if (_arg1 == 9){
_local2 = wndHand.card9.x;
_local3 = wndHand.card9.y;
if ((((((_local3 == wndHand.playedCard1.y)) || ((_local3 == wndHand.playedCard2.y)))) || ((_local3 == wndHand.playedCard3.y)))){
_local3 = wndHand.card6.y;
trace("CARD LOC FIX HACK!");
};
_local4 = (Number(arrHand[0][3]) + 1);
wndHand.card9.gotoAndStop(1);
_local5 = false;
} else {
if (_arg1 == 10){
_local2 = wndHand.card10.x;
_local3 = wndHand.card10.y;
if ((((((_local3 == wndHand.playedCard1.y)) || ((_local3 == wndHand.playedCard2.y)))) || ((_local3 == wndHand.playedCard3.y)))){
_local3 = wndHand.card7.y;
trace("CARD LOC FIX HACK!");
};
_local4 = (Number(arrHand[0][4]) + 1);
wndHand.card10.gotoAndStop(1);
_local5 = false;
};
};
};
};
};
};
};
};
};
};
if (iCardsPlayedThisTurn == 1){
card1Tween.stop();
wndHand.playedCard1.y = _local3;
wndHand.playedCard1.gotoAndStop(_local4);
if (_local5 == true){
card1Tween = new Tween(wndHand.playedCard1, "x", Regular.easeOut, _local2, ((_local2 + Math.floor((Math.random() * 20))) + 150), 1, true);
} else {
card1Tween = new Tween(wndHand.playedCard1, "x", Regular.easeOut, _local2, ((_local2 - Math.floor((Math.random() * 20))) - 150), 1, true);
};
card1Tween.FPS = 40;
wndHand.playedCard1.alpha = 1;
} else {
if (iCardsPlayedThisTurn == 2){
card2Tween.stop();
wndHand.playedCard2.y = _local3;
wndHand.playedCard2.gotoAndStop(_local4);
if (_local5 == true){
card2Tween = new Tween(wndHand.playedCard2, "x", Regular.easeOut, _local2, ((_local2 + Math.floor((Math.random() * 20))) + 150), 1, true);
} else {
card2Tween = new Tween(wndHand.playedCard2, "x", Regular.easeOut, _local2, ((_local2 - Math.floor((Math.random() * 20))) - 150), 1, true);
};
card2Tween.FPS = 40;
wndHand.playedCard2.alpha = 1;
} else {
if (iCardsPlayedThisTurn == 3){
card3Tween.stop();
wndHand.playedCard3.y = _local3;
wndHand.playedCard3.gotoAndStop(_local4);
if (_local5 == true){
card3Tween = new Tween(wndHand.playedCard3, "x", Regular.easeOut, _local2, ((_local2 + Math.floor((Math.random() * 20))) + 150), 1, true);
} else {
card3Tween = new Tween(wndHand.playedCard3, "x", Regular.easeOut, _local2, ((_local2 - Math.floor((Math.random() * 20))) - 150), 1, true);
};
card3Tween.FPS = 40;
wndHand.playedCard3.alpha = 1;
};
};
};
}
public function hidePlayedCards():void{
console("Hide cards");
card1Tween.stop();
card2Tween.stop();
card3Tween.stop();
wndHand.playedCard1.y = 1000;
wndHand.playedCard1.alpha = 0;
wndHand.playedCard2.y = 1000;
wndHand.playedCard2.alpha = 0;
wndHand.playedCard3.y = 1000;
wndHand.playedCard3.alpha = 0;
}
public function discardCardPlayerAni(_arg1):void{
console("Discard card Player");
card1Tween.stop();
wndHand.playedCard1.gotoAndStop(1);
if (_arg1 == 0){
wndHand.playedCard1.x = wndHand.card1.x;
wndHand.playedCard1.y = wndHand.card1.y;
};
if (_arg1 == 1){
wndHand.playedCard1.x = wndHand.card2.x;
wndHand.playedCard1.y = wndHand.card2.y;
};
if (_arg1 == 2){
wndHand.playedCard1.x = wndHand.card3.x;
wndHand.playedCard1.y = wndHand.card3.y;
};
if (_arg1 == 3){
wndHand.playedCard1.x = wndHand.card4.x;
wndHand.playedCard1.y = wndHand.card4.y;
};
if (_arg1 == 4){
wndHand.playedCard1.x = wndHand.card5.x;
wndHand.playedCard1.y = wndHand.card5.y;
};
card1Tween = new Tween(wndHand.playedCard1, "x", Regular.easeOut, wndHand.playedCard1.x, (wndHand.playedCard1.x - 180), 1, true);
card1Tween.FPS = 40;
}
public function discardCardOpponentAni(_arg1):void{
console("Discard card Opponent");
card1Tween.stop();
wndHand.playedCard1.gotoAndStop(1);
if (_arg1 == 0){
wndHand.playedCard1.x = wndHand.card6.x;
wndHand.playedCard1.y = wndHand.card6.y;
};
if (_arg1 == 1){
wndHand.playedCard1.x = wndHand.card7.x;
wndHand.playedCard1.y = wndHand.card7.y;
};
if (_arg1 == 2){
wndHand.playedCard1.x = wndHand.card8.x;
wndHand.playedCard1.y = wndHand.card8.y;
};
if (_arg1 == 3){
wndHand.playedCard1.x = wndHand.card9.x;
wndHand.playedCard1.y = wndHand.card9.y;
};
if (_arg1 == 4){
wndHand.playedCard1.x = wndHand.card10.x;
wndHand.playedCard1.y = wndHand.card10.y;
};
card1Tween = new Tween(wndHand.playedCard1, "x", Regular.easeOut, wndHand.playedCard1.x, (wndHand.playedCard1.x + 180), 1, true);
card1Tween.FPS = 40;
}
public function winLose(_arg1):void{
if (bEndGame == false){
if (_arg1 == true){
iWinner = 1;
labelWinLose.gotoAndStop(1);
} else {
iWinner = 2;
labelWinLose.gotoAndStop(2);
};
wndHand.y = 900;
} else {
trace("TO DO: player lost during 'endgame': go to 'kitchen comic'");
};
}
public function showWinLoseLabel():void{
labelWinLose.y = 640;
}
public function playerWon():void{
console("Player won");
iTurn = 0;
setCompleteTownToOwner(iLevel);
wndHand.y = 900;
swimsuit_ground1.alpha = 0;
swimsuit_ground2.alpha = 0;
if (iPhase != 0){
updateInfluence();
if ((((iPhase == 2)) && ((iTradeLevel > 0)))){
iPhase = 3;
showTradeMenu();
} else {
slideBoard(true);
playerCityHub();
};
};
}
public function setTresholdToNextLevel():void{
cloudTreshold.y = 1100;
if ((((((((bChar1Down == true)) && ((bChar2Down == true)))) && ((bChar3Down == true)))) && ((bChar4Down == true)))){
trace("player won! (do things here or below");
} else {
if (bChar1Down == false){
iLevel = 1;
updateCharacterSwitcher();
} else {
if (bChar2Down == false){
iLevel = 2;
updateCharacterSwitcher();
} else {
if (bChar3Down == false){
iLevel = 3;
updateCharacterSwitcher();
} else {
if (bChar4Down == false){
iLevel = 4;
updateCharacterSwitcher();
};
};
};
};
};
if (iTreshold == 260){
arrStats[0][2] = (arrStats[0][2] - 20);
iTreshold = 170;
} else {
if (iTreshold == 170){
arrStats[0][2] = (arrStats[0][2] - 20);
iTreshold = 90;
} else {
if (iTreshold == 90){
arrStats[0][2] = (arrStats[0][2] - 20);
iTreshold = 20;
} else {
if (iTreshold == 20){
trace("player won completely. do things above or here...");
};
};
};
};
}
public function opponentWon():void{
console("Opponent won");
iTurn = 0;
setCompleteTownToOwner(iOpponentNr);
swimsuit_ground1.alpha = 0;
swimsuit_ground2.alpha = 0;
wndHand.y = 900;
if (iPhase != 0){
updateInfluence();
slideBoard(true);
playerCityHub();
};
}
public function clearVariablesForNewTurn():void{
console("Clear vars for new turn");
iBonusDmg = 0;
iWinner = 0;
bMaxDmgThisTurn = false;
dmgCloud.buff12.alpha = 0;
dmgCloud.buff14.alpha = 0;
dmgCloud.buff15.alpha = 0;
dmgCloud.buff18.alpha = 0;
dmgCloud.txtDmgReflect.text = "";
dmgCloud.txtHealed.text = "";
wndHand.card6.gotoAndStop(1);
wndHand.card6.alpha = 1;
wndHand.card7.gotoAndStop(1);
wndHand.card7.alpha = 1;
wndHand.card8.gotoAndStop(1);
wndHand.card8.alpha = 1;
wndHand.card9.gotoAndStop(1);
wndHand.card9.alpha = 1;
wndHand.card10.gotoAndStop(1);
wndHand.card10.alpha = 1;
}
public function doCombat():void{
var _local5:*;
console("Do combat");
startAnimation();
var _local1:* = false;
labelCombat.x = 1100;
labelCombat.y = 1000;
labelCombat.gotoAndStop(1);
slideBoard(false);
hoverUI.y = 130;
hidePlayedCards();
if (bEndGame == false){
resetCharacter(iLevel);
} else {
resetCharacter(1);
resetCharacter(2);
resetCharacter(3);
resetCharacter(4);
};
arrBuffs = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
clearVariablesForNewTurn();
createOpponent(iOpponentNr);
if (bEndGame == false){
if (iPlayerCombat > iOpponentTotal){
arrStats[iLevel][2] = (arrStats[iLevel][2] + (iCitySizeBalanceShift * (iPlayerCombat - iOpponentTotal)));
} else {
if (iPlayerCombat < iOpponentTotal){
arrStats[0][2] = (arrStats[0][2] + (iCitySizeBalanceShift * (iOpponentTotal - iPlayerCombat)));
};
};
};
resetAllBuffs();
updateStats(iLevel);
updateStats(iOpponentNr);
wndHand.y = 377;
var _local2:* = 0;
var _local3:Array = [];
var _local4:* = 0;
if (bEndGame == false){
_local2 = arrDeck[iLevel].length;
_local4 = 0;
while (_local4 < _local2) {
_local3.push(arrDeck[iLevel][_local4]);
_local4++;
};
arrDeck[0] = [];
_local2 = _local3.length;
_local4 = 0;
while (_local4 < _local2) {
arrDeck[0].push(_local3.splice(Math.floor((Math.random() * _local3.length)), 1));
_local4++;
};
} else {
_local5 = 1;
while (_local5 < 5) {
_local2 = 0;
_local3 = [];
_local2 = arrDeck[_local5].length;
_local4 = 0;
while (_local4 < _local2) {
_local3.push(arrDeck[_local5][_local4]);
_local4++;
};
arrDeck[_local5] = [];
_local3.push((44 + _local5));
_local2 = _local3.length;
_local4 = 0;
while (_local4 < _local2) {
arrDeck[_local5].push(_local3.splice(Math.floor((Math.random() * _local3.length)), 1));
_local4++;
};
_local5++;
};
};
if (bEndGame == false){
_local2 = 0;
_local3 = [];
_local2 = arrOppDeck[(iOpponentNr - 4)].length;
_local4 = 0;
while (_local4 < _local2) {
_local3.push(arrOppDeck[(iOpponentNr - 4)][_local4]);
_local4++;
};
} else {
_local2 = 0;
_local3 = [];
iOpponentNr = 10;
_local2 = arrOppDeck[(iOpponentNr - 4)].length;
_local4 = 0;
while (_local4 < _local2) {
_local3.push(arrOppDeck[(iOpponentNr - 4)][_local4]);
_local4++;
};
};
arrOppDeck[0] = [];
_local2 = _local3.length;
_local4 = 0;
while (_local4 < _local2) {
arrOppDeck[0].push(_local3.splice(Math.floor((Math.random() * _local3.length)), 1));
_local4++;
};
if (bEndGame == false){
_local4 = 0;
while (_local4 < 5) {
arrHand[iLevel][_local4] = arrDeck[0].splice(0, 1);
arrHand[0][_local4] = arrOppDeck[0].splice(0, 1);
_local4++;
};
} else {
_local4 = 0;
while (_local4 < 5) {
arrHand[1][_local4] = arrDeck[1].splice(0, 1);
arrHand[2][_local4] = arrDeck[2].splice(0, 1);
arrHand[3][_local4] = arrDeck[3].splice(0, 1);
arrHand[4][_local4] = arrDeck[4].splice(0, 1);
arrHand[0][_local4] = arrOppDeck[0].splice(0, 1);
_local4++;
};
};
showHand();
if (bEndGame == false){
if (iCurrentPlayer > 4){
iTurn = 11;
wndHand.btnDiscardCard.y = 996;
wndHand.btnEndTurn.y = 996;
iCountDown = 8;
} else {
iTurn = 1;
wndHand.btnDiscardCard.y = 396;
wndHand.btnEndTurn.y = 996;
};
} else {
iTurn = 1;
wndHand.btnDiscardCard.y = 396;
wndHand.btnEndTurn.y = 996;
wndCharacterSwitcher.x = 121;
wndCharacterSwitcher.y = 376;
updateCharacterSwitcher();
};
}
public function playCard(_arg1, _arg2, _arg3):void{
var _local7:*;
var _local8:*;
var _local4:* = false;
var _local5:Array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 16, 10, 10, 10, 10, 0, 2, 6, 3, 12, 8, 3, 12, 0, 12, 6, 3, 6, 6, 7, 6, 7, 5, 7, 10, 10, 7, 10, 10, 7, 10, 10, 8, 10, 10, 8, 8, 8, 8];
var _local6:* = 0;
console(((((("Play card " + _arg1) + ", ") + _arg2) + ", ") + _arg3));
if (_arg1 < 5){
if (bEndGame == true){
disableCharacterSwitcherButtons();
};
_local7 = qAdv(iLevel);
_local6 = (labelInfluence4.currentFrame - 1);
if (_local7 >= (_local5[arrHand[iLevel][_arg3]] - _local6)){
trace(("cardNr=" + _arg3));
if ((((arrHand[iLevel][_arg3] > 44)) && ((cloudTreshold.y > 600)))){
trace("NO PLAY: can't play this card until treshold reached!");
} else {
if ((((iTurn == 1)) || ((((iTurn == 2)) && ((arrHand[iLevel][_arg3] < 14)))))){
_local8 = (_local5[arrHand[iLevel][_arg3]] - _local6);
if (_local8 < 0){
_local8 = 0;
};
if (hoverUI.infoCardPlayer.wndBuffs.buff22.alpha != 1){
arrStats[iLevel][1] = (arrStats[iLevel][1] - _local8);
} else {
arrStats[iLevel][1] = qMaxAdv(iLevel);
};
shoveCard((_arg3 + 1));
applyCardEffects(_arg1, 0, arrHand[iLevel][_arg3], _arg2);
updateStats(iLevel);
updateStats(iOpponentNr);
_local4 = true;
};
};
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff22.alpha != 1){
arrStats[0][1] = (arrStats[0][1] - _local5[arrHand[0][(_arg3 - 5)]]);
} else {
arrStats[0][1] = qMaxAdv(0);
};
shoveCard((_arg3 + 1));
applyCardEffects(0, _arg2, arrHand[0][(_arg3 - 5)], _arg2);
updateStats(iLevel);
updateStats(iOpponentNr);
_local4 = true;
};
if (_local4 == true){
if (qEnd(iLevel) <= 0){
iTurn = 4;
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.y = 996;
winLose(false);
} else {
if (qEnd(0) <= 0){
iTurn = 4;
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.y = 996;
winLose(true);
} else {
if (iTurn == 1){
if ((((arrHand[iLevel][_arg3] < 14)) || ((arrHand[iLevel][_arg3] > 44)))){
putCardToDiscardPileAndDrawNewOne(iLevel, arrHand[iLevel][_arg3], _arg3);
iTurn = 11;
clearVariablesForNewTurn();
iCountDown = 10;
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.y = 996;
} else {
putCardToDiscardPileAndDrawNewOne(iLevel, arrHand[iLevel][_arg3], _arg3);
iTurn = 2;
wndHand.btnDiscardCard.y = 996;
wndHand.btnEndTurn.y = 396;
};
} else {
if (iTurn == 2){
putCardToDiscardPileAndDrawNewOne(iLevel, arrHand[iLevel][_arg3], _arg3);
iTurn = 11;
clearVariablesForNewTurn();
iCountDown = 10;
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.y = 996;
} else {
if (iTurn == 11){
if (arrHand[0][(_arg3 - 5)] < 14){
putCardToDiscardPileAndDrawNewOne(0, arrHand[0][(_arg3 - 5)], (_arg3 - 5));
iTurn = 13;
iCountDown = 10;
} else {
putCardToDiscardPileAndDrawNewOne(0, arrHand[0][(_arg3 - 5)], (_arg3 - 5));
iTurn = 12;
iCountDown = 10;
};
} else {
if (iTurn == 12){
putCardToDiscardPileAndDrawNewOne(0, arrHand[0][(_arg3 - 5)], (_arg3 - 5));
iTurn = 13;
iCountDown = 10;
};
};
};
};
};
};
if (arrDeck[0].length < 4){
reShuffleDeck();
};
if (arrOppDeck[0].length < 4){
reShuffleOppDeck();
};
};
}
public function reShuffleDeck():void{
console("Replenish player deck");
while (arrDiscardPile.length > 0) {
arrDeck[0].push(arrDiscardPile.splice(Math.floor((Math.random() * arrDiscardPile.length)), 1));
};
}
public function reShuffleOppDeck():void{
console("Replenish opponent deck");
while (arrOppDiscardPile.length > 0) {
arrOppDeck[0].push(arrOppDiscardPile.splice(Math.floor((Math.random() * arrOppDiscardPile.length)), 1));
};
}
public function putCardToDiscardPileAndDrawNewOne(_arg1, _arg2, _arg3):void{
if (_arg1 > 0){
if (bEndGame == false){
arrDiscardPile.push(_arg2);
arrHand[iLevel][_arg3] = arrDeck[0].splice(0, 1);
} else {
arrDeck[iLevel].push(_arg2);
arrHand[iLevel][_arg3] = arrDeck[iLevel].splice(0, 1);
};
} else {
arrOppDiscardPile.push(_arg2);
arrHand[0][_arg3] = arrOppDeck[0].splice(0, 1);
};
}
public function discardCard(_arg1, _arg2):void{
if (_arg1 > 0){
disableCharacterSwitcherButtons();
putCardToDiscardPileAndDrawNewOne(_arg1, arrHand[_arg1][_arg2], _arg2);
if (_arg2 == 0){
wndHand.card1.gotoAndStop(1);
} else {
if (_arg2 == 1){
wndHand.card2.gotoAndStop(1);
} else {
if (_arg2 == 2){
wndHand.card3.gotoAndStop(1);
} else {
if (_arg2 == 3){
wndHand.card4.gotoAndStop(1);
} else {
if (_arg2 == 4){
wndHand.card5.gotoAndStop(1);
};
};
};
};
};
iTurn = 11;
clearVariablesForNewTurn();
iCountDown = 4;
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.gotoAndStop(1);
wndHand.btnDiscardCard.y = 996;
discardCardPlayerAni(_arg2);
arrStats[iLevel][1] = (arrStats[iLevel][1] + 2);
if (arrStats[iLevel][1] > qMaxAdv(iLevel)){
arrStats[iLevel][1] = qMaxAdv(iLevel);
};
} else {
putCardToDiscardPileAndDrawNewOne(0, arrHand[0][_arg2], _arg2);
discardCardOpponentAni(_arg2);
arrStats[0][1] = (arrStats[0][1] + 2);
if (arrStats[0][1] > qMaxAdv(0)){
arrStats[0][1] = qMaxAdv(0);
};
iTurn = 13;
iCountDown = 10;
};
}
public function newTurnActions():void{
var _local2:*;
var _local3:*;
var _local4:*;
console("New turn actions");
card1Tween.stop();
card2Tween.stop();
card3Tween.stop();
wndHand.playedCard1.y = 1100;
wndHand.playedCard2.y = 1100;
wndHand.playedCard3.y = 1100;
var _local1:* = 0;
if (iTurn == 1){
_local1 = (arrStats[iLevel][1] + qRegen(iLevel));
if (_local1 > qMaxAdv(iLevel)){
_local1 = qMaxAdv(iLevel);
};
arrStats[iLevel][1] = _local1;
if (hoverUI.infoCardPlayer.wndBuffs.buff1.alpha == 1){
arrStats[iLevel][2] = (arrStats[iLevel][2] - 1);
};
if (hoverUI.infoCardPlayer.wndBuffs.buff2.alpha == 1){
arrStats[iLevel][2] = (arrStats[iLevel][2] - 4);
};
if (qEnd(iLevel) <= 0){
iTurn = 4;
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.y = 996;
winLose(false);
};
_local2 = 1;
while (_local2 < 5) {
_local3 = 0;
while (_local3 < 14) {
if (arrBuffs[_local2][_local3] > 0){
var _local5 = arrBuffs[_local2];
var _local6 = _local3;
var _local7 = (_local5[_local6] - 1);
_local5[_local6] = _local7;
if (arrBuffs[_local2][_local3] == 0){
stripBuff(_local2, _local3);
};
};
_local3++;
};
_local2++;
};
wndHand.card1.gotoAndStop((Number(arrHand[iLevel][0]) + 1));
wndHand.card2.gotoAndStop((Number(arrHand[iLevel][1]) + 1));
wndHand.card3.gotoAndStop((Number(arrHand[iLevel][2]) + 1));
wndHand.card4.gotoAndStop((Number(arrHand[iLevel][3]) + 1));
wndHand.card5.gotoAndStop((Number(arrHand[iLevel][4]) + 1));
} else {
_local1 = (arrStats[0][1] + qRegen(0));
if (_local1 > qMaxAdv(0)){
_local1 = qMaxAdv(0);
};
arrStats[0][1] = _local1;
if (hoverUI.infoCardOp.wndBuffs.buff1.alpha == 1){
arrStats[0][2] = (arrStats[0][2] - 1);
};
if (hoverUI.infoCardOp.wndBuffs.buff2.alpha == 1){
arrStats[0][2] = (arrStats[0][2] - 4);
};
if (qEnd(0) <= 0){
iTurn = 4;
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.y = 996;
winLose(true);
};
_local4 = 0;
while (_local4 < 14) {
if (arrBuffs[0][_local4] > 0){
_local5 = arrBuffs[0];
_local6 = _local4;
_local7 = (_local5[_local6] - 1);
_local5[_local6] = _local7;
if (arrBuffs[0][_local4] == 0){
stripBuff(0, _local4);
};
};
_local4++;
};
};
updateStats(iLevel);
updateStats(iOpponentNr);
}
public function stripBuff(_arg1, _arg2):void{
if (_arg1 == 0){
if (_arg2 == 0){
hoverUI.infoCardOp.wndBuffs.buff2.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff2.gotoAndStop(1);
} else {
if (_arg2 == 1){
hoverUI.infoCardOp.wndBuffs.buff3.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff3.gotoAndStop(1);
} else {
if (_arg2 == 2){
hoverUI.infoCardOp.wndBuffs.buff20.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff20.gotoAndStop(1);
} else {
if (_arg2 == 3){
hoverUI.infoCardOp.wndBuffs.buff21.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff21.gotoAndStop(1);
} else {
if (_arg2 == 4){
hoverUI.infoCardOp.wndBuffs.buff8.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff8.gotoAndStop(1);
} else {
if (_arg2 == 5){
hoverUI.infoCardOp.wndBuffs.buff9.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff9.gotoAndStop(1);
} else {
if (_arg2 == 6){
hoverUI.infoCardOp.wndBuffs.buff10.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff10.gotoAndStop(1);
} else {
if (_arg2 == 7){
hoverUI.infoCardOp.wndBuffs.buff11.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff11.gotoAndStop(1);
} else {
if (_arg2 == 8){
hoverUI.infoCardOp.wndBuffs.buff13.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff13.gotoAndStop(1);
} else {
if (_arg2 == 9){
hoverUI.infoCardOp.wndBuffs.buff22.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff22.gotoAndStop(1);
} else {
if (_arg2 == 10){
hoverUI.infoCardOp.wndBuffs.buff15.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff15.gotoAndStop(1);
} else {
if (_arg2 == 11){
hoverUI.infoCardOp.wndBuffs.buff16.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff16.gotoAndStop(1);
} else {
if (_arg2 == 12){
hoverUI.infoCardOp.wndBuffs.buff17.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff17.gotoAndStop(1);
} else {
if (_arg2 == 13){
hoverUI.infoCardOp.wndBuffs.buff18.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff18.gotoAndStop(1);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
} else {
if (_arg2 == 0){
hoverUI.infoCardPlayer.wndBuffs.buff2.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff2.gotoAndStop(1);
} else {
if (_arg2 == 1){
hoverUI.infoCardPlayer.wndBuffs.buff3.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff3.gotoAndStop(1);
} else {
if (_arg2 == 2){
hoverUI.infoCardPlayer.wndBuffs.buff20.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff20.gotoAndStop(1);
} else {
if (_arg2 == 3){
hoverUI.infoCardPlayer.wndBuffs.buff21.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff21.gotoAndStop(1);
} else {
if (_arg2 == 4){
hoverUI.infoCardPlayer.wndBuffs.buff8.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff8.gotoAndStop(1);
} else {
if (_arg2 == 5){
hoverUI.infoCardPlayer.wndBuffs.buff9.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff9.gotoAndStop(1);
} else {
if (_arg2 == 6){
hoverUI.infoCardPlayer.wndBuffs.buff10.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff10.gotoAndStop(1);
} else {
if (_arg2 == 7){
hoverUI.infoCardPlayer.wndBuffs.buff11.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff11.gotoAndStop(1);
} else {
if (_arg2 == 8){
hoverUI.infoCardPlayer.wndBuffs.buff13.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff13.gotoAndStop(1);
} else {
if (_arg2 == 9){
hoverUI.infoCardPlayer.wndBuffs.buff22.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff22.gotoAndStop(1);
} else {
if (_arg2 == 10){
hoverUI.infoCardPlayer.wndBuffs.buff15.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff15.gotoAndStop(1);
} else {
if (_arg2 == 11){
hoverUI.infoCardPlayer.wndBuffs.buff16.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff16.gotoAndStop(1);
} else {
if (_arg2 == 12){
hoverUI.infoCardPlayer.wndBuffs.buff17.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff17.gotoAndStop(1);
} else {
if (_arg2 == 13){
hoverUI.infoCardPlayer.wndBuffs.buff18.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff18.gotoAndStop(1);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function selectAndPlayOPCard(_arg1):void{
if (_arg1 == true){
newTurnActions();
};
console(("Select and play opponent card, " + _arg1));
if (iTurn == 11){
bAIForceEndTurn = false;
iChosenCard = ai(true);
} else {
iChosenCard = ai(false);
};
if (iChosenCard < 10){
if (iChosenCard == 0){
playCard(iOpponentNr, iLevel, 5);
} else {
if (iChosenCard == 1){
playCard(iOpponentNr, iLevel, 6);
} else {
if (iChosenCard == 2){
playCard(iOpponentNr, iLevel, 7);
} else {
if (iChosenCard == 3){
playCard(iOpponentNr, iLevel, 8);
} else {
playCard(iOpponentNr, iLevel, 9);
};
};
};
};
} else {
if (iChosenCard < 20){
if (iChosenCard == 10){
discardCard(0, 0);
} else {
if (iChosenCard == 11){
discardCard(0, 1);
} else {
if (iChosenCard == 12){
discardCard(0, 2);
} else {
if (iChosenCard == 13){
discardCard(0, 3);
} else {
discardCard(0, 4);
};
};
};
};
} else {
if (iChosenCard == 20){
iTurn = 13;
iCountDown = 10;
} else {
iTurn = 13;
iCountDown = 10;
};
};
};
}
public function ai(_arg1):Number{
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
var _local5:Number = 99;
arrCardVal[0] = getCardValue(arrHand[0][0]);
arrCardVal[1] = getCardValue(arrHand[0][1]);
arrCardVal[2] = getCardValue(arrHand[0][2]);
arrCardVal[3] = getCardValue(arrHand[0][3]);
arrCardVal[4] = getCardValue(arrHand[0][4]);
_local2 = getHighestValue(0);
_local3 = getHighestValue(1);
_local4 = getHighestValue(2);
if ((((((((((_arg1 == true)) && ((_local4 == 10)))) && (!((_local3 == 10))))) && (!((_local4 == 10))))) && (!((arrHand[0].indexOf(23) == -1))))){
_local5 = arrHand[0].indexOf(23);
bAIForceEndTurn = true;
} else {
if ((((((((_arg1 == true)) && ((_local4 == 10)))) && (!((_local3 == 10))))) && (!((_local4 == 10))))){
_local5 = getLowestValueCard();
_local5 = (_local5 + 10);
} else {
if ((((((_arg1 == true)) && ((_local3 > 8)))) && ((_local2 < _local3)))){
_local5 = getLowestValueCard();
_local5 = (_local5 + 10);
} else {
if ((((_arg1 == true)) && ((_local2 > 0)))){
_local5 = getHighestValueCard();
} else {
if (_arg1 == true){
_local5 = getLowestValueCard();
_local5 = (_local5 + 10);
} else {
if ((((((_arg1 == false)) && ((bAIForceEndTurn == false)))) && ((_local2 > 0)))){
if (getHighestTKValueCard() < 99){
_local5 = getHighestTKValueCard();
} else {
_local5 = 20;
};
} else {
_local5 = 20;
};
};
};
};
};
};
return (_local5);
}
public function getCardValue(_arg1):Number{
var _local2:Number = 1;
if (_arg1 == 1){
_local2 = 2;
} else {
if ((((_arg1 == 2)) || ((_arg1 == 3)))){
if (qEvade(iLevel) > 50){
_local2 = 2;
} else {
_local2 = 3;
};
} else {
if ((((_arg1 == 4)) || ((_arg1 == 5)))){
if (qEvade(iLevel) > 50){
_local2 = 2;
} else {
_local2 = 4;
};
} else {
if (_arg1 == 6){
if (qEvade(iLevel) > 50){
_local2 = 2;
} else {
_local2 = 5;
};
} else {
if ((((_arg1 == 7)) || ((_arg1 == 8)))){
if (qEvade(iLevel) > 50){
_local2 = 2;
} else {
_local2 = 6;
};
} else {
if (_arg1 == 9){
if (qEvade(iLevel) > 50){
_local2 = 2;
} else {
_local2 = 7;
};
} else {
if (_arg1 == 11){
_local2 = 9;
} else {
if (_arg1 == 12){
if (qEvade(iLevel) > 50){
_local2 = 2;
} else {
_local2 = 9;
};
} else {
if (_arg1 == 13){
_local2 = 9;
} else {
if (_arg1 == 14){
if (hoverUI.infoCardPlayer.wndBuffs.buff1.alpha == 0){
_local2 = 1;
} else {
_local2 = 10;
};
} else {
if (_arg1 == 15){
if (qAdv(0) > (qMaxAdv(0) - 6)){
_local2 = 2;
} else {
_local2 = 3;
};
} else {
if (_arg1 == 16){
_local2 = 2;
} else {
if (_arg1 == 17){
if ((((qAdv(iLevel) < 6)) || ((qAdv(0) > (qMaxAdv(0) - 6))))){
_local2 = 2;
} else {
_local2 = 6;
};
} else {
if (_arg1 == 18){
if (qAdv(0) > (qMaxAdv(0) - 3)){
_local2 = 2;
} else {
_local2 = 6;
};
} else {
if (_arg1 == 19){
_local2 = 10;
} else {
if (_arg1 == 20){
_local2 = 6;
if (qMaxAdv(0) == 8){
_local2 = 10;
};
if (qMaxAdv(0) == 16){
_local2 = 1;
};
} else {
if (_arg1 == 21){
if (qAdv(iLevel) < 7){
_local2 = 2;
} else {
_local2 = 6;
};
} else {
if (_arg1 == 22){
if (qRegen(iLevel) < 3){
_local2 = 2;
} else {
_local2 = 8;
};
} else {
if (_arg1 == 23){
if (qAdv(0) > (qMaxAdv(0) - 5)){
_local2 = 3;
} else {
_local2 = 7;
};
} else {
if (_arg1 == 24){
if (qMaxAdv(iLevel) == 8){
_local2 = 1;
} else {
_local2 = 8;
};
} else {
if (_arg1 == 25){
_local2 = 4;
} else {
if (_arg1 == 26){
_local2 = 3;
} else {
if (_arg1 == 27){
if (hoverUI.infoCardOp.wndBuffs.buff8.alpha == 1){
_local2 = 2;
} else {
_local2 = 7;
};
} else {
if (_arg1 == 28){
if (hoverUI.infoCardOp.wndBuffs.buff9.alpha == 1){
_local2 = 2;
} else {
_local2 = 7;
};
} else {
if (_arg1 == 29){
if (hoverUI.infoCardOp.wndBuffs.buff10.alpha == 1){
_local2 = 2;
} else {
_local2 = 5;
};
} else {
if (_arg1 == 30){
_local2 = 4;
} else {
if (_arg1 == 31){
_local2 = 2;
} else {
if (_arg1 == 32){
_local2 = 3;
} else {
if (_arg1 == 33){
if (hoverUI.infoCardOp.wndBuffs.buff12.alpha == 1){
_local2 = 2;
} else {
_local2 = 5;
};
} else {
if (_arg1 == 34){
if (hoverUI.infoCardOp.wndBuffs.buff13.alpha == 1){
_local2 = 2;
} else {
_local2 = 7;
};
} else {
if (_arg1 == 36){
if (hoverUI.infoCardOp.wndBuffs.buff14.alpha == 1){
_local2 = 2;
} else {
_local2 = 5;
};
} else {
if (_arg1 == 37){
if (hoverUI.infoCardOp.wndBuffs.buff15.alpha == 1){
_local2 = 2;
} else {
_local2 = 5;
};
} else {
if (_arg1 == 38){
if (hoverUI.infoCardOp.wndBuffs.buff20.alpha == 1){
_local2 = 2;
} else {
_local2 = 9;
};
} else {
if (_arg1 == 39){
_local2 = 10;
} else {
if (_arg1 == 40){
if (hoverUI.infoCardOp.wndBuffs.buff16.alpha == 1){
_local2 = 2;
} else {
_local2 = 7;
};
} else {
if (_arg1 == 41){
if (hoverUI.infoCardOp.wndBuffs.buff21.alpha == 1){
_local2 = 2;
} else {
_local2 = 9;
};
} else {
if (_arg1 == 42){
if (hoverUI.infoCardOp.wndBuffs.buff17.alpha == 1){
_local2 = 2;
} else {
_local2 = 6;
};
} else {
if (_arg1 == 43){
if (hoverUI.infoCardOp.wndBuffs.buff18.alpha == 1){
_local2 = 2;
} else {
_local2 = 7;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
return (_local2);
}
public function getLowestValueCard():Number{
var _local1:* = 99;
var _local2:* = 10;
var _local3:* = 0;
while (_local3 < 5) {
if (arrCardVal[_local3] < _local2){
_local2 = arrCardVal[_local3];
_local1 = _local3;
};
_local3++;
};
return (_local1);
}
public function getHighestValueCard():Number{
var _local1:* = 99;
var _local2:* = 0;
var _local3:* = 0;
while (_local3 < 5) {
if (arrAdvCost[arrHand[0][_local3]] <= qAdv(0)){
if (arrCardVal[_local3] > _local2){
_local2 = arrCardVal[_local3];
_local1 = _local3;
};
};
_local3++;
};
return (_local1);
}
public function getHighestTKValueCard():Number{
var _local1:* = 99;
var _local2:* = 0;
var _local3:* = 0;
while (_local3 < 5) {
if ((((arrAdvCost[arrHand[0][_local3]] <= qAdv(0))) && ((arrHand[0][_local3] < 14)))){
if (arrCardVal[_local3] > _local2){
_local2 = arrCardVal[_local3];
_local1 = _local3;
};
};
_local3++;
};
return (_local1);
}
public function getHighestValue(_arg1):Number{
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
if (_arg1 == 0){
_local4 = qAdv(0);
} else {
if (_arg1 == 1){
_local4 = ((qAdv(0) + qRegen(0)) + 2);
} else {
if (_arg1 == 2){
_local4 = ((qAdv(0) + (2 * qRegen(0))) + 4);
};
};
};
if (_local4 > qMaxAdv(0)){
_local4 = qMaxAdv(0);
};
var _local5:* = 0;
while (_local5 < 5) {
if (arrAdvCost[arrHand[0][_local5]] <= _local4){
if (arrCardVal[_local5] > _local3){
_local3 = arrCardVal[_local5];
};
};
_local5++;
};
return (_local3);
}
public function applyCardEffects(_arg1, _arg2, _arg3, _arg4):void{
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:Number;
var _local11:*;
console(((((("Apply card effects " + _arg1) + ", ") + _arg2) + ", ") + _arg3));
_local5 = 0;
_local6 = true;
_local7 = false;
_local8 = false;
_local9 = 0;
_local10 = 0;
if (_arg1 > 0){
_local6 = false;
};
if (_arg3 == 1){
_local5 = (1 + iBonusDmg);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
};
if (iTurn < 5){
_local5 = (_local5 + ((labelInfluence3.currentFrame - 1) * 2));
};
if (Math.floor((Math.random() * 100)) < qCrit(_arg1)){
_local7 = true;
_local5 = (_local5 * 2);
};
if ((((Math.floor((Math.random() * 100)) < qEvade(_arg2))) && ((bMaxDmgThisTurn == false)))){
_local8 = true;
if (_local6 == false){
showAnimationNr(2);
} else {
showAnimationNr(3);
};
} else {
startRandomTickleAnimation(_local6);
arrStats[_arg2][2] = (arrStats[_arg2][2] - _local5);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
};
};
showDamage(_local5, _local9, _local7, _local8, _local6);
} else {
if ((((_arg3 > 1)) && ((_arg3 < 10)))){
if (bMaxDmgThisTurn == true){
if (_arg3 == 2){
_local5 = 4;
};
if (_arg3 == 3){
_local5 = 6;
};
if (_arg3 == 4){
_local5 = 8;
};
if (_arg3 == 5){
_local5 = 8;
};
if (_arg3 == 6){
_local5 = 10;
};
if (_arg3 == 7){
_local5 = 8;
};
if (_arg3 == 8){
_local5 = 12;
};
if (_arg3 == 9){
_local5 = 12;
};
} else {
if (_arg3 == 2){
_local5 = (Math.ceil((Math.random() * 3)) + 1);
};
if (_arg3 == 3){
_local5 = (Math.ceil((Math.random() * 4)) + 2);
};
if (_arg3 == 4){
_local5 = (Math.ceil((Math.random() * 6)) + 2);
};
if (_arg3 == 5){
_local5 = (Math.ceil((Math.random() * 4)) + 4);
};
if (_arg3 == 6){
_local5 = ((Math.ceil((Math.random() * 4)) + Math.ceil((Math.random() * 4))) + 2);
};
if (_arg3 == 7){
_local5 = 8;
};
if (_arg3 == 8){
_local5 = (((Math.ceil((Math.random() * 3)) + Math.ceil((Math.random() * 3))) + Math.ceil((Math.random() * 3))) + 3);
};
if (_arg3 == 9){
_local5 = (Math.ceil((Math.random() * 4)) + 8);
};
};
_local5 = (_local5 + iBonusDmg);
if (iTurn < 5){
_local5 = (_local5 + ((labelInfluence3.currentFrame - 1) * 2));
};
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
};
if (Math.floor((Math.random() * 100)) < qCrit(_arg1)){
_local7 = true;
_local5 = (_local5 * 2);
};
if ((((Math.floor((Math.random() * 100)) < qEvade(_arg2))) && ((bMaxDmgThisTurn == false)))){
_local8 = true;
if (_local6 == false){
showAnimationNr(2);
} else {
showAnimationNr(3);
};
} else {
startRandomTickleAnimation(_local6);
if (arrBuffs[_arg1][7] == 0){
_local9 = qDef(_arg4);
};
_local5 = (_local5 - qDef(_arg4));
if (_local5 < 0){
_local5 = 0;
};
if (_arg1 > 0){
if ((((hoverUI.infoCardOp.wndBuffs.buff12.alpha == 1)) && ((_local5 > 5)))){
hoverUI.infoCardOp.wndBuffs.buff12.alpha = 0;
_local9 = (_local9 + _local5);
_local5 = 0;
dmgCloud.buff12.alpha = 1;
};
} else {
if ((((hoverUI.infoCardPlayer.wndBuffs.buff12.alpha == 1)) && ((_local5 > 5)))){
hoverUI.infoCardPlayer.wndBuffs.buff12.alpha = 0;
_local9 = (_local9 + _local5);
_local5 = 0;
dmgCloud.buff12.alpha = 1;
};
};
_local11 = 0;
if (_arg1 > 0){
if ((((hoverUI.infoCardOp.wndBuffs.buff14.alpha == 1)) && ((_local5 > 0)))){
_local11 = getDmgReduction(hoverUI.infoCardOp.wndBuffs.buff14, _local5);
_local9 = (_local9 + _local11);
_local5 = (_local5 - _local11);
dmgCloud.buff14.alpha = 1;
};
} else {
if ((((hoverUI.infoCardPlayer.wndBuffs.buff14.alpha == 1)) && ((_local5 > 0)))){
_local11 = getDmgReduction(hoverUI.infoCardPlayer.wndBuffs.buff14, _local5);
_local9 = (_local9 + _local11);
_local5 = (_local5 - _local11);
dmgCloud.buff14.alpha = 1;
};
};
if (_arg1 > 0){
if (hoverUI.infoCardOp.wndBuffs.buff15.alpha == 1){
if ((arrStats[_arg2][2] - _local5) > 0){
arrStats[_arg1][2] = (arrStats[_arg1][2] - Math.ceil((_local5 / 2)));
dmgCloud.buff15.alpha = 1;
dmgCloud.txtDmgReflect.text = (Math.ceil((_local5 / 2)) + " reflect!");
};
};
} else {
if (hoverUI.infoCardPlayer.wndBuffs.buff15.alpha == 1){
if ((arrStats[_arg2][2] - _local5) > 0){
arrStats[_arg1][2] = (arrStats[_arg1][2] - Math.ceil((_local5 / 2)));
dmgCloud.buff15.alpha = 1;
dmgCloud.txtDmgReflect.text = (Math.ceil((_local5 / 2)) + " reflect!");
};
};
};
arrStats[_arg2][2] = (arrStats[_arg2][2] - _local5);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
};
};
showDamage(_local5, _local9, _local7, _local8, _local6);
} else {
if (_arg3 == 10){
_local5 = (50 + iBonusDmg);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
};
if (iTurn < 5){
_local5 = (_local5 + ((labelInfluence3.currentFrame - 1) * 2));
};
if (Math.floor((Math.random() * 100)) < qCrit(_arg1)){
_local7 = true;
_local5 = (_local5 * 2);
};
startRandomTickleAnimation(_local6);
arrStats[_arg2][2] = (arrStats[_arg2][2] - _local5);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
};
showDamage(_local5, _local9, _local7, _local8, _local6);
} else {
if (_arg3 == 11){
_local5 = (1 + iBonusDmg);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
};
if (iTurn < 5){
_local5 = (_local5 + ((labelInfluence3.currentFrame - 1) * 2));
};
arrStats[_arg2][2] = (arrStats[_arg2][2] - _local5);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
};
if (_arg1 > 0){
hoverUI.infoCardOp.wndBuffs.buff1.alpha = 1;
} else {
hoverUI.infoCardPlayer.wndBuffs.buff1.alpha = 1;
};
showDamage(_local5, _local9, _local7, _local8, _local6);
startRandomTickleAnimation(_local6);
} else {
if (_arg3 == 12){
_local5 = (20 + iBonusDmg);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
};
if (iTurn < 5){
_local5 = (_local5 + ((labelInfluence3.currentFrame - 1) * 2));
};
if (Math.floor((Math.random() * 100)) < qCrit(_arg1)){
_local7 = true;
_local5 = (_local5 * 2);
};
if ((((Math.floor((Math.random() * 100)) < qEvade(_arg2))) && ((bMaxDmgThisTurn == false)))){
_local8 = true;
if (_local6 == false){
showAnimationNr(2);
} else {
showAnimationNr(3);
};
} else {
startRandomTickleAnimation(_local6);
arrStats[_arg2][2] = (arrStats[_arg2][2] - _local5);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
};
};
showDamage(_local5, _local9, _local7, _local8, _local6);
} else {
if (_arg3 == 13){
_local5 = (4 + iBonusDmg);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff16.alpha == 1){
_local5 = (_local5 + 4);
};
};
if (iTurn < 5){
_local5 = (_local5 + ((labelInfluence3.currentFrame - 1) * 2));
};
arrStats[_arg2][2] = (arrStats[_arg2][2] - _local5);
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
} else {
if (hoverUI.infoCardOp.wndBuffs.buff18.alpha == 1){
dmgCloud.txtHealed.text = ("+" + Math.ceil((_local5 / 2)));
dmgCloud.buff18.alpha = 1;
arrStats[_arg1][2] = (arrStats[_arg1][2] + Math.ceil((_local5 / 2)));
};
};
if (_arg1 > 0){
hoverUI.infoCardOp.wndBuffs.buff2.alpha = 1;
} else {
hoverUI.infoCardPlayer.wndBuffs.buff2.alpha = 1;
};
showDamage(_local5, _local9, _local7, _local8, _local6);
startRandomTickleAnimation(_local6);
arrBuffs[_arg2][0] = 3;
} else {
if (_arg3 == 14){
if (_arg1 > 0){
hoverUI.infoCardOp.wndBuffs.buff19.alpha = 0;
showAnimationNr(6);
} else {
hoverUI.infoCardPlayer.wndBuffs.buff19.alpha = 0;
showAnimationNr(7);
};
} else {
if (_arg3 == 15){
_local10 = ((arrStats[_arg1][1] + Math.ceil((Math.random() * 3))) + 3);
if (_local10 > qMaxAdv(_arg1)){
_local10 = qMaxAdv(_arg1);
};
arrStats[_arg1][1] = _local10;
} else {
if (_arg3 == 16){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff1.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff2.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff6.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff7.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff15.alpha = 0;
} else {
hoverUI.infoCardOp.wndBuffs.buff1.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff2.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff6.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff7.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff15.alpha = 0;
};
} else {
if (_arg3 == 17){
if (_arg1 > 0){
arrStats[iLevel][1] = qMaxAdv(iLevel);
arrStats[0][1] = 0;
showAnimationNr(4);
} else {
arrStats[iLevel][1] = 0;
arrStats[0][1] = qMaxAdv(0);
showAnimationNr(5);
};
} else {
if (_arg3 == 18){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff3.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff3.alpha = 1;
};
arrBuffs[_arg1][1] = 4;
} else {
if (_arg3 == 19){
if (_arg1 > 0){
if (hoverUI.infoCardPlayer.wndBuffs.buff4.alpha == 1){
if (hoverUI.infoCardPlayer.wndBuffs.buff4.currentFrame < 4){
hoverUI.infoCardPlayer.wndBuffs.buff4.gotoAndStop((hoverUI.infoCardPlayer.wndBuffs.buff4.currentFrame + 1));
};
} else {
hoverUI.infoCardPlayer.wndBuffs.buff4.alpha = 1;
};
hoverUI.infoCardPlayer.wndBuffs.buff6.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff6.gotoAndStop(1);
} else {
if (hoverUI.infoCardOp.wndBuffs.buff4.alpha == 1){
if (hoverUI.infoCardOp.wndBuffs.buff4.currentFrame < 4){
hoverUI.infoCardOp.wndBuffs.buff4.gotoAndStop((hoverUI.infoCardOp.wndBuffs.buff4.currentFrame + 1));
};
} else {
hoverUI.infoCardOp.wndBuffs.buff4.alpha = 1;
};
hoverUI.infoCardOp.wndBuffs.buff6.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff6.gotoAndStop(1);
};
} else {
if (_arg3 == 20){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff5.alpha = 1;
hoverUI.infoCardPlayer.wndBuffs.buff7.alpha = 0;
} else {
hoverUI.infoCardOp.wndBuffs.buff5.alpha = 1;
hoverUI.infoCardOp.wndBuffs.buff7.alpha = 0;
};
} else {
if (_arg3 == 21){
arrStats[_arg2][1] = 0;
} else {
if (_arg3 == 22){
if (_arg1 > 0){
if (hoverUI.infoCardOp.wndBuffs.buff6.alpha == 1){
if (hoverUI.infoCardOp.wndBuffs.buff6.currentFrame < 4){
hoverUI.infoCardOp.wndBuffs.buff6.gotoAndStop((hoverUI.infoCardOp.wndBuffs.buff6.currentFrame + 1));
};
} else {
hoverUI.infoCardOp.wndBuffs.buff6.alpha = 1;
};
hoverUI.infoCardOp.wndBuffs.buff4.alpha = 0;
hoverUI.infoCardOp.wndBuffs.buff4.gotoAndStop(1);
} else {
if (hoverUI.infoCardPlayer.wndBuffs.buff6.alpha == 1){
if (hoverUI.infoCardPlayer.wndBuffs.buff6.currentFrame < 4){
hoverUI.infoCardPlayer.wndBuffs.buff6.gotoAndStop((hoverUI.infoCardPlayer.wndBuffs.buff6.currentFrame + 1));
};
} else {
hoverUI.infoCardPlayer.wndBuffs.buff6.alpha = 1;
};
hoverUI.infoCardPlayer.wndBuffs.buff4.alpha = 0;
hoverUI.infoCardPlayer.wndBuffs.buff4.gotoAndStop(1);
};
} else {
if (_arg3 == 23){
arrStats[_arg1][1] = qMaxAdv(_arg1);
} else {
if (_arg3 == 24){
if (_arg1 > 0){
hoverUI.infoCardOp.wndBuffs.buff7.alpha = 1;
hoverUI.infoCardOp.wndBuffs.buff5.alpha = 0;
} else {
hoverUI.infoCardPlayer.wndBuffs.buff7.alpha = 1;
hoverUI.infoCardPlayer.wndBuffs.buff5.alpha = 0;
};
} else {
if (_arg3 == 25){
arrStats[_arg1][2] = (arrStats[_arg1][2] + 20);
} else {
if (_arg3 == 26){
arrStats[_arg1][2] = (arrStats[_arg1][2] + 10);
} else {
if (_arg3 == 27){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff8.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff8.alpha = 1;
};
arrBuffs[_arg1][4] = 4;
} else {
if (_arg3 == 28){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff9.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff9.alpha = 1;
};
arrBuffs[_arg1][5] = 4;
} else {
if (_arg3 == 29){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff10.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff10.alpha = 1;
};
arrBuffs[_arg1][6] = 3;
} else {
if (_arg3 == 30){
iBonusDmg = 4;
} else {
if (_arg3 == 31){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff11.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff11.alpha = 1;
};
arrBuffs[_arg1][7] = 2;
} else {
if (_arg3 == 32){
bMaxDmgThisTurn = true;
} else {
if (_arg3 == 33){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff12.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff12.alpha = 1;
};
} else {
if (_arg3 == 34){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff13.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff13.alpha = 1;
};
arrBuffs[_arg1][8] = 5;
} else {
if (_arg3 == 35){
if (arrHand[0][0] < 14){
wndHand.card6.gotoAndStop(2);
arrHand[0][0] = 1;
hihiTween = new Tween(wndHand.card6, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
if (arrHand[0][1] < 14){
wndHand.card7.gotoAndStop(2);
arrHand[0][1] = 1;
hihiTween = new Tween(wndHand.card7, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
if (arrHand[0][2] < 14){
wndHand.card8.gotoAndStop(2);
arrHand[0][2] = 1;
hihiTween = new Tween(wndHand.card8, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
if (arrHand[0][3] < 14){
wndHand.card9.gotoAndStop(2);
arrHand[0][3] = 1;
hihiTween = new Tween(wndHand.card9, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
if (arrHand[0][4] < 14){
wndHand.card10.gotoAndStop(2);
arrHand[0][4] = 1;
hihiTween = new Tween(wndHand.card10, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
} else {
if (_arg3 == 36){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff14.alpha = 1;
hoverUI.infoCardPlayer.wndBuffs.buff14.gotoAndStop(10);
} else {
hoverUI.infoCardOp.wndBuffs.buff14.alpha = 1;
hoverUI.infoCardOp.wndBuffs.buff14.gotoAndStop(10);
};
} else {
if (_arg3 == 37){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff15.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff15.alpha = 1;
};
arrBuffs[_arg1][10] = 5;
} else {
if (_arg3 == 38){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff20.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff20.alpha = 1;
};
arrBuffs[_arg1][2] = 3;
} else {
if (_arg3 == 39){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff22.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff22.alpha = 1;
};
arrBuffs[_arg1][9] = 3;
arrStats[_arg1][1] = qMaxAdv(_arg1);
} else {
if (_arg3 == 40){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff16.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff16.alpha = 1;
};
arrBuffs[_arg1][11] = 5;
} else {
if (_arg3 == 41){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff21.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff21.alpha = 1;
};
arrBuffs[_arg1][3] = 3;
} else {
if (_arg3 == 42){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff17.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff17.alpha = 1;
};
arrBuffs[_arg1][12] = 3;
} else {
if (_arg3 == 43){
if (_arg1 > 0){
hoverUI.infoCardPlayer.wndBuffs.buff18.alpha = 1;
} else {
hoverUI.infoCardOp.wndBuffs.buff18.alpha = 1;
};
arrBuffs[_arg1][13] = 5;
} else {
if (_arg3 == 44){
if (arrHand[0][0] > 13){
wndHand.card6.gotoAndStop(2);
arrHand[0][0] = 1;
hihiTween = new Tween(wndHand.card6, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
if (arrHand[0][1] > 13){
wndHand.card7.gotoAndStop(2);
arrHand[0][1] = 1;
hihiTween = new Tween(wndHand.card7, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
if (arrHand[0][2] > 13){
wndHand.card8.gotoAndStop(2);
arrHand[0][2] = 1;
hihiTween = new Tween(wndHand.card8, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
if (arrHand[0][3] > 13){
wndHand.card9.gotoAndStop(2);
arrHand[0][3] = 1;
hihiTween = new Tween(wndHand.card9, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
if (arrHand[0][4] > 13){
wndHand.card10.gotoAndStop(2);
arrHand[0][4] = 1;
hihiTween = new Tween(wndHand.card10, "alpha", None.easeNone, 0.2, 1, 1, true);
hihiTween.FPS = 40;
};
} else {
if (_arg3 == 45){
if (cloudTreshold.y < 600){
arrStats[1][3] = 0;
bChar1Down = true;
setTresholdToNextLevel();
};
} else {
if (_arg3 == 46){
if (cloudTreshold.y < 600){
arrStats[2][3] = 0;
bChar2Down = true;
setTresholdToNextLevel();
};
} else {
if (_arg3 == 47){
if (cloudTreshold.y < 600){
arrStats[3][3] = 0;
bChar3Down = true;
setTresholdToNextLevel();
};
} else {
if (_arg3 == 48){
if (cloudTreshold.y < 600){
arrStats[4][3] = 0;
bChar4Down = true;
setTresholdToNextLevel();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (bEndGame == true){
if (qEnd(0) < iTreshold){
arrStats[0][2] = iTreshold;
};
if (qEnd(0) == iTreshold){
cloudTreshold.y = 300;
};
};
}
public function getDmgReduction(_arg1, _arg2):Number{
var _local3:Number;
var _local4:*;
_local3 = 0;
_local4 = 0;
_local4 = _arg1.currentFrame;
if (_local4 > _arg2){
_local3 = _arg2;
_local4 = (_local4 - _arg2);
_arg1.gotoAndStop(_local4);
} else {
if (_local4 < _arg2){
_local3 = _local4;
_arg1.gotoAndStop(1);
_arg1.alpha = 0;
} else {
if (_local4 == _arg2){
_local3 = _arg2;
_arg1.gotoAndStop(1);
_arg1.alpha = 0;
};
};
};
return (_local3);
}
public function showHand():void{
var _local1:Number;
_local1 = (Number(arrHand[iLevel][0]) + 1);
wndHand.card1.gotoAndStop(_local1);
_local1 = (Number(arrHand[iLevel][1]) + 1);
wndHand.card2.gotoAndStop(_local1);
_local1 = (Number(arrHand[iLevel][2]) + 1);
wndHand.card3.gotoAndStop(_local1);
_local1 = (Number(arrHand[iLevel][3]) + 1);
wndHand.card4.gotoAndStop(_local1);
_local1 = (Number(arrHand[iLevel][4]) + 1);
wndHand.card5.gotoAndStop(_local1);
if (bDebugOpp == true){
_local1 = (Number(arrHand[0][0]) + 1);
wndHand.card6.gotoAndStop(_local1);
_local1 = (Number(arrHand[0][1]) + 1);
wndHand.card7.gotoAndStop(_local1);
_local1 = (Number(arrHand[0][2]) + 1);
wndHand.card8.gotoAndStop(_local1);
_local1 = (Number(arrHand[0][3]) + 1);
wndHand.card9.gotoAndStop(_local1);
_local1 = (Number(arrHand[0][4]) + 1);
wndHand.card10.gotoAndStop(_local1);
};
}
public function setCompleteTownToOwner(_arg1):void{
var _local2:*;
var _local3:*;
console("Complete town to owner");
_local2 = _arg1;
if (_arg1 < 5){
_local2 = 3;
};
if (_arg1 == 0){
_local2 = 2;
};
_local3 = 0;
while (_local3 < arrCityTile.length) {
arrTileOwner[arrCityQuad[_local3]][arrCityTile[_local3]] = _arg1;
if (arrCityQuad[_local3] == 0){
arrTileObjects[arrCityTile[_local3]].pin0.gotoAndStop(_local2);
};
if (arrCityQuad[_local3] == 1){
arrTileObjects[arrCityTile[_local3]].pin1.gotoAndStop(_local2);
};
if (arrCityQuad[_local3] == 2){
arrTileObjects[arrCityTile[_local3]].pin2.gotoAndStop(_local2);
};
if (arrCityQuad[_local3] == 3){
arrTileObjects[arrCityTile[_local3]].pin3.gotoAndStop(_local2);
};
_local3++;
};
}
public function displayTemporaryPins():void{
var _local1:*;
_local1 = iCurrentPlayer;
if (iCurrentPlayer < 5){
_local1 = 3;
};
if (iCurrentPlayer == 9){
_local1 = 2;
};
if (arrTileContent[0][arrCityTile[0]] == 3){
arrTileObjects[arrCityTile[0]].pin0.gotoAndStop(_local1);
};
if (arrTileContent[1][arrCityTile[0]] == 3){
arrTileObjects[arrCityTile[0]].pin1.gotoAndStop(_local1);
};
if (arrTileContent[2][arrCityTile[0]] == 3){
arrTileObjects[arrCityTile[0]].pin2.gotoAndStop(_local1);
};
if (arrTileContent[3][arrCityTile[0]] == 3){
arrTileObjects[arrCityTile[0]].pin3.gotoAndStop(_local1);
};
}
public function fadeAnimationOut():void{
menuSlideTween = new Tween(objAni, "alpha", Regular.easeIn, 1, 0, 2, true);
menuSlideTween.FPS = 40;
}
public function stopDemo():void{
stage.removeEventListener(MouseEvent.CLICK, mouseClicked);
stage.removeEventListener(MouseEvent.MOUSE_WHEEL, turnMouseWheel);
stage.removeEventListener(MouseEvent.MOUSE_OVER, mouseOn);
stage.removeEventListener(MouseEvent.MOUSE_OUT, mouseOff);
clearInterval(myInterval);
gotoAndStop(3);
}
public function updateVarsToConsole():void{
if (bEndGame == false){
wndConsole.txtConsoleVars.text = ((((((((((("current player: " + iCurrentPlayer) + "\nphase: ") + iPhase) + " turn: ") + iTurn) + "\nCountDown: ") + iCountDown) + "\nTiles left: ") + arrMapTileDeck.length) + "\nAniphase: ") + iAnimationPhase);
} else {
wndConsole.txtConsoleVars.text = ((((((((("current player: " + iLevel) + "\nturn: ") + iTurn) + "\nCountDown: ") + iCountDown) + "\nTiles left: ") + arrMapTileDeck.length) + "\nAniphase: ") + iAnimationPhase);
};
}
public function gotoNextLevel():void{
console("Go to next level");
iLevel++;
if (iLevel == 5){
bEndGame = true;
slideBoard(false);
slideMenu(false);
iPhase = 0;
iLevel = 1;
iCurrentPlayer = 1;
iOpponentNr = 1;
doCombat();
labelInfluence1.gotoAndStop((arrInfluence[0] + 1));
labelInfluence2.gotoAndStop((arrInfluence[1] + 1));
labelInfluence3.gotoAndStop((arrInfluence[2] + 1));
labelInfluence4.gotoAndStop((arrInfluence[3] + 1));
} else {
labelCardInfo.alpha = 0;
createBoard();
createTileDeck();
iCurrentPlayer = 9;
createRiver();
iPhase = 1;
iCurrentPlayer = iLevel;
getNextTileForPlayer();
slideBoard(true);
};
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
var _local4:*;
labelCardInfo.alpha = 0;
_local2 = "";
if (_arg1.target.name != null){
_local2 = _arg1.target.name;
};
if (_local2 == "txtText"){
_local2 = _arg1.target.parent.name;
};
if (_local2 == "img"){
_local2 = _arg1.target.parent.name;
};
if ((((_local2 == "btnRotateLeft")) && ((iPhase == 1)))){
arrTileObjects[120].mapTile.rotation = (arrTileObjects[120].mapTile.rotation - 90);
iCurrentRotation = (iCurrentRotation - 1);
if (iCurrentRotation < 0){
iCurrentRotation = 3;
};
checkValidLocations(true, iCurrentTile, iCurrentRotation);
} else {
if ((((_local2 == "btnRotateRight")) && ((iPhase == 1)))){
arrTileObjects[120].mapTile.rotation = (arrTileObjects[120].mapTile.rotation + 90);
iCurrentRotation = (iCurrentRotation + 1);
if (iCurrentRotation > 3){
iCurrentRotation = 0;
};
checkValidLocations(true, iCurrentTile, iCurrentRotation);
} else {
if (_local2 == "btnConsole"){
} else {
if (_local2 == "btnConsoleClose"){
hideConsole();
} else {
if (_local2 == "btnConsoleApply"){
consoleApply();
} else {
if ((((_local2 == "mapTile")) && ((iPhase == 1)))){
if (_arg1.target.currentFrame == 2){
_local3 = arrTileObjects.indexOf(_arg1.target.parent);
if (_local3 != -1){
clearValidLocations();
placeTile(_local3, iCurrentTile, iCurrentRotation);
arrTileObjects[120].mapTile.gotoAndStop(1);
findEleven();
trace(((("Start tile as found: " + iCurrentLocation) + " quad: ") + iCurrentQuad));
if (iCurrentLocation != 999){
trace("city found, going to city hub");
playerCityHub();
} else {
updateInfluence();
trace("NO CITY QUADRANTS FOUND... only updating influence...");
};
};
};
} else {
if ((((_local2 == "btnDiscardTile")) && ((iPhase == 1)))){
clearValidLocations();
arrTileObjects[120].mapTile.gotoAndStop(1);
if (iPhase != 0){
gotoNextPlayer();
};
} else {
if (_local2 == "btnCTD"){
hideIntermission();
if (bLevelSwitch == true){
wndMap.x = 1100;
};
} else {
if ((((_local2 == "btnPeggy")) && ((wndCharacterSwitcher.btnPeggy.alpha == 1)))){
iLevel = 1;
updateCharacterSwitcher();
} else {
if ((((_local2 == "btnJenny")) && ((wndCharacterSwitcher.btnJenny.alpha == 1)))){
iLevel = 2;
updateCharacterSwitcher();
} else {
if ((((_local2 == "btnAmanda")) && ((wndCharacterSwitcher.btnAmanda.alpha == 1)))){
iLevel = 3;
updateCharacterSwitcher();
} else {
if ((((_local2 == "btnJennifer")) && ((wndCharacterSwitcher.btnJennifer.alpha == 1)))){
iLevel = 4;
updateCharacterSwitcher();
} else {
if (_local2 == "btnStartCombat"){
bConflict = false;
doCombat();
} else {
if ((((_local2 == "btnTalk")) && ((wndTradeMenu.labelTradeMenu.btnTalk.alpha == 1)))){
wndCardLibrary.x = -475;
wndTradeMenu.labelTradeMenu.btnTalk.alpha = 0.2;
doDialog();
} else {
if ((((_local2 == "btnTrain")) && ((wndTradeMenu.labelTradeMenu.btnTrain.alpha == 1)))){
wndTradeMenu.labelTradeMenu.btnTrain.alpha = 0.2;
openCardLibrary(0);
wndTradeMenu.labelCover.x = 1;
wndTradeMenu.x = 24;
} else {
if (_local2 == "btnReplay"){
arrReplayTmp = [];
iSwimsuitStateL = 1;
iSwimsuitStateR = 1;
swimsuit_ground1.alpha = 0;
swimsuit_ground2.alpha = 0;
_local4 = 0;
while (_local4 < arrReplayArray.length) {
arrReplayTmp.push(arrReplayArray[_local4]);
_local4++;
};
bFinalAnimation = false;
iAnimationPhase = 1;
bReplay = true;
} else {
if (_local2 == "labelWinLose"){
exitAnimation();
stopDemo();
} else {
if (_local2 == "btnDiscardCard"){
if (wndHand.btnDiscardCard.alpha == 1){
wndHand.btnDiscardCard.gotoAndStop((3 - wndHand.btnDiscardCard.currentFrame));
};
} else {
if ((((((((_local2 == "card1")) && ((wndHand.card1.alpha == 1)))) && (!((wndHand.card1.currentFrame == 1))))) && ((iTurn < 3)))){
playCard(iLevel, iOpponentNr, 0);
} else {
if ((((((((_local2 == "card2")) && ((wndHand.card2.alpha == 1)))) && (!((wndHand.card2.currentFrame == 1))))) && ((iTurn < 3)))){
playCard(iLevel, iOpponentNr, 1);
} else {
if ((((((((_local2 == "card3")) && ((wndHand.card3.alpha == 1)))) && (!((wndHand.card3.currentFrame == 1))))) && ((iTurn < 3)))){
playCard(iLevel, iOpponentNr, 2);
} else {
if ((((((((_local2 == "card4")) && ((wndHand.card4.alpha == 1)))) && (!((wndHand.card4.currentFrame == 1))))) && ((iTurn < 3)))){
playCard(iLevel, iOpponentNr, 3);
} else {
if ((((((((_local2 == "card5")) && ((wndHand.card5.alpha == 1)))) && (!((wndHand.card5.currentFrame == 1))))) && ((iTurn < 3)))){
playCard(iLevel, iOpponentNr, 4);
} else {
if (_local2 == "btnDone"){
slideMenu(false);
wndTradeMenu.labelReceiveCard.x = -400;
wndTradeMenu.labelCover.x = -400;
} else {
if (_local2 == "btnTradeExit"){
closeTradeWindow();
playerCityHub();
} else {
if (_local2 == "btnEndTurn"){
iTurn = 11;
clearVariablesForNewTurn();
iCountDown = 4;
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.y = 996;
} else {
if (_local2 == "btnDiscard1"){
discardCard(iLevel, 0);
} else {
if (_local2 == "btnDiscard2"){
discardCard(iLevel, 1);
} else {
if (_local2 == "btnDiscard3"){
discardCard(iLevel, 2);
} else {
if (_local2 == "btnDiscard4"){
discardCard(iLevel, 3);
} else {
if (_local2 == "btnDiscard5"){
discardCard(iLevel, 4);
} else {
if (_local2 == "btnActContinue"){
labelAct.x = 1100;
if (bLevelSwitch == true){
boardSlideTween.stop();
wndMap.x = 1100;
bLevelSwitch = false;
deleteBoard();
labelInfluence1.gotoAndStop(1);
labelInfluence2.gotoAndStop(1);
labelInfluence3.gotoAndStop(1);
labelInfluence4.gotoAndStop(1);
gotoNextLevel();
} else {
slideBoard(true);
};
} else {
if ((((_local2 == "btnQuestion1")) && ((textCloud0.btnQuestion1.alpha == 1)))){
askQuestion(0);
} else {
if ((((_local2 == "btnQuestion2")) && ((textCloud0.btnQuestion2.alpha == 1)))){
askQuestion(1);
} else {
if ((((_local2 == "btnQuestion3")) && ((textCloud0.btnQuestion3.alpha == 1)))){
askQuestion(2);
} else {
if (_local2 == "btnCloud2"){
textCloud2.y = (textCloud0.y + 120);
} else {
if (_local2 == "btnCloud3"){
textCloud3.y = (textCloud2.y + 120);
} else {
if (_local2 == "btnCloud4"){
textCloud4.y = (textCloud3.y + 120);
} else {
if (_local2 == "mouseLU"){
rotateCards(true, true);
} else {
if (_local2 == "mouseLD"){
rotateCards(true, false);
} else {
if (_local2 == "mouseRU"){
rotateCards(false, true);
} else {
if (_local2 == "mouseRD"){
rotateCards(false, false);
} else {
if (_local2 == "btnReplace"){
if (wndCardLibrary.libTile8.currentFrame != 1){
arrDeck[iLevel][iShopDeckFocus] = (wndCardLibrary.libTile8.currentFrame - 1);
arrShopAvailableCards[iShopAvailableFocus] = 0;
wndCardLibrary.libTile8.gotoAndStop((arrShopAvailableCards[iShopAvailableFocus] + 1));
wndCardLibrary.libTile3.gotoAndStop((arrDeck[iLevel][iShopDeckFocus] + 1));
};
} else {
if (_local2 == "btnCloudExit"){
textCloud0.y = 1000;
textCloudFinished.y = 1000;
textCloud2.y = 1000;
textCloud3.y = 1000;
textCloud4.y = 1000;
openCardLibrary(iCardReward);
wndTradeMenu.labelReceiveCard.x = 1;
wndTradeMenu.x = 24;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function mouseOn(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.target;
if (_arg1.target.name == "img"){
_local2 = _arg1.target.parent;
} else {
_local2 = _arg1.target;
};
if ((((_local2.name.substring(0, 7) == "libTile")) || ((_local2.name.substring(0, 4) == "card")))){
labelCardInfo.alpha = 1;
labelCardInfo.gotoAndStop(_local2.currentFrame);
};
}
public function mouseOff(_arg1:MouseEvent):void{
labelCardInfo.alpha = 0;
}
public function playerCityHub():void{
console("Player city hub");
findEleven();
if (iCurrentLocation == 999){
gotoNextPlayer();
} else {
checkCityContested();
};
}
public function updateOwnerArrays(_arg1):void{
trace("not in use?");
}
public function myTimer():void{
if (wndConsole.alpha == 1){
updateVarsToConsole();
};
if (iCountDown > 0){
iCountDown--;
if (iTurn == 0){
if (iCountDown == 0){
if (iPhase == 10){
iPhase = 11;
opponentPlaceTile();
} else {
if (iPhase == 20){
iPhase = 1;
getNextTileForPlayer();
};
};
};
} else {
if (iCountDown == 0){
if (iTurn == 11){
iChosenCard = 0;
bAIForceEndTurn = false;
arrCardVal = [1, 1, 1, 1, 1];
selectAndPlayOPCard(true);
} else {
if (iTurn == 12){
selectAndPlayOPCard(false);
} else {
if (iTurn == 13){
iTurn = 1;
clearVariablesForNewTurn();
newTurnActions();
wndHand.btnEndTurn.y = 996;
wndHand.btnDiscardCard.y = 396;
if (bEndGame == true){
updateCharacterSwitcher();
};
};
};
};
};
};
};
}
public function createTileDeck():void{
var _local1:Array;
var _local2:*;
console("Create tile deck");
arrMapTileDeck = [];
arrMapTileDeck[0] = 36;
_local1 = [9, 11, 17, 29, 32, 33, 34, 34, 35, 35];
_local2 = 0;
while (_local2 < 10) {
arrMapTileDeck.push(_local1.splice(Math.floor((Math.random() * _local1.length)), 1));
_local2++;
};
arrMapTileDeck[11] = 37;
_local1 = [4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 10, 10, 10, 12, 12, 13, 13, 13, 14, 14, 15, 15, 15, 16, 16, 18, 19, 19, 20, 20, 20, 21, 22, 22, 23, 24, 25, 26, 26, 26, 26, 27, 27, 28, 28, 28, 28, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31];
_local2 = 0;
while (_local2 < 72) {
arrMapTileDeck.push(_local1.splice(Math.floor((Math.random() * _local1.length)), 1));
_local2++;
};
}
public function createRiver():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
console("Create river");
_local1 = false;
_local2 = 0;
_local3 = 0;
_local4 = 0;
while ((((_local1 == false)) && ((_local4 < 5)))) {
clearBoard();
_local1 = true;
_local4++;
_local2 = (Math.floor((Math.random() * 8)) + 2);
_local3 = (Math.floor((Math.random() * 6)) + 2);
placeTile((_local2 + (_local3 * 12)), 36, Math.floor((Math.random() * 4)));
_local5 = 1;
while (_local5 < 12) {
iCurrentTile = arrMapTileDeck[_local5];
checkValidLocations(false, iCurrentTile, 0);
displayTemporaryPins();
if (highestPriority != 1){
_local1 = false;
};
_local5++;
};
};
arrMapTileDeck.splice(0, 12);
myTween.stop();
cursorBlock.alpha = 0;
arrContestion = [[9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]];
}
public function clearBoard():void{
var _local1:*;
console("Clear board");
_local1 = 0;
while (_local1 < 120) {
restoreTile(_local1);
_local1++;
};
}
public function getNextTileForPlayer():void{
console("Get next tile for player");
iCurrentTile = arrMapTileDeck.splice(0, 1);
arrTileObjects[120].mapTile.gotoAndStop(iCurrentTile);
checkValidLocations(true, iCurrentTile, 0);
}
public function opponentPlaceTile():void{
console(("Opponent place tile " + iCurrentPlayer));
iTradeLevel = 0;
iCurrentTile = arrMapTileDeck.splice(0, 1);
checkValidLocations(false, iCurrentTile, 0);
}
public function createBoard():void{
var _local1:*;
var _local2:*;
console("Create board");
_local1 = 0;
while (_local1 < 10) {
_local2 = 0;
while (_local2 < 12) {
if (iLevel == 1){
objTile = new mapTileGreen();
} else {
if (iLevel == 2){
objTile = new mapTileBlue();
} else {
if (iLevel == 3){
objTile = new mapTileRed();
} else {
objTile = new mapTileGreen();
};
};
};
objTile.x = (150 + (_local2 * 70));
objTile.y = (90 + (_local1 * 70));
objTile.gotoAndStop(1);
wndMap.addChild(objTile);
arrTileObjects.push(objTile);
_local2++;
};
_local1++;
};
if (iLevel == 1){
objTile = new mapTileGreen();
} else {
if (iLevel == 2){
objTile = new mapTileBlue();
} else {
if (iLevel == 3){
objTile = new mapTileRed();
} else {
objTile = new mapTileGreen();
};
};
};
objTile.x = 18;
objTile.y = 190;
objTile.scaleX = 1.5;
objTile.scaleY = 1.5;
wndMap.addChild(objTile);
arrTileObjects.push(objTile);
setChildIndex(cursorBlock, (numChildren - 1));
setChildIndex(labelCombat, (numChildren - 1));
}
public function deleteBoard():void{
console("Delete board");
if (arrTileObjects.length > 0){
while (arrTileObjects.length > 0) {
wndMap.removeChild(arrTileObjects[0]);
arrTileObjects.splice(0, 1);
};
};
}
public function checkCityContested():void{
var _local1:Array;
var _local2:Array;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
console("Check city contested");
_local1 = [];
_local2 = [];
getFullTown(iCurrentLocation, iCurrentQuad);
_local3 = 0;
while (_local3 < arrCityTile.length) {
_local5 = arrTileOwner[arrCityQuad[_local3]][arrCityTile[_local3]];
_local6 = _local1.indexOf(_local5);
if (_local6 < 0){
_local1.push(_local5);
_local2.push(1);
} else {
_local2[_local6] = (_local2[_local6] + 1);
};
_local3++;
};
_local4 = 0;
while (_local4 < arrCityTile.length) {
arrContestion[arrCityQuad[_local4]][arrCityTile[_local4]] = 9;
_local4++;
};
if (_local2.length == 1){
setCompleteTownToOwner(iCurrentPlayer);
updateInfluence();
if ((((arrCityTile.length == 1)) && ((iCurrentPlayer < 5)))){
iTradeLevel = 3;
};
if (iCurrentPlayer < 5){
if (iPhase != 0){
iPhase = 2;
showTradeMenu();
};
} else {
if (iPhase != 0){
playerCityHub();
};
};
} else {
iPlayerCombat = 0;
_local7 = 0;
iOpponentNr = 0;
iOpponentTotal = 0;
if (iCurrentPlayer < 5){
bConflict = true;
};
_local8 = 0;
while (_local8 < _local1.length) {
if ((((_local1[_local8] > 0)) && ((_local1[_local8] < 5)))){
iPlayerCombat = _local2[_local8];
} else {
_local7 = (_local7 + _local2[_local8]);
if (_local2[_local8] > iOpponentTotal){
iOpponentTotal = _local2[_local8];
iOpponentNr = _local1[_local8];
};
};
_local8++;
};
if (iPhase == 1){
iPhase = 2;
} else {
if (iPhase == 11){
iPhase = 12;
};
};
if (iPlayerCombat > 0){
displayTemporaryPins();
showConflictBox();
} else {
if (iPhase != 0){
setCompleteTownToOwner(iOpponentNr);
updateInfluence();
playerCityHub();
};
};
};
}
public function updateInfluenceBar():void{
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = ((((((iInfluencePlayer + iInfluenceRed) + iInfluenceGreen) + iInfluenceBlue) + iInfluenceBlack) + iInfluencePurple) + iInfluenceGray);
_local2 = 0;
_local3 = 0;
if (_local1 < 135){
_local1 = 135;
};
barWhite.x = 690;
barWhite.scaleX = (iInfluencePlayer / _local1);
_local2 = barWhite.width;
_local3 = Math.round(((iInfluencePlayer / _local1) * 100));
txtPlayerInfluence.text = (("(" + _local3) + "%)");
if (_local3 >= 75){
if (iLevel == 1){
labelInfluence1.gotoAndStop(4);
};
if (iLevel == 2){
labelInfluence2.gotoAndStop(4);
};
if (iLevel == 3){
labelInfluence3.gotoAndStop(4);
};
if (iLevel == 4){
labelInfluence4.gotoAndStop(4);
};
} else {
if (_local3 >= 50){
if (iLevel == 1){
labelInfluence1.gotoAndStop(3);
};
if (iLevel == 2){
labelInfluence2.gotoAndStop(3);
};
if (iLevel == 3){
labelInfluence3.gotoAndStop(3);
};
if (iLevel == 4){
labelInfluence4.gotoAndStop(3);
};
} else {
if (_local3 >= 25){
if (iLevel == 1){
labelInfluence1.gotoAndStop(2);
};
if (iLevel == 2){
labelInfluence2.gotoAndStop(2);
};
if (iLevel == 3){
labelInfluence3.gotoAndStop(2);
};
if (iLevel == 4){
labelInfluence4.gotoAndStop(2);
};
};
};
};
barGreen.x = (690 + _local2);
barGreen.scaleX = (iInfluenceGreen / _local1);
_local2 = (_local2 + barGreen.width);
barBlue.x = (690 + _local2);
barBlue.scaleX = (iInfluenceBlue / _local1);
_local2 = (_local2 + barBlue.width);
barRed.x = (690 + _local2);
barRed.scaleX = (iInfluenceRed / _local1);
_local2 = (_local2 + barRed.width);
barBlack.x = (690 + _local2);
barBlack.scaleX = (iInfluenceBlack / _local1);
_local2 = (_local2 + barBlack.width);
barPurple.x = (690 + _local2);
barPurple.scaleX = (iInfluencePurple / _local1);
_local2 = (_local2 + barPurple.width);
if (arrMapTileDeck.length == 50){
if (iLevel == 1){
showIntermission(1);
};
if (iLevel == 2){
showIntermission(4);
};
if (iLevel == 3){
showIntermission(7);
};
if (iLevel == 4){
showIntermission(10);
};
} else {
if (arrMapTileDeck.length == 25){
if (iLevel == 1){
showIntermission(2);
};
if (iLevel == 2){
showIntermission(5);
};
if (iLevel == 3){
showIntermission(8);
};
if (iLevel == 4){
showIntermission(11);
};
};
};
if (((!((iPhase == 0))) && ((arrMapTileDeck.length == 0)))){
iPhase = 0;
bConflict = true;
bLevelSwitch = true;
if (iLevel == 1){
showIntermission(3);
labelAct.labelActText.gotoAndStop(2);
};
if (iLevel == 2){
showIntermission(6);
labelAct.labelActText.gotoAndStop(3);
};
if (iLevel == 3){
showIntermission(9);
labelAct.labelActText.gotoAndStop(4);
};
if (iLevel == 4){
showIntermission(12);
labelAct.labelActText.gotoAndStop(5);
};
labelAct.x = 0;
wndTradeMenu.x = -900;
labelCombat.y = 900;
slideBoard(false);
saveEleptoclypseData();
};
}
public function showIntermission(_arg1):void{
console("Show intermission");
wndIntermission.interStory.gotoAndStop(_arg1);
setChildIndex(wndIntermission, (numChildren - 1));
wndIntermission.x = 0;
}
public function hideIntermission():void{
console("Hide intermission");
wndIntermission.x = 1100;
}
public function showConflictBox():void{
var _local1:*;
var _local2:*;
console("Show conflict box");
_local1 = 0;
_local2 = 0;
boardSlideTween.stop();
wndMap.x = 0;
wndMap.y = 0;
if (arrCityQuad[0] == 0){
_local2 = -15;
} else {
if (arrCityQuad[0] == 1){
_local1 = 15;
} else {
if (arrCityQuad[0] == 2){
_local2 = 15;
} else {
_local1 = -15;
};
};
};
labelCombat.x = (arrTileObjects[arrCityTile[0]].x + _local1);
labelCombat.y = (arrTileObjects[arrCityTile[0]].y + _local2);
if ((((labelCombat.x < 555)) && ((labelCombat.y < 455)))){
labelCombat.gotoAndStop(1);
} else {
if (labelCombat.x < 555){
labelCombat.gotoAndStop(3);
} else {
if (labelCombat.y < 455){
labelCombat.gotoAndStop(2);
} else {
labelCombat.gotoAndStop(4);
};
};
};
closeTradeWindow();
}
public function updateInfluence():void{
var _local1:*;
var _local2:*;
iInfluencePlayer = 0;
iInfluenceGreen = 0;
iInfluenceBlue = 0;
iInfluenceRed = 0;
iInfluenceBlack = 0;
iInfluencePurple = 0;
iInfluenceGray = 0;
_local1 = 0;
while (_local1 < 4) {
_local2 = 0;
while (_local2 < 120) {
if (arrTileOwner[_local1][_local2] == 0){
} else {
if (arrTileOwner[_local1][_local2] == 9){
iInfluenceGray = (iInfluenceGray + addBonusInfluence(arrTiles[_local2]));
} else {
if (arrTileOwner[_local1][_local2] < 5){
iInfluencePlayer = (iInfluencePlayer + addBonusInfluence(arrTiles[_local2]));
} else {
if (arrTileOwner[_local1][_local2] == 5){
iInfluenceGreen = (iInfluenceGreen + addBonusInfluence(arrTiles[_local2]));
} else {
if (arrTileOwner[_local1][_local2] == 6){
iInfluenceBlue = (iInfluenceBlue + addBonusInfluence(arrTiles[_local2]));
} else {
if (arrTileOwner[_local1][_local2] == 7){
iInfluenceRed = (iInfluenceRed + addBonusInfluence(arrTiles[_local2]));
} else {
if (arrTileOwner[_local1][_local2] == 8){
iInfluenceBlack = (iInfluenceBlack + addBonusInfluence(arrTiles[_local2]));
};
};
};
};
};
};
};
_local2++;
};
_local1++;
};
updateInfluenceBar();
}
public function addBonusInfluence(_arg1):Number{
var _local2:*;
_local2 = 0;
if ((((_arg1 > 3)) && ((_arg1 < 25)))){
_local2 = (_local2 + 1);
};
if ((((((((((((_arg1 == 14)) || ((_arg1 == 16)))) || ((_arg1 == 19)))) || ((_arg1 == 21)))) || ((_arg1 == 23)))) || ((_arg1 == 24)))){
_local2 = (_local2 + 1);
};
if ((((_arg1 == 25)) || ((_arg1 == 27)))){
_local2 = (_local2 + 2);
};
if ((((((((_arg1 == 26)) || ((_arg1 == 27)))) || ((_arg1 == 28)))) || ((_arg1 == 29)))){
_local2 = (_local2 + 1);
};
if ((((_arg1 > 29)) && ((_arg1 < 34)))){
_local2 = (_local2 + 0.5);
};
return (_local2);
}
public function checkValidLocations(_arg1, _arg2, _arg3):void{
var _local4:*;
var _local5:Array;
var _local6:Array;
var _local7:Array;
var _local8:*;
var _local9:*;
var _local10:*;
clearValidLocations();
if (_arg1 == true){
_local4 = 0;
while (_local4 < 120) {
if (arrTileObjects[_local4].mapTile.currentFrame == 1){
if (isTileLocValid(_local4, _arg2, _arg3) == true){
arrTileObjects[_local4].mapTile.gotoAndStop(2);
};
};
_local4++;
};
} else {
_local5 = [];
_local6 = [];
_local7 = [];
highestPriority = 5;
_local8 = 0;
while (_local8 < 120) {
if (arrTileObjects[_local8].mapTile.currentFrame == 1){
_local9 = 0;
while (_local9 < 4) {
if (isTileLocValid(_local8, _arg2, _local9) == true){
_local5.push(_local8);
_local6.push(_local9);
_local7.push(arrPriority[0]);
if (arrPriority[0] < highestPriority){
highestPriority = arrPriority[0];
};
};
_local9++;
};
};
_local8++;
};
if ((((iPhase == 0)) && ((highestPriority > 1)))){
} else {
if (_local5.length > 0){
_local9 = (_local5.length - 1);
while (_local9 > -1) {
if (_local7[_local9] > highestPriority){
_local5.splice(_local9, 1);
_local6.splice(_local9, 1);
_local7.splice(_local9, 1);
};
_local9--;
};
_local10 = Math.floor((Math.random() * _local5.length));
placeTile(_local5[_local10], _arg2, _local6[_local10]);
if (iPhase != 0){
playerCityHub();
};
} else {
if (iPhase != 0){
gotoNextPlayer();
};
};
};
};
}
public function clearValidLocations():void{
var _local1:*;
_local1 = 0;
while (_local1 < arrTileObjects.length) {
if (arrTileObjects[_local1].mapTile.currentFrame == 2){
arrTileObjects[_local1].mapTile.gotoAndStop(1);
};
_local1++;
};
}
public function isTileLocValid(_arg1, _arg2, _arg3):Boolean{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
_local12 = 5;
_local13 = 5;
_local14 = 5;
_local15 = 5;
_local16 = 0;
if (_arg3 == 0){
_local8 = 0;
_local9 = 1;
_local10 = 2;
_local11 = 3;
} else {
if (_arg3 == 1){
_local8 = 3;
_local9 = 0;
_local10 = 1;
_local11 = 2;
} else {
if (_arg3 == 2){
_local8 = 2;
_local9 = 3;
_local10 = 0;
_local11 = 1;
} else {
_local8 = 1;
_local9 = 2;
_local10 = 3;
_local11 = 0;
};
};
};
_local4 = arrTileLayout[_local8][_arg2];
_local5 = arrTileLayout[_local9][_arg2];
_local6 = arrTileLayout[_local10][_arg2];
_local7 = arrTileLayout[_local11][_arg2];
if (_arg1 > 11){
if (arrTileContent[2][(_arg1 - 12)] != 9){
_local16++;
if (arrTileContent[2][(_arg1 - 12)] != _local4){
return (false);
};
_local12 = getPriority(_local4);
};
};
if (((((((((((((((((((!((_arg1 == 11))) && (!((_arg1 == 23))))) && (!((_arg1 == 35))))) && (!((_arg1 == 47))))) && (!((_arg1 == 59))))) && (!((_arg1 == 71))))) && (!((_arg1 == 83))))) && (!((_arg1 == 95))))) && (!((_arg1 == 107))))) && (!((_arg1 == 119))))){
if (arrTileContent[3][(_arg1 + 1)] != 9){
_local16++;
if (arrTileContent[3][(_arg1 + 1)] != _local5){
return (false);
};
_local14 = getPriority(_local5);
};
};
if (_arg1 < 108){
if (arrTileContent[0][(_arg1 + 12)] != 9){
_local16++;
if (arrTileContent[0][(_arg1 + 12)] != _local6){
return (false);
};
_local13 = getPriority(_local6);
};
};
if (((((((((((((((((((!((_arg1 == 0))) && (!((_arg1 == 12))))) && (!((_arg1 == 24))))) && (!((_arg1 == 36))))) && (!((_arg1 == 48))))) && (!((_arg1 == 60))))) && (!((_arg1 == 72))))) && (!((_arg1 == 84))))) && (!((_arg1 == 96))))) && (!((_arg1 == 108))))){
if (arrTileContent[1][(_arg1 - 1)] != 9){
_local16++;
if (arrTileContent[1][(_arg1 - 1)] != _local7){
return (false);
};
_local15 = getPriority(_local7);
};
};
if (_local16 == 0){
return (false);
};
if (arrTiles[_arg1] == 37){
return (false);
};
if ((((((((_local12 == 1)) || ((_local15 == 1)))) || ((_local13 == 1)))) || ((_local14 == 1)))){
arrPriority[0] = 1;
} else {
if ((((((((_local12 == 2)) || ((_local15 == 2)))) || ((_local13 == 2)))) || ((_local14 == 2)))){
arrPriority[0] = 2;
} else {
if ((((((((_local12 == 3)) || ((_local15 == 3)))) || ((_local13 == 3)))) || ((_local14 == 3)))){
arrPriority[0] = 3;
} else {
arrPriority[0] = 4;
};
};
};
return (true);
}
public function getPriority(_arg1):Number{
if (_arg1 == 2){
return (1);
};
if (_arg1 == 3){
return (2);
};
if (_arg1 == 1){
return (3);
};
return (4);
}
public function flashCursorBlock(_arg1, _arg2):void{
cursorBlock.x = _arg1;
cursorBlock.y = _arg2;
cursorBlock.gotoAndStop(iCurrentPlayer);
myTween.stop();
myTween = new Tween(cursorBlock, "alpha", None.easeNone, 1, 0, 1.5, true);
myTween.FPS = 40;
}
public function placeTile(_arg1, _arg2, _arg3):void{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
console(((((("Place tile " + _arg1) + ", ") + _arg2) + ", ") + _arg3));
iTradeLevel = 0;
arrTiles[_arg1] = _arg2;
if (_arg3 == 0){
_local4 = 0;
_local5 = 1;
_local6 = 2;
_local7 = 3;
} else {
if (_arg3 == 1){
_local4 = 3;
_local5 = 0;
_local6 = 1;
_local7 = 2;
} else {
if (_arg3 == 2){
_local4 = 2;
_local5 = 3;
_local6 = 0;
_local7 = 1;
} else {
_local4 = 1;
_local5 = 2;
_local6 = 3;
_local7 = 0;
};
};
};
arrTileContent[0][_arg1] = arrTileLayout[_local4][_arg2];
arrTileContent[1][_arg1] = arrTileLayout[_local5][_arg2];
arrTileContent[2][_arg1] = arrTileLayout[_local6][_arg2];
arrTileContent[3][_arg1] = arrTileLayout[_local7][_arg2];
if (iPhase == 0){
if (arrTileContent[0][_arg1] == 3){
arrTileObjects[_arg1].pin0.gotoAndStop(2);
};
if (arrTileContent[1][_arg1] == 3){
arrTileObjects[_arg1].pin1.gotoAndStop(2);
};
if (arrTileContent[2][_arg1] == 3){
arrTileObjects[_arg1].pin2.gotoAndStop(2);
};
if (arrTileContent[3][_arg1] == 3){
arrTileObjects[_arg1].pin3.gotoAndStop(2);
};
};
if ((((_arg2 > 24)) && ((_arg2 < 34)))){
_local8 = iCurrentPlayer;
if (iCurrentPlayer < 5){
_local8 = 3;
};
if (iCurrentPlayer == 0){
_local8 = 2;
};
arrTileOwner[_local4][_arg1] = iCurrentPlayer;
if (_local4 == 0){
arrTileObjects[_arg1].pin0.gotoAndStop(_local8);
} else {
if (_local4 == 1){
arrTileObjects[_arg1].pin1.gotoAndStop(_local8);
} else {
if (_local4 == 2){
arrTileObjects[_arg1].pin2.gotoAndStop(_local8);
} else {
arrTileObjects[_arg1].pin3.gotoAndStop(_local8);
};
};
};
updateInfluence();
};
if (iCurrentPlayer < 5){
if ((((_arg2 == 25)) || ((_arg2 == 27)))){
iTradeLevel = 2;
} else {
if ((((_arg2 > 24)) && ((_arg2 < 30)))){
iTradeLevel = 1;
};
};
};
arrTileObjects[_arg1].mapTile.gotoAndStop(_arg2);
arrTileObjects[_arg1].mapTile.rotation = (90 * _arg3);
arrTileObjects[120].mapTile.rotation = 0;
arrTileObjects[120].mapTile.gotoAndStop(1);
iCurrentRotation = 0;
flashCursorBlock(arrTileObjects[_arg1].x, arrTileObjects[_arg1].y);
if (arrTileContent[0][_arg1] == 3){
arrTileOwner[0][_arg1] = iCurrentPlayer;
arrContestion[0][_arg1] = 11;
};
if (arrTileContent[1][_arg1] == 3){
arrTileOwner[1][_arg1] = iCurrentPlayer;
arrContestion[1][_arg1] = 11;
};
if (arrTileContent[2][_arg1] == 3){
arrTileOwner[2][_arg1] = iCurrentPlayer;
arrContestion[2][_arg1] = 11;
};
if (arrTileContent[3][_arg1] == 3){
arrTileOwner[3][_arg1] = iCurrentPlayer;
arrContestion[3][_arg1] = 11;
};
if ((((iCurrentPlayer < 5)) && ((iTradeLevel > 0)))){
iPhase = 3;
showTradeMenu();
} else {
if ((((iCurrentPlayer < 5)) && ((iTradeLevel == 0)))){
playerCityHub();
};
};
}
public function restoreTile(_arg1):void{
if (arrTiles[_arg1] != 0){
arrTiles[_arg1] = 0;
arrTileContent[0][_arg1] = 9;
arrTileContent[1][_arg1] = 9;
arrTileContent[2][_arg1] = 9;
arrTileContent[3][_arg1] = 9;
arrTileOwner[0][_arg1] = 0;
arrTileOwner[1][_arg1] = 0;
arrTileOwner[2][_arg1] = 0;
arrTileOwner[3][_arg1] = 0;
arrTileObjects[_arg1].mapTile.gotoAndStop(1);
arrTileObjects[_arg1].mapTile.rotation = 0;
arrTileObjects[_arg1].pin0.gotoAndStop(1);
arrTileObjects[_arg1].pin1.gotoAndStop(1);
arrTileObjects[_arg1].pin2.gotoAndStop(1);
arrTileObjects[_arg1].pin3.gotoAndStop(1);
};
}
public function getFullTown(_arg1, _arg2):void{
var _local3:Number;
console(((("getFullTown " + _arg1) + ", ") + _arg2));
_local3 = 0;
arrCityTile = [];
arrCityQuad = [];
arrCityTile.push(_arg1);
arrCityQuad.push(_arg2);
while (_local3 < arrCityTile.length) {
if (arrCityQuad[_local3] == 0){
if (checkNorth(_local3) == true){
addToCityArray((arrCityTile[_local3] - 12), 2);
};
if (checkClockwise(_local3) == true){
addToCityArray(arrCityTile[_local3], 1);
};
if (checkAntiClockwise(_local3) == true){
addToCityArray(arrCityTile[_local3], 3);
};
if (checkOpposite(_local3) == true){
addToCityArray(arrCityTile[_local3], 2);
};
} else {
if (arrCityQuad[_local3] == 1){
if (checkEast(_local3) == true){
addToCityArray((arrCityTile[_local3] + 1), 3);
};
if (checkClockwise(_local3) == true){
addToCityArray(arrCityTile[_local3], 2);
};
if (checkAntiClockwise(_local3) == true){
addToCityArray(arrCityTile[_local3], 0);
};
if (checkOpposite(_local3) == true){
addToCityArray(arrCityTile[_local3], 3);
};
} else {
if (arrCityQuad[_local3] == 2){
if (checkSouth(_local3) == true){
addToCityArray((arrCityTile[_local3] + 12), 0);
};
if (checkClockwise(_local3) == true){
addToCityArray(arrCityTile[_local3], 3);
};
if (checkAntiClockwise(_local3) == true){
addToCityArray(arrCityTile[_local3], 1);
};
if (checkOpposite(_local3) == true){
addToCityArray(arrCityTile[_local3], 0);
};
} else {
if (arrCityQuad[_local3] == 3){
if (checkWest(_local3) == true){
addToCityArray((arrCityTile[_local3] - 1), 1);
};
if (checkClockwise(_local3) == true){
addToCityArray(arrCityTile[_local3], 0);
};
if (checkAntiClockwise(_local3) == true){
addToCityArray(arrCityTile[_local3], 2);
};
if (checkOpposite(_local3) == true){
addToCityArray(arrCityTile[_local3], 1);
};
};
};
};
};
_local3++;
};
}
public function addToCityArray(_arg1, _arg2):void{
var _local3:*;
var _local4:*;
_local3 = false;
_local4 = 0;
while (_local4 < arrCityTile.length) {
if ((((arrCityTile[_local4] == _arg1)) && ((arrCityQuad[_local4] == _arg2)))){
_local3 = true;
};
_local4++;
};
if (_local3 == false){
arrCityTile.push(_arg1);
arrCityQuad.push(_arg2);
};
}
public function checkNorth(_arg1):Boolean{
if (arrCityTile[_arg1] < 12){
return (false);
};
if (arrTileContent[2][(arrCityTile[_arg1] - 12)] == 3){
updateTradeLevel(arrTiles[(arrCityTile[_arg1] - 12)]);
return (true);
};
return (false);
}
public function checkSouth(_arg1):Boolean{
if (arrCityTile[_arg1] > 107){
return (false);
};
if (arrTileContent[0][(arrCityTile[_arg1] + 12)] == 3){
updateTradeLevel(arrTiles[(arrCityTile[_arg1] + 12)]);
return (true);
};
return (false);
}
public function checkWest(_arg1):Boolean{
if ((((((((((((((((((((arrCityTile[_arg1] == 0)) || ((arrCityTile[_arg1] == 12)))) || ((arrCityTile[_arg1] == 24)))) || ((arrCityTile[_arg1] == 36)))) || ((arrCityTile[_arg1] == 48)))) || ((arrCityTile[_arg1] == 60)))) || ((arrCityTile[_arg1] == 72)))) || ((arrCityTile[_arg1] == 84)))) || ((arrCityTile[_arg1] == 96)))) || ((arrCityTile[_arg1] == 108)))){
return (false);
};
if (arrTileContent[1][(arrCityTile[_arg1] - 1)] == 3){
updateTradeLevel(arrTiles[(arrCityTile[_arg1] - 1)]);
return (true);
};
return (false);
}
public function checkEast(_arg1):Boolean{
if ((((((((((((((((((((arrCityTile[_arg1] == 11)) || ((arrCityTile[_arg1] == 23)))) || ((arrCityTile[_arg1] == 35)))) || ((arrCityTile[_arg1] == 47)))) || ((arrCityTile[_arg1] == 59)))) || ((arrCityTile[_arg1] == 71)))) || ((arrCityTile[_arg1] == 83)))) || ((arrCityTile[_arg1] == 95)))) || ((arrCityTile[_arg1] == 107)))) || ((arrCityTile[_arg1] == 119)))){
return (false);
};
if (arrTileContent[3][(arrCityTile[_arg1] + 1)] == 3){
updateTradeLevel(arrTiles[(arrCityTile[_arg1] + 1)]);
return (true);
};
return (false);
}
public function checkClockwise(_arg1):Boolean{
var _local2:*;
_local2 = 0;
if (arrTiles[arrCityTile[_arg1]] < 13){
return (false);
};
_local2 = (arrCityQuad[_arg1] + 1);
if (_local2 > 3){
_local2 = 0;
};
if (arrTileContent[_local2][arrCityTile[_arg1]] == 3){
updateTradeLevel(arrTiles[arrCityTile[_arg1]]);
return (true);
};
return (false);
}
public function checkAntiClockwise(_arg1):Boolean{
var _local2:*;
_local2 = 0;
if (arrTiles[arrCityTile[_arg1]] < 13){
return (false);
};
_local2 = (arrCityQuad[_arg1] - 1);
if (_local2 < 0){
_local2 = 3;
};
if (arrTileContent[_local2][arrCityTile[_arg1]] == 3){
updateTradeLevel(arrTiles[arrCityTile[_arg1]]);
return (true);
};
return (false);
}
public function checkOpposite(_arg1):Boolean{
if ((((((arrTiles[arrCityTile[_arg1]] == 18)) || ((arrTiles[arrCityTile[_arg1]] == 19)))) || ((arrTiles[arrCityTile[_arg1]] == 24)))){
updateTradeLevel(arrTiles[arrCityTile[_arg1]]);
return (true);
};
return (false);
}
public function slideBoard(_arg1):void{
boardSlideTween.stop();
console(("Slide board " + _arg1));
if (_arg1 == true){
if (bSuppressUIanimations == true){
wndMap.x = 0;
} else {
boardSlideTween = new Tween(wndMap, "x", None.easeNone, wndMap.x, 0, 1, true);
};
} else {
if (bSuppressUIanimations == true){
boardSlideTween.stop();
wndMap.x = 1100;
} else {
boardSlideTween = new Tween(wndMap, "x", None.easeNone, wndMap.x, 1100, 1, true);
};
};
boardSlideTween.FPS = 40;
}
public function slideMenu(_arg1):void{
menuSlideTween.stop();
console(("Slide menu " + _arg1));
if (_arg1 == true){
if (bSuppressUIanimations == true){
wndCardLibrary.x = 235;
} else {
menuSlideTween = new Tween(wndCardLibrary, "x", None.easeNone, wndCardLibrary.x, 235, 1, true);
};
} else {
if (bSuppressUIanimations == true){
wndCardLibrary.x = -475;
} else {
menuSlideTween = new Tween(wndCardLibrary, "x", None.easeNone, wndCardLibrary.x, -475, 1, true);
};
};
menuSlideTween.FPS = 40;
}
public function gotoNextPlayer():void{
console("Go to next player");
if (iCurrentPlayer < 5){
iCurrentPlayer = 5;
iPhase = 10;
iCountDown = 5;
} else {
if (iCurrentPlayer < (iLevel + 4)){
iCurrentPlayer++;
iPhase = 10;
iCountDown = 5;
} else {
iCurrentPlayer = iLevel;
iPhase = 20;
iCountDown = 5;
};
};
slideBoard(true);
}
public function updateTradeLevel(_arg1){
if (iCurrentPlayer < 5){
if ((((((((((((_arg1 == 14)) || ((_arg1 == 16)))) || ((_arg1 == 19)))) || ((_arg1 == 21)))) || ((_arg1 == 23)))) || ((_arg1 == 24)))){
iTradeLevel = 4;
} else {
if ((((_arg1 > 3)) && ((_arg1 < 25)))){
if (iTradeLevel != 4){
iTradeLevel = 3;
};
};
};
};
}
public function findEleven():void{
var _local1:*;
var _local2:*;
console("Find eleven");
iCurrentLocation = 999;
iCurrentQuad = 0;
_local1 = 0;
while (_local1 < 4) {
_local2 = 0;
while (_local2 < 120) {
if (iCurrentLocation == 999){
if (arrContestion[_local1][_local2] == 11){
iCurrentLocation = _local2;
iCurrentQuad = _local1;
};
};
_local2++;
};
_local1++;
};
}
function frame1(){
stop();
bDebugOpp = false;
bSaveExists = false;
iLevel = 1;
arrDeck = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 10, 21, 26, 15, 17, 18, 19, 20, 20, 23, 23, 24, 27, 28, 28, 29], [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 14, 14, 15, 15, 19, 19, 20, 21, 23, 23, 26, 27, 27, 28, 31], [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 14, 15, 16, 18, 18, 20, 23, 23, 25, 27, 28, 29, 30, 31, 32], [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 14, 15, 15, 16, 17, 18, 19, 21, 22, 23, 23, 24, 25, 26, 28]];
iCurrentPlayer = 1;
arrInfluence = [0, 0, 0, 0];
saveData = SharedObject.getLocal("EleptoclypseIllionore_v10_04062016");
if (saveData.data.bSaveExists == null){
} else {
bSaveExists = true;
};
btnIllida.addEventListener(MouseEvent.CLICK, illida);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
bSuppressUIanimations = false;
}
function frame2(){
stop();
iPlayer1 = 1;
iPlayer2 = 0;
bReplay = false;
iStrip = 0;
iSwimsuitStateL = 1;
iSwimsuitStateR = 1;
iAnimationPhase = 0;
bWalking = false;
arrCharColours = [[0, 0, 0, 0, 0, 0, 0, 0, 0], [0xFF, 211, 211, 0xFF, 196, 54, 0xFF, 0xFF, 204], [246, 185, 185, 43, 9, 67, 0xFF, 0xFF, 204], [254, 180, 180, 253, 216, 68, 0xFF, 0xFF, 204], [241, 189, 189, 137, 129, 175, 0xFF, 0xFF, 204]];
arrAnimation = [];
arrReplayArray = [];
arrReplayTmp = [];
iFrameCount = 0;
objAni = null;
iCurrentFrameShown = 0;
bAnimationLOCK = true;
myInterval2 = setInterval(myTimer2, 250);
bExoticSkins = false;
bExoticHair = false;
bSuperSize = false;
bTerminateAnimation = false;
bFinalAnimation = false;
arrDialogs = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]];
arrQuestionIDs = [0, 0, 0];
arrQuestion1 = ["", "", "", "", 0];
arrQuestion2 = ["", "", "", "", 0];
arrQuestion3 = ["", "", "", "", 0];
iCardReward = 0;
arrConsoleHistory = ["", "", "", "", "", "", ""];
stop();
bChar1Down = false;
bChar2Down = false;
bChar3Down = false;
bChar4Down = false;
iShopDeckFocus = 20;
iShopAvailableFocus = 0;
arrShopAvailableCards = [];
iCardsPlayedThisTurn = 0;
card1Tween = new Tween(wndHand.playedCard1, "alpha", None.easeNone, 0, 0, 0.5, true);
card2Tween = new Tween(wndHand.playedCard2, "alpha", None.easeNone, 0, 0, 0.5, true);
card3Tween = new Tween(wndHand.playedCard3, "alpha", None.easeNone, 0, 0, 0.5, true);
dmgTween = new Tween(dmgCloud, "alpha", None.easeNone, 1, 1, 0.5, true);
wndHand.playedCard1.mouseEnabled = false;
wndHand.playedCard2.mouseEnabled = false;
wndHand.playedCard3.mouseEnabled = false;
arrOppDeck = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 15, 15, 15, 17, 18, 19, 20, 23, 23, 24, 27, 27, 29, 34, 35], [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 8, 9, 11, 14, 15, 15, 17, 17, 18, 19, 21, 23, 23, 30, 31, 36, 37, 38], [1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 12, 14, 18, 19, 20, 23, 23, 25, 28, 28, 32, 39, 40, 41], [1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 13, 14, 15, 15, 17, 18, 18, 19, 19, 21, 21, 22, 23, 23, 42, 43], [1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9, 9, 14, 15, 15, 18, 19, 21, 23, 26, 27, 28, 29, 31, 31, 19, 20, 21], [2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 11, 12, 13, 14, 14, 18, 19, 20, 23, 23, 27, 28, 34, 36, 38, 40, 41, 43]];
arrDiscardPile = [];
arrOppDiscardPile = [];
arrStats = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [3, 6, 40, 10, 15, 4, 12], [2, 4, 70, 10, 20, 5, 12], [2, 4, 60, 10, 15, 4, 12], [1, 3, 60, 10, 20, 4, 12]];
arrHand = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
iTurn = 0;
iWinner = 0;
iChosenCard = 0;
bAIForceEndTurn = false;
arrCardVal = [1, 1, 1, 1, 1];
arrAdvCost = [999, 1, 2, 3, 4, 5, 6, 7, 8, 10, 999, 10, 10, 10, 10, 0, 2, 6, 3, 12, 8, 3, 12, 0, 12, 6, 3, 6, 6, 7, 6, 7, 5, 7, 10, 999, 7, 10, 10, 7, 10, 10, 8, 10, 999, 999, 999, 999, 999];
iTreshold = 260;
iPlayerCombat = 1;
iOpponentNr = 5;
bLevelSwitch = false;
bConflict = false;
iOpponentTotal = 1;
iBonusDmg = 0;
bMaxDmgThisTurn = false;
iCurrentTile = 0;
bEndGame = false;
iCitySizeBalanceShift = 10;
iCurrentQuad = 0;
iCurrentLocation = 0;
iCurrentRotation = 0;
iPhase = 0;
iCountDown = 0;
highestPriority = 5;
iTradeLevel = 0;
arrTiles = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
arrTileObjects = [];
arrTileContent = [[9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]];
arrContestion = [[9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9], [9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]];
arrTileOwner = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
arrTileLayout = [[0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 2], [0, 0, 0, 0, 0, 1, 1, 1, 0, 2, 0, 2, 0, 3, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3, 3, 1, 1, 0, 0, 2, 1, 0, 2, 1, 2, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 3, 0, 0, 0, 0, 1, 1, 2, 3, 3, 0, 0, 1, 1, 3, 1, 1, 1, 0, 1, 0, 1, 1, 2, 0, 2, 2, 0], [0, 0, 0, 0, 0, 1, 1, 0, 1, 2, 0, 2, 3, 0, 0, 1, 1, 2, 0, 0, 3, 3, 3, 3, 3, 1, 1, 0, 0, 2, 1, 1, 1, 1, 2, 2, 0, 0]];
arrCityTile = [];
arrCityQuad = [];
arrBuffs = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
arrPriority = [0];
myInterval = setInterval(myTimer, 300);
arrMapTileDeck = [];
cursorBlock.x = 1500;
myTween = new Tween(cursorBlock, "alpha", None.easeNone, 0, 0, 0.5, true);
boardSlideTween = new Tween(wndMap, "x", None.easeNone, 1100, 1100, 0.5, true);
menuSlideTween = new Tween(wndCardLibrary, "alpha", None.easeNone, 1, 1, 0.5, true);
labelCardInfo.alpha = 0;
swimsuit_ground1.alpha = 0;
swimsuit_ground2.alpha = 0;
iCurrentPlayer = 5;
labelCombat.mouseEnabled = false;
cursorBlock.mouseEnabled = false;
labelCardInfo.mouseEnabled = false;
iPhase = 0;
iCurrentPlayer = 1;
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
stage.addEventListener(MouseEvent.MOUSE_WHEEL, turnMouseWheel);
stage.addEventListener(MouseEvent.MOUSE_OVER, mouseOn);
stage.addEventListener(MouseEvent.MOUSE_OUT, mouseOff);
bConflict = false;
doCombat();
}
}
}//package ec3DEMO_fla
Section 21
//mapTile3_496 (ec3DEMO_fla.mapTile3_496)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class mapTile3_496 extends MovieClip {
public function mapTile3_496(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 22
//pin_493 (ec3DEMO_fla.pin_493)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class pin_493 extends MovieClip {
public function pin_493(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 23
//tile_65 (ec3DEMO_fla.tile_65)
package ec3DEMO_fla {
import flash.display.*;
public dynamic class tile_65 extends MovieClip {
public var img:MovieClip;
public function tile_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ec3DEMO_fla
Section 24
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 25
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 26
//Strong (fl.transitions.easing.Strong)
package fl.transitions.easing {
public class Strong {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
}
}//package fl.transitions.easing
Section 27
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 28
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 29
//ani_butt (ani_butt)
package {
import flash.display.*;
public dynamic class ani_butt extends MovieClip {
public var skinR7:MovieClip;
public var hairL7:MovieClip;
public var swimLinesL5:MovieClip;
public var skinL5:MovieClip;
public var skinL6:MovieClip;
public var swimLinesL4:MovieClip;
public var swimColL4:MovieClip;
public var swimLinesR7:MovieClip;
public var skinL7:MovieClip;
public var swimColL5:MovieClip;
public var swimLinesL3:MovieClip;
public var swimLinesR6:MovieClip;
public var swimColL6:MovieClip;
public var swimLinesL2:MovieClip;
public var swimColL7:MovieClip;
public var swimLinesR5:MovieClip;
public var swimColR4:MovieClip;
public var swimLinesL1:MovieClip;
public var swimColR5:MovieClip;
public var swimLinesR4:MovieClip;
public var swimColR6:MovieClip;
public var swimLinesR3:MovieClip;
public var swimColL1:MovieClip;
public var lines1:MovieClip;
public var swimColR7:MovieClip;
public var swimLinesR2:MovieClip;
public var swimColL2:MovieClip;
public var lines2:MovieClip;
public var swimColL3:MovieClip;
public var lines3:MovieClip;
public var swimLinesR1:MovieClip;
public var lines4:MovieClip;
public var swimColR1:MovieClip;
public var hairR1:MovieClip;
public var lines5:MovieClip;
public var swimColR2:MovieClip;
public var hairR2:MovieClip;
public var lines6:MovieClip;
public var swimColR3:MovieClip;
public var hairR3:MovieClip;
public var skinR1:MovieClip;
public var hairL1:MovieClip;
public var lines7:MovieClip;
public var hairR4:MovieClip;
public var skinR2:MovieClip;
public var hairL2:MovieClip;
public var skinR3:MovieClip;
public var hairR5:MovieClip;
public var hairL3:MovieClip;
public var skinL1:MovieClip;
public var hairR6:MovieClip;
public var skinR4:MovieClip;
public var hairL4:MovieClip;
public var skinL2:MovieClip;
public var swimLinesL7:MovieClip;
public var hairR7:MovieClip;
public var skinR5:MovieClip;
public var skinL3:MovieClip;
public var hairL5:MovieClip;
public var swimLinesL6:MovieClip;
public var skinR6:MovieClip;
public var hairL6:MovieClip;
public var skinL4:MovieClip;
}
}//package
Section 30
//ani_dodge (ani_dodge)
package {
import flash.display.*;
public dynamic class ani_dodge extends MovieClip {
public var skinR7:MovieClip;
public var hairL7:MovieClip;
public var swimLinesL5:MovieClip;
public var skinL5:MovieClip;
public var skinL6:MovieClip;
public var swimLinesL4:MovieClip;
public var swimColL4:MovieClip;
public var swimLinesR7:MovieClip;
public var skinL7:MovieClip;
public var swimColL5:MovieClip;
public var swimLinesL3:MovieClip;
public var swimLinesR6:MovieClip;
public var swimColL6:MovieClip;
public var swimLinesL2:MovieClip;
public var swimColL7:MovieClip;
public var swimLinesR5:MovieClip;
public var swimColR4:MovieClip;
public var swimLinesL1:MovieClip;
public var swimColR5:MovieClip;
public var swimLinesR4:MovieClip;
public var swimColR6:MovieClip;
public var swimLinesR3:MovieClip;
public var swimColL1:MovieClip;
public var lines1:MovieClip;
public var swimColR7:MovieClip;
public var swimLinesR2:MovieClip;
public var swimColL2:MovieClip;
public var lines2:MovieClip;
public var swimColL3:MovieClip;
public var lines3:MovieClip;
public var swimLinesR1:MovieClip;
public var lines4:MovieClip;
public var swimColR1:MovieClip;
public var hairR1:MovieClip;
public var lines5:MovieClip;
public var swimColR2:MovieClip;
public var hairR2:MovieClip;
public var lines6:MovieClip;
public var swimColR3:MovieClip;
public var hairR3:MovieClip;
public var skinR1:MovieClip;
public var hairL1:MovieClip;
public var lines7:MovieClip;
public var hairR4:MovieClip;
public var skinR2:MovieClip;
public var hairL2:MovieClip;
public var hairR5:MovieClip;
public var skinR3:MovieClip;
public var hairL3:MovieClip;
public var skinL1:MovieClip;
public var hairR6:MovieClip;
public var skinR4:MovieClip;
public var hairL4:MovieClip;
public var skinL2:MovieClip;
public var swimLinesL7:MovieClip;
public var hairR7:MovieClip;
public var skinR5:MovieClip;
public var hairL5:MovieClip;
public var skinL3:MovieClip;
public var swimLinesL6:MovieClip;
public var skinR6:MovieClip;
public var hairL6:MovieClip;
public var skinL4:MovieClip;
}
}//package
Section 31
//ani_idle (ani_idle)
package {
import flash.display.*;
public dynamic class ani_idle extends MovieClip {
public var swimLinesL5:MovieClip;
public var skinL5:MovieClip;
public var skinR7:MovieClip;
public var hairL7:MovieClip;
public var skinL6:MovieClip;
public var swimLinesL4:MovieClip;
public var swimColL4:MovieClip;
public var swimColL5:MovieClip;
public var swimLinesR7:MovieClip;
public var skinL7:MovieClip;
public var swimLinesL3:MovieClip;
public var swimLinesR6:MovieClip;
public var swimColL6:MovieClip;
public var swimLinesL2:MovieClip;
public var swimLinesR5:MovieClip;
public var swimColL7:MovieClip;
public var swimColR4:MovieClip;
public var swimLinesL1:MovieClip;
public var swimColR5:MovieClip;
public var swimLinesR4:MovieClip;
public var swimColR6:MovieClip;
public var swimLinesR3:MovieClip;
public var swimColL1:MovieClip;
public var lines1:MovieClip;
public var swimColR7:MovieClip;
public var swimLinesR2:MovieClip;
public var swimColL2:MovieClip;
public var lines2:MovieClip;
public var swimColL3:MovieClip;
public var lines3:MovieClip;
public var swimLinesR1:MovieClip;
public var lines4:MovieClip;
public var swimColR1:MovieClip;
public var hairR1:MovieClip;
public var lines5:MovieClip;
public var swimColR2:MovieClip;
public var hairR2:MovieClip;
public var lines6:MovieClip;
public var swimColR3:MovieClip;
public var hairR3:MovieClip;
public var skinR1:MovieClip;
public var hairL1:MovieClip;
public var lines7:MovieClip;
public var hairR4:MovieClip;
public var skinR2:MovieClip;
public var hairL2:MovieClip;
public var hairR5:MovieClip;
public var skinR3:MovieClip;
public var hairL3:MovieClip;
public var skinL1:MovieClip;
public var hairR6:MovieClip;
public var skinR4:MovieClip;
public var hairL4:MovieClip;
public var skinL2:MovieClip;
public var skinR5:MovieClip;
public var hairL5:MovieClip;
public var hairR7:MovieClip;
public var swimLinesL7:MovieClip;
public var skinL3:MovieClip;
public var swimLinesL6:MovieClip;
public var skinR6:MovieClip;
public var hairL6:MovieClip;
public var skinL4:MovieClip;
}
}//package
Section 32
//ani_pull (ani_pull)
package {
import flash.display.*;
public dynamic class ani_pull extends MovieClip {
public var skinR7:MovieClip;
public var hairL7:MovieClip;
public var swimLinesL5:MovieClip;
public var skinL5:MovieClip;
public var skinL6:MovieClip;
public var swimLinesL4:MovieClip;
public var swimColL4:MovieClip;
public var swimLinesR7:MovieClip;
public var skinL7:MovieClip;
public var swimColL5:MovieClip;
public var swimLinesL3:MovieClip;
public var swimLinesR6:MovieClip;
public var swimColL6:MovieClip;
public var swimLinesL2:MovieClip;
public var swimColL7:MovieClip;
public var swimLinesR5:MovieClip;
public var swimColR4:MovieClip;
public var swimLinesL1:MovieClip;
public var swimColR5:MovieClip;
public var swimLinesR4:MovieClip;
public var swimColR6:MovieClip;
public var swimLinesR3:MovieClip;
public var swimColL1:MovieClip;
public var lines1:MovieClip;
public var swimColR7:MovieClip;
public var swimLinesR2:MovieClip;
public var swimColL2:MovieClip;
public var lines2:MovieClip;
public var swimColL3:MovieClip;
public var lines3:MovieClip;
public var swimLinesR1:MovieClip;
public var lines4:MovieClip;
public var swimColR1:MovieClip;
public var hairR1:MovieClip;
public var lines5:MovieClip;
public var swimColR2:MovieClip;
public var hairR2:MovieClip;
public var lines6:MovieClip;
public var swimColR3:MovieClip;
public var hairR3:MovieClip;
public var skinR1:MovieClip;
public var hairL1:MovieClip;
public var lines7:MovieClip;
public var hairR4:MovieClip;
public var skinR2:MovieClip;
public var hairL2:MovieClip;
public var hairR5:MovieClip;
public var skinR3:MovieClip;
public var hairL3:MovieClip;
public var skinL1:MovieClip;
public var hairR6:MovieClip;
public var skinR4:MovieClip;
public var hairL4:MovieClip;
public var skinL2:MovieClip;
public var swimLinesL7:MovieClip;
public var hairR7:MovieClip;
public var skinR5:MovieClip;
public var hairL5:MovieClip;
public var skinL3:MovieClip;
public var swimLinesL6:MovieClip;
public var skinR6:MovieClip;
public var hairL6:MovieClip;
public var skinL4:MovieClip;
}
}//package
Section 33
//ani_pullup (ani_pullup)
package {
import flash.display.*;
public dynamic class ani_pullup extends MovieClip {
public var skinR7:MovieClip;
public var hairL7:MovieClip;
public var swimLinesL5:MovieClip;
public var skinL5:MovieClip;
public var skinL6:MovieClip;
public var swimLinesL4:MovieClip;
public var swimColL4:MovieClip;
public var swimLinesR7:MovieClip;
public var skinL7:MovieClip;
public var swimColL5:MovieClip;
public var swimLinesL3:MovieClip;
public var swimLinesR6:MovieClip;
public var swimColL6:MovieClip;
public var swimLinesL2:MovieClip;
public var swimColL7:MovieClip;
public var swimColR4:MovieClip;
public var swimLinesR5:MovieClip;
public var swimLinesL1:MovieClip;
public var swimLinesR4:MovieClip;
public var swimColR5:MovieClip;
public var swimColR6:MovieClip;
public var swimLinesR3:MovieClip;
public var swimColL1:MovieClip;
public var lines1:MovieClip;
public var swimColR7:MovieClip;
public var swimLinesR2:MovieClip;
public var swimColL2:MovieClip;
public var lines2:MovieClip;
public var swimColL3:MovieClip;
public var lines3:MovieClip;
public var swimLinesR1:MovieClip;
public var lines4:MovieClip;
public var swimColR1:MovieClip;
public var hairR1:MovieClip;
public var lines5:MovieClip;
public var swimColR2:MovieClip;
public var hairR2:MovieClip;
public var lines6:MovieClip;
public var swimColR3:MovieClip;
public var hairR3:MovieClip;
public var skinR1:MovieClip;
public var hairL1:MovieClip;
public var lines7:MovieClip;
public var skinR2:MovieClip;
public var hairL2:MovieClip;
public var hairR4:MovieClip;
public var skinR3:MovieClip;
public var hairL3:MovieClip;
public var skinL1:MovieClip;
public var hairR5:MovieClip;
public var hairR6:MovieClip;
public var skinR4:MovieClip;
public var skinL2:MovieClip;
public var hairL4:MovieClip;
public var swimLinesL7:MovieClip;
public var hairR7:MovieClip;
public var skinR5:MovieClip;
public var skinL3:MovieClip;
public var hairL5:MovieClip;
public var swimLinesL6:MovieClip;
public var skinR6:MovieClip;
public var hairL6:MovieClip;
public var skinL4:MovieClip;
}
}//package
Section 34
//ani_strip (ani_strip)
package {
import flash.display.*;
public dynamic class ani_strip extends MovieClip {
public var skinR7:MovieClip;
public var hairL7:MovieClip;
public var swimLinesL5:MovieClip;
public var skinL5:MovieClip;
public var skinL6:MovieClip;
public var swimLinesL4:MovieClip;
public var swimColL4:MovieClip;
public var swimLinesR7:MovieClip;
public var skinL7:MovieClip;
public var swimColL5:MovieClip;
public var swimLinesL3:MovieClip;
public var swimColL6:MovieClip;
public var swimLinesR6:MovieClip;
public var swimLinesL2:MovieClip;
public var swimColL7:MovieClip;
public var swimLinesR5:MovieClip;
public var swimColR4:MovieClip;
public var swimLinesL1:MovieClip;
public var swimColR5:MovieClip;
public var swimLinesR4:MovieClip;
public var swimColR6:MovieClip;
public var swimLinesR3:MovieClip;
public var swimColL1:MovieClip;
public var lines1:MovieClip;
public var swimColR7:MovieClip;
public var swimLinesR2:MovieClip;
public var swimColL2:MovieClip;
public var lines2:MovieClip;
public var swimColL3:MovieClip;
public var lines3:MovieClip;
public var swimLinesR1:MovieClip;
public var lines4:MovieClip;
public var swimColR1:MovieClip;
public var hairR1:MovieClip;
public var lines5:MovieClip;
public var swimColR2:MovieClip;
public var hairR2:MovieClip;
public var lines6:MovieClip;
public var swimColR3:MovieClip;
public var hairR3:MovieClip;
public var skinR1:MovieClip;
public var hairL1:MovieClip;
public var lines7:MovieClip;
public var hairR4:MovieClip;
public var skinR2:MovieClip;
public var hairL2:MovieClip;
public var hairR5:MovieClip;
public var skinR3:MovieClip;
public var hairL3:MovieClip;
public var skinL1:MovieClip;
public var hairR6:MovieClip;
public var skinR4:MovieClip;
public var hairL4:MovieClip;
public var skinL2:MovieClip;
public var hairR7:MovieClip;
public var swimLinesL7:MovieClip;
public var skinR5:MovieClip;
public var hairL5:MovieClip;
public var skinL3:MovieClip;
public var skinR6:MovieClip;
public var swimLinesL6:MovieClip;
public var hairL6:MovieClip;
public var skinL4:MovieClip;
}
}//package
Section 35
//ani_walking (ani_walking)
package {
import flash.display.*;
public dynamic class ani_walking extends MovieClip {
public var skinL5:MovieClip;
public var swimLinesL5:MovieClip;
public var skinR7:MovieClip;
public var hairL7:MovieClip;
public var swimColL4:MovieClip;
public var swimLinesL4:MovieClip;
public var skinL6:MovieClip;
public var swimColL5:MovieClip;
public var swimLinesR7:MovieClip;
public var skinL7:MovieClip;
public var swimLinesL3:MovieClip;
public var swimColL6:MovieClip;
public var swimLinesR6:MovieClip;
public var swimLinesL2:MovieClip;
public var swimColR4:MovieClip;
public var swimLinesR5:MovieClip;
public var swimColL7:MovieClip;
public var swimLinesL1:MovieClip;
public var swimLinesR4:MovieClip;
public var swimColR5:MovieClip;
public var swimColR6:MovieClip;
public var swimLinesR3:MovieClip;
public var swimColL1:MovieClip;
public var lines1:MovieClip;
public var swimColR7:MovieClip;
public var swimLinesR2:MovieClip;
public var lines1b:MovieClip;
public var swimColL2:MovieClip;
public var lines2:MovieClip;
public var swimLinesR1:MovieClip;
public var swimColL3:MovieClip;
public var lines3:MovieClip;
public var lines4:MovieClip;
public var lines3b:MovieClip;
public var swimColR1:MovieClip;
public var hairR1:MovieClip;
public var lines5:MovieClip;
public var swimColR2:MovieClip;
public var lines2b:MovieClip;
public var hairR2:MovieClip;
public var lines6:MovieClip;
public var swimColR3:MovieClip;
public var hairR3:MovieClip;
public var skinR1:MovieClip;
public var hairL1:MovieClip;
public var hairR4:MovieClip;
public var lines7:MovieClip;
public var skinR2:MovieClip;
public var hairL2:MovieClip;
public var hairR5:MovieClip;
public var skinR3:MovieClip;
public var hairL3:MovieClip;
public var skinL1:MovieClip;
public var skinR4:MovieClip;
public var hairL4:MovieClip;
public var hairR6:MovieClip;
public var skinL2:MovieClip;
public var skinR5:MovieClip;
public var hairL5:MovieClip;
public var hairR7:MovieClip;
public var swimLinesL7:MovieClip;
public var skinL3:MovieClip;
public var skinL4:MovieClip;
public var skinR6:MovieClip;
public var swimLinesL6:MovieClip;
public var hairL6:MovieClip;
}
}//package
Section 36
//ani_victory (ani_victory)
package {
import flash.display.*;
public dynamic class ani_victory extends MovieClip {
public var hairL7:MovieClip;
public var swimLinesL5:MovieClip;
public var skinL5:MovieClip;
public var skinR7:MovieClip;
public var skinL6:MovieClip;
public var swimLinesL4:MovieClip;
public var swimColL4:MovieClip;
public var skinL7:MovieClip;
public var swimColL5:MovieClip;
public var swimLinesR7:MovieClip;
public var swimLinesL3:MovieClip;
public var swimColL6:MovieClip;
public var swimLinesR6:MovieClip;
public var swimLinesL2:MovieClip;
public var swimColL7:MovieClip;
public var swimLinesR5:MovieClip;
public var swimColR4:MovieClip;
public var swimLinesL1:MovieClip;
public var swimColR5:MovieClip;
public var swimLinesR4:MovieClip;
public var swimColR6:MovieClip;
public var swimLinesR3:MovieClip;
public var swimColL1:MovieClip;
public var lines1:MovieClip;
public var swimColR7:MovieClip;
public var swimLinesR2:MovieClip;
public var swimColL2:MovieClip;
public var lines2:MovieClip;
public var swimColL3:MovieClip;
public var lines3:MovieClip;
public var swimLinesR1:MovieClip;
public var lines4:MovieClip;
public var swimColR1:MovieClip;
public var hairR1:MovieClip;
public var lines5:MovieClip;
public var swimColR2:MovieClip;
public var hairR2:MovieClip;
public var lines6:MovieClip;
public var swimColR3:MovieClip;
public var hairR3:MovieClip;
public var skinR1:MovieClip;
public var hairL1:MovieClip;
public var lines7:MovieClip;
public var hairR4:MovieClip;
public var skinR2:MovieClip;
public var hairL2:MovieClip;
public var hairR5:MovieClip;
public var skinR3:MovieClip;
public var hairL3:MovieClip;
public var skinL1:MovieClip;
public var hairR6:MovieClip;
public var skinR4:MovieClip;
public var hairL4:MovieClip;
public var skinL2:MovieClip;
public var swimLinesL7:MovieClip;
public var hairL5:MovieClip;
public var hairR7:MovieClip;
public var skinR5:MovieClip;
public var skinL3:MovieClip;
public var swimLinesL6:MovieClip;
public var hairL6:MovieClip;
public var skinR6:MovieClip;
public var skinL4:MovieClip;
}
}//package
Section 37
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 38
//mapTileBlue (mapTileBlue)
package {
import flash.display.*;
public dynamic class mapTileBlue extends MovieClip {
public var pin0:MovieClip;
public var pin1:MovieClip;
public var pin2:MovieClip;
public var pin3:MovieClip;
}
}//package
Section 39
//mapTileGreen (mapTileGreen)
package {
import flash.display.*;
public dynamic class mapTileGreen extends MovieClip {
public var pin0:MovieClip;
public var pin1:MovieClip;
public var pin2:MovieClip;
public var pin3:MovieClip;
}
}//package
Section 40
//mapTileRed (mapTileRed)
package {
import flash.display.*;
public dynamic class mapTileRed extends MovieClip {
public var pin0:MovieClip;
public var pin1:MovieClip;
public var pin2:MovieClip;
public var pin3:MovieClip;
public var mapTile:MovieClip;
}
}//package
Section 41
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package