Combined Code
frame 1 {
_global.PlayerSpecial = 0;
_global.EnemySpecial = 0;
damage = 0;
amberPlayer = true;
_global.golduckPlayer = true;
_global.golduckPlayerEnd = false;
_global.typhlosionPlayer = false;
_global.typhlosionPlayerEnd = false;
_global.sandslashPlayer = false;
_global.sandslashPlayerEnd = false;
williamEnemy = true;
blazikenEnemy = false;
lopunnyEnemy = false;
absolEnemy = false;
golduckHP = 180;
golduckHPMax = 180;
golduckAtk = 118;
golduckDef = 114;
golduckSpd = 121;
golduckSpAtk = 131;
golduckSpDef = 113;
typhlosionHP = 175;
typhlosionHPMax = 175;
typhlosionAtk = 120;
typhlosionDef = 114;
typhlosionSpd = 136;
typhlosionSpAtk = 145;
typhlosionSpDef = 121;
sandslashHP = 172;
sandslashHPMax = 172;
sandslashAtk = 136;
sandslashDef = 146;
sandslashSpd = 101;
sandslashSpAtk = 81;
sandslashSpDef = 91;
blazikenHP = 178;
blazikenHPMax = 178;
blazikenAtk = 156;
blazikenDef = 106;
blazikenSpd = 116;
blazikenSpAtk = 146;
blazikenSpDef = 106;
lopunnyHP = 165;
lopunnyHPMax = 165;
lopunnyAtk = 112;
lopunnyDef = 120;
lopunnySpd = 141;
lopunnySpAtk = 90;
lopunnySpDef = 148;
absolHP = 161;
absolHPMax = 161;
absolAtk = 111;
absolDef = 96;
absolSpd = 111;
absolSpAtk = 111;
absolSpDef = 96;
}
frame 8 {
playerHit = golduckHP;
playerHitMax = golduckHPMax;
playerAtk = golduckAtk;
playerDef = golduckDef;
playerSpd = golduckSpd;
playerSpAtk = golduckSpAtk;
playerSpDef = golduckSpDef;
}
frame 9 {
if (williamEnemy == true) {
enemyPokemon = 3;
enemyHit = blazikenHP;
enemyHitMax = blazikenHPMax;
enemyAtk = blazikenAtk;
enemyDef = blazikenDef;
enemySpd = blazikenSpd;
enemySpAtk = blazikenSpAtk;
enemySpDef = blazikenSpDef;
}
}
frame 10 {
stop();
if (_global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
golduckOption._visible = true;
typhloOption._visible = false;
sandslashOption._visible = false;
} else {
if (_global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
golduckOption._visible = false;
typhloOption._visible = true;
sandslashOption._visible = false;
} else {
if (_global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
golduckOption._visible = false;
typhloOption._visible = false;
sandslashOption._visible = true;
}
}
}
if (williamEnemy == true && enemyPokemon == 3) {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
blazikenStance._visible = true;
lopunnyStance._visible = false;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 2) {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = true;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 1) {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = false;
absolStance._visible = true;
}
}
}
}
movieClip 3 {
}
movieClip 6 {
}
movieClip 9 {
}
movieClip 12 {
}
movieClip 15 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 24 {
}
// unknown tag 88 length 68
button 44 {
on (press) {
gotoAndPlay('AttackMenu');
}
}
button 45 {
on (press) {
gotoAndPlay('SwitchMenu');
}
}
button 46 {
on (press) {
gotoAndPlay('ItemMenu');
}
}
button 47 {
on (press) {
gotoAndPlay('QuitMenu');
}
}
button 57 {
on (press) {
gotoAndPlay('MainMenu');
}
}
button 58 {
on (rollOver) {
attackInfo.text = 'Smoke Screen\rLowers opponent\'s accuracy';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 1;
_root.gotoAndStop('AmberSpdTest');
}
}
button 59 {
on (rollOver) {
attackInfo.text = 'Quick Attack\rAttack first despite speed difference';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 2;
_root.gotoAndStop('AmberSpdTest');
}
}
button 60 {
on (rollOver) {
attackInfo.text = 'Swift\rNever Misses';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 3;
_root.gotoAndStop('AmberSpdTest');
}
}
button 64 {
on (rollOver) {
attackInfo.text = 'FIRE BLAST\rA very powerful fire type attack.';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 4;
_root.gotoAndStop('AmberSpdTest');
}
}
button 76 {
on (release) {
_global.golduckPlayer = true;
_root.gotoAndPlay('AmTyphRtrn');
}
}
button 77 {
on (release) {
_global.sandslashPlayer = true;
_root.gotoAndPlay('AmTyphRtrn');
}
}
button 84 {
on (press) {
gotoAndPlay('MainMenu');
}
}
button 102 {
on (press) {
gotoAndPlay('MainMenu');
}
}
movieClip 104 {
frame 10 {
stop();
}
frame 30 {
stop();
if (_global.PlayerSpecial < 6) {
specialAttack._visible = false;
}
}
frame 50 {
stop();
if (_global.golduckPlayerEnd == true) {
chooseGold._visible = false;
noGold._visible = true;
} else {
chooseGold._visible = true;
noGold._visible = false;
}
if (_global.typhlosionPlayerEnd == true) {
chooseTyphlo._visible = false;
noTyphlo._visible = true;
} else {
chooseTyphlo._visible = true;
noTyphlo._visible = false;
}
if (_global.sandslashPlayerEnd == true) {
chooseSand._visible = false;
noSand._visible = true;
} else {
chooseSand._visible = true;
noSand._visible = false;
}
}
frame 70 {
stop();
}
frame 90 {
stop();
}
}
button 105 {
on (press) {
gotoAndPlay('AttackMenu');
}
}
button 106 {
on (press) {
gotoAndPlay('SwitchMenu');
}
}
button 107 {
on (press) {
gotoAndPlay('ItemMenu');
}
}
button 108 {
on (press) {
gotoAndPlay('QuitMenu');
}
}
button 109 {
on (press) {
gotoAndPlay('MainMenu');
}
}
button 110 {
on (rollOver) {
attackInfo.text = 'Screech\rLowers opponent\'s defense';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 1;
_root.gotoAndStop('AmberSpdTest');
}
}
button 111 {
on (rollOver) {
attackInfo.text = 'Fury Swipes\rMay attack up to 5 times in a row';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 2;
_root.gotoAndStop('AmberSpdTest');
}
}
button 112 {
on (rollOver) {
attackInfo.text = 'Headbutt\rMay cause opponent to flinch';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 3;
_root.gotoAndStop('AmberSpdTest');
}
}
button 113 {
on (rollOver) {
attackInfo.text = 'HYDRO PUMP\rA very powerful water type attack.';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 4;
_root.gotoAndStop('AmberSpdTest');
}
}
button 115 {
on (release) {
_global.typhlosionPlayer = true;
_root.gotoAndPlay('AmGoldRtrn');
}
}
button 116 {
on (release) {
_global.sandslashPlayer = true;
_root.gotoAndPlay('AmGoldRtrn');
}
}
button 117 {
on (press) {
gotoAndPlay('MainMenu');
}
}
movieClip 118 {
frame 10 {
stop();
}
frame 30 {
stop();
if (_global.PlayerSpecial < 6) {
specialAttack._visible = false;
}
}
frame 50 {
stop();
if (_global.golduckPlayerEnd == true) {
chooseGold._visible = false;
noGold._visible = true;
} else {
chooseGold._visible = true;
noGold._visible = false;
}
if (_global.typhlosionPlayerEnd == true) {
chooseTyphlo._visible = false;
noTyphlo._visible = true;
} else {
chooseTyphlo._visible = true;
noTyphlo._visible = false;
}
if (_global.sandslashPlayerEnd == true) {
chooseSand._visible = false;
noSand._visible = true;
} else {
chooseSand._visible = true;
noSand._visible = false;
}
}
frame 70 {
stop();
}
frame 90 {
stop();
}
}
button 119 {
on (press) {
gotoAndPlay('AttackMenu');
}
}
button 120 {
on (press) {
gotoAndPlay('SwitchMenu');
}
}
button 121 {
on (press) {
gotoAndPlay('ItemMenu');
}
}
button 122 {
on (press) {
gotoAndPlay('QuitMenu');
}
}
button 123 {
on (press) {
gotoAndPlay('MainMenu');
}
}
button 124 {
on (rollOver) {
attackInfo.text = 'Defense Curl\rRaises your defense';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 1;
_root.gotoAndStop('AmberSpdTest');
}
}
button 125 {
on (rollOver) {
attackInfo.text = 'Slash\rStandard Attack';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 2;
_root.gotoAndStop('AmberSpdTest');
}
}
button 126 {
on (rollOver) {
attackInfo.text = 'Poison Sting\rMay poison opponent.';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 3;
_root.gotoAndStop('AmberSpdTest');
}
}
button 127 {
on (rollOver) {
attackInfo.text = 'STONE EDGE\rA very powerful rock type attack.';
}
on (rollOut) {
attackInfo.text = '';
}
on (release) {
_global.playerAttack = 4;
_root.gotoAndStop('AmberSpdTest');
}
}
button 129 {
on (release) {
_global.golduckPlayer = true;
_root.gotoAndPlay('AmSandRtrn');
}
}
button 130 {
on (release) {
_global.typhlosionPlayer = true;
_root.gotoAndPlay('AmSandRtrn');
}
}
button 131 {
on (press) {
gotoAndPlay('MainMenu');
}
}
movieClip 132 {
frame 10 {
stop();
}
frame 30 {
stop();
if (_global.PlayerSpecial < 6) {
specialAttack._visible = false;
}
}
frame 50 {
stop();
if (_global.golduckPlayerEnd == true) {
chooseGold._visible = false;
noGold._visible = true;
} else {
chooseGold._visible = true;
noGold._visible = false;
}
if (_global.typhlosionPlayerEnd == true) {
chooseTyphlo._visible = false;
noTyphlo._visible = true;
} else {
chooseTyphlo._visible = true;
noTyphlo._visible = false;
}
if (_global.sandslashPlayerEnd == true) {
chooseSand._visible = false;
noSand._visible = true;
} else {
chooseSand._visible = true;
noSand._visible = false;
}
}
frame 70 {
stop();
}
frame 90 {
stop();
}
}
movieClip 134 {
}
movieClip 136 {
}
movieClip 138 {
}
movieClip 140 {
}
// unknown tag 88 length 94
movieClip 153 {
frame 1 {
if (_global.PlayerSpecial >= 6) {
gotoAndStop('Six');
} else {
if (_global.PlayerSpecial == 5) {
gotoAndStop('Five');
} else {
if (_global.PlayerSpecial == 4) {
gotoAndStop('Four');
} else {
if (_global.PlayerSpecial == 3) {
gotoAndStop('Three');
} else {
if (_global.PlayerSpecial == 2) {
gotoAndStop('Two');
} else {
if (_global.PlayerSpecial == 1) {
gotoAndStop('One');
} else {
if (_global.PlayerSpecial == 0) {
stop();
}
}
}
}
}
}
}
}
}
movieClip 161 {
frame 1 {
if (_global.EnemySpecial >= 6) {
gotoAndStop('Six');
} else {
if (_global.EnemySpecial == 5) {
gotoAndStop('Five');
} else {
if (_global.EnemySpecial == 4) {
gotoAndStop('Four');
} else {
if (_global.EnemySpecial == 3) {
gotoAndStop('Three');
} else {
if (_global.EnemySpecial == 2) {
gotoAndStop('Two');
} else {
if (_global.EnemySpecial == 1) {
gotoAndStop('One');
} else {
if (_global.EnemySpecial == 0) {
stop();
}
}
}
}
}
}
}
}
}
frame 20 {
if (playerSpd >= enemySpd) {
playerFirst = true;
enemyFirst = false;
gotoAndStop('AmberPlayerJump');
} else {
enemyFirst = true;
playerFirst = false;
gotoAndStop('AmberEnemyJump');
}
}
frame 22 {
if (_global.golduckPlayer == true && _global.playerAttack == 1) {
gotoAndPlay('goldAtk1');
} else {
if (_global.golduckPlayer == true && _global.playerAttack == 2) {
gotoAndPlay('goldAtk2');
} else {
if (_global.golduckPlayer == true && _global.playerAttack == 3) {
gotoAndPlay('goldAtk3');
} else {
if (_global.golduckPlayer == true && _global.playerAttack == 4) {
gotoAndPlay('goldAtk4');
}
}
}
}
if (_global.typhlosionPlayer == true && _global.playerAttack == 1) {
gotoAndPlay('typhAtk1');
} else {
if (_global.typhlosionPlayer == true && _global.playerAttack == 2) {
gotoAndPlay('typhAtk2');
} else {
if (_global.typhlosionPlayer == true && _global.playerAttack == 3) {
gotoAndPlay('typhAtk3');
} else {
if (_global.typhlosionPlayer == true && _global.playerAttack == 4) {
gotoAndPlay('typhAtk4');
}
}
}
}
if (_global.sandslashPlayer == true && _global.playerAttack == 1) {
gotoAndPlay('sandAtk1');
} else {
if (_global.sandslashPlayer == true && _global.playerAttack == 2) {
gotoAndPlay('sandAtk2');
} else {
if (_global.sandslashPlayer == true && _global.playerAttack == 3) {
gotoAndPlay('sandAtk3');
} else {
if (_global.sandslashPlayer == true && _global.playerAttack == 4) {
gotoAndPlay('sandAtk4');
}
}
}
}
}
frame 22 {
if (_global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (_global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (_global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
if (williamEnemy == true && enemyPokemon == 3) {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
blazikenStance._visible = true;
lopunnyStance._visible = false;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 2) {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = true;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 1) {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = false;
absolStance._visible = true;
}
}
}
}
frame 23 {
atkRan = random(100) + 1;
if (williamEnemy == true && enemyPokemon == 3 && _global.EnemySpecial >= 6) {
gotoAndPlay('enBlaz4');
} else {
if (williamEnemy == true && enemyPokemon == 3 && atkRan <= 40) {
gotoAndPlay('enBlaz1');
} else {
if (williamEnemy == true && enemyPokemon == 3 && (atkRan >= 41 && atkRan <= 70)) {
gotoAndPlay('enBlaz2');
} else {
if (williamEnemy == true && enemyPokemon == 3 && atkRan >= 71) {
gotoAndPlay('enBlaz3');
}
}
}
}
if (williamEnemy == true && enemyPokemon == 2 && _global.EnemySpecial >= 6) {
gotoAndPlay('enLopun4');
} else {
if (williamEnemy == true && enemyPokemon == 2 && atkRan <= 40) {
gotoAndPlay('enLopun1');
} else {
if (williamEnemy == true && enemyPokemon == 2 && (atkRan >= 41 && atkRan <= 70)) {
gotoAndPlay('enLopun2');
} else {
if (williamEnemy == true && enemyPokemon == 2 && atkRan >= 71) {
gotoAndPlay('enLopun3');
}
}
}
}
if (williamEnemy == true && enemyPokemon == 1 && _global.EnemySpecial >= 6) {
gotoAndPlay('enAbsol4');
} else {
if (williamEnemy == true && enemyPokemon == 1 && atkRan <= 40) {
gotoAndPlay('enAbsol1');
} else {
if (williamEnemy == true && enemyPokemon == 1 && (atkRan >= 41 && atkRan <= 70)) {
gotoAndPlay('enAbsol2');
} else {
if (williamEnemy == true && enemyPokemon == 1 && atkRan >= 71) {
gotoAndPlay('enAbsol3');
}
}
}
}
}
frame 24 {
play();
if (_global.golduckPlayer == true) {
_global.golduckPlayerEnd = true;
gotoAndPlay('AmGoldRtrn');
} else {
if (_global.typhlosionPlayer == true) {
_global.typhlosionPlayerEnd = true;
gotoAndPlay('AmTyphRtrn');
} else {
if (_global.sandslashPlayer == true) {
_global.sandslashPlayerEnd = true;
gotoAndPlay('AmSandRtrn');
}
}
}
}
frame 24 {
if (_global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (_global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (_global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
if (williamEnemy == true && enemyPokemon == 3) {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
blazikenStance._visible = true;
lopunnyStance._visible = false;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 2) {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = true;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 1) {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = false;
absolStance._visible = true;
}
}
}
}
frame 25 {
golduckHP = playerHit;
}
frame 39 {
if (_global.golduckPlayerEnd == true) {
gotoAndStop('AmberSwitch');
} else {
if (_global.sandslashPlayer == true) {
sandslashPlayer = true;
golduckPlayer = false;
gotoAndPlay('AmGoSand');
} else {
_global.typhlosionPlayer = true;
if (_global.typhlosionPlayer) {
typhlosionPlayer = true;
golduckPlayer = false;
gotoAndPlay('AmGoTyph');
}
}
}
}
frame 40 {
typhlosionHP = playerHit;
}
frame 54 {
if (_global.typhlosionPlayerEnd == true) {
gotoAndStop('AmberSwitch');
} else {
if (_global.sandslashPlayer == true) {
sandslashPlayer = true;
typhlosionPlayer = false;
gotoAndPlay('AmGoSand');
} else {
_global.golduckPlayer = true;
if (_global.golduckPlayer) {
typhlosionPlayer = false;
golduckPlayer = true;
gotoAndPlay('AmGoGold');
}
}
}
}
frame 55 {
sandslashHP = playerHit;
}
frame 69 {
if (_global.sandslashPlayerEnd == true) {
gotoAndStop('AmberSwitch');
} else {
if (_global.golduckPlayer == true) {
sandslashPlayer = false;
golduckPlayer = true;
gotoAndPlay('AmGoGold');
} else {
_global.typhlosionPlayer = true;
if (_global.typhlosionPlayer) {
typhlosionPlayer = true;
sandslashPlayer = false;
gotoAndPlay('AmGoTyph');
}
}
}
}
frame 70 {
playerHit = golduckHP;
playerAtk = golduckAtk;
playerDef = golduckDef;
playerSpd = golduckSpd;
playerSpAtk = golduckSpAtk;
playerSpDef = golduckSpDef;
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
}
frame 70 {
if (williamEnemy == true && enemyPokemon == 3) {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
blazikenStance._visible = true;
lopunnyStance._visible = false;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 2) {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = true;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 1) {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = false;
absolStance._visible = true;
}
}
}
}
frame 84 {
_global.golduckPlayer = true;
_global.typhlosionPlayer = false;
_global.sandslashPlayer = false;
_global.PlayerSpecial = 0;
playerFirst = true;
enemyFirst = false;
gotoAndStop('AmberEnemyJump');
}
frame 85 {
playerHit = typhlosionHP;
playerAtk = typhlosionAtk;
playerDef = typhlosionDef;
playerSpd = typhlosionSpd;
playerSpAtk = typhlosionSpAtk;
playerSpDef = typhlosionSpDef;
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
}
frame 85 {
if (williamEnemy == true && enemyPokemon == 3) {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
blazikenStance._visible = true;
lopunnyStance._visible = false;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 2) {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = true;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 1) {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = false;
absolStance._visible = true;
}
}
}
}
frame 99 {
_global.golduckPlayer = false;
_global.typhlosionPlayer = true;
_global.sandslashPlayer = false;
_global.PlayerSpecial = 0;
playerFirst = true;
enemyFirst = false;
gotoAndStop('AmberEnemyJump');
}
frame 100 {
playerHit = sandslashHP;
playerAtk = sandslashAtk;
playerDef = sandslashDef;
playerSpd = sandslashSpd;
playerSpAtk = sandslashSpAtk;
playerSpDef = sandslashSpDef;
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
frame 100 {
if (williamEnemy == true && enemyPokemon == 3) {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
blazikenStance._visible = true;
lopunnyStance._visible = false;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 2) {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = true;
absolStance._visible = false;
} else {
if (williamEnemy == true && enemyPokemon == 1) {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = false;
absolStance._visible = true;
}
}
}
}
frame 115 {
_global.golduckPlayer = false;
_global.typhlosionPlayer = false;
_global.sandslashPlayer = true;
_global.PlayerSpecial = 0;
playerFirst = true;
enemyFirst = false;
gotoAndStop('AmberEnemyJump');
}
frame 116 {
stop();
if (_global.golduckPlayerEnd == true && _global.typhlosionPlayerEnd == true && _global.sandslashPlayerEnd == true) {
gotoAndStop('GameOver');
}
if (_global.golduckPlayerEnd == true) {
chooseGold._visible = false;
noGold._visible = true;
} else {
chooseGold._visible = true;
noGold._visible = false;
}
if (_global.typhlosionPlayerEnd == true) {
chooseTyphlo._visible = false;
noTyphlo._visible = true;
} else {
chooseTyphlo._visible = true;
noTyphlo._visible = false;
}
if (_global.sandslashPlayerEnd == true) {
chooseSand._visible = false;
noSand._visible = true;
} else {
chooseSand._visible = true;
noSand._visible = false;
}
}
button 175 {
on (release) {
_global.golduckPlayer = true;
_global.typhlosionPlayer = false;
_global.sandslashPlayer = false;
gotoAndPlay('AmGoGold');
}
}
button 176 {
on (release) {
_global.golduckPlayer = false;
_global.typhlosionPlayer = true;
_global.sandslashPlayer = false;
gotoAndPlay('AmGoTyph');
}
}
button 177 {
on (release) {
_global.golduckPlayer = false;
_global.typhlosionPlayer = false;
_global.sandslashPlayer = true;
gotoAndPlay('AmGoSand');
}
}
frame 125 {
enemyDef -= 5;
}
frame 139 {
++_global.PlayerSpecial;
++_global.PlayerSpecial;
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
frame 140 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 7 + 2);
}
frame 154 {
++_global.PlayerSpecial;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 155 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 30 + 2);
}
frame 169 {
++_global.PlayerSpecial;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 170 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 80 + 2);
}
frame 184 {
_global.PlayerSpecial = 0;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 199 {
++_global.PlayerSpecial;
++_global.PlayerSpecial;
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
frame 200 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 20 + 2);
}
frame 214 {
++_global.PlayerSpecial;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 215 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 30 + 2);
}
frame 229 {
++_global.PlayerSpecial;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 230 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 60 + 2);
}
frame 244 {
_global.PlayerSpecial = 0;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 245 {
playerDef += 5;
}
frame 259 {
++_global.PlayerSpecial;
++_global.PlayerSpecial;
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
frame 260 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 35 + 2);
}
frame 274 {
++_global.PlayerSpecial;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 275 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 17 + 2);
}
frame 289 {
++_global.PlayerSpecial;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 290 {
var damage = Math.round(0.44 * (playerAtk / enemyDef) * 60 + 2);
}
frame 304 {
_global.PlayerSpecial = 0;
enemyHit -= damage;
if (enemyHit <= 0) {
enemyHit = 0;
gotoAndPlay('EnemyRtrn');
} else {
if (enemyFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (playerFirst == true) {
gotoAndStop('AmberEnemyJump');
}
}
}
}
frame 370 {
if (williamEnemy == true && enemyPokemon == 3) {
gotoAndPlay('enBlazRtrn');
} else {
if (williamEnemy == true && enemyPokemon == 2) {
gotoAndPlay('enLopunRtrn');
} else {
if (williamEnemy == true && enemyPokemon == 1) {
gotoAndPlay('enAbsolRtrn');
}
}
}
}
frame 380 {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 399 {
++_global.EnemySpecial;
++_global.EnemySpecial;
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
}
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
frame 400 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 30 + 2);
}
frame 400 {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 419 {
++_global.EnemySpecial;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 420 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 40 + 2);
}
frame 420 {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 439 {
++_global.EnemySpecial;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 440 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 70 + 2);
}
frame 440 {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 459 {
_global.EnemySpecial = 0;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 460 {
play();
}
frame 460 {
enemyStat.text = enemyHit + ' / ' + blazikenHPMax + ' H P';
enemyHP._width = (enemyHit / blazikenHPMax) * 333.8;
blazikenStance._visible = true;
lopunnyStance._visible = false;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 480 {
_global.EnemySpecial = 0;
enemyPokemon = 2;
enemyHit = lopunnyHP;
enemyAtk = lopunnyAtk;
enemyDef = lopunnyDef;
enemySpd = lopunnySpd;
enemySpAtk = lopunnySpAtk;
enemySpDef = lopunnySpDef;
}
frame 480 {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = true;
}
frame 499 {
if (amberPlayer == true) {
gotoAndStop('AmberBattle');
}
}
frame 500 {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 519 {
++_global.EnemySpecial;
++_global.EnemySpecial;
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
}
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
frame 520 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 50 + 2);
}
frame 520 {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 539 {
++_global.EnemySpecial;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 540 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 20 + 2);
}
frame 540 {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 559 {
++_global.EnemySpecial;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 560 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 75 + 2);
}
frame 560 {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 578 {
_global.EnemySpecial = 0;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 579 {
play();
}
frame 579 {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 600 {
_global.EnemySpecial = 0;
enemyPokemon = 1;
enemyHit = absolHP;
enemyAtk = absolAtk;
enemyDef = absolDef;
enemySpd = absolSpd;
enemySpAtk = absolSpAtk;
enemySpDef = absolSpDef;
}
frame 600 {
enemyStat.text = enemyHit + ' / ' + lopunnyHPMax + ' H P';
enemyHP._width = (enemyHit / lopunnyHPMax) * 333.8;
blazikenStance._visible = false;
lopunnyStance._visible = false;
}
frame 619 {
if (amberPlayer == true) {
gotoAndStop('AmberBattle');
}
}
frame 620 {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 639 {
++_global.EnemySpecial;
++_global.EnemySpecial;
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
}
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
frame 640 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 30 + 2);
}
frame 640 {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 659 {
++_global.EnemySpecial;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 660 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 70 + 2);
}
frame 660 {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 679 {
++_global.EnemySpecial;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 680 {
var damage = Math.round(0.44 * (enemyAtk / playerDef) * 80 + 2);
}
frame 680 {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 699 {
_global.EnemySpecial = 0;
playerHit -= damage;
if (amberPlayer == true && playerHit <= 0) {
playerHit = 0;
gotoAndStop('AmberRtrn');
} else {
if (amberPlayer == true && playerFirst == true) {
gotoAndStop('AmberBattle');
} else {
if (amberPlayer == true && enemyFirst == true) {
gotoAndPlay('AmberPlayerJump');
}
}
}
}
frame 700 {
enemyStat.text = enemyHit + ' / ' + absolHPMax + ' H P';
enemyHP._width = (enemyHit / absolHPMax) * 333.8;
if (amberPlayer == true && _global.golduckPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + golduckHPMax;
playerHP1._width = (playerHit / golduckHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = true;
typhloStance._visible = false;
sandslashStance._visible = false;
golduckIcon._visible = true;
typhloIcon._visible = false;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.typhlosionPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + typhlosionHPMax;
playerHP1._width = (playerHit / typhlosionHPMax) * 333.8;
playerHP2._width = (golduckHP / golduckHPMax) * 178.3;
playerHP3._width = (sandslashHP / sandslashHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = true;
sandslashStance._visible = false;
golduckIcon._visible = false;
typhloIcon._visible = true;
sandslashIcon._visible = false;
} else {
if (amberPlayer == true && _global.sandslashPlayer == true) {
playerStat.text = 'H P ' + playerHit + ' / ' + sandslashHPMax;
playerHP1._width = (playerHit / sandslashHPMax) * 333.8;
playerHP2._width = (typhlosionHP / typhlosionHPMax) * 178.3;
playerHP3._width = (golduckHP / golduckHPMax) * 176.8;
golduckStance._visible = false;
typhloStance._visible = false;
sandslashStance._visible = true;
golduckIcon._visible = false;
typhloIcon._visible = false;
sandslashIcon._visible = true;
}
}
}
}
frame 720 {
stop();
}
// unknown tag 88 length 64
frame 721 {
stop();
}