Frame 1
_focusrect = false;
Stage.showMenu = false;
stop();
Instance of Symbol 25 MovieClip in Frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
text1 = percent + "%";
if (percent >= 100) {
_root.gotoAndPlay("frame_splash");
}
}
Frame 2
function toggleFullScreen() {
if (Stage.displayState == "normal") {
trace("Full Screen");
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
trace("Normal");
}
}
Stage.scaleMode = "Scale";
Stage.align = "B";
var resizeListener = new Object();
resizeListener.onResize = function () {
};
Stage.addListener(resizeListener);
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("frame_game");
};
Frame 3
function InitGame(passedGameMode, passedGameType) {
thedate = new Date();
_root.GameStartedTime = "";
_root.GameStartedTime = thedate.getFullYear() + "-";
if (thedate.getMonth() < 9) {
_root.GameStartedTime = _root.GameStartedTime + (("0" + (thedate.getMonth() + 1)) + "-");
} else {
_root.GameStartedTime = _root.GameStartedTime + ((thedate.getMonth() + 1) + "-");
}
if (thedate.getDate() < 10) {
_root.GameStartedTime = _root.GameStartedTime + (("0" + thedate.getDate()) + "T");
} else {
_root.GameStartedTime = _root.GameStartedTime + (thedate.getDate() + "T");
}
if (thedate.getHours() < 10) {
_root.GameStartedTime = _root.GameStartedTime + (("0" + thedate.getHours()) + ":");
} else {
_root.GameStartedTime = _root.GameStartedTime + (thedate.getHours() + ":");
}
if (thedate.getMinutes() < 10) {
_root.GameStartedTime = _root.GameStartedTime + (("0" + thedate.getMinutes()) + ":");
} else {
_root.GameStartedTime = _root.GameStartedTime + (thedate.getMinutes() + ":");
}
if (thedate.getSeconds() < 10) {
_root.GameStartedTime = _root.GameStartedTime + (("0" + thedate.getSeconds()) + "Z");
} else {
_root.GameStartedTime = _root.GameStartedTime + (thedate.getSeconds() + "Z");
}
_root.GameMode = passedGameMode;
_root.GameType = passedGameType;
_root.GamePause = false;
_root.GameStarted = false;
if (_root.GameMode == "singleplayer") {
_root.user1 = _root.uname;
_root.user2 = "COMPUTER";
_root.user1mc.indexNumber = 1;
_root.user2mc.indexNumber = 2;
_root.turn = _root.user1mc.indexNumber;
_root.opponentUserIndex = 2;
}
_root.user1state = "INIT_POSITION";
_root.user2state = "INIT_POSITION";
_root.user1mc.gotoAndStop("IDLE");
_root.user2mc.gotoAndStop("IDLE");
if (_root.GameMode == "singleplayer") {
tempColorArray = [];
i = 0;
while (i < _root.CoinColorArray.length) {
if (i != _root.user1mc.SelectedColorIndex) {
tempColorArray.push(i);
}
i++;
}
_root.user2mc.SelectedColorIndex = tempColorArray[random(tempColorArray.length)];
}
_root.DiceArray = new Array(1, 2, 3, 4, 5, 6);
_root.theme_pack_mc.magicspin_mc.gotoAndStop(1);
_root.user1MagicSpinState = "DEACTIVATED";
_root.user2MagicSpinState = "DEACTIVATED";
_root.user1MagicSpinCounter = 5;
_root.user2MagicSpinCounter = 5;
_root.lowBlowCounter = 5;
_root.highFlierCounter = 5;
_root.ladderLuckCounter = 5;
_root.venomCounter = 5;
_root.loseATurnCountInit = 80;
_root.loseATurnCount = _root.loseATurnCountInit;
_root.extraTurnCountInit = 80;
_root.extraTurnCount = _root.extraTurnCountInit;
_root.hints_mc._visible = false;
_root.user1SquareNumber = 0;
_root.user2SquareNumber = 0;
_root.user1DestinationSquareNumber = 0;
_root.user2DestinationSquareNumber = 0;
_root.user1NumberOfMoves = 0;
_root.user2NumberOfMoves = 0;
_root.user1NumberOfDiceRolls = 0;
_root.user2NumberOfDiceRolls = 0;
_root.user1NumberOfSixesRolled = 0;
_root.user2NumberOfSixesRolled = 0;
_root.user1NumberOfSnakeBites = 0;
_root.user2NumberOfSnakeBites = 0;
_root.user1NumberOfLaddersClimbed = 0;
_root.user2NumberOfLaddersClimbed = 0;
_root.user1Score = 0;
_root.user2Score = 0;
_root.setScore(_root.user1NumberOfMoves);
_root.user1GotSix = false;
_root.user2GotSix = false;
_root.user1GotExtraTurn = false;
_root.user2GotExtraTurn = false;
_root.user1MovingBackward = false;
_root.user2MovingBackward = false;
_root.userSqueezedIndex = 0;
if (_root.GameType == "classic") {
_root.user1SquareNumber = 0;
_root.user2SquareNumber = 0;
_root.user1DestinationSquareNumber = 0;
_root.user2DestinationSquareNumber = 0;
_root.user1InitX = 167;
_root.user2InitX = 140;
_root.user1InitY = 481;
_root.user2InitY = 481;
_root.user1ActualInitX = 181;
_root.user1ActualInitY = 481;
_root.user2ActualInitX = 181;
_root.user2ActualInitY = 481;
} else if (_root.GameType == "twist") {
_root.user1SquareNumber = 101;
_root.user2SquareNumber = 101;
_root.user1DestinationSquareNumber = 101;
_root.user2DestinationSquareNumber = 101;
_root.user1InitX = 167;
_root.user2InitX = 140;
_root.user1InitY = 122;
_root.user2InitY = 122;
_root.user1ActualInitX = 181;
_root.user1ActualInitY = 122;
_root.user2ActualInitX = 181;
_root.user2ActualInitY = 122;
}
_root.user1mc.gotoAndStop("IDLE");
_root.user2mc.gotoAndStop("IDLE");
_root.user1mc._x = _root.user1InitX;
_root.user1mc._y = _root.user1InitY;
_root.user2mc._x = _root.user2InitX;
_root.user2mc._y = _root.user2InitY;
_root.snakeMouthPosition = 0;
_root.snakeTailPosition = 0;
_root.ladderFootPosition = 0;
_root.ladderTopPosition = 0;
_root.user1DestinationX = 0;
_root.user1DestinationY = 0;
_root.user2DestinationX = 0;
_root.user2DestinationY = 0;
_root.theme_pack_mc.dice.gotoAndStop(1);
aiDiceCounterInit = 40;
aiDiceCounter = aiDiceCounterInit;
_root.theme_pack_mc.user1turn_mc.gotoAndStop(1);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(2);
_root.theme_pack_mc.user1turn_mc._visible = false;
_root.theme_pack_mc.user2turn_mc._visible = false;
_root.winnerCoinIndex = 0;
_root.loserCoinIndex = 0;
}
function changeTheme() {
}
function get_dice_value(thepowerups) {
switch (thepowerups) {
case "LOW_BLOW" :
_root.dice_array = new Array(1, 2, 3, 1, 2, 3, 1, 2, 3, 4, 5, 6);
break;
case "HIGH_FLIER" :
_root.dice_array = new Array(1, 2, 3, 4, 5, 6, 4, 5, 6, 4, 5, 6);
break;
case "LADDER_LUCK" :
_root.dice_array = new Array();
if (_root.GameType == "classic") {
i = 1;
while (i < 7) {
j = 0;
while (j < LadderArray.length) {
if ((_root.user1SquareNumber + i) == _root.LadderArray[j][0]) {
_root.dice_array.push(_root.LadderArray[j][0] - _root.user1SquareNumber);
}
j++;
}
i++;
}
} else if (_root.GameType == "twist") {
i = 1;
while (i < 7) {
j = 0;
while (j < LadderArray.length) {
if ((_root.user1SquareNumber - i) == _root.LadderArray[j][0]) {
_root.dice_array.push(_root.user1SquareNumber - _root.LadderArray[j][0]);
}
j++;
}
i++;
}
}
while (_root.dice_array.length < 2) {
_root.dice_array.push(random(6) + 1);
}
break;
case "VENOM" :
_root.dice_array = new Array();
if (_root.GameType == "classic") {
i = 1;
while (i < 7) {
j = 0;
while (j < SnakeArray.length) {
if ((_root.user1SquareNumber + i) == _root.SnakeArray[j][0]) {
_root.dice_array.push(_root.SnakeArray[j][0] - _root.user1SquareNumber);
}
j++;
}
i++;
}
} else if (_root.GameType == "twist") {
i = 1;
while (i < 7) {
j = 0;
while (j < SnakeArray.length) {
if ((_root.user1SquareNumber - i) == _root.LadderArray[j][0]) {
_root.dice_array.push(_root.user1SquareNumber - _root.SnakeArray[j][0]);
}
j++;
}
i++;
}
}
while (_root.dice_array.length < 2) {
_root.dice_array.push(random(6) + 1);
}
break;
case "DEACTIVATED" :
case "ACTIVATED_CLICKABLE" :
case "ACTIVATED_NOT_CLICKABLE" :
if (_root.user1GotExtraTurn == true) {
_root.dice_array = new Array(1, 2, 3, 4, 5);
} else {
_root.dice_array = new Array(1, 2, 3, 4, 5, 6);
}
}
return(_root.dice_array[random(_root.dice_array.length)]);
}
function RollDice() {
_root.roll_dice_snd.start();
_root.theme_pack_mc.dice.gotoAndPlay(2);
}
function MagicSpinRollDice() {
}
function CalculateMovement() {
}
function CheckRules() {
}
function CheckBoard() {
}
function setTurn() {
if (_root.turn == 1) {
if (_root.user1MagicSpinState == "DEACTIVATED") {
if (_root.RuleSixRequired == true) {
if (_root.user1GotSix == true) {
if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.user1MagicSpinCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.user1MagicSpinCounter--;
}
}
} else if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.user1MagicSpinCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.user1MagicSpinCounter--;
}
if (_root.user1MagicSpinCounter == 0) {
_root.user1MagicSpinCounter = 5;
_root.user1MagicSpinState = "ACTIVATED_NOT_CLICKABLE";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("ACTIVATED_NOT_CLICKABLE");
}
} else {
switch (_root.user1MagicSpinState) {
case "LOW_BLOW" :
if (_root.RuleSixRequired == true) {
if (_root.user1GotSix == true) {
if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.lowBlowCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.lowBlowCounter--;
}
}
} else if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.lowBlowCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.lowBlowCounter--;
}
if (_root.lowBlowCounter == 0) {
_root.lowBlowCounter = 5;
_root.user1MagicSpinState = "DEACTIVATED";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("DEACTIVATED");
}
break;
case "HIGH_FLIER" :
if (_root.RuleSixRequired == true) {
if (_root.user1GotSix == true) {
if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.highFlierCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.highFlierCounter--;
}
}
} else if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.highFlierCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.highFlierCounter--;
}
if (_root.highFlierCounter == 0) {
_root.highFlierCounter = 5;
_root.user1MagicSpinState = "DEACTIVATED";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("DEACTIVATED");
}
break;
case "LADDER_LUCK" :
if (_root.RuleSixRequired == true) {
if (_root.user1GotSix == true) {
if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.ladderLuckCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.ladderLuckCounter--;
}
}
} else if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.ladderLuckCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.ladderLuckCounter--;
}
if (_root.ladderLuckCounter == 0) {
_root.ladderLuckCounter = 5;
_root.user1MagicSpinState = "DEACTIVATED";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("DEACTIVATED");
}
break;
case "VENOM" :
if (_root.RuleSixRequired == true) {
if (_root.user1GotSix == true) {
if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.venomCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.venomCounter--;
}
}
} else if ((_root.GameType == "classic") && (_root.user1SquareNumber > 0)) {
_root.venomCounter--;
} else if ((_root.GameType == "twist") && (_root.user1SquareNumber < 101)) {
_root.venomCounter--;
}
if (_root.venomCounter != 0) {
break;
}
_root.venomCounter = 5;
_root.user1MagicSpinState = "DEACTIVATED";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("DEACTIVATED");
}
}
if (_root.user1GotExtraTurn == true) {
if (_root.user1MagicSpinState == "ACTIVATED_NOT_CLICKABLE") {
_root.user1MagicSpinState = "ACTIVATED_CLICKABLE";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("ACTIVATED_CLICKABLE");
_root.theme_pack_mc.magicspin_mc.onRelease = _root.onMagicSpinClick;
}
_root.user1GotExtraTurn = false;
_root.turn = 1;
_root.theme_pack_mc.user1turn_mc.gotoAndStop(1);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(2);
_root.opponentUserIndex = 2;
_root.theme_pack_mc.btn_roll._visible = true;
} else {
if (_root.user1MagicSpinState == "ACTIVATED_CLICKABLE") {
_root.user1MagicSpinState = "ACTIVATED_NOT_CLICKABLE";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("ACTIVATED_NOT_CLICKABLE");
delete _root.theme_pack_mc.magicspin_mc.onRelease;
}
_root.turn = 2;
_root.theme_pack_mc.user1turn_mc.gotoAndStop(2);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(1);
_root.opponentUserIndex = 1;
_root.user2state = "AI_DICE_ROLL_COUNTDOWN";
}
} else if (_root.turn == 2) {
if (_root.user2GotExtraTurn == true) {
_root.user2GotExtraTurn = false;
_root.turn = 2;
_root.theme_pack_mc.user1turn_mc.gotoAndStop(2);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(1);
_root.opponentUserIndex = 1;
_root.user2state = "AI_DICE_ROLL_COUNTDOWN";
} else {
if (_root.user1MagicSpinState == "ACTIVATED_NOT_CLICKABLE") {
_root.user1MagicSpinState = "ACTIVATED_CLICKABLE";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("ACTIVATED_CLICKABLE");
_root.theme_pack_mc.magicspin_mc.onRelease = onMagicSpinClick;
}
_root.turn = 1;
_root.theme_pack_mc.user1turn_mc.gotoAndStop(1);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(2);
_root.opponentUserIndex = 2;
_root.theme_pack_mc.btn_roll._visible = true;
}
}
}
function onMagicSpinClick() {
_root.user1MagicSpinState = "SPINNING";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("SPINNING");
_root.theme_pack_mc.btn_roll._visible = false;
_root.magic_spin_spinning_snd.start();
delete _root.theme_pack_mc.magicspin_mc.onRelease;
}
function onRollDiceClick() {
if (_root.user1MagicSpinState == "ACTIVATED_CLICKABLE") {
_root.user1MagicSpinState = "ACTIVATED_NOT_CLICKABLE";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("ACTIVATED_NOT_CLICKABLE");
delete _root.theme_pack_mc.magicspin_mc.onRelease;
}
_root.user1NumberOfDiceRolls++;
_root.RollDice();
_root.theme_pack_mc.btn_roll._visible = false;
}
function RestartGame() {
}
function setScore(theval) {
if (theval >= 0) {
thenewval = theval.toString();
while (thenewval.length != 3) {
thenewval = "0" + thenewval;
}
i = thenewval.length;
while (i > 0) {
_root.theme_pack_mc.score_digits["digit_" + (4 - i)].gotoAndStop(parseInt(thenewval.substr(i - 1, 1) + " ") + 1);
i--;
}
} else {
i = thenewval.length;
while (i > 0) {
_root.theme_pack_mc.score_digits["digit_" + (4 - i)].gotoAndStop(1);
_root.user1Score = 0;
i--;
}
}
}
function CalculateScore() {
}
function DisplayScore() {
}
function displayWhenUserWins() {
_root.winnerCoinIndex = _root.turn;
_root.loserCoinIndex = _root.opponentUserIndex;
_root.turn = 0;
_root.user1state = "IDLE";
_root.user2state = "IDLE";
_root.user1mc.gotoAndStop("IDLE");
_root.user2mc.gotoAndStop("IDLE");
_root.GameStarted = false;
_root.GamePaused = true;
_root.user1mc._visible = false;
_root.user2mc._visible = false;
_root.theme_pack_mc.btn_instructions._visible = false;
_root.theme_pack_mc.btn_menu._visible = false;
_root.theme_pack_mc.mc_sound_controller._visible = false;
_root.theme_pack_mc.btn_roll._visible = false;
_root.theme_pack_mc.btn_roll.magicspin_mc._visible = false;
_root.theme_pack_mc.btn_themeforward._visible = false;
_root.theme_pack_mc.btn_themebackward._visible = false;
_root.theme_pack_mc.theme_preview_mc._visible = false;
_root.theme_pack_mc.btn_settheme._visible = false;
_root.theme_pack_mc.user1_name_txt._visible = false;
_root.theme_pack_mc.user2_name_txt._visible = false;
_root.theme_pack_mc.user1turn_mc._visible = false;
_root.theme_pack_mc.user2turn_mc._visible = false;
_root.mainmenu_mc._visible = true;
_root.mainmenu_mc.gotoAndStop("final");
}
function setTheColor(themc, thecolor) {
var _local2 = new Color(themc);
switch (thecolor) {
case 1 :
var _local1 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
break;
case 2 :
_local1 = {ra:-100, rb:18, ga:100, gb:-5, ba:45, bb:115, aa:100, ab:18};
break;
case 3 :
_local1 = {ra:-100, rb:27, ga:100, gb:0, ba:100, bb:194, aa:100, ab:0};
break;
case 4 :
_local1 = {ra:100, rb:97, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
break;
case 5 :
_local1 = {ra:5, rb:255, ga:100, gb:-19, ba:100, bb:-255, aa:100, ab:255};
}
_local2.setTransform(_local1);
}
var GameStartedTime = "";
var GameMode = "singleplayer";
var GameType = "classic";
var GamePause = true;
var GameStarted = false;
var uname = "YOU";
var user1;
var user2;
_root.user1mc.indexNumber = 1;
_root.user2mc.indexNumber = 2;
var turn = _root.user1mc.indexNumber;
var opponentUserIndex = 2;
var user1state = "INIT_POSITION";
var user2state = "INIT_POSITION";
_root.user1mc.gotoAndStop("IDLE");
_root.user2mc.gotoAndStop("IDLE");
var CoinColorArray = [{ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}, {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}];
var user1Color;
var user1SelectedColorIndex = 1;
var user2Color;
_root.user1mc.SelectedColorIndex = 1;
_root.DiceArray = new Array(1, 2, 3, 4, 5, 6);
var user1MagicSpinState = "DEACTIVATED";
var user2MagicSpinState = "DEACTIVATED";
var user1MagicSpinCounter = 5;
var user2MagicSpinCounter = 5;
var lowBlowCounter = 5;
var highFlierCounter = 5;
var ladderLuckCounter = 5;
var venomCounter = 5;
var loseATurnCountInit = 40;
var loseATurnCount = _root.loseATurnCountInit;
var extraTurnCountInit = 40;
var extraTurnCount = _root.extraTurnCountInit;
var HintsVisible = true;
var user1SquareNumber = 0;
var user2SquareNumber = 0;
_root.user1DestinationSquareNumber = 0;
_root.user2DestinationSquareNumber = 0;
var user1NumberOfMoves = 0;
var user2NumberOfMoves = 0;
var user1NumberOfDiceRolls = 0;
var user2NumberOfDiceRolls = 0;
var user1NumberOfSixesRolled = 0;
var user2NumberOfSixesRolled = 0;
var user1NumberOfSnakeBites = 0;
var user2NumberOfSnakeBites = 0;
var user1NumberOfLaddersClimbed = 0;
var user2NumberOfLaddersClimbed = 0;
var user1Score = 0;
var user2Score = 0;
var user1direction = "idle";
var user2direction = "idle";
var VolumeMusic = 100;
var VolumeSFX = 100;
var RuleSixRequired = false;
var RuleExtraTurn = true;
var RuleOpponentCollision = false;
var RuleExactNumberHome = false;
var RuleMoveAndTurnBack = false;
var user1GotSix = false;
var user2GotSix = false;
var user1GotExtraTurn = false;
var user2GotExtraTurn = false;
var user1MovingBackward = false;
var user2MovingBackward = false;
var userSqueezedIndex = 0;
var square1X = 221;
var square1Y = 481;
var square100X = 221;
var square100Y = 122;
var tileXdiff = 40;
var tileYdiff = 40;
var SnakeArray = new Array([46, 5, 381, 481], [48, 9, 541, 481], [52, 11, 581, 441], [68, 3, 301, 481], [69, 33, 501, 361], [89, 51, 581, 281], [93, 37, 341, 361], [98, 13, 501, 441]);
var LadderArray = new Array([8, 26, 420, 401], [43, 77, 340, 201], [50, 91, 580, 121], [62, 96, 380, 121], [66, 87, 460, 161]);
var snakeMouthPosition = 0;
var snakeTailPosition = 0;
var ladderFootPosition = 0;
var ladderTopPosition = 0;
var user1DestinationX = 0;
var user1DestinationY = 0;
var user2DestinationX = 0;
var user2DestinationY = 0;
var GameStarted = false;
var GamePaused = false;
_root.mainmenu_mc.gotoAndStop("main_init");
stop();
_root.theme_pack_mc.btn_roll.onRelease = _root.onRollDiceClick;
onEnterFrame = function () {
_global.showRedrawRegions(false);
if ((_root.GameStarted == true) && (_root.GamePaused == false)) {
if (_root.GameMode == "singleplayer") {
if (_root.theme_pack_mc.dice._currentframe == 34) {
if (_root.turn == 1) {
_root.theme_pack_mc.dice.gotoAndStop(34 + _root.get_dice_value(_root.user1MagicSpinState));
} else if (_root.turn == 2) {
_root.theme_pack_mc.dice.gotoAndStop(34 + _root.get_dice_value("DEACTIVATED"));
}
if (_root.GameType == "classic") {
_root[("user" + _root.turn) + "DestinationSquareNumber"] = _root[("user" + _root.turn) + "DestinationSquareNumber"] + (int(_root.theme_pack_mc.dice._currentframe) - 34);
} else if (_root.GameType == "twist") {
_root[("user" + _root.turn) + "DestinationSquareNumber"] = _root[("user" + _root.turn) + "DestinationSquareNumber"] - (int(_root.theme_pack_mc.dice._currentframe) - 34);
}
if (_root.RuleExtraTurn == true) {
if ((int(_root.theme_pack_mc.dice._currentframe) - 34) == 6) {
_root.user1NumberOfSixesRolled++;
_root[("user" + _root.turn) + "GotExtraTurn"] = true;
}
} else if ((int(_root.theme_pack_mc.dice._currentframe) - 34) == 6) {
_root.user1NumberOfSixesRolled++;
}
}
switch (_root.user1MagicSpinState) {
case "DEACTIVATED" :
break;
case "ACTIVATED_NOT_CLICKABLE" :
break;
case "ACTIVATED_CLICKABLE" :
break;
case "SPINNING" :
if (_root.theme_pack_mc.magicspin_mc.spin._currentframe == _root.theme_pack_mc.magicspin_mc.spin._totalframes) {
if (_root.theme_pack_mc.dice._currentframe == _root.theme_pack_mc.dice._totalframes) {
thevar = random(5) + 1;
} else {
thevar = random(6) + 1;
}
switch (thevar) {
case 1 :
_root.user1MagicSpinState = "LOW_BLOW";
_root.magic_spin_thumb_down_snd.start();
if (_root.HintsVisible == true) {
_root.hints_mc._visible = true;
_root.hints_mc.gotoAndStop(_root.user1MagicSpinState);
}
if (_root.hints_mc._visible == false) {
_root.theme_pack_mc.btn_roll._visible = true;
}
break;
case 2 :
_root.user1MagicSpinState = "HIGH_FLIER";
_root.magic_spin_thumb_up_snd.start();
if (_root.HintsVisible == true) {
_root.hints_mc._visible = true;
_root.hints_mc.gotoAndStop(_root.user1MagicSpinState);
}
if (_root.hints_mc._visible == false) {
_root.theme_pack_mc.btn_roll._visible = true;
}
break;
case 3 :
_root.user1MagicSpinState = "LADDER_LUCK";
_root.magic_spin_ladder_luck_snd.start();
if (_root.HintsVisible == true) {
_root.hints_mc._visible = true;
_root.hints_mc.gotoAndStop(_root.user1MagicSpinState);
}
if (_root.hints_mc._visible == false) {
_root.theme_pack_mc.btn_roll._visible = true;
}
break;
case 4 :
_root.user1MagicSpinState = "VENOM";
_root.magic_spin_venom_snd.start();
if (_root.HintsVisible == true) {
_root.hints_mc._visible = true;
_root.hints_mc.gotoAndStop(_root.user1MagicSpinState);
}
if (_root.hints_mc._visible == false) {
_root.theme_pack_mc.btn_roll._visible = true;
}
break;
case 5 :
_root.user1MagicSpinState = "LOSE_A_TURN";
if (_root.HintsVisible == true) {
_root.hints_mc._visible = true;
_root.hints_mc.gotoAndStop(_root.user1MagicSpinState);
}
_root.magic_spin_stop_snd.start();
break;
case 6 :
_root.user1MagicSpinState = "EXTRA_TURN";
if (_root.HintsVisible == true) {
_root.hints_mc._visible = true;
_root.hints_mc.gotoAndStop(_root.user1MagicSpinState);
}
_root.magic_spin_extra_turn_snd.start();
}
_root.theme_pack_mc.magicspin_mc.gotoAndStop(_root.user1MagicSpinState);
}
break;
case "LOW_BLOW" :
break;
case "HIGH_FLIER" :
break;
case "LADDER_LUCK" :
break;
case "VENOM" :
break;
case "LOSE_A_TURN" :
_root.loseATurnCount--;
if (_root.loseATurnCount < 0) {
if (_root.hints_mc._visible == false) {
_root.loseATurnCount = _root.loseATurnCountInit;
_root.user1GotExtraTurn = false;
_root.setTurn();
_root.user1MagicSpinState = "DEACTIVATED";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("DEACTIVATED");
}
}
break;
case "EXTRA_TURN" :
_root.extraTurnCount--;
if (_root.extraTurnCount >= 0) {
break;
}
if (_root.hints_mc._visible != false) {
break;
}
_root.extraTurnCount = _root.extraTurnCountInit;
_root.user1GotExtraTurn = true;
_root.user1MagicSpinState = "DEACTIVATED";
_root.theme_pack_mc.magicspin_mc.gotoAndStop("DEACTIVATED");
_root.theme_pack_mc.btn_roll._visible = true;
}
switch (_root[("user" + _root.turn) + "state"]) {
case "AI_DICE_ROLL_COUNTDOWN" :
if (_root.aiDiceCounter == 0) {
_root.aiDiceCounter = _root.aiDiceCounterInit;
_root.RollDice();
if (_root.GameType == "classic") {
if (_root[("user" + _root.turn) + "SquareNumber"] == 0) {
_root[("user" + _root.turn) + "state"] = "INIT_POSITION";
} else {
_root[("user" + _root.turn) + "state"] = "IDLE";
}
} else if (_root.GameType == "twist") {
if (_root[("user" + _root.turn) + "SquareNumber"] == 101) {
_root[("user" + _root.turn) + "state"] = "INIT_POSITION";
} else {
_root[("user" + _root.turn) + "state"] = "IDLE";
}
}
} else {
_root.aiDiceCounter--;
}
break;
case "INIT_POSITION" :
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
if (!(_root[("user" + _root.turn) + "SquareNumber"] === _root[("user" + _root.turn) + "DestinationSquareNumber"])) {
if (_root.RuleSixRequired == true) {
if (_root[("user" + _root.turn) + "GotSix"] == true) {
_root[("user" + _root.turn) + "mc"]._x = _root[("user" + _root.turn) + "ActualInitX"];
_root[("user" + _root.turn) + "mc"]._y = _root[("user" + _root.turn) + "ActualInitY"];
_root[("user" + _root.turn) + "state"] = "IDLE";
} else if ((_root.GameType == "classic") && (_root[("user" + _root.turn) + "DestinationSquareNumber"] == 6)) {
_root[("user" + _root.turn) + "GotSix"] = true;
_root[("user" + _root.turn) + "SquareNumber"] = 0;
_root[("user" + _root.turn) + "DestinationSquareNumber"] = 0;
_root.user1GotExtraTurn = false;
_root.user2GotExtraTurn = false;
_root.setTurn();
} else if ((_root.GameType == "twist") && (_root[("user" + _root.turn) + "DestinationSquareNumber"] == 95)) {
_root[("user" + _root.turn) + "GotSix"] = true;
_root[("user" + _root.turn) + "SquareNumber"] = 101;
_root[("user" + _root.turn) + "DestinationSquareNumber"] = 101;
_root.user1GotExtraTurn = false;
_root.user2GotExtraTurn = false;
_root.setTurn();
} else {
if (_root.GameType == "classic") {
_root[("user" + _root.turn) + "SquareNumber"] = 0;
_root[("user" + _root.turn) + "DestinationSquareNumber"] = 0;
} else if (_root.GameType == "twist") {
_root[("user" + _root.turn) + "SquareNumber"] = 101;
_root[("user" + _root.turn) + "DestinationSquareNumber"] = 101;
}
_root.setTurn();
}
} else if (!(_root[("user" + _root.turn) + "SquareNumber"] === _root[("user" + _root.turn) + "DestinationSquareNumber"])) {
_root[("user" + _root.turn) + "mc"]._x = _root[("user" + _root.turn) + "ActualInitX"];
_root[("user" + _root.turn) + "mc"]._y = _root[("user" + _root.turn) + "ActualInitY"];
_root[("user" + _root.turn) + "state"] = "IDLE";
}
}
case "IDLE" :
_root[("user" + _root.turn) + "mc"].mc_playerCoin._xscale = 100;
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
if (!(_root[("user" + _root.turn) + "SquareNumber"] === _root[("user" + _root.turn) + "DestinationSquareNumber"])) {
_root[("user" + _root.turn) + "Score"]++;
if (_root.turn == 1) {
_root[("user" + _root.turn) + "NumberOfMoves"]++;
_root.setScore(_root.user1Score);
}
_root[("user" + _root.turn) + "state"] = "CHECK_NEXT_MOVE";
}
break;
case "CHECK_NEXT_MOVE" :
if ((_root.RuleExactNumberHome == false) && (((_root.GameType == "classic") && (_root[("user" + _root.turn) + "SquareNumber"] == 100)) || ((_root.GameType == "twist") && (_root[("user" + _root.turn) + "SquareNumber"] == 1)))) {
displayWhenUserWins();
} else if (_root[("user" + _root.turn) + "MovingBackward"] == true) {
if (_root[("user" + _root.turn) + "SquareNumber"] == _root[("user" + _root.turn) + "DestinationSquareNumber"]) {
_root[("user" + _root.turn) + "MovingBackward"] = false;
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "CHECK_TURN_FINISH_RULES";
} else {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_RIGHT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_RIGHT");
}
} else if (((_root.RuleExactNumberHome == true) && (_root.RuleMoveAndTurnBack == false)) && (((_root.GameType == "classic") && (_root[("user" + _root.turn) + "DestinationSquareNumber"] > 100)) || ((_root.GameType == "twist") && (_root[("user" + _root.turn) + "DestinationSquareNumber"] < 1)))) {
if ((_root.GameType == "classic") && (_root[("user" + _root.turn) + "DestinationSquareNumber"] > 100)) {
_root[("user" + _root.turn) + "DestinationSquareNumber"] = _root[("user" + _root.turn) + "SquareNumber"];
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "IDLE";
_root.setTurn();
} else if ((_root.GameType == "twist") && (_root[("user" + _root.turn) + "DestinationSquareNumber"] < 1)) {
_root[("user" + _root.turn) + "DestinationSquareNumber"] = _root[("user" + _root.turn) + "SquareNumber"];
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "IDLE";
_root.setTurn();
}
} else if ((_root.GameType == "classic") && (_root[("user" + _root.turn) + "SquareNumber"] == 100)) {
if (_root.RuleExactNumberHome == true) {
if (_root.RuleMoveAndTurnBack == true) {
if (_root[("user" + _root.turn) + "SquareNumber"] == _root[("user" + _root.turn) + "DestinationSquareNumber"]) {
displayWhenUserWins();
} else {
_root[("user" + _root.turn) + "MovingBackward"] = true;
_root[("user" + _root.turn) + "DestinationSquareNumber"] = 100 - (_root[("user" + _root.turn) + "DestinationSquareNumber"] - 100);
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_RIGHT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_RIGHT");
}
} else {
displayWhenUserWins();
}
} else {
displayWhenUserWins();
}
} else if ((_root.GameType == "twist") && (_root[("user" + _root.turn) + "SquareNumber"] == 1)) {
if (_root.RuleExactNumberHome == true) {
if (_root.RuleMoveAndTurnBack == true) {
if (_root[("user" + _root.turn) + "SquareNumber"] == _root[("user" + _root.turn) + "DestinationSquareNumber"]) {
displayWhenUserWins();
} else {
_root[("user" + _root.turn) + "MovingBackward"] = true;
_root[("user" + _root.turn) + "DestinationSquareNumber"] = Math.abs(_root[("user" + _root.turn) + "DestinationSquareNumber"] - 2);
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_RIGHT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_RIGHT");
}
} else {
displayWhenUserWins();
}
} else {
displayWhenUserWins();
}
} else if (!(_root[("user" + _root.turn) + "SquareNumber"] === _root[("user" + _root.turn) + "DestinationSquareNumber"])) {
if (_root.GameType == "classic") {
if (_root[("user" + _root.turn) + "SquareNumber"] == 0) {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_RIGHT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_RIGHT");
} else {
i = 0;
while (i < 9) {
if ((_root[("user" + _root.turn) + "SquareNumber"] > Number(i + "0")) && (_root[("user" + _root.turn) + "SquareNumber"] < Number((i + 1) + "0"))) {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_RIGHT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_RIGHT");
break;
}
i = i + 2;
}
i = 1;
while (i < 10) {
if ((_root[("user" + _root.turn) + "SquareNumber"] > Number(i + "0")) && (_root[("user" + _root.turn) + "SquareNumber"] < Number((i + 1) + "0"))) {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_LEFT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_LEFT");
break;
}
i = i + 2;
}
if ((_root[("user" + _root.turn) + "SquareNumber"] % 10) == 0) {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_UP";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_UP");
}
}
} else if (_root.GameType == "twist") {
if (_root[("user" + _root.turn) + "SquareNumber"] == 101) {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_RIGHT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_RIGHT");
} else {
i = 10;
while (i > 0) {
if ((_root[("user" + _root.turn) + "SquareNumber"] < Number(i + "1")) && (_root[("user" + _root.turn) + "SquareNumber"] > Number((i - 1) + "1"))) {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_RIGHT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_RIGHT");
break;
}
i = i - 2;
}
i = 9;
while (i > -1) {
if ((_root[("user" + _root.turn) + "SquareNumber"] < Number(i + "1")) && (_root[("user" + _root.turn) + "SquareNumber"] > Number((i - 1) + "1"))) {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_LEFT";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_LEFT");
break;
}
i = i - 2;
}
if (((_root[("user" + _root.turn) + "SquareNumber"] - 1) % 10) == 0) {
_root.move_coin_snd.start();
_root[("user" + _root.turn) + "state"] = "JUMP_DOWN";
_root[("user" + _root.turn) + "mc"].gotoAndStop("JUMP_DOWN");
}
}
}
} else {
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "CHECK_TURN_FINISH_RULES";
}
break;
case "JUMP_RIGHT" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
_root[("user" + _root.turn) + "mc"].gotoAndStop(1);
_root[("user" + _root.turn) + "mc"]._x = _root[("user" + _root.turn) + "mc"]._x + _root.tileXdiff;
if (_root.GameType == "classic") {
if (_root[("user" + _root.turn) + "MovingBackward"] == true) {
_root[("user" + _root.turn) + "SquareNumber"]--;
} else {
_root[("user" + _root.turn) + "SquareNumber"]++;
}
} else if (_root.GameType == "twist") {
if (_root[("user" + _root.turn) + "MovingBackward"] == true) {
_root[("user" + _root.turn) + "SquareNumber"]++;
} else {
_root[("user" + _root.turn) + "SquareNumber"]--;
}
}
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "CHECK_NEXT_MOVE";
}
break;
case "JUMP_LEFT" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
_root[("user" + _root.turn) + "mc"].gotoAndStop(1);
_root[("user" + _root.turn) + "mc"].mc_playerCoin._xscale = -100;
_root[("user" + _root.turn) + "mc"]._x = _root[("user" + _root.turn) + "mc"]._x - _root.tileXdiff;
if (_root.GameType == "classic") {
_root[("user" + _root.turn) + "SquareNumber"]++;
} else if (_root.GameType == "twist") {
_root[("user" + _root.turn) + "SquareNumber"]--;
}
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "CHECK_NEXT_MOVE";
}
break;
case "JUMP_UP" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
_root[("user" + _root.turn) + "mc"].gotoAndStop(1);
_root[("user" + _root.turn) + "mc"]._y = _root[("user" + _root.turn) + "mc"]._y - _root.tileYdiff;
_root[("user" + _root.turn) + "SquareNumber"]++;
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "CHECK_NEXT_MOVE";
}
break;
case "JUMP_DOWN" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
_root[("user" + _root.turn) + "mc"].gotoAndStop(1);
_root[("user" + _root.turn) + "mc"]._y = _root[("user" + _root.turn) + "mc"]._y + _root.tileYdiff;
_root[("user" + _root.turn) + "SquareNumber"]--;
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "CHECK_NEXT_MOVE";
}
break;
case "CHECK_TURN_FINISH_RULES" :
if (_root.GameType == "classic") {
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
i = 0;
while (i < SnakeArray.length) {
if (_root[("user" + _root.turn) + "SquareNumber"] == SnakeArray[i][0]) {
_root[("user" + _root.turn) + "NumberOfSnakeBites"]++;
_root.snakeMouthPosition = SnakeArray[i][0];
_root.snakeTailPosition = SnakeArray[i][1];
_root[("user" + _root.turn) + "DestinationSquareNumber"] = _root.snakeTailPosition;
_root[("user" + _root.turn) + "DestinationX"] = SnakeArray[i][2];
_root[("user" + _root.turn) + "DestinationY"] = SnakeArray[i][3];
_root[("user" + _root.turn) + "state"] = "SCARED_FACE";
_root[("user" + _root.turn) + "mc"].gotoAndStop("SCARED_FACE");
break;
}
i++;
}
}
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
i = 0;
while (i < LadderArray.length) {
if (_root[("user" + _root.turn) + "SquareNumber"] == LadderArray[i][0]) {
_root[("user" + _root.turn) + "NumberOfLaddersClimbed"]++;
_root.ladderFootPosition = LadderArray[i][0];
_root.ladderTopPosition = LadderArray[i][1];
_root[("user" + _root.turn) + "DestinationSquareNumber"] = _root.ladderTopPosition;
_root[("user" + _root.turn) + "DestinationX"] = LadderArray[i][2];
_root[("user" + _root.turn) + "DestinationY"] = LadderArray[i][3];
_root[("user" + _root.turn) + "state"] = "HAPPY_FACE";
_root[("user" + _root.turn) + "mc"].gotoAndStop("HAPPY_FACE");
break;
}
i++;
}
}
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
if (_root[("user" + _root.turn) + "SquareNumber"] == 100) {
displayWhenUserWins();
}
}
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
if (_root.RuleOpponentCollision == true) {
if (_root[("user" + _root.turn) + "DestinationSquareNumber"] == _root[("user" + _root.opponentUserIndex) + "DestinationSquareNumber"]) {
_root.userSqueezedIndex = _root.opponentUserIndex;
_root[("user" + _root.opponentUserIndex) + "mc"].gotoAndStop("COLLISION");
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.opponentUserIndex) + "state"] = "COLLISION";
_root[("user" + _root.turn) + "state"] = "COLLISION";
_root.move_coin_snd.start();
}
} else if (_root.RuleOpponentCollision == false) {
if (_root[("user" + _root.turn) + "DestinationSquareNumber"] == _root[("user" + _root.opponentUserIndex) + "DestinationSquareNumber"]) {
_root[("user" + _root.opponentUserIndex) + "mc"].mc_playerCoin._x = _root[("user" + _root.opponentUserIndex) + "mc"].mc_playerCoin._x - 5;
}
}
}
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "IDLE";
_root.setTurn();
}
} else if (_root.GameType == "twist") {
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
i = 0;
while (i < SnakeArray.length) {
if (_root[("user" + _root.turn) + "SquareNumber"] == SnakeArray[i][0]) {
_root[("user" + _root.turn) + "NumberOfSnakeBites"]++;
_root.snakeMouthPosition = SnakeArray[i][0];
_root.snakeTailPosition = SnakeArray[i][1];
_root[("user" + _root.turn) + "DestinationSquareNumber"] = _root.snakeTailPosition;
_root[("user" + _root.turn) + "DestinationX"] = SnakeArray[i][2];
_root[("user" + _root.turn) + "DestinationY"] = SnakeArray[i][3];
_root[("user" + _root.turn) + "state"] = "HAPPY_FACE";
_root[("user" + _root.turn) + "mc"].gotoAndStop("HAPPY_FACE");
break;
}
i++;
}
}
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
i = 0;
while (i < LadderArray.length) {
if (_root[("user" + _root.turn) + "SquareNumber"] == LadderArray[i][0]) {
_root[("user" + _root.turn) + "NumberOfLaddersClimbed"]++;
_root.ladderFootPosition = LadderArray[i][0];
_root.ladderTopPosition = LadderArray[i][1];
_root[("user" + _root.turn) + "DestinationSquareNumber"] = _root.ladderTopPosition;
_root[("user" + _root.turn) + "DestinationX"] = LadderArray[i][2];
_root[("user" + _root.turn) + "DestinationY"] = LadderArray[i][3];
_root[("user" + _root.turn) + "state"] = "SAD_FACE";
_root[("user" + _root.turn) + "mc"].gotoAndStop("SAD_FACE");
break;
}
i++;
}
}
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
if (_root[("user" + _root.turn) + "SquareNumber"] == 0) {
displayWhenUserWins();
}
}
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
if (_root.RuleOpponentCollision == true) {
if (_root[("user" + _root.turn) + "DestinationSquareNumber"] == _root[("user" + _root.opponentUserIndex) + "DestinationSquareNumber"]) {
_root.userSqueezedIndex = _root.opponentUserIndex;
_root[("user" + _root.opponentUserIndex) + "mc"].gotoAndStop("COLLISION");
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.opponentUserIndex) + "state"] = "COLLISION";
_root[("user" + _root.turn) + "state"] = "COLLISION";
_root.move_coin_snd.start();
}
} else if (_root.RuleOpponentCollision == false) {
if (_root[("user" + _root.turn) + "DestinationSquareNumber"] == _root[("user" + _root.opponentUserIndex) + "DestinationSquareNumber"]) {
_root[("user" + _root.opponentUserIndex) + "mc"].mc_playerCoin._x = _root[("user" + _root.opponentUserIndex) + "mc"].mc_playerCoin._x - 5;
}
}
}
if (_root[("user" + _root.turn) + "state"] == "CHECK_TURN_FINISH_RULES") {
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "state"] = "IDLE";
_root.setTurn();
}
}
break;
case "SAD_FACE" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
_root[("user" + _root.turn) + "mc"].gotoAndStop((("LADDER_" + _root.ladderFootPosition) + "_") + _root.ladderTopPosition);
_root[("user" + _root.turn) + "state"] = "LADDER_CLIMB_ANIM_PLAYING";
_root.climb_ladder_snd.start();
}
break;
case "HAPPY_FACE" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
if (_root.GameType == "classic") {
_root[("user" + _root.turn) + "mc"].gotoAndStop((("LADDER_" + _root.ladderFootPosition) + "_") + _root.ladderTopPosition);
_root[("user" + _root.turn) + "state"] = "LADDER_CLIMB_ANIM_PLAYING";
_root.climb_ladder_snd.start();
} else if (_root.GameType == "twist") {
_root[("user" + _root.turn) + "mc"].gotoAndStop((("SNAKE_" + _root.snakeMouthPosition) + "_") + _root.snakeTailPosition);
_root[("user" + _root.turn) + "state"] = "SNAKE_BYTE_ANIM_PLAYING";
_root.snake_byte_snd.start();
}
}
break;
case "COLLISION" :
if (_root[("user" + _root.userSqueezedIndex) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.userSqueezedIndex) + "mc"].mc_playerCoin._totalframes) {
_root.magic_spin_thumb_down_snd.start();
_root[("user" + _root.userSqueezedIndex) + "mc"].gotoAndStop("GO_TO_START");
if (_root.GameType == "classic") {
_root[("user" + _root.userSqueezedIndex) + "mc"]._x = _root.square1X;
_root[("user" + _root.userSqueezedIndex) + "mc"]._y = _root.square1Y;
_root[("user" + _root.userSqueezedIndex) + "SquareNumber"] = 1;
_root[("user" + _root.userSqueezedIndex) + "DestinationSquareNumber"] = 1;
} else if (_root.GameType == "twist") {
_root[("user" + _root.userSqueezedIndex) + "mc"]._x = _root.square100X;
_root[("user" + _root.userSqueezedIndex) + "mc"]._y = _root.square100Y;
_root[("user" + _root.userSqueezedIndex) + "SquareNumber"] = 100;
_root[("user" + _root.userSqueezedIndex) + "DestinationSquareNumber"] = 100;
}
_root[("user" + _root.turn) + "state"] = "GO_TO_START";
_root[("user" + _root.userSqueezedIndex) + "state"] = "GO_TO_START";
}
break;
case "GO_TO_START" :
if (_root[("user" + _root.userSqueezedIndex) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.userSqueezedIndex) + "mc"].mc_playerCoin._totalframes) {
_root[("user" + _root.turn) + "state"] = "IDLE";
_root[("user" + _root.userSqueezedIndex) + "state"] = "IDLE";
_root[("user" + _root.userSqueezedIndex) + "mc"].gotoAndStop("IDLE");
_root.setTurn();
}
break;
case "SCARED_FACE" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
if (_root.GameType == "classic") {
_root[("user" + _root.turn) + "mc"].gotoAndStop((("SNAKE_" + _root.snakeMouthPosition) + "_") + _root.snakeTailPosition);
_root[("user" + _root.turn) + "state"] = "SNAKE_BYTE_ANIM_PLAYING";
_root.snake_byte_snd.start();
}
}
break;
case "SNAKE_BYTE_ANIM_PLAYING" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe == _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "mc"]._x = _root[("user" + _root.turn) + "DestinationX"];
_root[("user" + _root.turn) + "mc"]._y = _root[("user" + _root.turn) + "DestinationY"];
if (_root.GameType == "classic") {
if (_root.turn == 1) {
_root.score_bubble.score_bubble_fly.bonus_score.text = "- 3";
_root.score_bubble.gotoAndPlay(2);
_root.score_bubble._x = _root[("user" + _root.turn) + "mc"]._x;
_root.score_bubble._y = _root[("user" + _root.turn) + "mc"]._y;
_root[("user" + _root.turn) + "Score"] = _root[("user" + _root.turn) + "Score"] - 3;
_root.setScore(_root.user1Score);
}
} else if (_root.GameType == "twist") {
if (_root.turn == 1) {
_root.score_bubble.score_bubble_fly.bonus_score.text = "+ 5";
_root.score_bubble.gotoAndPlay(2);
_root.score_bubble._x = _root[("user" + _root.turn) + "mc"]._x;
_root.score_bubble._y = _root[("user" + _root.turn) + "mc"]._y;
_root[("user" + _root.turn) + "Score"] = _root[("user" + _root.turn) + "Score"] + 5;
_root.setScore(_root.user1Score);
}
}
_root[("user" + _root.turn) + "SquareNumber"] = _root.snakeTailPosition;
_root[("user" + _root.turn) + "state"] = "CHECK_TURN_FINISH_RULES";
}
break;
case "LADDER_CLIMB_ANIM_PLAYING" :
if (_root[("user" + _root.turn) + "mc"].mc_playerCoin._currentframe != _root[("user" + _root.turn) + "mc"].mc_playerCoin._totalframes) {
break;
}
_root[("user" + _root.turn) + "mc"].gotoAndStop("IDLE");
_root[("user" + _root.turn) + "mc"]._x = _root[("user" + _root.turn) + "DestinationX"];
_root[("user" + _root.turn) + "mc"]._y = _root[("user" + _root.turn) + "DestinationY"];
if (_root.GameType == "classic") {
if (_root.turn == 1) {
_root.score_bubble.score_bubble_fly.bonus_score.text = "+ 5";
_root.score_bubble.gotoAndPlay(2);
_root.score_bubble._x = _root[("user" + _root.turn) + "mc"]._x;
_root.score_bubble._y = _root[("user" + _root.turn) + "mc"]._y;
_root[("user" + _root.turn) + "Score"] = _root[("user" + _root.turn) + "Score"] + 5;
_root.setScore(_root.user1Score);
}
} else if (_root.GameType == "twist") {
if (_root.turn == 1) {
_root.score_bubble.score_bubble_fly.bonus_score.text = "- 3";
_root.score_bubble.gotoAndPlay(2);
_root.score_bubble._x = _root[("user" + _root.turn) + "mc"]._x;
_root.score_bubble._y = _root[("user" + _root.turn) + "mc"]._y;
_root[("user" + _root.turn) + "Score"] = _root[("user" + _root.turn) + "Score"] - 3;
_root.setScore(_root.user1Score);
}
}
_root[("user" + _root.turn) + "SquareNumber"] = _root.ladderTopPosition;
_root[("user" + _root.turn) + "state"] = "CHECK_TURN_FINISH_RULES";
}
} else if (_root.GameMode == "multiplayer") {
}
} else if ((_root.GameStarted == false) || (_root.GamePaused == true)) {
_root.user1mc._visible = false;
_root.user2mc._visible = false;
_root.theme_pack_mc.btn_instructions._visible = false;
_root.theme_pack_mc.btn_menu._visible = false;
_root.theme_pack_mc.mc_sound_controller._visible = false;
_root.theme_pack_mc.btn_roll._visible = false;
_root.theme_pack_mc.magicspin_mc._visible = false;
_root.theme_pack_mc.btn_themeforward._visible = false;
_root.theme_pack_mc.btn_themebackward._visible = false;
_root.theme_pack_mc.theme_preview_mc._visible = false;
_root.theme_pack_mc.btn_settheme._visible = false;
_root.theme_pack_mc.user1_name_txt._visible = false;
_root.theme_pack_mc.user2_name_txt._visible = false;
_root.theme_pack_mc.user1turn_mc._visible = false;
_root.theme_pack_mc.user2turn_mc._visible = false;
}
};
var menu_click_snd = new Sound(_root.sfx_target_mc);
menu_click_snd.attachSound("menu_click");
var snake_byte_snd = new Sound(_root.sfx_target_mc);
snake_byte_snd.attachSound("snake_byte");
var climb_ladder_snd = new Sound(_root.sfx_target_mc);
climb_ladder_snd.attachSound("climb_ladder");
var move_coin_snd = new Sound(_root.sfx_target_mc);
move_coin_snd.attachSound("move_coin");
var player_collision_snd = new Sound(_root.sfx_target_mc);
player_collision_snd.attachSound("player_collision");
var roll_dice_snd = new Sound(_root.sfx_target_mc);
roll_dice_snd.attachSound("roll_dice");
var magic_spin_extra_turn_snd = new Sound(_root.sfx_target_mc);
magic_spin_extra_turn_snd.attachSound("magic_spin_extra_turn");
var magic_spin_ladder_luck_snd = new Sound(_root.sfx_target_mc);
magic_spin_ladder_luck_snd.attachSound("magic_spin_ladder_luck");
var magic_spin_spinning_snd = new Sound(_root.sfx_target_mc);
magic_spin_spinning_snd.attachSound("magic_spin_spinning");
var magic_spin_stop_snd = new Sound(_root.sfx_target_mc);
magic_spin_stop_snd.attachSound("magic_spin_stop");
var magic_spin_thumb_down_snd = new Sound(_root.sfx_target_mc);
magic_spin_thumb_down_snd.attachSound("magic_spin_thumb_down");
var magic_spin_thumb_up_snd = new Sound(_root.sfx_target_mc);
magic_spin_thumb_up_snd.attachSound("magic_spin_thumb_up");
var magic_spin_venom_snd = new Sound(_root.sfx_target_mc);
magic_spin_venom_snd.attachSound("magic_spin_venom");
var game_loose_theme_snd = new Sound(_root.sfx_target_mc);
game_loose_theme_snd.attachSound("game_loose_theme");
var game_win_theme_snd = new Sound(_root.sfx_target_mc);
game_win_theme_snd.attachSound("game_win_theme");
var bgm_loop_jungle_snd = new Sound(_root.bgm_target_mc);
bgm_loop_jungle_snd.attachSound("bgm_loop_jungle");
var bgm_loop_desktop_snd = new Sound(_root.bgm_target_mc);
bgm_loop_desktop_snd.attachSound("bgm_loop_desktop");
var global_sound = new Sound();
global_sound.setVolume(100);
_root.bgm_loop_jungle_snd.start();
_root.bgm_loop_jungle_snd.onSoundComplete = function () {
_root.bgm_loop_jungle_snd.start();
};
_root.bgm_loop_desktop_snd.onSoundComplete = function () {
_root.bgm_loop_desktop_snd.start();
};
Symbol 13 MovieClip [loader_mc] Frame 40
stop();
Symbol 20 Button
on (release) {
getURL ("http://www.santabanta.com", "_blank");
}
Symbol 25 MovieClip Frame 1
stop();
Symbol 57 MovieClip [indication_arrow_mc] Frame 1
this._x = 578.65;
this._y = 217.55;
onEnterFrame = function () {
if (_root.GamePaused == true) {
this._visible = false;
} else {
this._visible = true;
}
if (_root.theme_pack_mc.dice._currentframe > 1) {
this.removeMovieClip();
}
};
Symbol 58 MovieClip Frame 1
stop();
Symbol 97 Button
on (release) {
gotoAndPlay (2);
}
on (release) {
_root.soundstatus = "off";
}
Symbol 100 Button
on (release) {
gotoAndPlay (1);
}
on (release) {
_root.soundstatus = "on";
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
_root.soundstatus = "on";
_root.bgsound = new Sound(_level0);
_root.gamesound = new Sound(_level1);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.gamesound.setVolume(maxvolume);
_root.bgsound.setVolume(maxvolume);
}
Symbol 110 Button
on (press) {
toggleFullScreen();
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 35
stop();
Symbol 273 MovieClip Frame 36
stop();
Symbol 273 MovieClip Frame 37
stop();
Symbol 273 MovieClip Frame 38
stop();
Symbol 273 MovieClip Frame 39
stop();
Symbol 273 MovieClip Frame 40
stop();
Symbol 300 MovieClip Frame 1
stop();
_root.setTheColor(theCoin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(theCoin.eyelid, _root.user1mc.SelectedColorIndex);
Symbol 300 MovieClip Frame 2
stop();
Symbol 303 MovieClip Frame 1
stop();
_root.setTheColor(theCoin.coinface, _root.user2mc.SelectedColorIndex);
_root.setTheColor(theCoin.eyelid, _root.user2mc.SelectedColorIndex);
Symbol 303 MovieClip Frame 2
stop();
Symbol 306 MovieClip Frame 1
stop();
btn_themeforward.onRelease = function () {
if (((((((_root.user1state == "IDLE") || (_root.user1state == "INIT_POSITION")) && ((_root.user2state == "IDLE") || (_root.user2state == "INIT_POSITION"))) && (_root.turn == 1)) && (!(_root.theme_pack_mc.magicspin_mc === "SPINNING"))) && (_root.hints_mc._visible == false)) && ((_root.theme_pack_mc.dice._currentframe > 34) || (_root.theme_pack_mc.dice._currentframe == 1))) {
_root.menu_click_snd.start();
_root.theme_pack_mc.gotoAndStop(1);
_root.theme_pack_mc.btn_roll.onRelease = _root.onRollDiceClick;
_root.theme_pack_mc.magicspin_mc.gotoAndStop(_root.user1MagicSpinState);
if (_root.user1MagicSpinState == "ACTIVATED_CLICKABLE") {
_root.theme_pack_mc.magicspin_mc.onRelease = _root.onMagicSpinClick;
}
if (_root.turn == 1) {
_root.theme_pack_mc.user1turn_mc.gotoAndStop(1);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(2);
} else if (_root.turn == 2) {
_root.theme_pack_mc.user1turn_mc.gotoAndStop(2);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(1);
}
_root.setScore(_root.user1NumberOfMoves);
_root.bgm_loop_desktop_snd.stop();
_root.bgm_loop_jungle_snd.start();
_root.bgm_loop_jungle_snd.setVolume(_root.VolumeMusic);
}
};
btn_themebackward.onRelease = function () {
if (((((((_root.user1state == "IDLE") || (_root.user1state == "INIT_POSITION")) && ((_root.user2state == "IDLE") || (_root.user2state == "INIT_POSITION"))) && (_root.turn == 1)) && (!(_root.theme_pack_mc.magicspin_mc === "SPINNING"))) && (_root.hints_mc._visible == false)) && ((_root.theme_pack_mc.dice._currentframe > 34) || (_root.theme_pack_mc.dice._currentframe == 1))) {
_root.menu_click_snd.start();
_root.theme_pack_mc.gotoAndStop(1);
_root.theme_pack_mc.btn_roll.onRelease = _root.onRollDiceClick;
_root.theme_pack_mc.magicspin_mc.gotoAndStop(_root.user1MagicSpinState);
if (_root.user1MagicSpinState == "ACTIVATED_CLICKABLE") {
_root.theme_pack_mc.magicspin_mc.onRelease = _root.onMagicSpinClick;
}
if (_root.turn == 1) {
_root.theme_pack_mc.user1turn_mc.gotoAndStop(1);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(2);
} else if (_root.turn == 2) {
_root.theme_pack_mc.user1turn_mc.gotoAndStop(2);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(1);
}
_root.setScore(_root.user1NumberOfMoves);
_root.bgm_loop_desktop_snd.stop();
_root.bgm_loop_jungle_snd.start();
_root.bgm_loop_jungle_snd.setVolume(_root.VolumeMusic);
}
};
btn_settheme.onRelease = function () {
if (((((((_root.user1state == "IDLE") || (_root.user1state == "INIT_POSITION")) && ((_root.user2state == "IDLE") || (_root.user2state == "INIT_POSITION"))) && (_root.turn == 1)) && (!(_root.theme_pack_mc.magicspin_mc === "SPINNING"))) && (_root.hints_mc._visible == false)) && ((_root.theme_pack_mc.dice._currentframe > 34) || (_root.theme_pack_mc.dice._currentframe == 1))) {
_root.menu_click_snd.start();
_root.theme_pack_mc.gotoAndStop(1);
_root.theme_pack_mc.btn_roll.onRelease = _root.onRollDiceClick;
_root.theme_pack_mc.magicspin_mc.gotoAndStop(_root.user1MagicSpinState);
if (_root.user1MagicSpinState == "ACTIVATED_CLICKABLE") {
_root.theme_pack_mc.magicspin_mc.onRelease = _root.onMagicSpinClick;
}
if (_root.turn == 1) {
_root.theme_pack_mc.user1turn_mc.gotoAndStop(1);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(2);
} else if (_root.turn == 2) {
_root.theme_pack_mc.user1turn_mc.gotoAndStop(2);
_root.theme_pack_mc.user2turn_mc.gotoAndStop(1);
}
_root.setScore(_root.user1NumberOfMoves);
_root.bgm_loop_desktop_snd.stop();
_root.bgm_loop_jungle_snd.start();
_root.bgm_loop_jungle_snd.setVolume(_root.VolumeMusic);
}
};
btn_instructions.onRelease = function () {
if (((((((_root.user1state == "IDLE") || (_root.user1state == "INIT_POSITION")) && ((_root.user2state == "IDLE") || (_root.user2state == "INIT_POSITION"))) && (_root.turn == 1)) && (!(_root.theme_pack_mc.magicspin_mc === "SPINNING"))) && (_root.hints_mc._visible == false)) && ((_root.theme_pack_mc.dice._currentframe > 34) || (_root.theme_pack_mc.dice._currentframe == 1))) {
_root.menu_click_snd.start();
_root.rollButtonIsVisible = _root.theme_pack_mc.btn_roll._visible;
_root.GamePaused = true;
_root.mainmenu_mc._visible = true;
_root.theme_pack_mc.user1turn_mc._visible = false;
_root.theme_pack_mc.user2turn_mc._visible = false;
_root.mainmenu_mc.gotoAndStop("help");
}
};
btn_menu.onRelease = function () {
if (((((((_root.user1state == "IDLE") || (_root.user1state == "INIT_POSITION")) && ((_root.user2state == "IDLE") || (_root.user2state == "INIT_POSITION"))) && (_root.turn == 1)) && (!(_root.theme_pack_mc.magicspin_mc === "SPINNING"))) && (_root.hints_mc._visible == false)) && ((_root.theme_pack_mc.dice._currentframe > 34) || (_root.theme_pack_mc.dice._currentframe == 1))) {
_root.menu_click_snd.start();
_root.rollButtonIsVisible = _root.theme_pack_mc.btn_roll._visible;
_root.GamePaused = true;
_root.mainmenu_mc._visible = true;
_root.theme_pack_mc.user1turn_mc._visible = false;
_root.theme_pack_mc.user2turn_mc._visible = false;
_root.mainmenu_mc.gotoAndStop("main_ingame");
}
};
if (_root.global_sound.getVolume() == 100) {
mc_sound_controller.gotoAndStop(1);
} else if (_root.global_sound.getVolume() == 0) {
mc_sound_controller.gotoAndStop(2);
}
Symbol 318 MovieClip Frame 1
a = _currentframe + random(20);
eyelid.gotoAndPlay(a);
coinface.gotoAndPlay(a);
gotoAndPlay(a);
Symbol 318 MovieClip Frame 34
a = _currentframe + random(20);
eyelid.gotoAndPlay(a);
coinface.gotoAndPlay(a);
gotoAndPlay(a);
Symbol 479 MovieClip Frame 1
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 2
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 3
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 4
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 5
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 6
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 7
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 8
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 9
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 10
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 11
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 12
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 13
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 14
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 15
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 16
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 17
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 18
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 19
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 20
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 21
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 22
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 479 MovieClip Frame 23
_root.setTheColor(this.mc_playerCoin.coinface, this.SelectedColorIndex);
_root.setTheColor(this.mc_playerCoin.eyelid, this.SelectedColorIndex);
Symbol 488 MovieClip Frame 50
stop();
Symbol 495 MovieClip Frame 1
stop();
if (_root.HintsVisible == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
Symbol 495 MovieClip Frame 2
stop();
Symbol 498 Button
on (release) {
_root.menu_click_snd.start();
if (_root.user1MagicSpinState == "LOSE_A_TURN") {
_root.theme_pack_mc.btn_roll._visible = false;
_root.hints_mc._visible = false;
} else {
_root.theme_pack_mc.btn_roll._visible = true;
_root.hints_mc._visible = false;
}
}
Symbol 500 MovieClip Frame 50
stop();
Symbol 510 MovieClip Frame 26
stop();
Symbol 518 MovieClip Frame 39
stop();
Symbol 526 MovieClip Frame 50
stop();
Symbol 530 MovieClip Frame 24
stop();
Symbol 532 MovieClip Frame 1
stop();
Instance of Symbol 495 MovieClip "mc_hints" in Symbol 532 MovieClip Frame 1
on (press) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.HintsVisible = true;
} else {
this.gotoAndStop(1);
_root.HintsVisible = false;
}
}
Symbol 532 MovieClip Frame 2
stop();
Symbol 532 MovieClip Frame 3
stop();
Symbol 532 MovieClip Frame 4
stop();
Symbol 532 MovieClip Frame 5
stop();
Symbol 532 MovieClip Frame 6
stop();
Symbol 544 Button
on (release) {
_root.menu_click_snd.start();
gotoAndStop ("login");
}
Symbol 554 Button
on (release) {
_root.menu_click_snd.start();
gotoAndStop ("quit");
}
Symbol 557 Button
on (release) {
_root.GamePaused = false;
_root.menu_click_snd.start();
_root.user1mc._visible = true;
_root.user2mc._visible = true;
_root.theme_pack_mc.btn_instructions._visible = true;
_root.theme_pack_mc.btn_menu._visible = true;
_root.theme_pack_mc.mc_sound_controller._visible = true;
_root.theme_pack_mc.btn_roll._visible = _root.rollButtonIsVisible;
_root.theme_pack_mc.magicspin_mc._visible = true;
_root.theme_pack_mc.btn_themeforward._visible = true;
_root.theme_pack_mc.btn_themebackward._visible = true;
_root.theme_pack_mc.theme_preview_mc._visible = true;
_root.theme_pack_mc.btn_settheme._visible = true;
_root.theme_pack_mc.user1_name_txt._visible = true;
_root.theme_pack_mc.user2_name_txt._visible = true;
_root.mainmenu_mc._visible = false;
_root.theme_pack_mc.user1turn_mc._visible = true;
_root.theme_pack_mc.user2turn_mc._visible = true;
}
Instance of Symbol 535 MovieClip in Symbol 560 MovieClip Frame 1
on (release) {
_root.GamePaused = false;
_root.menu_click_snd.start();
_root.user1mc._visible = true;
_root.user2mc._visible = true;
_root.theme_pack_mc.btn_instructions._visible = true;
_root.theme_pack_mc.btn_menu._visible = true;
_root.theme_pack_mc.mc_sound_controller._visible = true;
_root.theme_pack_mc.btn_roll._visible = _root.rollButtonIsVisible;
_root.theme_pack_mc.magicspin_mc._visible = true;
_root.theme_pack_mc.btn_themeforward._visible = true;
_root.theme_pack_mc.btn_themebackward._visible = true;
_root.theme_pack_mc.theme_preview_mc._visible = true;
_root.theme_pack_mc.btn_settheme._visible = true;
_root.theme_pack_mc.user1_name_txt._visible = true;
_root.theme_pack_mc.user2_name_txt._visible = true;
_root.mainmenu_mc._visible = false;
_root.theme_pack_mc.user1turn_mc._visible = true;
_root.theme_pack_mc.user2turn_mc._visible = true;
}
Symbol 570 Button
on (release) {
_root.menu_click_snd.start();
_root.InitGame("singleplayer", _root.GameType);
_root.GameStarted = false;
_root.GamePaused = false;
_root.user1mc._visible = false;
_root.user2mc._visible = false;
_root.theme_pack_mc.btn_instructions._visible = false;
_root.theme_pack_mc.btn_menu._visible = false;
_root.theme_pack_mc.mc_sound_controller._visible = false;
_root.theme_pack_mc.btn_roll._visible = false;
_root.theme_pack_mc.btn_roll.magicspin_mc._visible = false;
_root.theme_pack_mc.btn_themeforward._visible = false;
_root.theme_pack_mc.btn_themebackward._visible = false;
_root.theme_pack_mc.theme_preview_mc._visible = false;
_root.theme_pack_mc.btn_settheme._visible = false;
_root.theme_pack_mc.user1_name_txt._visible = false;
_root.theme_pack_mc.user2_name_txt._visible = false;
_root.indication_arrow_mc.removeMovieClip();
_root.mainmenu_mc.gotoAndStop("main_init");
}
Symbol 573 Button
on (release) {
_root.menu_click_snd.start();
if (_root.GameStarted == false) {
_root.mainmenu_mc.gotoAndStop("main_init");
} else {
_root.mainmenu_mc.gotoAndStop("main_ingame");
}
}
Symbol 576 Button
on (release) {
_root.menu_click_snd.start();
gotoAndStop ("main_init");
}
Symbol 579 Button
on (release) {
_root.user1 = _root.uname;
_root.menu_click_snd.start();
gotoAndStop ("rules");
}
Symbol 580 Button
on (release) {
_root.menu_click_snd.start();
if (_root.user1mc.SelectedColorIndex > 1) {
_root.user1mc.SelectedColorIndex--;
} else {
_root.user1mc.SelectedColorIndex = 5;
}
_root.setTheColor(this.theCoin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(this.theCoin.eyelid, _root.user1mc.SelectedColorIndex);
_root.setTheColor(_root.user1mc.mc_playerCoin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(_root.user1mc.mc_playerCoin.eyelid, _root.user1mc.SelectedColorIndex);
tempColorArray = [];
i = 1;
while (i < 6) {
if (i != _root.user1mc.SelectedColorIndex) {
tempColorArray.push(i);
}
i++;
}
_root.user2mc.SelectedColorIndex = tempColorArray[random(tempColorArray.length)];
_root.setTheColor(_root.user2mc.mc_playerCoin.coinface, _root.user2mc.SelectedColorIndex);
_root.setTheColor(_root.user2mc.mc_playerCoin.eyelid, _root.user2mc.SelectedColorIndex);
}
Symbol 581 Button
on (release) {
_root.menu_click_snd.start();
if (_root.user1mc.SelectedColorIndex < 5) {
_root.user1mc.SelectedColorIndex++;
} else {
_root.user1mc.SelectedColorIndex = 1;
}
_root.setTheColor(this.theCoin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(this.theCoin.eyelid, _root.user1mc.SelectedColorIndex);
_root.setTheColor(_root.user1mc.mc_playerCoin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(_root.user1mc.mc_playerCoin.eyelid, _root.user1mc.SelectedColorIndex);
tempColorArray = [];
i = 1;
while (i < 6) {
if (i != _root.user1mc.SelectedColorIndex) {
tempColorArray.push(i);
}
i++;
}
_root.user2mc.SelectedColorIndex = tempColorArray[random(tempColorArray.length)];
_root.setTheColor(_root.user2mc.mc_playerCoin.coinface, _root.user2mc.SelectedColorIndex);
_root.setTheColor(_root.user2mc.mc_playerCoin.eyelid, _root.user2mc.SelectedColorIndex);
}
Symbol 583 Button
on (release) {
_root.menu_click_snd.start();
_root.setTheColor(_root.theme_pack_mc.user1turn_mc.theCoin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(_root.theme_pack_mc.user1turn_mc.theCoin.eyelid, _root.user1mc.SelectedColorIndex);
_root.setTheColor(_root.theme_pack_mc.user2turn_mc.theCoin.coinface, _root.user2mc.SelectedColorIndex);
_root.setTheColor(_root.theme_pack_mc.user2turn_mc.theCoin.eyelid, _root.user2mc.SelectedColorIndex);
_root.GameStarted = true;
_root.user1mc._visible = true;
_root.user2mc._visible = true;
_root.theme_pack_mc.btn_instructions._visible = true;
_root.theme_pack_mc.btn_menu._visible = true;
_root.theme_pack_mc.mc_sound_controller._visible = true;
_root.theme_pack_mc.btn_roll._visible = true;
_root.theme_pack_mc.magicspin_mc._visible = true;
_root.theme_pack_mc.btn_themeforward._visible = true;
_root.theme_pack_mc.btn_themebackward._visible = true;
_root.theme_pack_mc.theme_preview_mc._visible = true;
_root.theme_pack_mc.btn_settheme._visible = true;
_root.theme_pack_mc.user1_name_txt._visible = true;
_root.theme_pack_mc.user2_name_txt._visible = true;
_root.mainmenu_mc._visible = false;
_root.theme_pack_mc.user1turn_mc._visible = true;
_root.theme_pack_mc.user2turn_mc._visible = true;
_root.attachMovie("indication_arrow_mc", "indication_arrow_mc", _root.getNextHighestDepth());
}
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 2
stop();
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 2
stop();
Symbol 598 MovieClip Frame 1
mc_stay.onRelease = function () {
_root.centuryWin = 0;
mc_move.gotoAndPlay(2);
this.gotoAndPlay(2);
};
mc_move.onRelease = function () {
_root.centuryWin = 1;
mc_stay.gotoAndPlay(1);
this.gotoAndPlay(1);
};
Instance of Symbol 594 MovieClip "stay_yes" in Symbol 598 MovieClip Frame 1
on (release) {
_parent._parent.setRule("RuleMoveAndTurnBack");
}
Instance of Symbol 597 MovieClip "stay_no" in Symbol 598 MovieClip Frame 1
on (release) {
_parent._parent.setRule("RuleMoveAndTurnBack");
}
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 2
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 609 MovieClip Frame 15
stop();
Symbol 609 MovieClip Frame 30
stop();
Symbol 628 Button
on (release) {
_root.menu_click_snd.start();
_root.InitGame("singleplayer", _root.GameType);
_root.GameStarted = false;
_root.GamePaused = false;
_root.user1mc._visible = false;
_root.user2mc._visible = false;
_root.theme_pack_mc.btn_instructions._visible = false;
_root.theme_pack_mc.btn_menu._visible = false;
_root.theme_pack_mc.mc_sound_controller._visible = false;
_root.theme_pack_mc.btn_roll._visible = false;
_root.theme_pack_mc.btn_roll.magicspin_mc._visible = false;
_root.theme_pack_mc.btn_themeforward._visible = false;
_root.theme_pack_mc.btn_themebackward._visible = false;
_root.theme_pack_mc.theme_preview_mc._visible = false;
_root.theme_pack_mc.btn_settheme._visible = false;
_root.theme_pack_mc.user1_name_txt._visible = false;
_root.theme_pack_mc.user2_name_txt._visible = false;
if (_root.theme_pack_mc._currentframe == 2) {
_root.bgm_loop_desktop_snd.start();
_root.bgm_loop_desktop_snd.setVolume(_root.VolumeMusic);
} else if (_root.theme_pack_mc._currentframe == 1) {
_root.bgm_loop_jungle_snd.start();
_root.bgm_loop_jungle_snd.setVolume(_root.VolumeMusic);
}
_root.mainmenu_mc.gotoAndStop("main_init");
}
Symbol 663 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 2
function setMode(theval) {
if (theval == "classic") {
btn_classic.gotoAndStop(2);
btn_twist.gotoAndStop(1);
_root.GameType = "classic";
_root.InitGame("singleplayer", "classic");
} else {
btn_classic.gotoAndStop(1);
btn_twist.gotoAndStop(2);
_root.GameType = "twist";
_root.InitGame("singleplayer", "twist");
}
}
stop();
tab_main._visible = true;
tab_options._visible = false;
tab_help._visible = false;
tab_highscore._visible = false;
tab_credits._visible = false;
btn_classic_over.gotoAndStop(2);
btn_twist_over.gotoAndStop(2);
setMode(_root.GameType);
Instance of Symbol 535 MovieClip in Symbol 663 MovieClip Frame 2
on (release) {
_root.menu_click_snd.start();
if (_root.GameStarted == false) {
_parent.gotoAndStop("main_init");
} else if (_root.GameStarted == true) {
_parent.gotoAndStop("main_ingame");
}
}
Instance of Symbol 535 MovieClip in Symbol 663 MovieClip Frame 2
on (release) {
_root.menu_click_snd.start();
_parent.gotoAndStop("help");
}
Instance of Symbol 540 MovieClip "btn_twist" in Symbol 663 MovieClip Frame 2
on (release) {
_root.menu_click_snd.start();
_parent.setMode("twist");
}
Instance of Symbol 548 MovieClip "btn_classic" in Symbol 663 MovieClip Frame 2
on (release) {
_root.menu_click_snd.start();
_parent.setMode("classic");
}
Symbol 663 MovieClip Frame 3
stop();
tab_main._visible = true;
tab_options._visible = false;
tab_help._visible = false;
tab_highscore._visible = false;
tab_credits._visible = false;
Symbol 663 MovieClip Frame 5
stop();
tab_main._visible = false;
tab_options._visible = false;
tab_help._visible = true;
tab_highscore._visible = false;
tab_credits._visible = false;
if (_root.GameStarted == true) {
closebtn._visible = true;
} else {
closebtn._visible = false;
}
upbtn.stop();
downbtn.stop();
thetext.htmlText = thetext.htmlText + "<li>Choose a game mode and your avatar to start the game.</li>";
thetext.htmlText = thetext.htmlText + "<li>When it\u2019s your turn, click on the dice to roll it.</li>";
thetext.htmlText = thetext.htmlText + "<li>According to the number on the dice, your avatar will automatically move on the board come to rest on a square.</li>";
thetext.htmlText = thetext.htmlText + "<li>If you land at the mouth of a snake, you will be dropped to the square on which the snake\u2019s tail ends.</li>";
thetext.htmlText = thetext.htmlText + "<li>If you happen to land at the base of a ladder, you will automatically climb to the square on which the ladder ends.</li>";
Instance of Symbol 535 MovieClip in Symbol 663 MovieClip Frame 5
on (release) {
_root.menu_click_snd.start();
if (_root.GameStarted == false) {
_parent.gotoAndStop("main_init");
} else if (_root.GameStarted == true) {
_parent.gotoAndStop("main_ingame");
}
}
Instance of Symbol 535 MovieClip in Symbol 663 MovieClip Frame 5
on (release) {
_root.menu_click_snd.start();
_parent.gotoAndStop("help");
}
Instance of Symbol 566 MovieClip "downbtn" in Symbol 663 MovieClip Frame 5
onClipEvent (load) {
function __f_load(eventObj) {
gotoAndStop (1);
}
this.addEventListener("load", __f_load);
}
on (press) {
_parent.thetext.scroll = _parent.thetext.scroll - 1;
ison = true;
}
on (release, releaseOutside) {
ison = false;
}
onClipEvent (enterFrame) {
if (ison == true) {
_parent.thetext.scroll = _parent.thetext.scroll - 1;
}
}
Instance of Symbol 566 MovieClip "upbtn" in Symbol 663 MovieClip Frame 5
on (press) {
_parent.thetext.scroll = _parent.thetext.scroll + 1;
ison = true;
}
on (release, releaseOutside) {
ison = false;
}
onClipEvent (enterFrame) {
if (ison == true) {
_parent.thetext.scroll = _parent.thetext.scroll + 1;
}
}
Symbol 663 MovieClip Frame 6
Symbol 663 MovieClip Frame 8
stop();
tab_main._visible = false;
tab_options._visible = false;
tab_help._visible = false;
tab_highscore._visible = false;
tab_credits._visible = false;
Symbol 663 MovieClip Frame 9
stop();
tab_main._visible = false;
tab_options._visible = false;
tab_help._visible = false;
tab_highscore._visible = false;
tab_credits._visible = false;
_root.setTheColor(this.theCoin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(this.theCoin.eyelid, _root.user1mc.SelectedColorIndex);
_root.setTheColor(_root.user1mc.mc_playerCoin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(_root.user1mc.mc_playerCoin.eyelid, _root.user1mc.SelectedColorIndex);
tempColorArray = [];
i = 1;
while (i < 6) {
if (i != _root.user1mc.SelectedColorIndex) {
tempColorArray.push(i);
}
i++;
}
_root.user2mc.SelectedColorIndex = tempColorArray[random(tempColorArray.length)];
_root.setTheColor(_root.user2mc.mc_playerCoin.coinface, _root.user2mc.SelectedColorIndex);
_root.setTheColor(_root.user2mc.mc_playerCoin.eyelid, _root.user2mc.SelectedColorIndex);
Symbol 663 MovieClip Frame 10
function setRule(theval) {
switch (theval) {
case "RuleSixRequired" :
if (sixrequired_yes._currentframe == 1) {
sixrequired_yes.gotoAndStop(2);
sixrequired_no.gotoAndStop(1);
_root.RuleSixRequired = false;
} else {
sixrequired_yes.gotoAndStop(1);
sixrequired_no.gotoAndStop(2);
_root.RuleSixRequired = true;
}
break;
case "RuleExtraTurn" :
if (extraturnsix_yes._currentframe == 1) {
extraturnsix_yes.gotoAndStop(2);
extraturnsix_no.gotoAndStop(1);
_root.RuleExtraTurn = false;
} else {
extraturnsix_yes.gotoAndStop(1);
extraturnsix_no.gotoAndStop(2);
_root.RuleExtraTurn = true;
}
break;
case "RuleOpponentCollision" :
if (sendhome_yes._currentframe == 1) {
sendhome_yes.gotoAndStop(2);
sendhome_no.gotoAndStop(1);
_root.RuleOpponentCollision = false;
} else {
sendhome_yes.gotoAndStop(1);
sendhome_no.gotoAndStop(2);
_root.RuleOpponentCollision = true;
}
break;
case "RuleExactNumberHome" :
if (exactnumber_yes._currentframe == 1) {
exactnumber_yes.gotoAndStop(2);
exactnumber_no.gotoAndStop(1);
finaldecision_mc.stay_yes.gotoAndStop(2);
finaldecision_mc.stay_no.gotoAndStop(1);
finaldecision_mc._visible = false;
_root.RuleMoveAndTurnBack = false;
_root.RuleExactNumberHome = false;
} else {
exactnumber_yes.gotoAndStop(1);
exactnumber_no.gotoAndStop(2);
finaldecision_mc._visible = true;
finaldecision_mc.stay_yes.gotoAndStop(2);
finaldecision_mc.stay_no.gotoAndStop(1);
_root.RuleMoveAndTurnBack = true;
_root.RuleExactNumberHome = true;
}
break;
case "RuleMoveAndTurnBack" :
if (finaldecision_mc.stay_yes._currentframe == 1) {
finaldecision_mc.stay_yes.gotoAndStop(2);
finaldecision_mc.stay_no.gotoAndStop(1);
_root.RuleMoveAndTurnBack = true;
} else {
finaldecision_mc.stay_yes.gotoAndStop(1);
finaldecision_mc.stay_no.gotoAndStop(2);
_root.RuleMoveAndTurnBack = false;
}
}
}
stop();
tab_main._visible = false;
tab_options._visible = false;
tab_help._visible = false;
tab_highscore._visible = false;
tab_credits._visible = false;
if (_root.RuleSixRequired == false) {
sixrequired_yes.gotoAndStop(2);
sixrequired_no.gotoAndStop(1);
} else {
sixrequired_yes.gotoAndStop(1);
sixrequired_no.gotoAndStop(2);
}
if (_root.RuleExtraTurn == false) {
extraturnsix_yes.gotoAndStop(2);
extraturnsix_no.gotoAndStop(1);
} else {
extraturnsix_yes.gotoAndStop(1);
extraturnsix_no.gotoAndStop(2);
}
if (_root.RuleOpponentCollision == false) {
sendhome_yes.gotoAndStop(2);
sendhome_no.gotoAndStop(1);
} else {
sendhome_yes.gotoAndStop(1);
sendhome_no.gotoAndStop(2);
}
if (_root.RuleExactNumberHome == false) {
exactnumber_yes.gotoAndStop(2);
exactnumber_no.gotoAndStop(1);
finaldecision_mc.stay_yes.gotoAndStop(2);
finaldecision_mc.stay_no.gotoAndStop(1);
finaldecision_mc._visible = false;
} else {
exactnumber_yes.gotoAndStop(1);
exactnumber_no.gotoAndStop(2);
finaldecision_mc._visible = true;
if (_root.RuleMoveAndTurnBack == false) {
finaldecision_mc.stay_yes.gotoAndStop(1);
finaldecision_mc.stay_no.gotoAndStop(2);
} else {
finaldecision_mc.stay_yes.gotoAndStop(2);
finaldecision_mc.stay_no.gotoAndStop(1);
}
}
Instance of Symbol 600 MovieClip "sixrequired_no" in Symbol 663 MovieClip Frame 10
on (release) {
_parent.setRule("RuleSixRequired");
}
Instance of Symbol 602 MovieClip "sixrequired_yes" in Symbol 663 MovieClip Frame 10
on (release) {
_parent.setRule("RuleSixRequired");
}
Instance of Symbol 600 MovieClip "extraturnsix_no" in Symbol 663 MovieClip Frame 10
on (release) {
_parent.setRule("RuleExtraTurn");
}
Instance of Symbol 602 MovieClip "extraturnsix_yes" in Symbol 663 MovieClip Frame 10
on (release) {
_parent.setRule("RuleExtraTurn");
}
Instance of Symbol 600 MovieClip "sendhome_no" in Symbol 663 MovieClip Frame 10
on (release) {
_parent.setRule("RuleOpponentCollision");
}
Instance of Symbol 602 MovieClip "sendhome_yes" in Symbol 663 MovieClip Frame 10
on (release) {
_parent.setRule("RuleOpponentCollision");
}
Instance of Symbol 600 MovieClip "exactnumber_no" in Symbol 663 MovieClip Frame 10
on (release) {
_parent.setRule("RuleExactNumberHome");
}
Instance of Symbol 602 MovieClip "exactnumber_yes" in Symbol 663 MovieClip Frame 10
on (release) {
_parent.setRule("RuleExactNumberHome");
}
Symbol 663 MovieClip Frame 11
stop();
_root.bgm_loop_jungle_snd.stop();
if (_root.winnerCoinIndex == 1) {
this.podium_mc.winner_coin._visible = true;
this.podium_mc.loser_coin._visible = false;
this.podium_mc.win_lose.gotoAndStop("win");
status1.text = "YOU WIN";
status2.text = "YOU WIN";
status3.text = "YOU WIN";
switch (random(4)) {
case 0 :
break;
case 1 :
break;
case 2 :
break;
case 3 :
break;
}
_root.game_win_theme_snd.start();
if (_root.GameType == "classic") {
this.score_breakdown_mc.gotoAndStop("win_classic");
if (_root.user1NumberOfMoves < 150) {
this.score_breakdown_mc.total_score.text = ((((_root.user1NumberOfDiceRolls + (_root.user1NumberOfLaddersClimbed * 5)) + (_root.user1NumberOfSnakeBites * -3)) + (_root.user1NumberOfSixesRolled * 2)) + (150 - _root.user1NumberOfMoves)) + ((100 - _root[("user" + _root.loserCoinIndex) + "DestinationSquareNumber"]) * 2);
} else {
this.score_breakdown_mc.total_score.text = (((_root.user1NumberOfDiceRolls + (_root.user1NumberOfLaddersClimbed * 5)) + (_root.user1NumberOfSnakeBites * -3)) + (_root.user1NumberOfSixesRolled * 2)) + ((100 - _root[("user" + _root.loserCoinIndex) + "DestinationSquareNumber"]) * 2);
}
this.score_breakdown_mc.dice_rolls.text = _root.user1NumberOfDiceRolls;
this.score_breakdown_mc.ladders_climbed.text = _root.user1NumberOfLaddersClimbed * 5;
this.score_breakdown_mc.snake_bites.text = _root.user1NumberOfSnakeBites * -3;
this.score_breakdown_mc.sixes_rolled.text = _root.user1NumberOfSixesRolled * 2;
this.score_breakdown_mc.win_bonus.text = (150 - _root.user1NumberOfMoves) + ((100 - _root[("user" + _root.loserCoinIndex) + "DestinationSquareNumber"]) * 2);
} else if (_root.GameType == "twist") {
this.score_breakdown_mc.gotoAndStop("win_twist");
if (_root.user1NumberOfMoves < 150) {
this.score_breakdown_mc.total_score.text = ((((_root.user1NumberOfDiceRolls + (_root.user1NumberOfLaddersClimbed * -3)) + (_root.user1NumberOfSnakeBites * 5)) + (_root.user1NumberOfSixesRolled * 2)) + (150 - _root.user1NumberOfMoves)) + (_root[("user" + _root.loserCoinIndex) + "DestinationSquareNumber"] * 2);
} else {
this.score_breakdown_mc.total_score.text = (((_root.user1NumberOfDiceRolls + (_root.user1NumberOfLaddersClimbed * -3)) + (_root.user1NumberOfSnakeBites * 5)) + (_root.user1NumberOfSixesRolled * 2)) + (_root[("user" + _root.loserCoinIndex) + "DestinationSquareNumber"] * 2);
}
this.score_breakdown_mc.dice_rolls.text = _root.user1NumberOfDiceRolls;
this.score_breakdown_mc.ladders_climbed.text = _root.user1NumberOfLaddersClimbed * -3;
this.score_breakdown_mc.snake_bites.text = _root.user1NumberOfSnakeBites * 5;
this.score_breakdown_mc.sixes_rolled.text = _root.user1NumberOfSixesRolled * 2;
this.score_breakdown_mc.win_bonus.text = (150 - _root.user1NumberOfMoves) + (_root[("user" + _root.loserCoinIndex) + "DestinationSquareNumber"] * 2);
}
_root.setTheColor(podium_mc.winner_coin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(podium_mc.winner_coin.eyelid, _root.user1mc.SelectedColorIndex);
_root.setTheColor(podium_mc.loser_coin.coinface, _root.user2mc.SelectedColorIndex);
_root.setTheColor(podium_mc.loser_coin.eyelid, _root.user2mc.SelectedColorIndex);
} else if (_root.winnerCoinIndex == 2) {
this.podium_mc.winner_coin._visible = false;
this.podium_mc.loser_coin._visible = true;
this.podium_mc.win_lose.gotoAndStop("lost");
status1.text = "YOU LOSE";
status2.text = "YOU LOSE";
status3.text = "YOU LOSE";
switch (random(4)) {
case 0 :
break;
case 1 :
break;
case 2 :
break;
case 3 :
break;
}
_root.game_loose_theme_snd.start();
if (_root.GameType == "classic") {
this.score_breakdown_mc.gotoAndStop("lose_classic");
if (_root.user1NumberOfMoves > 150) {
this.score_breakdown_mc.total_score.text = ((_root.user1NumberOfDiceRolls + (_root.user1NumberOfLaddersClimbed * 5)) + (_root.user1NumberOfSnakeBites * -3)) + (_root.user1NumberOfSixesRolled * 2);
} else {
this.score_breakdown_mc.total_score.text = ((_root.user1NumberOfDiceRolls + (_root.user1NumberOfLaddersClimbed * 5)) + (_root.user1NumberOfSnakeBites * -3)) + (_root.user1NumberOfSixesRolled * 2);
}
this.score_breakdown_mc.dice_rolls.text = _root.user1NumberOfDiceRolls;
this.score_breakdown_mc.ladders_climbed.text = _root.user1NumberOfLaddersClimbed * 5;
this.score_breakdown_mc.snake_bites.text = _root.user1NumberOfSnakeBites * -3;
this.score_breakdown_mc.sixes_rolled.text = _root.user1NumberOfSixesRolled * 2;
} else if (_root.GameType == "twist") {
this.score_breakdown_mc.gotoAndStop("lose_twist");
if (_root.user1NumberOfMoves < 150) {
this.score_breakdown_mc.total_score.text = ((_root.user1NumberOfDiceRolls + (_root.user1NumberOfLaddersClimbed * -3)) + (_root.user1NumberOfSnakeBites * 5)) + (_root.user1NumberOfSixesRolled * 2);
} else {
this.score_breakdown_mc.total_score.text = ((_root.user1NumberOfDiceRolls + (_root.user1NumberOfLaddersClimbed * -3)) + (_root.user1NumberOfSnakeBites * 5)) + (_root.user1NumberOfSixesRolled * 2);
}
this.score_breakdown_mc.dice_rolls.text = _root.user1NumberOfDiceRolls;
this.score_breakdown_mc.ladders_climbed.text = _root.user1NumberOfLaddersClimbed * -3;
this.score_breakdown_mc.snake_bites.text = _root.user1NumberOfSnakeBites * 5;
this.score_breakdown_mc.sixes_rolled.text = _root.user1NumberOfSixesRolled * 2;
}
_root.setTheColor(podium_mc.winner_coin.coinface, _root.user2mc.SelectedColorIndex);
_root.setTheColor(podium_mc.winner_coin.eyelid, _root.user2mc.SelectedColorIndex);
_root.setTheColor(podium_mc.loser_coin.coinface, _root.user1mc.SelectedColorIndex);
_root.setTheColor(podium_mc.loser_coin.eyelid, _root.user1mc.SelectedColorIndex);
}
Symbol 666 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 25
this._x = -400;
this._y = -400;
this.gotoAndStop(1);