STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
232272
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2632 · P5263

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM90479885-17DC&rnd=90479885" width="1" height="1"></div>

armorgames sumo-wrestling-tycoo-14591.swf

This is the info page for
Flash #263098

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 15 sushi1 { } movieClip 17 sushi2 { } movieClip 19 sushi3 { } movieClip 21 sushi4 { } movieClip 24 { } movieClip 26 { } movieClip 28 { } movieClip 29 bad1 { } movieClip 31 bad2 { } movieClip 33 bad3 { } movieClip 36 { } movieClip 37 bad4 { } movieClip 39 { } movieClip 42 { } movieClip 43 { } movieClip 44 loadingbarwhle { } movieClip 54 title { } movieClip 56 backgroundeffect { } frame 1 { function noClick() {} stop(); Stage.showMenu = false; this._lockroot = true; var gg = _root; var strength = 0; var confidence = 0; var speed = 0; var hunger = 0; var ability = 0; var energy = 0; var rank = 0; var day = 0; var cash = 0; var pantsColor = 'white'; var matchesDone = 0; var matchesWon = 0; var sushiGameRecord = 0; var cashSpent = 0; var visitsToGym = 0; var timesOnTreadmill = 0; var startStrength = 1; var startConfidence = 50; var startSpeed = 1; var startHunger = 50; var startAbility = 1; var startEnergy = 100; var startRank = 1; var startDay = 1; var startCash = 50; var startMatchesDone = 0; var startMatchesWon = 0; var startSushiGameRecord = 0; var startCashSpent = 0; var startVisitsToGym = 0; var startTimesOnTreadmill = 0; var startPantsColor = 'white'; var maxDays = 50; var matchEveryXdays = 4; var placedBetToday = false; var maxHunger = 100; var maxConfidence = 100; var hungerPerDay = 10; var confidencePenaltyForSkippingMatch = 10; var confidencePenaltyForLosingMatch = 20; var confidenceBonusForWinningMatch = 20; var shopItemsPrices = [5, 10, 25, 50, 100, 200, 300, 400, 500, 1000]; var shopItemsOwnedStatus = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var shopItemsConfidenceBoost = [0, 0, 0, 0, 5, 15, 40, 80, 100, 200]; var shopItemsHungerBoost = [5, 10, 25, 50, 0, 0, 0, 0, 0, 0]; var shopItemsPantsColor = ['-', '-', '-', '-', 'green', 'blue', 'pink', 'red', 'yellow', '-']; var buyItemEnergyCost = 10; var hungerGainPerGoodSushi = 5; var sushiGameEnergyCost = 50; var matchResults = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var rankNames = ['Rookie', 'Skilled', 'Pro', 'Expert', 'Legend']; var rankName = ''; var treadmillCost = 1000; var treadmillEnergyCost = 20; var treadmillBought = 0; var treadmillUseEnergyCost = 45; var treadmillUseSpeedGain = 3; var tattooCost = 500; var tattooEnergyCost = 20; var tattooBought = 0; var tattooConfidenceGain = 20; var oilCost = 250; var oilEnergyCost = 20; var oilBought = 0; var oilRiskReduction = 5; var standardMessages = ['you have insufficient Energy', 'you have insufficient Funds', 'GOOD LUCK!', 'you won: ', 'you lost: ', 'You already own that item', 'You can buy a treadmill online and use it to improve your speed', 'Call it a day?', 'Use treadmill? (Costs ' + treadmillUseEnergyCost + ' energy and increases speed by ' + treadmillUseSpeedGain + ')', 'Satiation gain: ', 'You\'ve changed your pants.']; var activeItemCost = 0; var gymTrainingCost = [40, 45, 50]; var gymTrainingInjuryRisk = [0, 9, 18]; var gymTrainingStrengthGain = [1, 2, 3]; var gymTrainingSpeedGain = [1, 1, 1]; var injuredDays = 3; var trainingLoops = 0; var firstNames = ['Eita', 'Kota', 'Shuta', 'Ryota', 'Yota', 'Yuta', 'Souta', 'Shota', 'Kenta', 'Tatsuya', 'Hiroto', 'Ren', 'Yuto', 'Yamato', 'Yuma', 'Daiki', 'Takumi', 'Kaito', 'Haruto', 'Riku', 'Rikuto', 'Shun', 'Sora', 'Ryu']; var lastNames = ['Yamaguchi', 'Tanaka', 'Nakamura', 'Matsuo', 'Matsumoto', 'Murakami', 'Sakamoto', 'Sato', 'Goto', 'Ono', 'Watanabe', 'Kuroki', 'Kai', 'Kawano', 'Hidaka', 'Yamashita', 'Maeda', 'Hamada', 'Higa', 'Kinjo', 'Oshiro', 'Miyagi', 'Arakaki', 'Ito']; var sumos = []; var nextUndefeatedSumo = 0; var sumoAbilityPerLevel = 16; var injuryRiskPerEffortLevel = [0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5]; var abilityBonusPerEffortLevel = [0, 1, 2, 3, 4, 5, 7, 10, 13, 16, 20]; var musicMc = _root.createEmptyMovieClip('musicMc', getNextHighestDepth()); var music = new Sound(musicMc); var townMusicIsPlaying = false; var sfxContainer = _root.createEmptyMovieClip('sfxContainer', getNextHighestDepth()); var sfx = new Sound(sfxContainer); var soundOn = true; var playMusic = function (s) { trace('------------- Called playMusic(), s =' + s); trace('gg.townMusicIsPlaying is:' + gg.townMusicIsPlaying); if (gg.soundOn) { if (s == 'mainMusic') { if (gg.townMusicIsPlaying == true) { return undefined; } else { gg.townMusicIsPlaying = true; } } else { gg.townMusicIsPlaying = false; } trace('musicMc depth is now (before swap):' + gg.musicMc.getDepth()); gg.musicMc.swapDepths(gg.getInstanceAtDepth(0)); trace('musicMc depth is now (after swap):' + gg.musicMc.getDepth()); gg.music.stop(); gg.music.attachSound('' + s); gg.music.start(0, 9999); } }; var playSound = function (s) { if (gg.soundOn) { gg.sfx.attachSound(s); gg.sfx.setVolume(100); gg.sfx.start(0, 1); } }; Button.prototype.onRollOver = function () { gg.playSound('click2'); }; var transitionTo = function (s) { trace('Called gg.transtionTo(), s = ' + s); gg.transit.dest = s; gg.transit.gotoAndPlay(2); }; var resetStats = function () { trace('Called gg.resetStats()'); strength = startStrength; confidence = startConfidence; speed = startSpeed; hunger = startHunger; ability = startAbility; energy = startEnergy; rank = startRank; day = startDay; cash = startCash; rankName = rankNames[rank - 1]; matchesDone = startMatchesDone; matchesWon = startMatchesWon; sushiGameRecord = startSushiGameRecord; cashSpent = startCashSpent; visitsToGym = startVisitsToGym; timesOnTreadmill = startTimesOnTreadmill; shopItemsOwnedStatus = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; tattooBought = 0; treadmillBought = 0; oilBought = 0; matchResults = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; nextUndefeatedSumo = 0; placedBetToday = false; pantsColor = startPantsColor; }; var getAbility = function () { ability = strength * 2 + speed + hunger * 0.2 + confidence * 0.2; return ability; }; var getMatchDifficulty = function (i) { var v1 = getAbility(); var v3 = (1 + i) * sumoAbilityPerLevel; var v2 = Math.round((v1 / (v1 + v3)) * 100); trace('Player chance of success is:' + v2); return v2; }; var getMatchDifficultyVerbose = function (i) { var v2 = i; var v1 = ''; if (v2 > 80) { v1 = 'Easy'; return v1; } if (v2 > 50) { v1 = 'Medium'; return v1; } v1 = 'Hard'; return v1; }; var checkRankUp = function () { var v1 = false; var v2 = nextUndefeatedSumo; var v3 = rankName; if (v2 >= 1 && v3 == rankNames[0]) { rankName = rankNames[1]; v1 = true; } else { if (v2 >= 8 && v3 == rankNames[1]) { rankName = rankNames[2]; v1 = true; } else { if (v2 >= 12 && v3 == rankNames[2]) { rankName = rankNames[3]; v1 = true; } else { if (v2 >= 16 && v3 == rankNames[3]) { rankName = rankNames[4]; v1 = true; } } } } if (v1) { gotoAndStop('rank'); } else { endDay(1); } }; var shuffle = function (a) { var v2 = []; while (a.length > 0) { v2.push((a.splice(Math.round(Math.random() * (a.length - 1)), 1))[0]); } return v2; }; var makeSumos = function () { firstNames = shuffle(firstNames); lastNames = shuffle(lastNames); var v1 = 0; while (v1 < 24) { sumos.push(firstNames[v1] + ' ' + lastNames[v1]); ++v1; } }; var tryBuyTreadmill = function () { trace('Running gg.tryBuyTreadmill()'); if (treadmillBought == 0) { if (energy >= treadmillEnergyCost) { if (cash >= treadmillCost) { trace('Bought treadmill'); gg.playSound('click4'); energy -= treadmillEnergyCost; cash -= treadmillCost; cashSpent += treadmillCost; treadmillBought = 1; updateHUD(); if (energy == 0) { endDay(1); } } else { _root.showStandardMessage(standardMessages[1]); } } else { _root.showStandardMessage(standardMessages[0]); } } else { _root.showStandardMessage(standardMessages[5]); } }; var tryBuyTattoo = function () { trace('Running gg.tryBuyTattoo()'); if (tattooBought == 0) { if (energy >= tattooEnergyCost) { if (cash >= tattooCost) { trace('Bought tattoo'); gg.playSound('click4'); energy -= tattooEnergyCost; cash -= tattooCost; cashSpent += tattooCost; tattooBought = 1; confidence += tattooConfidenceGain; updateHUD(); if (energy == 0) { endDay(1); } } else { _root.showStandardMessage(standardMessages[1]); } } else { _root.showStandardMessage(standardMessages[0]); } } else { _root.showStandardMessage(standardMessages[5]); } }; var tryBuyOil = function () { trace('Running gg.tryBuyOil()'); if (oilBought == 0) { if (energy >= oilEnergyCost) { if (cash >= oilCost) { trace('Bought oil'); gg.playSound('click4'); energy -= oilEnergyCost; cash -= oilCost; cashSpent += oilCost; oilBought = 1; updateHUD(); if (energy == 0) { endDay(1); } } else { _root.showStandardMessage(standardMessages[1]); } } else { _root.showStandardMessage(standardMessages[0]); } } else { _root.showStandardMessage(standardMessages[5]); } }; var updateHUD = function () { if (hunger < 0) { hunger = 0; } if (hunger > maxHunger) { hunger = maxHunger; } if (confidence < 0) { confidence = 0; } if (confidence > maxConfidence) { confidence = maxConfidence; } var v1 = HUD.dropDownBit.dropDownTween; v1.hungerBar.whiteBar._xscale = Math.floor((hunger / maxHunger) * 100); v1.confidenceBar.whiteBar._xscale = Math.floor((confidence / maxConfidence) * 100); v1.strengthLabel.text = '' + gg.strength; v1.speedLabel.text = '' + gg.speed; var v2 = HUD.dynLab; v2.enLabel.text = '' + gg.energy; v2.cashLabel.text = '' + gg.cash; v2.rankLabel.text = '' + gg.rankName; dayLabel.text = '' + gg.day; }; var showTrainingButtons = function (vis) { hardButton._visible = vis; hardButton.enabled = vis; mediumButton._visible = vis; mediumButton.enabled = vis; easyButton._visible = vis; easyButton.enabled = vis; btnBack001._visible = vis; btnBack001.enabled = vis; trainLabel._visible = vis; inGymSumo._visible = vis; }; var trainInGym = function (i) { trace('Called function trainInGym(i), i = ' + i); showTrainingButtons(false); var v3 = gg.gymBox; v3.menuText.gotoAndStop(i + 1); if (oilBought == 0) { v3.injuryLabel.text = gymTrainingInjuryRisk[i] + '%'; } else { v3.injuryLabel.text = Math.max(0, gymTrainingInjuryRisk[i] - oilRiskReduction) + '%'; } v3.energyLabel.text = gymTrainingCost[i] + '%'; v3.increaseLabel.text = 'strength +' + gymTrainingStrengthGain[i] + ', speed +' + gymTrainingSpeedGain[i]; v3.intensity = i; v3._x = 275; v3.yButton.onPress = function () { trace('Clicked yButton on gymBox'); var v3 = _root.gymBox.intensity; _root.gymBox._x = -1000; if (energy >= gymTrainingCost[v3]) { trace('Training in Gym at intensity:' + v3); _root.trainingLoops = 0; if (v3 == 0) { trainingSumo.gotoAndPlay('easy'); } else { if (v3 == 1) { trainingSumo.gotoAndPlay('medium'); } else { trainingSumo.gotoAndPlay('hard'); } } trainingSumo._visible = true; trainingSumo.onEnterFrame = function () { if (_root.tattooBought > 0) { this.rArm.gotoAndStop('tattoo'); this.lArm.gotoAndStop('tattoo'); } else { this.rArm.gotoAndStop('normal'); this.lArm.gotoAndStop('normal'); } }; } else { _root.showStandardMessage(standardMessages[0]); _root.showTrainingButtons(true); } }; v3.nButton.onPress = function () { _root.gymBox._x = -1000; _root.showTrainingButtons(true); }; }; var trainingResults = function (i) { trace('Running function trainingResult(i), i = ' + i); var v1 = gymTrainingInjuryRisk[i]; if (oilBought != 0) { v1 = Math.max(0, v1 - oilRiskReduction); } if (random(100) < v1) { trace('Training injury occurred!'); injuryBox._x = 275; showTrainingButtons(false); injuryBox.okButton.onPress = function () { gg.injuryBox._x = -1000; gg.endDay(3); }; } else { trace('No injury occurred'); trace('energy before training: ' + energy); energy -= gymTrainingCost[i]; trace('energy after training: ' + energy); strength += gymTrainingStrengthGain[i]; speed += gymTrainingSpeedGain[i]; visitsToGym += 1; updateHUD(); if (energy == 0) { endDay(1); } else { trainingSumo._visible = false; showTrainingButtons(true); } } }; var hidePrompts = function () { trace('Running function hidePrompts()'); standardPrompt._x = -1000; standardMessageBox._x = -1000; itemDetailsBox._x = -1000; gymBox._x = -1000; }; var endDay = function (d) { trace('Running function endDay()'); hidePrompts(); var v2 = (d == 1) ? 1 : injuredDays; day += 1 * v2; hunger -= hungerPerDay * v2; energy = 100; placedBetToday = false; if (d == 3) { trace('3 days passed in function endDay()'); daynightAnim2.gotoAndPlay(1); _root.gotoAndStop('dayPlus3'); } else { daynightAnim1.gotoAndPlay(1); _root.gotoAndStop('dayPlus1'); } }; var showStandardPrompt = function (m, sit) { trace('Running function showStandardPrompt(), sit = ' + sit); var v1 = standardPrompt; v1.question.text = m; v1._x = 275; if (sit == 'sleep') { v1.yButton.onPress = function () { standardPrompt._x = -1000; endDay(1); }; v1.nButton.onPress = function () { standardPrompt._x = -1000; }; } else { if (sit == 'treadmill') { v1.yButton.onPress = function () { standardPrompt._x = -1000; treadmillAnim._x = 121; treadmillAnim.gotoAndPlay(2); speed += treadmillUseSpeedGain; energy -= treadmillUseEnergyCost; updateHUD(); }; v1.nButton.onPress = function () { standardPrompt._x = -1000; }; } else { if (sit == 'food mini-game') { v1.yButton.onPress = function () { standardPrompt._x = -1000; gg.transitionTo('eating'); }; v1.nButton.onPress = function () { standardPrompt._x = -1000; }; } else { if (sit == 'quit') { v1.yButton.onPress = function () { standardPrompt._x = -1000; gg.transitionTo('mainMenu'); }; v1.nButton.onPress = function () { standardPrompt._x = -1000; }; } else {} } } } }; var showStandardMessage = function (s) { trace('Running function showStandardMessage, s = ' + s); var v1 = standardMessageBox; v1.messageLabel.text = s; v1.okButton.onPress = function () { standardMessageBox._x = -1000; }; standardMessageBox._x = 275; }; var showShopItemDetails = function (item) { trace('Running function gg.showShopItemDetails(item), item = ' + item); var v2 = itemDetailsBox; v2.textLabels.gotoAndStop(item); activeItemCost = shopItemsPrices[item - 1]; v2.textLabels.benefitLabel.text = item <= 4 ? shopItemsHungerBoost[item - 1] : shopItemsConfidenceBoost[item - 1]; v2.yButton.onPress = function () { itemDetailsBox._x = -1000; _root.tryBuyItem(item); }; v2.nButton.onPress = function () { itemDetailsBox._x = -1000; }; v2._x = 275; }; var tryBuyItem = function (item) { trace('Running function gg.tryBuyItem(item), item = ' + item); if (energy >= buyItemEnergyCost) { if (cash >= shopItemsPrices[item - 1]) { if (shopItemsOwnedStatus[item - 1] == 0 || item < 5) { trace('Bought item'); gg.playSound('coins'); energy -= buyItemEnergyCost; cash -= shopItemsPrices[item - 1]; cashSpent += shopItemsPrices[item - 1]; shopItemsOwnedStatus[item - 1] = 1; confidence += shopItemsConfidenceBoost[item - 1]; hunger += shopItemsHungerBoost[item - 1]; if (shopItemsPantsColor[item - 1] != '-') { pantsColor = shopItemsPantsColor[item - 1]; } updateHUD(); if (energy == 0) { endDay(1); } } else { if (shopItemsPantsColor[item - 1] != '-') { pantsColor = shopItemsPantsColor[item - 1]; _root.showStandardMessage(standardMessages[5] + '\n' + standardMessages[10]); } else { _root.showStandardMessage(standardMessages[5]); } } } else { _root.showStandardMessage(standardMessages[1]); } } else { _root.showStandardMessage(standardMessages[0]); } }; var wonCheck = function (d) { return (matchResults[Math.floor(d / 4) - 1] == 1) ? true : false; }; var showCalendarPage = function (p) { trace('Running function showCalendarPage, p = ' + p); var v3 = calendar; var v1; var v2; var v4; v3.p1._visible = (p == 1) ? true : false; v3.p2._visible = (p == 2) ? true : false; v3.p3._visible = (p == 3) ? true : false; v3.currentDay._visible = false; if (p == 1) { v2 = 0; while (v2 < 19) { v1 = v3.p1['d' + (v2 + 1)]; v1.dayLabel.text = v2 + 1; v4 = ((v2 + 1) % 4 == 0) ? true : false; if (day > v2 + 1) { v1.gotoAndStop('dash'); if (v4) { if (gg.wonCheck(v2 + 1)) { v1.gotoAndStop('won'); } else { v1.gotoAndStop('lost'); } } } else { if (day < v2 + 1) { v1.gotoAndStop('blank'); if (v4) { v1.gotoAndStop('fight'); } } else { v1.gotoAndStop('blank'); if (v4) { v1.gotoAndStop('fight'); } v3.currentDay._visible = true; v3.currentDay._x = v3.p1._x + v1._x - 2; v3.currentDay._y = v3.p1._y + v1._y - 2; } } ++v2; } } else { if (p == 2) { v2 = 18; while (v2 < 36) { v1 = v3.p2['d' + (v2 + 1)]; v1.dayLabel.text = v2 + 1; v4 = ((v2 + 1) % 4 == 0) ? true : false; if (day > v2 + 1) { v1.gotoAndStop('dash'); if (v4) { if (gg.wonCheck(v2 + 1)) { v1.gotoAndStop('won'); } else { v1.gotoAndStop('lost'); } } } else { if (day < v2 + 1) { v1.gotoAndStop('blank'); if (v4) { v1.gotoAndStop('fight'); } } else { v1.gotoAndStop('blank'); if (v4) { v1.gotoAndStop('fight'); } v3.currentDay._visible = true; v3.currentDay._x = v3.p2._x + v1._x - 2; v3.currentDay._y = v3.p2._y + v1._y - 2; } } ++v2; } } else { v2 = 35; while (v2 < 50) { v1 = v3.p3['d' + (v2 + 1)]; v1.dayLabel.text = v2 + 1; v4 = ((v2 + 1) % 4 == 0) ? true : false; if (day > v2 + 1) { v1.gotoAndStop('dash'); if (v4) { if (gg.wonCheck(v2 + 1)) { v1.gotoAndStop('won'); } else { v1.gotoAndStop('lost'); } } } else { if (day < v2 + 1) { v1.gotoAndStop('blank'); if (v4) { v1.gotoAndStop('fight'); } } else { v1.gotoAndStop('blank'); if (v4) { v1.gotoAndStop('fight'); } v3.currentDay._visible = true; v3.currentDay._x = v3.p3._x + v1._x - 2; v3.currentDay._y = v3.p3._y + v1._y - 2; } } ++v2; } } } }; var nextCalendarPage = function () { if (calendar.p1._visible) { gg.showCalendarPage(2); } else { if (calendar.p2._visible) { gg.showCalendarPage(3); } } }; var prevCalendarPage = function () { if (calendar.p2._visible) { gg.showCalendarPage(1); } else { if (calendar.p3._visible) { gg.showCalendarPage(2); } } }; var formatCalendar = function () { trace('Running formatCalendar'); trace('gg.day is: ' + gg.day); var v1 = calendar; if (gg.day < 19) { gg.showCalendarPage(1); } else { if (gg.day < 37) { gg.showCalendarPage(2); } else { gg.showCalendarPage(3); } } }; var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var copyrightNotice = new ContextMenuItem('© 2012 SumoWrestlingTycoon DevTeam', noClick); var gameTitle = new ContextMenuItem('Sumo Wrestling Tycoon', noClick); myMenu.customItems.push(gameTitle, copyrightNotice); _root.menu = myMenu; } frame 1 { stop(); var allowed = false; var doSitelock = true; var tdom; var getDomain = function () { var v4 = ['games.armorgames.com', 'preview.armorgames.com', 'cache.armorgames.com', 'cdn.armorgames.com', 'gamemedia.armorgames.com', 'armorgames.com', 'abstracttravels.com']; var v5 = this._url; var v6 = v5.indexOf('://') + 3; var v8 = v5.indexOf('/', v6); var v3 = v5.substring(v6, v8); var v9 = v3.lastIndexOf('.') - 1; var v7 = v3.lastIndexOf('.', v9) + 1; v3 = v3.substring(v7, v3.length); trace('Stripped domain is: ' + v3); tdom = v3; i = 0; while (i < v4.length) { if (v3.indexOf(v4[i]) != -1) { _root.allowed = true; } ++i; } }; getDomain(); if (!(_root.allowed && doSitelock)) { trace('Do sitelock'); var t = _root.createTextField('t', _root.getNextHighestDepth(), 20, 20, 520, 200); t.text = 'URL:' + this._url + ' ::: ' + tdom; t.autoSize = true; t.wordWrap = true; } else { trace('Game is on ArmorGame servers, play game'); var delay_count = 0; this.onEnterFrame = function () { ++delay_count; if (delay_count > 30) { delete this.onEnterFrame; } }; } } movieClip 58 { } movieClip 59 { frame 1 { stop(); } frame 18 { trace('Transition to: ' + this.dest); trace('(called from _root.trans, timeline script frame 17)'); _root.gotoAndStop(this.dest); } } movieClip 67 { } movieClip 73 { } movieClip 76 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 225 { if (_root.doSitelock && _root.allowed) { stop(); _root.transitionTo('preload'); } else { trace('Not on allowed domain - game stopped'); stop(); _root.stop(); } } } instance of movieClip 76 { onClipEvent (mouseUp) { getURL('http://armor.ag/MoreGames', '_blank'); } } frame 5 { stop(); trace('on frame - preloader'); var total; var loaded; var fco = 0; this.onEnterFrame = function () { total = _root.getBytesTotal(); loaded = _root.getBytesLoaded(); ++fco; var v3 = _root.preloader.bar.whiteBar; v3._xscale = Math.floor((loaded / total) * 100); if (loaded >= total && fco >= 60) { delete this.onEnterFrame; gg.transitionTo('mainMenu'); } }; } movieClip 79 { } movieClip 82 { } movieClip 83 { } movieClip 85 { } movieClip 87 { } movieClip 89 { } movieClip 91 { } movieClip 93 { } movieClip 94 { } movieClip 96 { } movieClip 97 { frame 735 { stop(); } } movieClip 99 { } movieClip 103 { } movieClip 105 { } movieClip 107 { } movieClip 110 { } movieClip 112 { } movieClip 116 { } movieClip 117 { } movieClip 121 { } movieClip 123 { } movieClip 125 { } movieClip 127 { } movieClip 128 { } movieClip 129 { } movieClip 133 { frame 1 { stop(); } } frame 10 { stop(); trace('on frame - mainMenu'); playMusic('menuMusic'); playButton.onPress = function () { gg.playSound('click1'); gg.transitionTo('instructions'); }; creditsButton.onPress = function () { trace('Clicked the Credits Button'); gg.playSound('click1'); gg.transitionTo('credits'); }; moreGamesButton.onPress = function () { trace('Clicked the More Games Button'); gg.playSound('click1'); getURL('http://armor.ag/MoreGames', '_blank'); }; armorLogo.onRelease = function () { trace('Clicked armorgames logo'); gg.playSound('click1'); getURL('http://armor.ag/MoreGames', '_blank'); }; fbButton.onRelease = function () { trace('Clicked armorgames fbButton'); gg.playSound('click1'); getURL('http://www.facebook.com/ArmorGames', '_blank'); }; soundBtn.onRelease = function () { gg.soundOn = !gg.soundOn; if (!soundOn) { gg.sfx.setVolume(0); gg.music.setVolume(0); gg.soundBtn.gotoAndStop('turnOn'); } else { gg.sfx.setVolume(100); gg.music.setVolume(100); gg.soundBtn.gotoAndStop('turnOff'); } }; gg.resetStats(); gg.makeSumos(); } movieClip 138 { } movieClip 141 { frame 40 { stop(); } } movieClip 143 { } movieClip 145 { } movieClip 147 { } movieClip 149 { } movieClip 151 { } movieClip 153 { } movieClip 159 { } movieClip 160 { } movieClip 161 { } movieClip 163 { } movieClip 164 { } movieClip 166 { } movieClip 168 { } movieClip 171 { } movieClip 172 { } movieClip 175 { } movieClip 177 { } movieClip 182 { } movieClip 185 { } movieClip 187 { } movieClip 188 { } movieClip 193 { } movieClip 197 { } movieClip 199 { } movieClip 205 { } // unknown tag 88 length 108 movieClip 208 { } movieClip 216 { } movieClip 229 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } } movieClip 231 { } movieClip 234 { } movieClip 238 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 242 { } movieClip 244 { } movieClip 246 { } movieClip 248 { } movieClip 250 { } movieClip 252 { } movieClip 254 { } movieClip 257 { } movieClip 258 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 260 { } movieClip 262 { } movieClip 264 { } movieClip 266 { } movieClip 268 { } movieClip 270 { } movieClip 272 { } movieClip 274 { } movieClip 276 { } movieClip 284 { frame 1 { stop(); } frame 5 { stop(); } frame 10 { stop(); } frame 15 { stop(); } frame 20 { stop(); } frame 25 { stop(); } frame 30 { stop(); } } movieClip 286 { } movieClip 288 { } movieClip 290 { } movieClip 293 { } movieClip 294 { } movieClip 296 { } movieClip 298 { } movieClip 299 { } movieClip 301 { } movieClip 304 { } movieClip 305 { } movieClip 307 { } movieClip 309 { } movieClip 310 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 314 { } movieClip 317 { } movieClip 318 { } frame 15 { stop(); trace('on frame - instructions'); pButton.onPress = function () { trace('clicked pButton on credits screen'); gg.transitionTo('town'); }; } movieClip 319 { } movieClip 321 { } movieClip 324 { } movieClip 326 { } movieClip 328 { } movieClip 331 { } movieClip 332 { } movieClip 333 { } movieClip 334 { } movieClip 335 { } movieClip 336 { } movieClip 337 { } movieClip 338 { } movieClip 339 { } movieClip 340 { frame 1 { stop(); } } movieClip 341 { } movieClip 343 { } movieClip 345 { } movieClip 347 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 349 { } movieClip 350 { } movieClip 352 { } frame 20 { stop(); trace('on frame - town'); playMusic('mainMusic'); hidePrompts(); gg.updateHUD(); if (day >= maxDays) { trace('Day is more than max - should Game Over here'); gg.transitionTo('gameOver'); } homeButton.onPress = function () { trace('Clicked homeButton on town screen'); gg.transitionTo('home'); }; shopButton.onPress = function () { trace('Clicked shopButton on town screen'); gg.transitionTo('shop'); }; menuBtn.onPress = function () { gg.showStandardPrompt('Are you sure you want to quit?', 'quit'); }; calendarBtn.onPress = function () { trace('Clicked calendarBtn'); if (gg.calendar._x == 550) { gg.calendar._x = 1100; menuBtn.enabled = true; shopButton.enabled = true; arenaButton.enabled = true; gymButton.enabled = true; homeButton.enabled = true; } else { menuBtn.enabled = false; shopButton.enabled = false; arenaButton.enabled = false; gymButton.enabled = false; homeButton.enabled = false; gg.formatCalendar(); gg.calendar._x = 550; } }; calendar.closeCalendarBtn.onPress = function () { gg.calendar._x = 1100; menuBtn.enabled = true; shopButton.enabled = true; arenaButton.enabled = true; gymButton.enabled = true; homeButton.enabled = true; }; calendar.nextBtn.onPress = function () { trace('Clicked calendar.nextBtn'); gg.nextCalendarPage(); }; calendar.prevBtn.onPress = function () { trace('Clicked calendar.prevBtn'); gg.prevCalendarPage(); }; gymButton.onPress = function () { trace('Clicked gymButton on town screen'); if (gg.hunger > 20) { gg.transitionTo('gym'); } else { gg.showStandardMessage('You\'re too hungry. Visit the shop to get some chow.'); } }; arenaButton.onPress = function () { trace('Clicked arenaButton on town screen'); var v1 = false; if (day % matchEveryXdays == 0) { v1 = true; } if (v1) { gg.transitionTo('arena'); } else { if (!gg.placedBetToday) { gg.transitionTo('betting'); } else { gg.showStandardMessage('No more matches to bet on today.'); } } }; if (day % matchEveryXdays == 0) { gg.fightTodaySign._visible = true; } else { gg.fightTodaySign._visible = false; } } movieClip 357 { } movieClip 359 { } movieClip 361 { } movieClip 363 { } movieClip 365 { } movieClip 367 { } movieClip 369 { } movieClip 372 { } movieClip 375 { } movieClip 376 { } movieClip 378 { } movieClip 380 { } movieClip 382 { } movieClip 384 { } movieClip 386 { } movieClip 388 { } movieClip 390 { } movieClip 391 { } movieClip 393 { } movieClip 394 { } movieClip 396 { } movieClip 400 { } movieClip 402 { } movieClip 404 { } movieClip 406 { } movieClip 408 { } movieClip 410 { } movieClip 412 { } movieClip 415 { } movieClip 417 { } movieClip 418 { } movieClip 420 { } movieClip 422 { } movieClip 424 { } movieClip 426 { } movieClip 428 { } movieClip 430 { } movieClip 431 { } movieClip 432 { } movieClip 434 { } movieClip 435 { } movieClip 437 { } movieClip 441 { } movieClip 443 { } movieClip 445 { } movieClip 447 { } movieClip 449 { } movieClip 451 { } movieClip 453 { } movieClip 455 { } movieClip 456 { } movieClip 458 { } movieClip 459 { } movieClip 460 { } movieClip 461 { } movieClip 463 { } movieClip 466 { } movieClip 468 { } movieClip 470 { } movieClip 472 { } movieClip 474 { } movieClip 476 { } movieClip 478 { } movieClip 480 { } movieClip 482 { } movieClip 484 { } movieClip 486 { } movieClip 488 { } movieClip 490 { } movieClip 500 { } movieClip 501 { } movieClip 503 { } movieClip 505 { } movieClip 507 { } movieClip 508 { } movieClip 509 { } movieClip 511 { } movieClip 512 { } movieClip 514 { } movieClip 518 { } movieClip 520 { } movieClip 526 { } movieClip 528 { } movieClip 529 { } movieClip 532 { } movieClip 535 { } movieClip 536 { } movieClip 538 { } movieClip 542 { } movieClip 544 { } movieClip 546 { } movieClip 548 { } movieClip 549 { frame 1 { stop(); } frame 7 { stop(); } frame 14 { stop(); } frame 20 { stop(); } frame 27 { stop(); } } movieClip 551 { } movieClip 554 { } movieClip 555 { } movieClip 556 { } movieClip 557 { } movieClip 558 { } movieClip 559 { } movieClip 560 { } movieClip 562 { } movieClip 566 { } movieClip 569 { } movieClip 571 { } movieClip 576 { } movieClip 578 { } movieClip 582 { } movieClip 586 { } movieClip 587 { } movieClip 589 { } movieClip 591 { } movieClip 595 { } movieClip 600 { } movieClip 602 { } movieClip 604 { } movieClip 607 { } movieClip 608 { frame 1 { _root.updateHUD(this); } frame 8 { _root.updateHUD(this); } frame 12 { _root.updateHUD(this); } frame 15 { stop(); _root.updateHUD(this); } } movieClip 609 { frame 1 { stop(); } frame 12 { stop(); } } instance HUD of movieClip 609 { onClipEvent (load) { this.dynLab.enLabel.text = '' + _root.energy; this.dynLab.cashLabel.text = '' + _root.cash; this.dynLab.rankLabel.text = '' + _root.rankName; updateHUD(); } onClipEvent (rollOver) { this.gotoAndStop('over'); this.dynLab.enLabel.text = '' + gg.energy; this.dynLab.cashLabel.text = '' + gg.cash; this.dynLab.rankLabel.text = '' + gg.rankName; updateHUD(); } onClipEvent (rollOut) { this.gotoAndStop('normal'); this.dynLab.enLabel.text = '' + _root.energy; this.dynLab.cashLabel.text = '' + _root.cash; this.dynLab.rankLabel.text = '' + _root.rankName; updateHUD(); } } movieClip 611 { } frame 25 { stop(); trace('on frame - arena'); sumoFighters._visible = false; var matchResult = 'undecided'; var u = nextUndefeatedSumo; var t = sumoMatchBoard; var tsl = t.sliderButton; tsl.val = 5; tsl.onPress = function () { startDrag(this, false, 110, 230, 372, 230); }; tsl.onReleaseOutside = function () { this.stopDrag(); this.val = Math.round((this._x - 110) / 26); this._x = 110 + this.val * 26; this._y = 232; t.m1difficulty.text = getMatchDifficultyVerbose(getMatchDifficulty(u) + abilityBonusPerEffortLevel[tsl.val]); t.m2difficulty.text = getMatchDifficultyVerbose(getMatchDifficulty(u + 1) + abilityBonusPerEffortLevel[tsl.val]); }; tsl.onRelease = tsl.onReleaseOutside; t.m1name.text = sumos[u]; t.m1difficulty.text = getMatchDifficultyVerbose(getMatchDifficulty(u) + abilityBonusPerEffortLevel[tsl.val]); t.m1entryFee.text = 0; t.m1prize.text = (u + 1) * 75; t.m2name.text = sumos[u + 1]; t.m2difficulty.text = getMatchDifficultyVerbose(getMatchDifficulty(u + 1) + abilityBonusPerEffortLevel[tsl.val]); t.m2entryFee.text = (u + 1) * 10; t.m2prize.text = (u + 2) * 75; var ts1 = t.selector1; var ts2 = t.selector2; ts1._alpha = 0; ts2._alpha = 0; ts2.onRollOver = function () { if (this._alpha != 100) { this._alpha = 50; } }; ts1.onRollOver = ts2.onRollOver; ts2.onReleaseOutside = function () { if (this._alpha != 100) { this._alpha = 0; } }; ts2.onRollOut = ts2.onReleaseOutside; ts1.onReleaseOutside = ts2.onReleaseOutside; ts1.onRollOut = ts2.onReleaseOutside; ts1.onRelease = function () { this._alpha = 100; ts2._alpha = 0; }; ts2.onRelease = function () { this._alpha = 100; ts1._alpha = 0; }; t.cancelButton.onPress = function () { trace('Clicked cancelButton on arena screen'); gg.transitionTo('town'); }; var concludeMatch = function () { trace('Running function concludeMatch() on frame arena'); sumoFighters._visible = false; if (matchResult == 'injury') { _root.playSound('angry'); confidence -= confidencePenaltyForLosingMatch; matchesDone += 1; injuryBox._x = 275; injuryBox.okButton.onPress = function () { gg.injuryBox._x = -1000; gg.endDay(3); }; } else { if (matchResult == 'lost') { _root.playSound('boo'); confidence -= confidencePenaltyForLosingMatch; matchesDone += 1; winLoseBox.gotoAndStop('lose'); winLoseBox.confLabel.text = '-' + confidencePenaltyForLosingMatch; winLoseBox.profitLabel.text = '$0'; winLoseBox._x = 275; winLoseBox.okBtn.onPress = function () { winLoseBox._x = -1000; endDay(1); }; } else { _root.playSound('cheer'); var v2 = 0; confidence += confidenceBonusForWinningMatch; if (ts1._alpha == 100) { nextUndefeatedSumo += 1; v2 = Number(t.m1prize.text); } else { nextUndefeatedSumo += 2; v2 = Number(t.m2prize.text); } cash += v2; matchesDone += 1; matchesWon += 1; matchResults[Math.floor((day + 1) / 4) - 1] = 1; trace('updated matchresults array:' + (Math.floor((day + 1) / 4) - 1) + ' = ' + matchResults[Math.floor((day + 1) / 4) - 1]); winLoseBox.gotoAndStop('win'); winLoseBox.confLabel.text = '+' + confidenceBonusForWinningMatch; winLoseBox.profitLabel.text = '$' + v2; winLoseBox._x = 275; winLoseBox.okBtn.onPress = function () { winLoseBox._x = -1000; checkRankUp(); }; } } updateHUD(); }; t.fightButton.onPress = function () { if (ts1._alpha == 100 || ts2._alpha == 100) { var v7 = tsl.val; var v4; if (ts1._alpha == 100) { v4 = getMatchDifficulty(u) + abilityBonusPerEffortLevel[tsl.val]; sumoFighters.headFrame = Number(sumos[u].charCodeAt(0)) % 4 + 2; } else { if (cash >= (u + 1) * 10) { cash -= (u + 1) * 10; } else { trace('Not enough money'); showStandardMessage(standardMessages[1]); return undefined; } v4 = getMatchDifficulty(u + 1) + abilityBonusPerEffortLevel[tsl.val]; sumoFighters.headFrame = Number(sumos[u + 1].charCodeAt(0)) % 4 + 2; } trace('winChance is:' + v4); var v3 = gg.injuryRiskPerEffortLevel[v7]; if (oilBought != 0) { v3 = Math.max(0, v3 - gg.oilRiskReduction); } if (random(100) > v3) { sumoFighters.headFrame = 5; var v5 = Math.ceil(Math.random() * 100); var v8 = v5 <= v4 ? true : false; if (v8) { trace('Match won!'); matchResult = 'won'; sumoFighters._xscale = -100; sumoFighters._x = 446; sumoFighters.onEnterFrame = function () { if (this._currentframe == 35) { var v3 = Math.floor(Math.random() * 3); switch (v3) { case 0: this.gotoAndPlay('punch'); break; case 1: this.gotoAndPlay('headButt'); break; case 2: this.gotoAndPlay('throw'); break; default: this.gotoAndPlay('punch'); } } this.s1h.gotoAndStop(this.headFrame); this.s1a.gotoAndStop('normal'); this.s2h.gotoAndStop(1); this.s2.s2h.gotoAndStop(1); if (_root.tattooBought > 0) { this.s2a.gotoAndStop('tattoo'); this.s2.s2a.gotoAndStop('tattoo'); } else { this.s2a.gotoAndStop('normal'); this.s2.s2a.gotoAndStop('normal'); } this.s2d.gotoAndStop(pantsColor); this.s2.s2d.gotoAndStop(pantsColor); }; } else { trace('Match lost...'); matchResult = 'lost'; sumoFighters._xscale = 100; sumoFighters._x = 112; sumoFighters.onEnterFrame = function () { if (this._currentframe == 35) { var v3 = Math.floor(Math.random() * 3); switch (v3) { case 0: this.gotoAndPlay('punch'); break; case 1: this.gotoAndPlay('headButt'); break; case 2: this.gotoAndPlay('throw'); break; default: this.gotoAndPlay('punch'); } } this.s1h.gotoAndStop(1); if (_root.tattooBought > 0) { this.s1a.gotoAndStop('tattoo'); } else { this.s1a.gotoAndStop('normal'); } this.s1d.gotoAndStop(pantsColor); this.s2h.gotoAndStop(this.headFrame); this.s2.s2h.gotoAndStop(this.headFrame); this.s2a.gotoAndStop('normal'); this.s2.s2a.gotoAndStop('normal'); }; } } else { trace('Injury!'); matchResult = 'injury'; sumoFighters._xscale = 100; sumoFighters._x = 112; sumoFighters.onEnterFrame = function () { if (this._currentframe == 35) { var v3 = Math.floor(Math.random() * 3); switch (v3) { case 0: this.gotoAndPlay('punch'); break; case 1: this.gotoAndPlay('headButt'); break; case 2: this.gotoAndPlay('throw'); break; default: this.gotoAndPlay('punch'); } } this.s1h.gotoAndStop(1); if (_root.tattooBought > 0) { this.s1a.gotoAndStop('tattoo'); } else { this.s1a.gotoAndStop('normal'); } this.s1d.gotoAndStop(pantsColor); this.s2h.gotoAndStop(this.headFrame); this.s2.s2h.gotoAndStop(this.headFrame); this.s2a.gotoAndStop('normal'); this.s2.s2a.gotoAndStop('normal'); }; } sumoFighters._visible = true; countdown.gotoAndPlay(1); leftArrow.gotoAndPlay(1); sumoFighters.gotoAndStop(2); sumoFighters.s2.stop(); sumoFighters.s1.stop(); t._x = -1000; delete this.onPress; } else { _root.showStandardMessage('Please select one of the possible opponents above and click fight again.'); } }; t._x = 37; } movieClip 614 { } movieClip 618 { } movieClip 624 { } movieClip 627 { } movieClip 628 { } movieClip 634 { } movieClip 636 { } movieClip 638 { } movieClip 641 { } movieClip 642 { } movieClip 644 { } movieClip 646 { } movieClip 648 { } movieClip 650 { } movieClip 652 { } movieClip 653 { } movieClip 655 { } movieClip 656 { } movieClip 661 { } movieClip 669 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 670 { frame 1 { stop(); } frame 5 { stop(); } frame 10 { stop(); } frame 15 { stop(); } frame 20 { stop(); } frame 25 { stop(); } frame 30 { stop(); } } movieClip 671 { frame 30 { stop(); } } movieClip 673 { } movieClip 674 { frame 1 { stop(); } frame 35 { } frame 50 { _root.playSound('punch'); } frame 74 { stop(); _root.concludeMatch(); } frame 90 { _root.playSound('punch'); } frame 109 { stop(); _root.concludeMatch(); } frame 145 { _root.playSound('humph'); } frame 170 { stop(); _root.concludeMatch(); } } movieClip 676 { } movieClip 679 { } movieClip 681 { } movieClip 687 { } movieClip 690 { } movieClip 692 { } movieClip 703 { } movieClip 707 { } movieClip 708 { } movieClip 710 { } movieClip 712 { } movieClip 714 { } movieClip 715 { frame 1 { stop(); this._visible = false; } frame 2 { this._visible = true; } frame 45 { stop(); this._visible = false; trace('Starting sumoFighters.gotoAndPlay(1) from timeline of countdown movieclip, frame 45'); _root.sumoFighters.gotoAndPlay(2); _root.sumoFighters.s2.play(); } } movieClip 717 { } movieClip 719 { } movieClip 721 { } movieClip 722 { } movieClip 723 { frame 1 { stop(); } } movieClip 724 { } movieClip 725 { frame 1 { stop(); } } movieClip 728 { } movieClip 730 { } movieClip 738 { } movieClip 739 { frame 1 { stop(); } frame 10 { stop(); } } movieClip 740 { } movieClip 749 { frame 1 { stop(); } frame 6 { stop(); } frame 11 { stop(); } frame 16 { stop(); } frame 21 { stop(); } frame 26 { stop(); } } movieClip 750 { } movieClip 752 { } movieClip 758 { } movieClip 759 { } movieClip 760 { frame 1 { stop(); trace('winlose game, keyframe lose: ' + this.su.sp + ', ' + _root.pantsColor); this.su.sp.gotoAndStop(_root.pantsColor); } frame 11 { stop(); trace('winlose game, keyframe lose: ' + this.su.sp + ', ' + _root.pantsColor); this.su.sp.gotoAndStop(_root.pantsColor); } } frame 30 { stop(); trace('on frame - gym'); delete btnBack001.onPress; delete easyButton.onPress; delete mediumButton.onPress; delete hardButton.onPress; inGymSumo.su.sp.gotoAndStop(_root.pantsColor); trace('main timeline keyframe gym: ' + inGymSumo.su.sp + ', ' + _root.pantsColor); inGymSumo.su.rArm.gotoAndStop((tattooBought == 0) ? 'normal' : 'tattoo'); inGymSumo.su.lArm.gotoAndStop((tattooBought == 0) ? 'normal' : 'tattoo'); btnBack001.onPress = function () { trace('clicked btnBack001'); gg.playSound('click1'); gg.transitionTo('town'); }; easyButton.onPress = function () { gg.playSound('click1'); gg.trainInGym(0); }; mediumButton.onPress = function () { gg.playSound('click1'); gg.trainInGym(1); }; hardButton.onPress = function () { gg.playSound('click1'); gg.trainInGym(2); }; delete btnBack001.onRollOver; delete easyButton.onRollOver; delete mediumButton.onRollOver; delete hardButton.onRollOver; hardButton.onRollOver = function () { gg.playSound('click2'); }; mediumButton.onRollOver = hardButton.onRollOver; easyButton.onRollOver = hardButton.onRollOver; btnBack001.onRollOver = hardButton.onRollOver; trainingSumo.stop(); trainingSumo._visible = false; } movieClip 763 { } movieClip 765 { } movieClip 767 { } movieClip 769 { } movieClip 773 { } movieClip 775 { } movieClip 785 { } movieClip 787 { } movieClip 788 { } movieClip 789 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 790 { } movieClip 791 { } movieClip 792 { } movieClip 793 { } movieClip 794 { } movieClip 796 { } movieClip 797 { frame 1 { stop(); } } movieClip 798 { frame 35 { _root.trainingLoops += 1; if (_root.trainingLoops >= 3) { stop(); _root.trainingResults(0); } else { gotoAndPlay('easy'); } } frame 73 { _root.trainingLoops += 1; if (_root.trainingLoops >= 3) { stop(); _root.trainingResults(1); } else { gotoAndPlay('medium'); } } frame 107 { _root.trainingLoops += 1; if (_root.trainingLoops > 2) { stop(); _root.trainingResults(2); } else { gotoAndPlay('hard'); } } } movieClip 800 { } movieClip 802 { } movieClip 807 { } movieClip 809 { } movieClip 811 { } movieClip 813 { } movieClip 814 { } movieClip 816 { } frame 35 { stop(); trace('on frame - shop'); btnBack002.onPress = function () { trace('Clicked shopScreen backBtn'); gg.transitionTo('town'); }; foodButton.onPress = function () { trace('Clicked shop screen foodButton'); if (energy >= sushiGameEnergyCost) { gg.showStandardPrompt('The Food Mini-Game expends ' + sushiGameEnergyCost + ' energy. Continue?', 'food mini-game'); } else { gg.showStandardMessage(standardMessages[0]); } }; var i = 1; while (i < 11) { _root['bb' + i].itemId = i; _root['bb' + i].onPress = function () { gg.showShopItemDetails(this.itemId); }; ++i; } } movieClip 818 { } movieClip 821 { } movieClip 822 { } movieClip 824 { } movieClip 827 { } movieClip 829 { } movieClip 833 { } movieClip 839 { } movieClip 841 { } movieClip 843 { } movieClip 847 { } movieClip 852 { } movieClip 854 { } movieClip 855 { } movieClip 856 { } movieClip 857 { } movieClip 858 { } movieClip 860 { } movieClip 862 { } movieClip 865 { } movieClip 866 { } movieClip 867 { } movieClip 871 { } movieClip 872 { } movieClip 875 { } movieClip 877 { } movieClip 879 { } movieClip 880 { } movieClip 883 { } movieClip 886 { } movieClip 889 { } movieClip 892 { } movieClip 895 { } movieClip 898 { } movieClip 901 { } frame 40 { stop; trace('on frame - eating'); energy -= sushiGameEnergyCost; hand._visible = false; intoPlacesushi._visible = false; sushiHud._visible = false; sushiInstructions._x = 30; var goodSushiCount = 0; var badSushiCount = 0; var keyListener; sushiInstructions.playBtn.onPress = function () { trace('Clicked sushiInstructions playBtn on eating screen'); sushiInstructions._x = -1000; hand.gotoAndStop(0); hand._visible = true; hand.sushiInHand._visible = false; intoPlaceSushi.gotoAndStop(0); sushiHud.secondsLabel.text = 0; sushiHud.goodLabel.text = 0; sushiHud.badLabel.text = 0; sushiHud._visible = true; pressAnySign._visible = true; delete keyListener; keyListener = new Object(); keyListener.onKeyDown = function () { startSushiGame(); }; throwButton.onRelease = function () { delete keyListener; startSushiGame(); }; eatButton.onRelease = function () { delete keyListener; startSushiGame(); }; Key.addListener(keyListener); spawnNewSushi(); }; var startSushiGame = function () { pressAnySign._visible = false; Key.removeListener(keyListener); delete keyListener; keyListener = new Object(); keyListener.dd = false; keyListener.rr = false; keyListener.onKeyDown = function () { if (Key.isDown(39)) { this.rr = true; } else { if (Key.isDown(40)) { this.dd = true; } } }; keyListener.onKeyUp = function () { if (Key.isDown(39)) { this.rr = false; } else { if (Key.isDown(40)) { this.dd = false; } } }; throwButton.onRelease = function () { keyListener.rr = true; }; eatButton.onRelease = function () { keyListener.dd = true; }; Key.addListener(keyListener); hand.canPlay = true; onEnterFrame = updateSushiGame; hand.startTime = getTimer(); }; var activeSushi = 0; var sih = ['good1', 'bad1', 'good2', 'bad2', 'good3', 'bad3', 'good4', 'bad4']; var a = ['g1', 'g2', 'g3', 'g4', 'b1', 'b2', 'b3', 'b4']; var spawnNewSushi = function () { trace('Running function spawnNewSushi()'); var v4 = Math.floor(Math.random() * 8); activeSushi = v4; trace('rand is:' + v4); var v5 = _root.sushiSpawn; var v3 = 0; while (v3 < 8) { v5['' + a[v3]]._visible = (v3 == v4) ? true : false; ++v3; } v5['' + a[v4]].gotoAndPlay(2); v5._visible = true; var v2 = 0; while (v2 < 8) { _root.hand['' + a[v2]]._visible = (v2 == v4) ? true : false; _root.hand['' + a[v2]].stop(); ++v2; } _root.hand._visible = true; }; var updateSushiCount = function () { if (activeSushi < 4) { ++_root.goodSushiCount; } else { ++_root.badSushiCount; } sushiHud.goodLabel.text = _root.goodSushiCount; sushiHud.badLabel.text = _root.badSushiCount; spawnNewSushi(); }; var updateSushiGame = function () { var v2 = getTimer(); var v3 = v2 - hand.startTime; sushiHud.timeLabel.text = 15 - Math.floor(v3 / 1000) + 's'; if (v2 - hand.startTime > 15000) { trace('15 seconds passed'); endSushiGame(); } if (keyListener.rr) { keyListener.rr = false; if (hand.canPlay) { trace('discard'); hand.canPlay = false; hand['' + a[activeSushi]]._visible = true; hand['' + a[activeSushi]].gotoAndPlay(16); sushiSpawn._visible = false; hand.gotoAndPlay('discard'); _root.playSound('click5'); } } if (keyListener.dd) { keyListener.dd = false; if (hand.canPlay) { trace('eat'); hand.canPlay = false; hand['' + a[activeSushi]]._visible = true; hand['' + a[activeSushi]].gotoAndPlay(1); sushiSpawn._visible = false; hand.gotoAndPlay('eat'); _root.playSound('eating'); } } }; var endSushiGame = function () { delete onEnterFrame; Key.removeListener(keyListener); var v1 = goodSushiCount - badSushiCount; if (v1 > sushiGameRecord) { trace('New sushi game record!'); sushiGameRecord = v1; } hunger += v1 * hungerGainPerGoodSushi; updateHUD(); gg.showStandardMessage(gg.standardMessages[9] + v1 * hungerGainPerGoodSushi); standardMessageBox.okButton.onPress = function () { standardMessageBox._x = -1000; if (energy > 0) { gg.transitionTo('shop'); } else { gg.endDay(1); } }; }; } movieClip 904 { } movieClip 907 { } movieClip 909 { } movieClip 910 { } movieClip 912 { } movieClip 914 { } // unknown tag 88 length 17 movieClip 921 { } movieClip 922 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 923 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 924 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 925 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 926 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 927 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 928 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 929 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 930 { } movieClip 931 { frame 15 { stop(); } frame 27 { stop(); } } movieClip 932 { frame 15 { stop(); } frame 27 { stop(); } } movieClip 933 { frame 15 { stop(); } frame 27 { stop(); } } movieClip 934 { frame 15 { stop(); } frame 27 { stop(); } } movieClip 935 { frame 15 { stop(); } frame 27 { stop(); } } movieClip 936 { frame 15 { stop(); } frame 27 { stop(); } } movieClip 937 { frame 15 { stop(); } frame 27 { stop(); } } movieClip 938 { frame 15 { stop(); } frame 27 { stop(); } } movieClip 940 { } movieClip 947 { frame 1 { stop(); this.canPlay = true; } frame 14 { _root.updateSushiCount(); gotoAndStop('idle'); } frame 27 { _root.spawnNewSushi(); gotoAndStop('idle'); } } movieClip 949 { } movieClip 951 { } movieClip 954 { } movieClip 957 { } movieClip 960 { } movieClip 962 { } movieClip 964 { } movieClip 966 { } movieClip 968 { } movieClip 972 { } frame 45 { stop(); trace('on frame - home'); if (treadmillBought) { millButton._x = 134.9; noMillButton._x = -1000; delete noMillButton.onPress; millButton.onPress = function () { trace('Clicked millButton on home screen'); if (energy >= treadmillUseEnergyCost) { gg.showStandardPrompt(standardMessages[8], 'treadmill'); } else { gg.showStandardMessage(standardMessages[0]); } }; } else { millButton._x = -1000; delete millButton.onPress; noMillButton._x = 134.9; noMillButton.onPress = function () { trace('Clicked noMillButton on home screen'); gg.showStandardMessage(standardMessages[6]); }; } backBtn003.onPress = function () { trace('Clicked BackBtn on home screen'); gg.transitionTo('town'); }; bedButton.onPress = function () { trace('Clicked bedBtn on home screen'); gg.showStandardPrompt(standardMessages[7], 'sleep'); }; computerButton.onPress = function () { trace('Clicked computerButton on home screen'); gg.transitionTo('computer'); }; } movieClip 975 { } movieClip 979 { } movieClip 980 { } movieClip 984 { } movieClip 988 { } movieClip 990 { } movieClip 992 { } movieClip 998 { } movieClip 1001 { } movieClip 1003 { } movieClip 1006 { } movieClip 1007 { } movieClip 1008 { } movieClip 1013 { } movieClip 1019 { } movieClip 1026 { } movieClip 1028 { } movieClip 1029 { frame 1 { stop(); } } movieClip 1030 { } movieClip 1031 { } movieClip 1032 { } movieClip 1033 { } movieClip 1034 { } movieClip 1035 { } movieClip 1036 { } movieClip 1037 { } movieClip 1038 { } movieClip 1039 { } movieClip 1040 { frame 1 { stop(); } } movieClip 1042 { } movieClip 1043 { } movieClip 1044 { } movieClip 1045 { } movieClip 1046 { } movieClip 1048 { } movieClip 1049 { } movieClip 1050 { frame 1 { stop(); } frame 44 { this._x = -1000; trace('Checking end of day on home treadmillAnim mc, last frame'); if (_root.energy == 0) { _root.endDay(1); } } } frame 50 { stop(); trace('on frame - computer'); backBtn003a.onPress = function () { trace('Clicked BackBtn on computer screen'); gg.transitionTo('home'); }; stats._x = -1000; statsButton.onPress = function () { stats._x = 150; stats.gotoAndPlay(1); }; eshop._x = -1000; eshopButton.onPress = function () { eshop._x = 268; eshop.gotoAndPlay(1); }; } movieClip 1052 { } movieClip 1054 { } movieClip 1059 { } movieClip 1060 { } movieClip 1061 { } movieClip 1063 { } movieClip 1067 { } movieClip 1068 { } movieClip 1069 { } movieClip 1087 { frame 6 { stop(); this.dayLabel.text = '' + _root.day; this.matchesLabel.text = '' + _root.matchesDone; this.matchesWonLabel.text = '' + _root.matchesWon; this.sushiLabel.text = '' + _root.sushiGameRecord; this.cashLabel.text = '' + _root.cash; this.cashSpentLabel.text = '' + _root.cashSpent; this.rankLabel.text = '' + _root.rankName; this.visitsLabel.text = '' + _root.visitsToGym; this.timesLabel.text = '' + _root.timesOnTreadmill; closeButton001.onPress = function () { trace('Clicked closeButton001 on stats screen'); this._parent._x = -1000; this._parent.gotoAndStop(1); }; } } movieClip 1093 { } movieClip 1095 { } movieClip 1102 { } movieClip 1104 { } movieClip 1108 { } movieClip 1109 { } movieClip 1113 { } movieClip 1129 { frame 7 { stop(); tattooLabel.text = '' + _root.tattooCost; treadmillLabel.text = '' + _root.treadmillCost; oilLabel.text = '' + _root.oilCost; tattooEnergyLabel.text = '' + _root.tattooEnergyCost; treadmillEnergyLabel.text = '' + _root.treadmillEnergyCost; oilEnergyLabel.text = '' + _root.oilEnergyCost; closeButton002.onPress = function () { trace('Clicked closeButton on eshop screen'); this._parent._x = -1000; this._parent.gotoAndStop(1); }; buyTreadmillButton.onPress = function () { trace('Clicked buyTreadmillButton'); _root.tryBuyTreadmill(); }; buyTattooButton.onPress = function () { trace('Clicked buyTattooButton'); _root.tryBuyTattoo(); }; buyOilButton.onPress = function () { trace('Clicked buyOilButton'); _root.tryBuyOil(); }; } } frame 55 { stop(); trace('on frame - dayPlus1'); _root.daynightAnim1.gotoAndPlay(2); } movieClip 1131 { } movieClip 1132 { } movieClip 1134 { } movieClip 1136 { } movieClip 1137 { } movieClip 1139 { } movieClip 1141 { } movieClip 1142 { } movieClip 1144 { } movieClip 1146 { } movieClip 1147 { } movieClip 1148 { } movieClip 1150 { } movieClip 1151 { } movieClip 1152 { } movieClip 1153 { } movieClip 1154 { } movieClip 1155 { } movieClip 1156 { } movieClip 1158 { } movieClip 1159 { } movieClip 1160 { } movieClip 1161 { } movieClip 1162 { } movieClip 1164 { } movieClip 1166 { } movieClip 1167 { } movieClip 1168 { } movieClip 1169 { } movieClip 1170 { } movieClip 1171 { } movieClip 1172 { } movieClip 1173 { } movieClip 1174 { } movieClip 1175 { } movieClip 1176 { } movieClip 1178 { } movieClip 1180 { } movieClip 1182 { } movieClip 1183 { } movieClip 1184 { } movieClip 1185 { } movieClip 1186 { } movieClip 1188 { } movieClip 1189 { } movieClip 1190 { } movieClip 1191 { } movieClip 1192 { } movieClip 1193 { } movieClip 1194 { } movieClip 1195 { } movieClip 1196 { } movieClip 1197 { } movieClip 1198 { } movieClip 1200 { } movieClip 1201 { } movieClip 1202 { } movieClip 1203 { } movieClip 1204 { } movieClip 1205 { } movieClip 1206 { } movieClip 1207 { } movieClip 1208 { } movieClip 1209 { } movieClip 1210 { } movieClip 1211 { } movieClip 1212 { } movieClip 1220 { } movieClip 1221 { } movieClip 1222 { } movieClip 1223 { } movieClip 1225 { } movieClip 1226 { } movieClip 1228 { } movieClip 1231 { } movieClip 1232 { } movieClip 1234 { } movieClip 1236 { } movieClip 1237 { } movieClip 1238 { } movieClip 1239 { } movieClip 1240 { frame 1 { } frame 102 { trace('reached end of day transition'); _root.playSound('morningSound'); _root.gotoAndStop('town'); } } frame 60 { stop(); trace('on frame - dayPlus3'); _root.daynightAnim2.gotoAndPlay(2); } movieClip 1242 { } movieClip 1243 { frame 1 { } frame 102 { trace('reached end of day transition'); _root.playSound('morningSound'); _root.gotoAndStop('town'); } } frame 65 { stop(); trace('on frame - rank'); _root.playMusic('levelUpMusic'); var timec = 0; onEnterFrame = function () { ++timec; if (timec >= 120) { delete onEnterFrame; _root.endDay(1); } }; } movieClip 1246 { } movieClip 1248 { } movieClip 1272 { } movieClip 1273 { } movieClip 1275 { } movieClip 1276 { } frame 70 { stop(); trace('on frame - betting'); var bp = betPrompt; var bb = bettingBox; bp.yButton.onPress = function () { trace('clicked yButton'); this._parent._x = -1000; bb._x = 275; }; bp.nButton.onPress = function () { gg.transitionTo('town'); }; var betVal = 0; bp.nextMatchLabel.text = 'Next match in ' + (matchEveryXdays - day % matchEveryXdays) + ' day(s)'; bb.cash.text = '$' + cash; bb.totalBet.text = '$0'; bb.potentialWin.text = '$0'; var setHeads = function () { bb.sumo1.head.gotoAndStop(day % 4 + 2); bb.sumo2.head.gotoAndStop((day + 1) % 4 + 2); }; var setOdds = function () { var v1 = (day + 7) * 11 % 9 + 2; trace(v1); bb.s1Odds.text = '1/' + v1; bb.s2Odds.text = v1 + '/1'; bb.sumoSelector1.odds = v1; }; bb.cancelButton.onPress = function () { gg.transitionTo('town'); }; var getVal = function (t) { var v1 = 0; switch (t) { case bb.b1: trace('b1'); v1 = 1; return v1; case bb.b2: trace('b2'); v1 = 5; return v1; case bb.b3: trace('b3'); v1 = 10; return v1; case bb.b4: trace('b4'); v1 = 50; return v1; case bb.b5: trace('b5'); v1 = 100; return v1; } trace('unknown'); v1 = 10; return v1; }; var calcWin = function () { trace('Running function calcWin(), betVal is:' + betVal); var v1 = betVal; var v2 = bb.sumoSelector1.odds; if (bb.sumoSelector2._alpha == 100) { v1 += v1 * v2; return Math.floor(v1); } v1 += v1 * (1 / (v2 + 1)); return Math.floor(v1); }; bb.b5.onPress = function () { betVal += getVal(this); bb.totalBet.text = '$' + betVal; bb.potentialWin.text = '$' + calcWin(); }; bb.b4.onPress = bb.b5.onPress; bb.b3.onPress = bb.b5.onPress; bb.b2.onPress = bb.b5.onPress; bb.b1.onPress = bb.b5.onPress; bb.clearButton.onPress = function () { betVal = 0; bb.totalBet.text = '$0'; bb.potentialWin.text = '$0'; }; bb.placeBetButton.onPress = function () { trace('Clicked the Place Bet button'); if (cash >= betVal) { if (betVal == 0) { gg.showStandardMessage('Please click above on the amount you want to bet.'); } else { if (betVal > 10000) { gg.showStandardMessage('The maximum amount you can bet is $10,000'); } else { gg.placedBetToday = true; var v2 = bb.sumoSelector1.odds; var v1 = 0; if (bb.sumoSelector1._alpha == 100) { v1 = Math.round(100 * (v2 / (v2 + 1))); trace('chance is:' + v1); } else { v1 = 100 - Math.round(100 * (v2 / (v2 + 1))); trace('chance is:' + v1); } var v3 = Math.floor(Math.random() * 100) < v1 ? true : false; if (v3) { gg.showStandardMessage('Great luck - you won ' + calcWin() + ' $'); if (calcWin() >= 100) { } cash += calcWin() - betVal; betVal = 0; bb.cash.text = '$' + cash; bb.totalBet.text = '$0'; bb.potentialWin.text = '$0'; delete bb.placeBetButton.onPress; bb.placeBetButton.onPress = function () { gg.showStandardMessage('No more matches to bet on today.'); }; } else { gg.showStandardMessage('Bad luck - you lost the ' + betVal + ' $'); cash -= betVal; bb.cash.text = '$' + cash; bb.totalBet.text = '$0'; bb.potentialWin.text = '$0'; betVal = 0; delete bb.placeBetButton.onPress; bb.placeBetButton.onPress = function () { gg.showStandardMessage('No more matches to bet on today.'); }; } } } } else { gg.showStandardMessage(gg.standardMessages[1]); } }; setHeads(); setOdds(); bb.sumoSelector1._alpha = 100; bb.sumoSelector2._alpha = 0; bb.sumoSelector2.onPress = function () { bb.sumoSelector1._alpha = 0; bb.sumoSelector2._alpha = 0; this._alpha = 100; bb.potentialWin.text = '$' + calcWin(); }; bb.sumoSelector1.onPress = bb.sumoSelector2.onPress; } movieClip 1278 { } movieClip 1281 { } movieClip 1283 { } movieClip 1286 { } movieClip 1290 { } movieClip 1305 { } movieClip 1309 { } movieClip 1313 { } movieClip 1316 { } movieClip 1318 { } movieClip 1323 { } movieClip 1324 { } movieClip 1328 { } movieClip 1330 { } movieClip 1331 { } frame 75 { stop(); trace('on frame - gameOver'); playMusic('victoryMusic'); var t = statsWindow; t.cashLabel.text = '$' + cash; t.rankLabel.text = '' + rankName; var playerScore = cash + 1000 * nextUndefeatedSumo; t.scoreLabel.text = '' + playerScore; mainMenuBtn.onPress = function () { trace('clicked mainMenuBtn'); gg.transitionTo('mainMenu'); }; } movieClip 1333 { } movieClip 1334 { } movieClip 1337 { } movieClip 1338 { } movieClip 1340 { } movieClip 1344 { } movieClip 1346 { } movieClip 1349 { } movieClip 1360 { } frame 80 { stop(); trace('on frame - credits'); backBtn004.onPress = function () { trace('Clicked backButton on creditsScreen'); gg.transitionTo('mainMenu'); }; } movieClip 1362 { } movieClip 1363 { }




https://swfchan.com/53/263098/info.shtml
Created: 16/3 -2026 11:19:33 Last modified: 16/3 -2026 11:19:33 Server time: 17/03 -2026 12:25:14