Frame 1
function playFX(sound) {
if (sound_fx) {
sounds_fx.pack.gotoAndStop(1);
sounds_fx.pack.gotoAndStop(sound);
}
}
function playBG(sound) {
if (sound_bg) {
if (sound.charAt(0) == "b") {
sounds_battle.pack.gotoAndStop(sound);
} else {
sounds_main.pack.gotoAndStop(sound);
}
popSub(("Now Playing \"" + bgName[sound]) + "\"");
}
}
stop();
Stage.showMenu = false;
_root._focusrect = false;
var current_site_url = "http://www.coolroystudio.com/";
var myURL = (current_site_url + "dbz-pe/");
sound_fx = (sound_bg = true);
_root.createEmptyMovieClip("tv", 100);
tv.lineStyle(1, 0, 15);
i = 0;
while (i < Stage.height) {
tv.moveTo(0, i);
tv.lineTo(Stage.width, i);
i = i + 2;
}
step = 1;
loaded = step;
percents = 0;
bLoaded = 0;
bTotal = 100;
onEnterFrame = function () {
txt.gotoAndStop(step);
if ((bLoaded == bTotal) && (bTotal > 0)) {
step++;
bTotal = 100;
if (step > 4) {
onEnterFrame = null;
_root.nextFrame();
}
}
stepsText.text = ("[ Step " + step) + " out of 4 ]";
percents = Math.round((bLoaded / bTotal) * 100);
if (step == 1) {
if (loaded != step) {
loaded++;
}
bLoaded = _root.getBytesLoaded();
bTotal = _root.getBytesTotal();
} else if (step == 2) {
if (loaded != step) {
_root.createEmptyMovieClip("sounds_fx", _root.getNextHighestDepth());
sounds_fx.loadMovie(myURL + "sounds_fx.swf");
loaded++;
}
bLoaded = sounds_fx.getBytesLoaded();
bTotal = sounds_fx.getBytesTotal();
} else if (step == 3) {
if (loaded != step) {
_root.createEmptyMovieClip("sounds_main", _root.getNextHighestDepth());
sounds_main.loadMovie(myURL + "sounds_main.swf");
loaded++;
}
bLoaded = sounds_main.getBytesLoaded();
bTotal = sounds_main.getBytesTotal();
} else if (step == 4) {
if (loaded != step) {
_root.createEmptyMovieClip("sounds_battle", _root.getNextHighestDepth());
sounds_battle.loadMovie(myURL + "sounds_battle.swf");
loaded++;
}
bLoaded = sounds_battle.getBytesLoaded();
bTotal = sounds_battle.getBytesTotal();
}
};
Frame 2
stop();
tv.removeMovieClip();
Frame 3
stop();
tv.removeMovieClip();
onEnterFrame = function () {
intro_timeline._xscale = (intro._currentframe / intro._totalframes) * 100;
if ((intro_timeline._xscale > 90) && (intro_fade._currentframe == 1)) {
intro_skip.enabled = false;
intro_fade.play();
}
};
Frame 4
logined = true;
function loadSlots(amount) {
i = 1;
while (i < (amount + 1)) {
_root["slot" + i] = SharedObject.getLocal("DBZ-PF_slot" + i);
if ((_root["slot" + i].data.slotname == undefined) || (_root["slot" + i].data.slotname == "- - - -")) {
wind2["slotName_" + i].text = "";
wind2["btn" + i].enabled = false;
wind2["emp" + i]._visible = true;
_root["slot" + i].flush;
} else {
wind2["slotName_" + i].text = ("\" " + _root["slot" + i].data.slotname) + " \" - ";
wind2["btn" + i].enabled = true;
wind2["emp" + i]._visible = false;
}
i++;
}
}
function loadSlot(slot) {
_root.slotname = _root["slot" + slot].data.slotname;
_root.story = Number(_root["slot" + slot].data.story);
_root.battle = Number(_root["slot" + slot].data.battle);
_root.level = Number(_root["slot" + slot].data.level);
_root.experience = Number(_root["slot" + slot].data.experience);
_root.maxhp = Number(_root["slot" + slot].data.maxhp);
_root.maxpower = Number(_root["slot" + slot].data.maxpower);
_root.timer_ss1 = Number(_root["slot" + slot].data.timer_ss1);
_root.timer_ss2 = Number(_root["slot" + slot].data.timer_ss2);
_root.timer_ss3 = Number(_root["slot" + slot].data.timer_ss3);
_root.timer_ss4 = Number(_root["slot" + slot].data.timer_ss4);
_root.ztimer = Number(_root["slot" + slot].data.ztimer);
_root.zennie = Number(_root["slot" + slot].data.zennie);
_root.gameMode = _root["slot" + slot].data.gameMode;
_root.supersayian = 0;
disabled = true;
_root.moveFrame(2);
}
function disableAll() {
if (disabled) {
i = 0;
while (i < 4) {
wind1["btn" + i].enabled = false;
wind2["btn" + i].enabled = false;
wind3["btn" + i].enabled = false;
_root["ball" + i].enabled = false;
i++;
}
enu.selectable = (enp.selectable = (btn_login.enabled = false));
rBtn.enabled = false;
}
}
function popSub(credits) {
if (popCredits == undefined) {
_root.attachMovie("popCredits", "popCredits", _root.getNextHighestDepth());
popCredits._x = 9.6;
popCredits._y = 327;
popCredits.tab.txt.text = credits;
popCredits.play();
}
}
function moveFrame(num) {
move_frame.num = num;
move_frame.nextFrame();
}
function MTP(mc, mc2) {
if (mc._x < mc2._x) {
mc._x = mc._x + ((mc2._x - mc._x) / 7);
} else if (mc._x > mc2._x) {
mc._x = mc._x - ((mc._x - mc2._x) / 7);
}
if (mc._y < mc2._y) {
mc._y = mc._y + ((mc2._y - mc._y) / 7);
} else if (mc._y > mc2._y) {
mc._y = mc._y - ((mc._y - mc2._y) / 7);
}
}
stop();
info._visible = false;
fxlevel = 10;
activeCamera = true;
disabled = false;
bgName = new Array();
bgName.menu = "Syntrus - Zero Level";
bgName.forward = "ChrisOrosco - Quiet Synopsis";
bgName.save = "ChrisOrOsco - Pico High";
bgName.battle1 = "ParagonX9 - Redoomed";
bgName.battle2 = "ParagonX9 - The Final Day";
bgName.battle3 = "ParagonX9 - The Matrix DNB";
bgName.battle4 = "ParagonX9 - Shadows Of The Sky";
bgName.battle5 = "ParagonX9 - Falling Demons";
bgName.battle6 = "ParagonX9 - Double Damage";
bgName.battle7 = "ParagonX9 - Chaoz Devotion";
bgName.battle8 = "ParagonX9 - Posion";
_root.playBG("menu");
_root.createEmptyMovieClip("tv", 100);
tv.lineStyle(1, 0, 15);
i = 0;
while (i < Stage.height) {
tv.moveTo(0, i);
tv.lineTo(Stage.width, i);
i = i + 2;
}
ballnum = 0;
i = 1;
while (i < 4) {
_root["ball" + i].onRelease = function () {
if (_root.ballnum == this._name.charAt(4)) {
_root.ballnum = 0;
} else {
_root.ballnum = this._name.charAt(4);
}
};
i++;
}
onEnterFrame = function () {
i = 1;
while (i < 4) {
if (i == ballnum) {
MTP(_root["ball" + i], _root.mainball);
if (_root["titl" + i]._alpha < 100) {
_root["titl" + i]._alpha = _root["titl" + i]._alpha + 5;
}
if (_root["wind" + i]._alpha < 100) {
_root["wind" + i]._alpha = _root["wind" + i]._alpha + 5;
}
_root["wind" + i]._visible = true;
_root["wind" + i].btn1.enabled = (_root["wind" + i].btn2.enabled = (_root["wind" + i].btn3.enabled = true));
} else {
MTP(_root["ball" + i], _root["bbll" + i]);
if (_root["titl" + i]._alpha > 0) {
_root["titl" + i]._alpha = _root["titl" + i]._alpha - 5;
}
if (_root["wind" + i]._alpha > 0) {
_root["wind" + i]._alpha = _root["wind" + i]._alpha - 5;
} else {
_root["wind" + i]._visible = false;
}
_root["wind" + i].btn1.enabled = (_root["wind" + i].btn2.enabled = (_root["wind" + i].btn3.enabled = false));
}
i++;
}
loadSlots(3);
disableAll();
};
Instance of Symbol 1155 MovieClip "bbll3" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
}
Instance of Symbol 1155 MovieClip "bbll2" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
}
Instance of Symbol 1155 MovieClip "ball2" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
}
Instance of Symbol 1155 MovieClip "ball3" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
}
Instance of Symbol 1155 MovieClip "bbll1" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
}
Instance of Symbol 1155 MovieClip "ball1" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
}
Instance of Symbol 1159 MovieClip "titl1" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
this._alpha = 0;
}
Instance of Symbol 1159 MovieClip "titl2" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
this._alpha = 0;
}
Instance of Symbol 1159 MovieClip "titl3" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
this._alpha = 0;
}
Instance of Symbol 1166 MovieClip "wind1" in Frame 4
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 1181 MovieClip "wind2" in Frame 4
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 1187 MovieClip "wind3" in Frame 4
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 1155 MovieClip "ball4" in Frame 4
onClipEvent (load) {
this.gotoAndStop(_name.charAt(4));
}
Frame 5
_root.playBG("forward");
Frame 6
function reColor(mc, hex) {
var _local1 = new flash.geom.ColorTransform();
var _local2 = new flash.geom.Transform(mc);
_local2.colorTransform = _local1;
_local1.rgb = Number("0x" + hex);
_local2.colorTransform = _local1;
}
function fx(X, Y, Atype) {
fxo = 0;
while (fxo < fxlevel) {
if ((((Atype != "extrapunch") && (Atype != "superout")) && (Atype != "super")) && (Atype != "energy")) {
_root.attachMovie("fx", "fx" + fxs, _root.getNextHighestDepth());
_root["fx" + fxs]._x = X;
_root["fx" + fxs]._y = (Y + rnd(20)) - 20;
_root["fx" + fxs]._rotation = rnd(360);
_root["fx" + fxs]._xscale = (_root["fx" + fxs]._yscale = (40 + rnd(60)) + (5 * supersayian));
_root["fx" + fxs]._alpha = 40 + rnd(60);
if (Atype == "kameha") {
reColor(_root["fx" + fxs], "0000FF");
} else if (Atype == "punch") {
reColor(_root["fx" + fxs], "FFFF00");
} else if (Atype == "dragonpunch") {
reColor(_root["fx" + fxs], "FFFFFF");
} else if (Atype == "blood") {
reColor(_root["fx" + fxs], "FF0000");
}
fxs++;
_root.attachMovie("fx", "fx" + fxs, _root.getNextHighestDepth());
_root["fx" + fxs]._x = X;
_root["fx" + fxs]._y = (Y + rnd(20)) - 20;
_root["fx" + fxs]._rotation = rnd(360);
_root["fx" + fxs]._xscale = (_root["fx" + fxs]._yscale = (40 + rnd(60)) + (5 * supersayian));
_root["fx" + fxs]._alpha = 40 + rnd(60);
if (Atype == "kameha") {
reColor(_root["fx" + fxs], "FFFFFF");
} else if (Atype == "punch") {
reColor(_root["fx" + fxs], "FF0000");
} else if (Atype == "dragonpunch") {
reColor(_root["fx" + fxs], "FFFF00");
} else if (Atype == "blood") {
reColor(_root["fx" + fxs], "FF0000");
}
fxs++;
} else if ((Atype == "extrapunch") || (Atype == "superout")) {
_root.attachMovie("fxBig", "fxBig" + fxs, _root.getNextHighestDepth());
_root["fxBig" + fxs]._x = X;
_root["fxBig" + fxs]._y = (Y + rnd(20)) - 20;
_root["fxBig" + fxs]._rotation = rnd(360);
_root["fxBig" + fxs]._xscale = (_root["fxBig" + fxs]._yscale = (40 + rnd(60)) + (5 * supersayian));
_root["fxBig" + fxs]._alpha = 40 + rnd(60);
if (Atype == "superout") {
reColor(_root["fxBig" + fxs], "FFFF00");
} else if (Atype == "extrapunch") {
reColor(_root["fxBig" + fxs], "790E94");
}
fxs++;
_root.attachMovie("fxBig", "fxBig" + fxs, _root.getNextHighestDepth());
_root["fxBig" + fxs]._x = X;
_root["fxBig" + fxs]._y = (Y + rnd(20)) - 20;
_root["fxBig" + fxs]._rotation = rnd(360);
_root["fxBig" + fxs]._xscale = (_root["fxBig" + fxs]._yscale = (40 + rnd(60)) + (5 * supersayian));
_root["fxBig" + fxs]._alpha = 40 + rnd(60);
if (Atype == "superout") {
reColor(_root["fxBig" + fxs], "FFFFFF");
} else if (Atype == "extrapunch") {
reColor(_root["fxBig" + fxs], "CC4EED");
}
fxs++;
} else if (Atype == "super") {
_root.attachMovie("fxBigger", "fxBigger" + fxs, _root.getNextHighestDepth());
_root["fxBigger" + fxs]._x = X;
_root["fxBigger" + fxs]._y = (Y + rnd(20)) - 20;
_root["fxBigger" + fxs]._rotation = rnd(360);
_root["fxBigger" + fxs]._xscale = (_root["fxBigger" + fxs]._yscale = (40 + rnd(60)) + (5 * supersayian));
_root["fxBigger" + fxs]._alpha = 40 + rnd(60);
reColor(_root["fxBigger" + fxs], "FFFF00");
fxs++;
_root.attachMovie("fxBigger", "fxBigger" + fxs, _root.getNextHighestDepth());
_root["fxBigger" + fxs]._x = X;
_root["fxBigger" + fxs]._y = (Y + rnd(20)) - 20;
_root["fxBigger" + fxs]._rotation = rnd(360);
_root["fxBigger" + fxs]._xscale = (_root["fxBigger" + fxs]._yscale = (40 + rnd(60)) + (5 * supersayian));
_root["fxBigger" + fxs]._alpha = 40 + rnd(60);
reColor(_root["fxBigger" + fxs], "FFFFFF");
fxs++;
}
fxo++;
}
}
function pauseGame() {
_root.attachMovie("pauseWin", "pauseWin", _root.getNextHighestDepth());
pauseWin._x = 276.4;
pauseWin._y = 197.4;
lunchpause = true;
}
function unPauseGame() {
pauseWin.removeMovieClip();
lunchpause = false;
}
function Zoom(dis) {
if (activeCamera) {
charZoom = true;
zoom_in = dis;
}
}
function resetZoom() {
charZoom = false;
zoom_in = true;
camera._x = camera_defualtX;
camera._y = camera_defualtY;
camera._width = camera_defualtScaleX;
camera._height = camera_defualtScaleY;
}
function setmove(side) {
if (side == 1) {
if (action < maxactions) {
icons.nextFrame();
} else {
icons.gotoAndStop(1);
}
rightarrow.gotoAndPlay(2);
} else if (side == 0) {
if (action > 1) {
icons.prevFrame();
} else {
icons.gotoAndStop(maxactions);
}
leftarrow.gotoAndPlay(2);
}
}
function duplicate(object, X, Y, isShot, isEnemy, isBlur, isTeleport, theHex) {
_root.attachMovie(object, (object + "Number") + objects, _root.getNextHighestDepth());
_root[(object + "Number") + objects]._x = X;
_root[(object + "Number") + objects]._y = Y;
if (isShot) {
if (_root.character._xscale == 100) {
_root[(object + "Number") + objects].side = "right";
} else {
_root[(object + "Number") + objects].side = "left";
}
_root[(object + "Number") + objects]._xscale = _root.character._xscale;
}
if (isEnemy) {
_root.enemyObject = object;
_root.enemyNum = objects;
if ((battle == 2) && (level == 1)) {
_root[(object + "Number") + objects].health = 50;
} else {
_root[(object + "Number") + objects].health = 100;
}
_root[(object + "Number") + objects].defence = enemydef;
_root[(object + "Number") + objects].got = false;
_root[(object + "Number") + objects].swapDepths(_root.popCredits);
_root.enemy = _root[(object + "Number") + objects];
}
if ((isTeleport != false) && (isTeleport != undefined)) {
_root[(object + "Number") + objects]._xscale = teleScale;
}
if (isBlur) {
_root[(object + "Number") + objects]._xscale = character._xscale;
}
if ((theHex != undefined) && (theHex != false)) {
reColor(_root[(object + "Number") + objects], theHex);
}
objects++;
}
function rnd(maxnum) {
return(Math.round(Math.random() * maxnum));
}
function addEnemy(enemy, amount, story, theHex) {
i = 0;
while (i < amount) {
rndX = rnd(550);
if (theHex == undefined) {
theHex = false;
}
duplicate("enemy_" + enemy, rndX, 326, false, true, false, false, theHex);
if (story) {
duplicate("created", rndX, 326);
}
i++;
}
}
function learn() {
duplicate("learnwin", Stage.width / 2, Stage.height / 2);
}
function newcoin(cointype, X) {
_root.attachMovie("coin", "coin" + coins, _root.getNextHighestDepth());
_root["coin" + coins]._x = X;
_root["coin" + coins]._y = 350;
_root["coin" + coins].cointype = cointype;
coins++;
}
function newpotion(potiontype, X) {
_root.attachMovie("potion" + potiontype, "potion" + potions, _root.getNextHighestDepth());
_root["potion" + potions]._x = X;
_root["potion" + potions]._y = 350;
_root["potion" + potions].potiontype = potiontype;
potions++;
}
function drinkpotion(potiontype) {
character.gotoAndStop("drink");
character.potionview.potion.gotoAndStop(potiontype);
character.attacking = true;
if (potiontype == 1) {
hp = hp + 50;
newmsg("You have gained HP (+50)");
} else if (potiontype == 2) {
power = power + 20;
newmsg("You have gained Power (+20)");
} else if (potiontype == 3) {
hp = hp + 80;
newmsg("You have gained HP (+80)");
} else if (potiontype == 4) {
power = power + 40;
newmsg("You have gained Power (+40)");
} else if (potiontype == 8) {
hp = hp + 150;
newmsg("You have gained HP (+150)");
} else if (potiontype == 5) {
power = power + 100;
newmsg("You have gained Power (+100)");
} else if (potiontype == 7) {
hp = hp + 100;
power = power + 100;
newmsg("You have gained HP (+100)");
newmsg("You have gained Power (+100)");
} else if (potiontype == 6) {
newmsg(("You have gained HP (+" + (maxhp - hp)) + ")");
newmsg(("You have gained Power (+" + (maxpower - power)) + ")");
hp = maxhp;
power = maxpower;
}
}
function newmsg(msg) {
_root.createTextField("msg" + msgs, _root.getNextHighestDepth(), Stage.width - 210, Stage.height - 25, 200, 80);
_root["msg" + msgs].selectable = false;
_root["msg" + msgs].setNewTextFormat(fontset);
_root["msg" + msgs].embedFonts = true;
_root["msg" + msgs].text = msg;
i = 0;
while (i < (msgs + 1)) {
_root["msg" + i]._y = _root["msg" + i]._y - msgs_space;
i++;
}
msgs++;
}
function makelaba() {
labas = 0;
while (labas < 50) {
_root.attachMovie("labasquare", "labasquare" + labas, _root.getNextHighestDepth());
_root["labasquare" + labas]._x = 250 + random(50);
_root["labasquare" + labas]._y = 142;
_root["labasquare" + labas].gotoAndPlay(random(_root["labasquare" + labas]._totalframes));
labas++;
labas++;
}
}
function removelaba() {
while (labas > -10) {
_root["labasquare" + labas].swapDepths(0);
_root["labasquare" + labas].removeMovieClip();
labas--;
}
}
function checkheight(obj) {
i = 0;
while (i < (rainobjects + 1)) {
if (_root[obj + i]._y < (Stage.height - _root[obj + i]._height)) {
_root[obj + i]._y = _root[obj + i]._y + 10;
} else {
_root[obj + i]._y = random(Stage.height);
}
i++;
}
}
function makeObj(obj, rndX, Y, amount) {
c = 0;
while (c < amount) {
_root.attachMovie(obj, obj + rainobjects, _root.getNextHighestDepth());
_root[obj + rainobjects]._x = _root.rnd(rndX);
_root[obj + rainobjects]._alpha = _root.rnd(100);
_root[obj + rainobjects]._y = Y - _root[obj + rainobjects].height;
rainobjects++;
c++;
}
}
function removerain() {
while (rainobjects > -1) {
_root["rain" + rainobjects].swapDepths(0);
_root["rain" + rainobjects].removeMovieClip();
rainobjects--;
}
}
function removeObjs() {
removelaba();
removerain();
while (coins > -1) {
_root["coin" + coins].swapDepths(0);
_root["coin" + coins].removeMovieClip();
coins--;
}
while (potions > -1) {
_root["potion" + potions].swapDepths(0);
_root["potion" + potions].removeMovieClip();
potions--;
}
while (objects > -1) {
e = 0;
while (e < (enemiesList.length + 1)) {
_root[(("enemy_" + enemiesList[e]) + "Number") + objects].swapDepths(0);
_root[(("enemy_" + enemiesList[e]) + "Number") + objects].removeMovieClip();
e++;
}
objects--;
}
while (msgs > -1) {
_root["msg" + msgs]._visible = false;
_root["msg" + msgs].removeTextField();
msgs--;
}
}
function stopGame() {
_root.nowLearning = true;
_root.lunchpause = true;
}
function playGame() {
_root.nowLearning = false;
_root.lunchpause = false;
}
function takeDamage(t_damage, t_frame, t_pushback, t_xscale) {
if (gameMode == "Normal") {
t_damage = t_damage * 2;
} else if (gameMode == "Hard") {
t_damage = t_damage * 3;
}
if (character._currentframe == 19) {
myDmg = Math.round(t_damage / 2);
} else {
myDmg = Number(t_damage);
_root.stopGame();
_root.character.gotoAndStop(t_frame);
}
if (t_pushback != undefined) {
if (t_xscale == 100) {
_root.character.pushback = t_pushback;
} else {
_root.character.pushback = -t_pushback;
}
}
_root.fx(character._x, character._y, "blood");
_root.hp = _root.hp - myDmg;
myDmg = myDmg + "";
_root.attachMovie("dmg_digits", "dmg_digits" + digits, _root.getNextHighestDepth());
myDigits = _root["dmg_digits" + digits];
myDigits.digit1.gotoAndStop(Number(myDmg.charAt(0)) + 2);
if ((myDmg.charAt(1) != undefined) && (myDmg.charAt(1) != "")) {
myDigits.digit2.gotoAndStop(Number(myDmg.charAt(1)) + 2);
} else {
myDigits.digit2.gotoAndStop(1);
}
if ((myDmg.charAt(2) != undefined) && (myDmg.charAt(2) != "")) {
myDigits.digit3.gotoAndStop(Number(myDmg.charAt(2)) + 2);
} else {
myDigits.digit3.gotoAndStop(1);
}
digits++;
myDigits._x = character._x;
myDigits._y = character._y;
}
function inflictDamage(avoidType) {
myDmg = 0;
if (avoidType == "Pavoid") {
avoidChance = enemy.PavoidChance;
} else {
avoidChance = enemy.avoidChance;
}
if (((_root.character._currentframe == 4) && (_root.character.hits._currentframe == 7)) || ((_root.character._currentframe == 4) && (_root.character.hits._currentframe == 28))) {
if ((random(100) + 1) > (100 - avoidChance)) {
if (avoidType == "Pavoid") {
enemy.gotoAndStop(8);
} else {
enemy.teleport(_root.rnd(Stage.width));
}
} else {
myDmg = Math.round(((5 + _root.supersayian) * level) / (enemy.defence + 1));
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
enemy.gotoAndStop(3);
_root.fx(enemy._x, enemy._y, "punch");
}
} else if ((_root.character._currentframe == 3) && (enemy.hitTest(_root.character.kameha.wave))) {
if (gameMode == "Easy") {
myDmg = (supersayian + 1) / 5;
} else if (gameMode == "Normal") {
myDmg = (supersayian + 1) / 10;
} else if (gameMode == "Hard") {
myDmg = (supersayian + 1) / 20;
}
enemy.gotoAndStop(4);
enemy.burned.gotoAndPlay(1);
_root.fx(enemy._x, enemy._y, "kameha");
} else if ((_root.character._currentframe == 7) && (enemy.hitTest(_root.character.punch.light))) {
if (((random(100) + 1) > (100 - avoidChance)) && (avoidType != "Pavoid")) {
enemy.teleport(_root.rnd(Stage.width));
} else {
myDmg = Math.round(((_root.supersayian + 1) * (level + 1)) / (enemy.defence + 1));
if (_root.character._xscale == 100) {
enemy.leftspeed = 10 * (_root.supersayian + 1);
} else {
enemy.leftspeed = -(10 * (_root.supersayian + 1));
}
enemy.gotoAndStop(3);
_root.fx(enemy._x, enemy._y, "extrapunch");
}
} else if ((((_root.character._currentframe == 15) && (enemy.hitTest(_root.character))) && (_root.character.punch._currentframe >= 51)) && (_root.character.punch._currentframe <= 59)) {
if (((random(100) + 1) > (100 - avoidChance)) && (avoidType != "Pavoid")) {
enemy.teleport(_root.rnd(Stage.width));
} else {
myDmg = Math.round((9 * (_root.level + 1)) / (enemy.defence + 1));
if (_root.character._xscale == 100) {
enemy.leftspeed = 10;
} else {
enemy.leftspeed = -10;
}
enemy.gotoAndStop(3);
_root.fx(enemy._x, enemy._y, "dragonpunch");
}
}
if (myDmg > 0) {
enemy.health = enemy.health - myDmg;
myDmg = myDmg * (enemy.defence + 1);
myDmg = myDmg + "";
_root.attachMovie("dmg_digitsB", "dmg_digits" + digits, _root.getNextHighestDepth());
myDigits = _root["dmg_digits" + digits];
myDigits.digit1.gotoAndStop(Number(myDmg.charAt(0)) + 2);
if ((myDmg.charAt(1) != undefined) && (myDmg.charAt(1) != "")) {
if (myDmg.charAt(1) == ".") {
myDigits.digit2.gotoAndStop(12);
} else {
myDigits.digit2.gotoAndStop(Number(myDmg.charAt(1)) + 2);
}
} else {
myDigits.digit2.gotoAndStop(1);
}
if ((myDmg.charAt(2) != undefined) && (myDmg.charAt(2) != "")) {
myDigits.digit3.gotoAndStop(Number(myDmg.charAt(2)) + 2);
} else {
myDigits.digit3.gotoAndStop(1);
}
digits++;
myDigits._x = (enemy._x - 10) + random(20);
myDigits._y = enemy._y;
myDigits._rotation = myDigits._rotation - 20;
myDigits._rotation = myDigits._rotation + random(40);
}
}
function inflictBall() {
myDmg = Math.round(((_root.supersayian + 1) * _root.level) / (enemy.defence + 1)) * 3;
enemy.health = enemy.health - myDmg;
myDmg = myDmg * (enemy.defence + 1);
myDmg = myDmg + "";
_root.attachMovie("dmg_digitsB", "dmg_digits" + digits, _root.getNextHighestDepth());
myDigits = _root["dmg_digits" + digits];
myDigits.digit1.gotoAndStop(Number(myDmg.charAt(0)) + 2);
if ((myDmg.charAt(1) != undefined) && (myDmg.charAt(1) != "")) {
myDigits.digit2.gotoAndStop(Number(myDmg.charAt(1)) + 2);
} else {
myDigits.digit2.gotoAndStop(1);
}
if ((myDmg.charAt(2) != undefined) && (myDmg.charAt(2) != "")) {
myDigits.digit3.gotoAndStop(Number(myDmg.charAt(2)) + 2);
} else {
myDigits.digit3.gotoAndStop(1);
}
digits++;
myDigits._x = (enemy._x - 10) + random(20);
myDigits._y = enemy._y;
myDigits._rotation = myDigits._rotation - 20;
myDigits._rotation = myDigits._rotation + random(40);
}
rndBG = random(8) + 1;
_root.playBG("battle" + rndBG);
character.gotoAndStop(1);
story = battle;
dup = false;
addon = false;
blocking = false;
icons.stop();
stop();
tv.removeMovieClip();
getEXP = 20;
if (logined) {
actions = icons._totalframes;
} else {
actions = icons._totalframes - 3;
}
msgs = 0;
msgs_space = 20;
var fontset = new TextFormat();
fontset.font = "TNR";
fontset.color = 16777215 /* 0xFFFFFF */;
fontset.align = "right";
fxs = 0;
coinworth = new Array();
coinworth[1] = 10;
coinworth[2] = 20;
coinworth[3] = 50;
coinworth[4] = 100;
coinworth[5] = 200;
hp = maxhp;
power = maxpower;
defe = false;
defep = false;
released = true;
lunchpause = false;
lunchpausecursor._x = 9999;
expbar.bar._xscale = 0;
powertimer = 100;
powercounter = 0;
coins = 0;
potions = 0;
objects = 0;
enemies = 0;
digits = 0;
bulletspeed = new Array();
bulletspeed[0] = 5;
bulletspeed[1] = 6;
bulletspeed[2] = 8;
bulletspeed[3] = 9;
bulletspeed[4] = 10;
powertake = new Array();
powertake[1] = 5;
powertake[2] = 10;
powertake[3] = 10;
atkname = new Array();
atkname[1] = "Energy Ball";
atkname[2] = "Kamehameha";
atkname[3] = "Super Fist";
atkname[4] = "Unmastered Teleport";
atkname[5] = "Super Sayian";
atkname[6] = "Super Sayian 2";
atkname[7] = "Super Sayian 3";
atkname[8] = "Super Sayian 4";
atkpow = new Array();
atkpow[1] = 5;
atkpow[2] = 1;
atkpow[3] = 10;
atkpow[4] = 10;
atkpow[5] = "???";
atkpow[6] = "???";
atkpow[7] = "???";
atkpow[8] = "???";
ep = new Array();
ep[1] = "RADITZ";
ep[2] = "HUMAN";
ep[3] = "SAIBAIMAN";
ep[4] = "NAPA";
ep[5] = "VEGETA";
ep[6] = "FREIZA";
ep[7] = "GERO";
ep[8] = "ANDROID18";
ep[9] = "CELL";
ep[10] = "CELL JUNIOR";
ep[11] = "ENRAGED CELL";
ep[12] = "Majin Vegeta";
fcolors = new Array();
fcolors[1] = "000000";
fcolors[2] = "13DEF4";
fcolors[3] = "FCFC25";
fcolors[4] = "DE6718";
fcolors[5] = "0EE0DF";
fcolors[6] = "CA5792";
fcolors[7] = "00F749";
fcolors[8] = "090ABB";
fcolors[9] = "00912B";
fcolors[10] = "E0F141";
reColor(follower2, fcolors[battle]);
follower1.txt.text = "GOKU";
follower2.txt.text = ep[battle];
canPause = true;
kill_move = false;
addKill._x = (addKill._y = 999);
camera_defualtX = camera._x;
camera_defualtY = camera._y;
camera_defualtScaleX = camera._width;
camera_defualtScaleY = camera._height;
onEnterFrame = function () {
timeB = getTimer();
var _local3 = Math.floor(1000 / (this.timeB - this.timeA));
timeA = timeB;
Math.round((_local3 / 24) * 100);
lag_text.text = ("GAME PERFORMANCE: " + Math.round((_local3 / 24) * 100)) + "%";
lag_bar.bar._xscale = Math.round((_local3 / 24) * 100);
enemy_bar._xscale = enemy.health;
if (supersayian > 0) {
if ((character._currentframe <= 4) || (character._currentframe == 16)) {
electric._x = character._x;
electric.gotoAndStop(supersayian);
electric._alpha = Math.round((power / maxpower) * 100);
if (lunchpause && (character._currentframe != 16)) {
electric.el.stop();
electric.el2.stop();
} else {
electric.el.play();
electric.el2.play();
}
} else {
electric._x = 999;
}
} else {
electric._x = 999;
}
if (charZoom) {
if (zoom_in) {
zoomX = character._x;
zoomY = character._y;
zoomScaleX = 150;
zoomScaleY = 96;
} else if (!zoom_in) {
zoomX = camera_defualtX;
zoomY = camera_defualtY;
zoomScaleX = camera_defualtScaleX;
zoomScaleY = camera_defualtScaleY;
}
if (camera._x < zoomX) {
camera._x = camera._x + ((zoomX - camera._x) / 7);
} else if (camera._x > zoomX) {
camera._x = camera._x - ((camera._x - zoomX) / 7);
}
if (camera._y < zoomY) {
camera._y = camera._y + ((zoomY - camera._y) / 7);
} else if (camera._y > zoomY) {
camera._y = camera._y - ((camera._y - zoomY) / 7);
}
if (camera._width < zoomScaleX) {
camera._width = camera._width + ((zoomScaleX - camera._width) / 7);
} else if (camera._width > zoomScaleX) {
camera._width = camera._width - ((camera._width - zoomScaleX) / 7);
}
if (camera._height < zoomScaleY) {
camera._height = camera._height + ((zoomScaleY - camera._height) / 7);
} else if (camera._height > zoomScaleY) {
camera._height = camera._height - ((camera._height - zoomScaleY) / 7);
}
}
if (supersayian > 1) {
supersayianNum.text = supersayian;
} else {
supersayianNum.text = "";
}
icons.shots.gotoAndStop(supersayian + 1);
icons.kamehas.gotoAndStop(supersayian + 1);
icons.fists.gotoAndStop(1);
skill_text = atkname[icons._currentframe];
skill_cons = atkpow[icons._currentframe];
if ((icons._currentframe == 4) && (level > 4)) {
skill_cons = 1;
skill_text = "Teleport";
}
if (((icons._currentframe == 3) && (supersayian == 3)) && (power >= 50)) {
icons.fists.gotoAndStop(2);
skill_text = "Dragon Fist";
skill_cons = 50;
}
if ((icons._currentframe == 2) && (supersayian == 4)) {
skill_text = "10x Kamehameha";
}
if ((((Key.isDown(80) && (canPause)) && (hp > 0)) && (character._currentframe != 11)) && (!nowLearning)) {
if (pauseWin == undefined) {
pauseGame();
} else {
unPauseGame();
}
canPause = false;
} else if (!Key.isDown(80)) {
canPause = true;
}
if (_root.addon) {
follower1._x = character._x;
follower2._x = _root[(enemyObject + "Number") + enemyNum]._x;
} else {
follower1._x = 9999;
follower2._x = 9999;
}
if ((story == 6) && (battle == 6)) {
supersayian = 1;
sstimer = _root["timer_ss" + supersayian];
sscounter = sstimer;
}
if (character._currentframe == 11) {
if (action == 4) {
icons.gotoAndStop(1);
}
if (!defe) {
removelaba();
defeated.play();
logo._visible = false;
defe = true;
}
if ((Key.isDown(90) && (!defep)) && (defeated._currentframe == defeated._totalframes)) {
resetZoom();
if (battle == 12) {
moveFrame(4);
} else {
moveFrame(3);
}
defep = true;
}
}
if (hp <= 0) {
if (action == 4) {
icons.gotoAndStop(1);
}
if (!defe) {
removelaba();
beaten.play();
defe = true;
}
if ((Key.isDown(90) && (!defep)) && (beaten._currentframe == beaten._totalframes)) {
resetZoom();
if (temporalbattle && (charSelected)) {
moveFrame(3);
charSelected = false;
} else {
moveFrame(3);
}
defep = true;
}
}
i = 0;
while (i < (labas + 1)) {
if (lunchpause) {
_root["labasquare" + i].stop();
} else {
_root["labasquare" + i].play();
}
i++;
}
if (!lunchpause) {
checkheight("rain");
c = 0;
while (c < (msgs + 1)) {
if (_root["msg" + c]._alpha <= 0) {
_root["msg" + c]._visible = false;
_root["msg" + c].selectable = false;
_root["msg" + c].removeTextField();
} else {
_root["msg" + c]._alpha--;
}
c++;
}
if (powercounter >= powertimer) {
power++;
powercounter = 0;
} else {
powercounter++;
}
if (power >= maxpower) {
power = maxpower;
}
}
i = 0;
while (i < (coins + 1)) {
if ((_root["coin" + i].hitTest(_root.character) && (_root["coin" + i]._currentframe < 12)) && (Key.isDown(32))) {
_root["coin" + i].gotoAndPlay(12);
_root.zennie = _root.zennie + _root.coinworth[_root["coin" + i].cointype];
newmsg(("You have gained zennie (+" + _root.coinworth[_root["coin" + i].cointype]) + ")");
}
if (_root["coin" + i]._x > (Stage.width - _root["coin" + i]._width)) {
_root["coin" + i]._x = Stage.width - _root["coin" + i]._width;
} else if (_root["coin" + i]._x < _root["coin" + i]._width) {
_root["coin" + i]._x = _root["coin" + i]._width;
}
i++;
}
p = 0;
while (p < (potions + 1)) {
if ((_root["potion" + p].hitTest(_root.character) && (Key.isDown(32))) && (character._currentframe != 11)) {
drinkpotion(_root["potion" + p].potiontype);
duplicate("drankpotion", _root["potion" + p]._x, _root["potion" + p]._y);
_root["potion" + p].swapDepths(0);
_root["potion" + p].removeMovieClip();
}
if (_root["potion" + p]._x > (Stage.width - _root["coin" + p]._width)) {
_root["potion" + p]._x = Stage.width - _root["coin" + p]._width;
} else if (_root["potion" + p]._x < _root["coin" + i]._width) {
_root["potion" + p]._x = _root["potion" + p]._width;
}
p++;
}
if (coins <= 0) {
coins = 0;
}
if (potions <= 0) {
potions = 0;
}
if (((battle == 2) || (battle == 3)) || (battle == 10)) {
kills.text = (killed + " / ") + need;
if (killed >= need) {
_root.lunchpause = true;
_root.character.gotoAndStop(11);
}
if (kill_move) {
if (addKill.hitTest(kill_place)) {
killed++;
addKill._x = (addKill._y = 999);
kill_move = false;
} else {
addKill._alpha--;
if (addKill._x < kill_place._x) {
addKill._x = addKill._x + ((kill_place._x - addKill._x) / 7);
} else if (addKill._x > kill_place._x) {
addKill._x = addKill._x - ((addKill._x - kill_place._x) / 7);
}
if (addKill._y < kill_place._y) {
addKill._y = addKill._y + ((kill_place._y - addKill._y) / 7);
} else if (addKill._y > kill_place._y) {
addKill._y = addKill._y - ((addKill._y - kill_place._y) / 7);
}
}
}
}
if ((((!Key.isDown(68)) && (!Key.isDown(65))) && (!Key.isDown(88))) && (!Key.isDown(90))) {
released = true;
}
if (character._currentframe < 15) {
wallspace = _root.character._width;
rightspace = Stage.width - wallspace;
if ((character._x > rightspace) && (character._currentframe != 3)) {
character._x = rightspace;
} else if ((character._x < wallspace) && (character._currentframe != 3)) {
character._x = wallspace;
}
}
if (level <= actions) {
maxactions = level;
} else {
maxactions = actions;
}
if (Key.isDown(67) && (!lunchpause)) {
if ((character._currentframe == 1) || (character._currentframe == 19)) {
character.gotoAndStop(19);
blocking = true;
}
} else if (blocking) {
character.gotoAndStop(1);
blocking = false;
}
if (((Key.isDown(90) && (!character.attacking)) && (released)) && (!lunchpause)) {
if ((character.hits._currentframe > 7) && (character.hits._currentframe < 20)) {
character.hits.gotoAndPlay(25);
}
character.gotoAndStop(4);
character.hitting = true;
released = false;
}
if (Key.isDown(88)) {
if ((((action == 1) && (power >= powertake[1])) && (released)) && (!lunchpause)) {
character.gotoAndStop(2);
character.attacking = true;
if ((character.shoot._currentframe > 10) && (_root.character.shoot._currentframe < 15)) {
character.shoot.gotoAndPlay(5);
}
released = false;
} else if ((action == 2) && (!lunchpause)) {
character.gotoAndStop(3);
character.attacking = true;
if ((character.kameha._currentframe < 50) && (power > 0)) {
character.kameha.nextFrame();
}
if ((character.kameha._currentframe > 42) && (character.kameha._currentframe < 45)) {
if (power > 0) {
power--;
} else if (character.kameha._currentframe < 50) {
character.gotoAndStop(1);
}
}
} else if ((((action == 3) && (power >= powertake[3])) && (released)) && (!lunchpause)) {
if ((supersayian == 3) && (power >= 50)) {
character.gotoAndStop(15);
character.attacking = true;
power = power - 50;
released = false;
} else {
character.gotoAndStop(7);
character.attacking = true;
power = power - powertake[3];
released = false;
}
} else if ((action == 4) && (!lunchpause)) {
if (((level >= 5) && (power >= 1)) || ((level < 5) && (power >= powertake[2]))) {
lunchpausecursor._x = _root.character._x;
lunchpause = true;
}
} else if (((action == 5) && (released)) && (!lunchpause)) {
if ((supersayian == 0) && (zcounter >= ztimer)) {
fx(character._x, character._y, "super");
if (logined && (level > action)) {
icons.nextFrame();
}
character.gotoAndStop(16);
stopGame();
} else if (supersayian == 1) {
fx(character._x, character._y, "superout");
supersayian = 0;
zcounter = 0;
duplicate("ssout", character._x, character._y);
}
released = false;
} else if (((action == 6) && (released)) && (!lunchpause)) {
if ((supersayian == 1) && (zcounter >= ztimer)) {
fx(character._x, character._y, "super");
if (logined && (level > action)) {
icons.nextFrame();
}
character.gotoAndStop(16);
stopGame();
} else if (supersayian == 2) {
fx(character._x, character._y, "superout");
supersayian = 0;
zcounter = 0;
duplicate("ssout", character._x, character._y);
}
released = false;
} else if (((action == 7) && (released)) && (!lunchpause)) {
if ((supersayian == 2) && (zcounter >= ztimer)) {
fx(character._x, character._y, "super");
if (logined && (level > action)) {
icons.nextFrame();
}
character.gotoAndStop(16);
stopGame();
} else if (supersayian == 3) {
fx(character._x, character._y, "superout");
supersayian = 0;
zcounter = 0;
duplicate("ssout", character._x, character._y);
}
released = false;
} else if (((action == 8) && released) && (!lunchpause)) {
if ((supersayian == 3) && (zcounter >= ztimer)) {
fx(character._x, character._y, "super");
if (logined && (level > action)) {
icons.nextFrame();
}
character.gotoAndStop(16);
stopGame();
} else if ((supersayian == 4) && released) {
fx(character._x, character._y, "superout");
supersayian = 0;
zcounter = 0;
duplicate("ssout", character._x, character._y);
}
released = false;
}
}
if (!Key.isDown(88)) {
if ((((action == 4) && (lunchpause)) && (character._currentframe == 1)) && (pauseWin == undefined)) {
if (lunchpausecursor._x != character._x) {
if (character._currentframe != 6) {
if (level >= 5) {
power--;
} else {
power = power - powertake[2];
}
}
character.gotoAndStop(6);
} else {
lunchpause = false;
lunchpausecursor._x = 9999;
activescreen("play");
}
}
if (((action == 2) && (character.kameha._currentframe > 40)) && (character.kameha._currentframe < 50)) {
character.kameha.gotoAndPlay(50);
} else if (action == 2) {
if ((character.kameha._currentframe > 1) && (character.kameha._currentframe < 50)) {
character.kameha.prevFrame();
} else if (character._currentframe == 3) {
character.gotoAndStop(1);
}
}
}
if ((character._currentframe == 7) && (character.punch._currentframe > 10)) {
if (character._xscale == 100) {
character._x = character._x + ((supersayian + 2) * 5);
} else if (character._xscale == -100) {
character._x = character._x - ((supersayian + 2) * 5);
}
}
if (zcounter < ztimer) {
_root.icons["z" + (supersayian + 1)]._alpha = 50;
_root.icons["z" + (supersayian - 4)]._alpha = 50;
_root.icons["z" + (supersayian - 3)]._alpha = 50;
_root.icons["z" + (supersayian - 2)]._alpha = 50;
_root.icons["z" + (supersayian - 1)]._alpha = 50;
_root.icons["z" + supersayian]._alpha = 50;
_root.icons["z" + (supersayian + 2)]._alpha = 50;
_root.icons["z" + (supersayian + 3)]._alpha = 50;
_root.icons["z" + (supersayian + 4)]._alpha = 50;
} else {
_root.icons["z" + (supersayian + 1)]._alpha = 100;
_root.icons["z" + (supersayian - 4)]._alpha = 50;
_root.icons["z" + (supersayian - 3)]._alpha = 50;
_root.icons["z" + (supersayian - 2)]._alpha = 50;
_root.icons["z" + (supersayian - 1)]._alpha = 50;
_root.icons["z" + supersayian]._alpha = 100;
_root.icons["z" + (supersayian + 2)]._alpha = 50;
_root.icons["z" + (supersayian + 3)]._alpha = 50;
_root.icons["z" + (supersayian + 4)]._alpha = 50;
}
action = icons._currentframe;
if (((Key.isDown(68) && (released)) && (!lunchpause)) && (!character.attacking)) {
setmove(1);
released = false;
} else if (((Key.isDown(65) && (released)) && (!lunchpause)) && (!character.attacking)) {
setmove(0);
released = false;
}
hpscale = Math.round((hp / maxhp) * 100);
if (health_bar._xscale > hpscale) {
health_bar._xscale--;
} else if (health_bar._xscale < hpscale) {
health_bar._xscale++;
}
powerscale = Math.round((power / maxpower) * 100);
if (power_bar._xscale > powerscale) {
power_bar._xscale--;
} else if (power_bar._xscale < powerscale) {
power_bar._xscale++;
}
if (_root.hp >= _root.maxhp) {
_root.hp = _root.maxhp;
}
if (_root.power >= _root.maxpower) {
_root.power = _root.maxpower;
}
if (_root.power <= 0) {
_root.power = 0;
}
if (_root.hp <= 0) {
_root.hp = 0;
character.gotoAndStop(8);
lunchpause = true;
}
if ((expbar.bar._xscale >= 100) && (!defep)) {
_root.level++;
_root.experience = _root.experience - 100;
_root.maxhp = _root.maxhp + Math.round(_root.level * 10);
_root.maxpower = _root.maxpower + Math.round(_root.level * 3);
expbar.bar._xscale = 0;
if (level <= actions) {
learn();
}
level_mask.gotoAndPlay(2);
}
if (experience <= 0) {
experience = 0;
}
if (expbar.bar._xscale > experience) {
expbar.bar._xscale--;
} else if (expbar.bar._xscale < experience) {
expbar.bar._xscale++;
}
expText._x = 75.5 + expbar.bar._xscale;
expText.txt.text = expbar.bar._xscale + "%";
levelText.text = "Level " + level;
expshow = expbar.bar._xscale + " EXP";
levelshow = "Level " + level;
zennieshow = zennie + " Zennie";
hpshow = ((hp + "/") + maxhp) + " HP";
powershow = ((power + "/") + maxpower) + " MP";
if (supersayian > 0) {
z.bar._yscale = Math.round((sscounter / sstimer) * 100);
if (!lunchpause) {
sscounter--;
}
}
if ((sscounter <= 0) && (supersayian > 0)) {
supersayian = 0;
zcounter = 0;
duplicate("ssout", character._x, character._y);
}
if (maxactions > 4) {
z._alpha = 100;
if (supersayian == 0) {
z.bar._yscale = Math.round((zcounter / ztimer) * 100);
}
if (zcounter < ztimer) {
if (!lunchpause) {
zcounter++;
}
}
} else if (battle == 4) {
z._alpha = 100;
} else {
z._alpha = 50;
}
};
if (battle == 1) {
if (level == 1) {
learn();
}
enemydef = 1;
addEnemy("raditz", 1);
bgg.gotoAndStop(2);
} else if (battle == 2) {
killed = 0;
need = 10;
enemydef = 0;
addEnemy("fighter", 1, true);
bgg.gotoAndStop(4);
} else if (battle == 3) {
killed = 0;
need = 5;
enemydef = 1;
addEnemy("saibaiman", 1, true);
bgg.gotoAndStop(8);
} else if (battle == 4) {
enemydef = 4;
addEnemy("napa", 1);
bgg.gotoAndStop(3);
} else if (battle == 5) {
enemydef = 6;
addEnemy("vegeta", 1);
bgg.gotoAndStop(7);
} else if (battle == 6) {
enemydef = 10;
addEnemy("frieza", 1);
bgg.gotoAndStop(5);
labas = 0;
makelaba(50);
} else if (battle == 7) {
enemydef = 11;
addEnemy("gero", 1);
bgg.gotoAndStop(3);
rainobjects = 0;
makeObj("rain", Stage.width, 0, 100);
} else if (battle == 8) {
enemydef = 11;
addEnemy("android18", 1);
bgg.gotoAndStop(6);
} else if (battle == 9) {
enemydef = 15;
addEnemy("cell", 1);
bgg.gotoAndStop(1);
} else if (battle == 10) {
killed = 0;
need = 5;
enemydef = 5;
addEnemy("cellkid", 1, true);
bgg.gotoAndStop(1);
} else if (battle == 11) {
enemydef = 20;
addEnemy("cell", 1);
bgg.gotoAndStop(1);
} else if (battle == 12) {
enemydef = 30;
addEnemy("majinvegeta", 1);
bgg.gotoAndStop(7);
}
enemiesList = new Array();
enemiesList[0] = "raditz";
enemiesList[1] = "fighter";
enemiesList[2] = "saiabaiman";
enemiesList[3] = "napa";
enemiesList[4] = "vegeta";
enemiesList[5] = "frieza";
enemiesList[6] = "gero";
enemiesList[7] = "android18";
enemiesList[8] = "cellkid";
enemiesList[9] = "cell";
enemiesList[10] = "saibaiman";
enemiesList[11] = "majinvegeta";
Elist = new Array();
Elist[0] = "RADITZ";
Elist[1] = "HUMANS";
Elist[2] = "SAIBAIMANS";
Elist[3] = "NAPA";
Elist[4] = "VEGETA";
Elist[5] = "FRIEZA";
Elist[6] = "GERO";
Elist[7] = "ANDROID 18";
Elist[8] = "CELL";
Elist[9] = "CELL KIDS";
Elist[10] = "ENRAGED CELL";
Elist[11] = "MAJIN VEGETA";
enemy_text = ep[battle];
Instance of Symbol 1623 MovieClip "character" in Frame 6
onClipEvent (load) {
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
attacking = false;
hitting = false;
pushback = 0;
}
onClipEvent (enterFrame) {
_x = (_x + pushback);
if (pushback > 0) {
pushback--;
} else if (pushback < 0) {
pushback++;
}
if (!_root.lunchpause) {
speed = 5 + _root.supersayian;
if ((Key.isDown(39) && (!attacking)) && (!hitting)) {
_x = (_x + speed);
_xscale = 100;
if (_currentframe != 19) {
this.gotoAndStop(1);
}
animatewalk();
} else if ((Key.isDown(37) && (!attacking)) && (!hitting)) {
_x = (_x - speed);
_xscale = -100;
if (_currentframe != 19) {
this.gotoAndStop(1);
}
animatewalk();
} else if (((!Key.isDown(37)) && (!Key.isDown(39))) && (walk._currentframe > 1)) {
walk.prevFrame();
}
}
}
Instance of Symbol 1627 MovieClip "lunchpausecursor" in Frame 6
onClipEvent (enterFrame) {
speed = 5 + _root.supersayian;
if (_root.lunchpause) {
if (Key.isDown(39)) {
_x = (_x + speed);
} else if (Key.isDown(37)) {
_x = (_x - speed);
}
if (_x != _root.character._x) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
Frame 7
stop();
info._visible = false;
_root.createEmptyMovieClip("tv", 100);
tv.lineStyle(1, 0, 15);
i = 0;
while (i < Stage.height) {
tv.moveTo(0, i);
tv.lineTo(Stage.width, i);
i = i + 2;
}
if (hp > 0) {
story++;
battle++;
fr.gotoAndStop(2);
}
_root.playBG("forward");
skills.text = "";
i = 1;
while (i < (level + 1)) {
if ((i <= 5) || ((i > 5) && (logined))) {
skills.text = skills.text + (atkname[i] + newline);
}
i++;
}
levelt.text = ((level + " [ ") + experience) + " EXP ]";
onEnterFrame = function () {
if (Key.isDown(90)) {
if (!save_slot._visible) {
onEnterFrame = null;
moveFrame(2);
}
}
};
function loadSlots(amount) {
i = 1;
while (i < (amount + 1)) {
_root["slot" + i] = SharedObject.getLocal("DBZ-PF_slot" + i);
if ((_root["slot" + i].data.slotname == undefined) || (_root["slot" + i].data.slotname == "- - - -")) {
_root["slot" + i].data.slotname = "- - - -";
_root["slot" + i].flush;
}
if (_root["slot" + i].data.gameMode == undefined) {
_root["slotBG_" + i].gotoAndStop(1);
} else {
_root["slotBG_" + i].gotoAndStop(_root["slot" + i].data.gameMode);
}
_root["slotName_" + i] = _root["slot" + i].data.slotname;
_root["slotNameText_" + i].text = "Slot Name: " + _root["slotName_" + i];
_root["slotLevelText_" + i].text = "Level: ";
if (_root["slot" + i].data.level == undefined) {
_root["slotLevelText_" + i].text = _root["slotLevelText_" + i].text + "???";
} else {
_root["slotLevelText_" + i].text = _root["slotLevelText_" + i].text + _root["slot" + i].data.level;
}
i++;
}
}
function saveSlot(slot, slotname) {
_root["slot" + slot].data.slotname = slotname;
_root["slot" + slot].data.story = _root.story;
_root["slot" + slot].data.battle = _root.battle;
_root["slot" + slot].data.level = _root.level;
_root["slot" + slot].data.experience = _root.experience;
_root["slot" + slot].data.maxhp = _root.maxhp;
_root["slot" + slot].data.maxpower = _root.maxpower;
_root["slot" + slot].data.timer_ss1 = _root.timer_ss1;
_root["slot" + slot].data.timer_ss2 = _root.timer_ss2;
_root["slot" + slot].data.timer_ss3 = _root.timer_ss3;
_root["slot" + slot].data.timer_ss4 = _root.timer_ss4;
_root["slot" + slot].data.ztimer = _root.ztimer;
_root["slot" + slot].data.zennie = _root.zennie;
_root["slot" + slot].data.gameMode = _root.gameMode;
_root["slot" + slot].flush;
}
black._visible = false;
save_slot._visible = false;
loadSlots(3);
Frame 8
playBG("intro");
_root.createEmptyMovieClip("tv", 100);
tv.lineStyle(1, 0, 15);
i = 0;
while (i < Stage.height) {
tv.moveTo(0, i);
tv.lineTo(Stage.width, i);
i = i + 2;
}
_root._level999.gameEnd();
Symbol 9 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 9
stop();
Symbol 112 MovieClip Frame 55
_root.duplicate("majinExplosion", _root.character._x, _root.character._y);
Symbol 112 MovieClip Frame 69
stop();
_parent.gotoAndStop(1);
Symbol 112 MovieClip Frame 94
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "punchhit");
}
play();
Symbol 112 MovieClip Frame 99
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "punchhit");
}
play();
Symbol 112 MovieClip Frame 100
if (this.hitTest(_root.character)) {
if (_root.rnd(2) == 1) {
this.gotoAndPlay(95);
}
}
Symbol 112 MovieClip Frame 104
stop();
_parent.gotoAndStop(1);
Symbol 112 MovieClip Frame 130
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(8 - _root.supersayian, "punchfallhit", 5, _parent._xscale);
}
play();
Symbol 112 MovieClip Frame 136
stop();
_parent.gotoAndStop(1);
Symbol 112 MovieClip Frame 168
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "upperpunchhit");
}
play();
Symbol 112 MovieClip Frame 177
stop();
_parent.gotoAndStop(1);
Symbol 112 MovieClip Frame 200
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(4 - _root.supersayian, "slip");
}
play();
Symbol 112 MovieClip Frame 210
stop();
_parent.gotoAndStop(1);
Symbol 112 MovieClip Frame 245
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "punchhit");
}
play();
Symbol 112 MovieClip Frame 251
stop();
_parent.gotoAndStop(1);
Symbol 112 MovieClip Frame 282
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "punchfallhit", 10, _parent._xscale);
}
play();
Symbol 112 MovieClip Frame 286
stop();
_parent.gotoAndStop(1);
Symbol 115 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 115 MovieClip Frame 4
stop();
_parent.gotoAndStop(1);
Symbol 119 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 124 MovieClip Frame 5
stop();
Symbol 132 MovieClip Frame 1
this.gotoAndStop(_root.supersayian + 1);
Symbol 133 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 141 MovieClip Frame 1
this.gotoAndStop(_root.supersayian + 1);
Symbol 164 MovieClip Frame 1
_root.playFX("deflect");
Symbol 164 MovieClip Frame 20
stop();
_parent.gotoAndStop(1);
Symbol 172 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 172 MovieClip Frame 10
stop();
_parent.gotoAndStop(1);
Symbol 172 MovieClip Frame 15
stop();
_parent.gotoAndStop(1);
Symbol 173 MovieClip [enemy_majinvegeta] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
function teleport(X) {
_root.playFX("teleport");
_root.teleScale = _xscale;
_root.duplicate("teleport_majinvegeta", _x, _y, false, false, true);
_x = X;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
blockChance = 40;
avoidChance = 40;
PavoidChance = 40;
onEnterFrame = function () {
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
_root.lunchpause = true;
_root.character.gotoAndStop(11);
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(6), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(4, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(5);
health = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage("Pavoid");
}
}
} else {
atk.stop();
}
};
Symbol 173 MovieClip [enemy_majinvegeta] Frame 2
atk.gotoAndPlay("a" + _root.rnd(7));
Symbol 173 MovieClip [enemy_majinvegeta] Frame 8
avoid.gotoAndPlay("a" + _root.rnd(3));
Symbol 204 MovieClip Frame 6
_root.playFX("punch" + (random(3) + 1));
Symbol 204 MovieClip Frame 7
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(4 - _root.supersayian, "punchhit");
}
play();
Symbol 204 MovieClip Frame 14
stop();
_parent.gotoAndStop(1);
Symbol 204 MovieClip Frame 29
_root.playFX("punch" + (random(3) + 1));
Symbol 204 MovieClip Frame 30
stop();
if (this.hitSpot.hitTest(_root.character)) {
if (_root.rnd(2) == 1) {
chosen = "kneehit";
} else {
chosen = "punchfallhit";
}
_root.takeDamage(4 - _root.supersayian, chosen, 5, _parent._xscale);
}
play();
Symbol 204 MovieClip Frame 34
stop();
_parent.gotoAndStop(1);
Symbol 204 MovieClip Frame 50
_root.playFX("punch" + (random(3) + 1));
Symbol 204 MovieClip Frame 51
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(4 - _root.supersayian, "punchhit");
}
play();
Symbol 204 MovieClip Frame 57
stop();
_parent.gotoAndStop(1);
Symbol 204 MovieClip Frame 78
_root.playFX("punch" + (random(3) + 1));
Symbol 204 MovieClip Frame 80
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(4 - _root.supersayian, "slip");
}
play();
Symbol 204 MovieClip Frame 90
stop();
_parent.gotoAndStop(1);
Symbol 204 MovieClip Frame 117
_root.playFX("punch" + (random(3) + 1));
Symbol 204 MovieClip Frame 118
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(2 - _root.supersayian, "punchhit");
}
play();
Symbol 204 MovieClip Frame 121
_root.playFX("punch" + (random(3) + 1));
Symbol 204 MovieClip Frame 122
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(2 - _root.supersayian, "kneehit");
}
play();
Symbol 204 MovieClip Frame 125
if (!this.hitTest(_root.character)) {
stop();
_parent.gotoAndStop(1);
}
Symbol 204 MovieClip Frame 131
_root.playFX("punch" + (random(3) + 1));
Symbol 204 MovieClip Frame 132
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(2 - _root.supersayian, "punchhit");
}
play();
Symbol 204 MovieClip Frame 135
_root.playFX("punch" + (random(3) + 1));
Symbol 204 MovieClip Frame 136
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(2 - _root.supersayian, "kneehit");
}
play();
Symbol 204 MovieClip Frame 141
stop();
_parent.gotoAndStop(1);
Symbol 208 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 208 MovieClip Frame 4
stop();
_parent.gotoAndStop(1);
Symbol 210 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 223 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 223 MovieClip Frame 27
stop();
Symbol 226 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 231 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 231 MovieClip Frame 10
stop();
_parent.gotoAndStop(1);
Symbol 231 MovieClip Frame 15
stop();
_parent.gotoAndStop(1);
Symbol 232 MovieClip [enemy_vegeta] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
function teleport(X) {
_root.playFX("teleport");
_root.teleScale = _xscale;
_root.duplicate("teleport_vegeta", _x, _y, false, false, true);
_x = X;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
blockChance = 70;
avoidChance = 0;
PavoidChance = 40;
onEnterFrame = function () {
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
_root.lunchpause = true;
_root.character.gotoAndStop(11);
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(6), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(4, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(5);
health = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage("Pavoid");
}
}
} else {
atk.stop();
}
};
Symbol 232 MovieClip [enemy_vegeta] Frame 2
atk.gotoAndPlay("a" + _root.rnd(5));
Symbol 232 MovieClip [enemy_vegeta] Frame 8
avoid.gotoAndPlay("a" + _root.rnd(3));
Symbol 266 MovieClip Frame 4
_root.playFX("punch" + (random(3) + 1));
Symbol 266 MovieClip Frame 7
stop();
if (this.foot.hitTest(_root.character)) {
_root.takeDamage(4 - _root.supersayian, "kneehit", 5, _parent._xscale);
}
play();
Symbol 266 MovieClip Frame 11
stop();
if (_root.rnd(2) == 1) {
this.gotoAndPlay(25);
} else {
play();
}
Symbol 266 MovieClip Frame 16
stop();
_parent.gotoAndStop(1);
Symbol 266 MovieClip Frame 32
_root.playFX("punch" + (random(3) + 1));
Symbol 266 MovieClip Frame 34
stop();
if (this.foot.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "kneehit", 15, _parent._xscale);
}
play();
Symbol 266 MovieClip Frame 39
stop();
_parent.gotoAndStop(1);
Symbol 266 MovieClip Frame 51
_root.playFX("punch" + (random(3) + 1));
Symbol 266 MovieClip Frame 52
stop();
if (this.arm.hitTest(_root.character)) {
_root.takeDamage(4 - _root.supersayian, "upperpunchhit", 5, _parent._xscale);
}
play();
Symbol 266 MovieClip Frame 59
stop();
_parent.gotoAndStop(1);
Symbol 272 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 272 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 277 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 284 MovieClip Frame 13
stop();
Symbol 287 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 288 MovieClip Frame 20
stop();
_parent.gotoAndStop(1);
Symbol 289 MovieClip [enemy_android18] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
blockChance = 70;
onEnterFrame = function () {
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
_root.lunchpause = true;
_root.character.gotoAndStop(11);
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(6), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(3, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(5);
health = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 289 MovieClip [enemy_android18] Frame 2
atk.gotoAndPlay("a" + _root.rnd(2));
Symbol 319 MovieClip Frame 4
_root.playFX("punch" + (random(3) + 1));
Symbol 319 MovieClip Frame 5
stop();
if (this.arm.hitTest(_root.character)) {
_root.takeDamage(2 - _root.supersayian, "punchhit");
}
play();
Symbol 319 MovieClip Frame 12
stop();
_parent.gotoAndStop(1);
Symbol 319 MovieClip Frame 20
_root.playFX("punch" + (random(3) + 1));
Symbol 319 MovieClip Frame 22
stop();
if (this.foot.hitTest(_root.character)) {
_root.takeDamage(2 - _root.supersayian, "kneehit");
}
play();
Symbol 319 MovieClip Frame 27
stop();
_parent.gotoAndStop(1);
Symbol 319 MovieClip Frame 34
if (this.hitTest(_root.character)) {
onEnterFrame = function () {
_parent._x = _root.character._x;
};
}
Symbol 319 MovieClip Frame 37
_root.playFX("punch" + (random(3) + 1));
Symbol 319 MovieClip Frame 62
stop();
if (this.body.hitTest(_root.character)) {
_root.takeDamage(30 / (_root.supersayian + 1), "punchfallhit");
}
play();
Symbol 319 MovieClip Frame 70
stop();
_parent.bomb = 1;
_parent.health = 0;
_parent.gotoAndStop(1);
Symbol 323 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 323 MovieClip Frame 4
stop();
_parent.gotoAndStop(1);
Symbol 325 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 342 MovieClip Frame 29
stop();
_parent.removeMovieClip();
Symbol 345 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 351 MovieClip Frame 9
stop();
Symbol 352 MovieClip [enemy_saibaiman] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
blockChance = 20;
avoidChance = 0;
onEnterFrame = function () {
if (_root.hp <= 0) {
this.gotoAndStop(7);
if (!_root.dup) {
_root.addEnemy("saibaiman", (_root.need - _root.killed) - 1);
_root.dup = true;
}
}
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
if ((_root.story != 3) && (_root.battle != 3)) {
_root.character.gotoAndStop(11);
_root.lunchpause = true;
}
if (_root.battle == 3) {
if (_root.killed < _root.need) {
if (_root.addKill._x != 999) {
_root.killed++;
}
_root.addKill._alpha = 100;
_root.addKill._x = _x;
_root.addKill._y = _y;
_root.kill_move = true;
}
if (_root.killed < _root.need) {
_root.addEnemy("saibaiman", 1, true);
}
peopleleft = _root.need - _root.killed;
if (peopleleft == 0) {
_root.newmsg("Mission Completed");
}
}
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(8), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(3, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(5);
if (bomb == 1) {
explo.gotoAndPlay(12);
bomb = 0;
}
health = 0;
}
if (((_root.hp <= 0) && (_root.story == 10)) && (_root.battle == 10)) {
_root.dupleft = (_root.need - _root.killed) - 1;
} else {
_root.dupleft = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 352 MovieClip [enemy_saibaiman] Frame 2
if (_root.rnd(50) == 25) {
atk.gotoAndPlay("a3");
} else {
atk.gotoAndPlay("a" + _root.rnd(2));
}
Symbol 384 MovieClip Frame 10
_root.playFX("punch" + (random(3) + 1));
Symbol 384 MovieClip Frame 11
stop();
if (this.foot.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "slip");
}
play();
Symbol 384 MovieClip Frame 15
stop();
_parent.gotoAndStop(1);
Symbol 384 MovieClip Frame 26
_root.playFX("punch" + (random(3) + 1));
Symbol 384 MovieClip Frame 28
stop();
if (this.arm.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "punchhit");
}
play();
Symbol 384 MovieClip Frame 33
stop();
_parent.gotoAndStop(1);
Symbol 384 MovieClip Frame 40
_root.playFX("punch" + (random(3) + 1));
Symbol 384 MovieClip Frame 42
stop();
if (this.foot.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "kneehit");
}
play();
Symbol 384 MovieClip Frame 48
stop();
_parent.gotoAndStop(1);
Symbol 389 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 389 MovieClip Frame 4
stop();
_parent.gotoAndStop(1);
Symbol 391 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 400 MovieClip Frame 13
stop();
Symbol 403 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 412 MovieClip Frame 15
stop();
Symbol 426 MovieClip Frame 20
stop();
_parent.removeMovieClip();
_parent.unloadMovie();
Symbol 427 MovieClip [enemy_cellkid] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
onEnterFrame = function () {
if (_root.hp <= 0) {
this.gotoAndStop(7);
if (!_root.dup) {
_root.addEnemy("cellkid", (_root.need - _root.killed) - 1);
_root.dup = true;
}
}
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
if ((_root.story != 10) && (_root.battle != 10)) {
_root.character.gotoAndStop(11);
_root.lunchpause = true;
}
if (_root.battle == 10) {
if (_root.killed < _root.need) {
if (_root.addKill._x != 999) {
_root.killed++;
}
_root.addKill._alpha = 100;
_root.addKill._x = _x;
_root.addKill._y = _y;
_root.kill_move = true;
}
if (_root.killed < _root.need) {
_root.addEnemy("cellkid", 1, true);
}
peopleleft = _root.need - _root.killed;
if (peopleleft == 0) {
_root.newmsg("Mission Completed");
}
}
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(8), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(4, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(8);
health = 0;
}
if (((_root.hp <= 0) && (_root.story == 8)) && (_root.battle == 8)) {
_root.dupleft = (_root.need - _root.killed) - 1;
} else {
_root.dupleft = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 427 MovieClip [enemy_cellkid] Frame 2
atk.gotoAndPlay("a" + _root.rnd(3));
Symbol 456 MovieClip Frame 4
_root.playFX("punch" + (random(3) + 1));
Symbol 456 MovieClip Frame 5
stop();
if (this.arm.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "punchhit");
}
play();
Symbol 456 MovieClip Frame 8
if (_root.rnd(2) == 1) {
this.play();
} else {
_parent.gotoAndStop(1);
}
Symbol 456 MovieClip Frame 9
_root.playFX("punch" + (random(3) + 1));
Symbol 456 MovieClip Frame 11
stop();
if (this.arm.hitTest(_root.character)) {
_root.takeDamage(6 - _root.supersayian, "punchhit");
}
play();
Symbol 456 MovieClip Frame 16
stop();
_parent.gotoAndStop(1);
Symbol 456 MovieClip Frame 23
_root.playFX("punch" + (random(3) + 1));
Symbol 456 MovieClip Frame 24
stop();
if (this.foot.hitTest(_root.character)) {
_root.takeDamage(16 - _root.supersayian, "kneehit", 5, _parent._xscale);
}
play();
Symbol 456 MovieClip Frame 27
stop();
if (_root.rnd(2) == 1) {
this.gotoAndPlay(48);
} else {
play();
}
Symbol 456 MovieClip Frame 29
if (_root.rnd(2) == 1) {
this.play();
} else {
_parent.gotoAndStop(1);
}
Symbol 456 MovieClip Frame 33
_root.playFX("punch" + (random(3) + 1));
Symbol 456 MovieClip Frame 35
stop();
if (this.foot.hitTest(_root.character)) {
_root.takeDamage(16 - _root.supersayian, "punchfallhit", 15, _parent._xscale);
}
play();
Symbol 456 MovieClip Frame 42
stop();
_parent.gotoAndStop(1);
Symbol 462 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 462 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 464 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 470 MovieClip Frame 9
stop();
Symbol 473 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 496 MovieClip Frame 13
stop();
Symbol 503 MovieClip Frame 20
stop();
_parent.removeMovieClip();
_parent.unloadMovie();
Symbol 504 MovieClip [enemy_cell] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
function teleport(X) {
_root.playFX("teleport");
_root.teleScale = _xscale;
_root.duplicate("teleport_cell", _x, _y, false, false, true);
_x = X;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
counter = 0;
avoidChance = 40;
onEnterFrame = function () {
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
_root.character.gotoAndStop(11);
_root.lunchpause = true;
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(8), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(5, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
if ((_root.battle == 9) && (_root.story == 9)) {
this.gotoAndStop(8);
} else {
this.gotoAndStop(5);
}
health = 0;
}
if (_root.hp <= 0) {
this.gotoAndStop(7);
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 504 MovieClip [enemy_cell] Frame 2
atk.gotoAndPlay("a" + _root.rnd(2));
Symbol 517 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 545 MovieClip Frame 1
skill_text = ">> " + _root.atkname[_root.level];
skill_cons = _root.atkpow[_root.level];
icons.gotoAndStop(_root.level);
Symbol 548 MovieClip [learnwin] Frame 1
_root.stopGame();
Symbol 548 MovieClip [learnwin] Frame 20
stop();
onEnterFrame = function () {
if (Key.isDown(90)) {
this.onEnterFrame = null;
play();
}
};
Symbol 548 MovieClip [learnwin] Frame 40
stop();
_root.playGame();
this.removeMovieClip();
Symbol 630 MovieClip Frame 15
_root.playFX("punch" + (random(3) + 1));
Symbol 630 MovieClip Frame 16
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(14 - _root.supersayian, "punchhit", 10, _parent._xscale);
}
play();
Symbol 630 MovieClip Frame 28
stop();
_parent.gotoAndStop(1);
Symbol 630 MovieClip Frame 52
_root.playFX("punch" + (random(3) + 1));
Symbol 630 MovieClip Frame 53
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(10 - _root.supersayian, "punchhit", 1, _parent._xscale);
}
play();
Symbol 630 MovieClip Frame 57
_root.playFX("punch" + (random(3) + 1));
Symbol 630 MovieClip Frame 58
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(10 - _root.supersayian, "upperpunchhit", 3, _parent._xscale);
}
play();
Symbol 630 MovieClip Frame 63
stop();
_parent.gotoAndStop(1);
Symbol 630 MovieClip Frame 88
_root.playFX("punch" + (random(3) + 1));
Symbol 630 MovieClip Frame 90
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(15 - _root.supersayian, "kneehit", 15, _parent._xscale);
}
play();
Symbol 630 MovieClip Frame 94
stop();
_parent.gotoAndStop(1);
Symbol 630 MovieClip Frame 122
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(15 - _root.supersayian, "kneehit", 15, _parent._xscale);
}
play();
Symbol 630 MovieClip Frame 123
_root.playFX("punch" + (random(3) + 1));
Symbol 630 MovieClip Frame 128
stop();
_parent.gotoAndStop(1);
Symbol 630 MovieClip Frame 148
if (_root.character._xscale == 100) {
tX = _root.character._x - 20;
_parent._xscale = 100;
} else {
tX = _root.character._x + 20;
_parent._xscale = -100;
}
_parent.teleport(tX);
Symbol 630 MovieClip Frame 169
_root.playFX("punch" + (random(3) + 1));
Symbol 630 MovieClip Frame 175
_root.playFX("punch" + (random(3) + 1));
Symbol 630 MovieClip Frame 176
stop();
if (this.hitSpot.hitTest(_root.character)) {
_root.takeDamage(20 - _root.supersayian, "knockedDown", 1, _parent._xscale);
}
play();
Symbol 630 MovieClip Frame 191
stop();
_parent.gotoAndStop(1);
Symbol 636 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 636 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 638 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 645 MovieClip Frame 11
stop();
Symbol 648 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 657 MovieClip Frame 1
_root.playFX("deflect");
Symbol 657 MovieClip Frame 20
stop();
_parent.gotoAndStop(1);
Symbol 658 MovieClip [enemy_frieza] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
function teleport(X) {
_root.playFX("teleport");
_root.teleScale = _xscale;
_root.duplicate("teleport_frieza", _x, _y, false, false, true);
_x = X;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
blockChance = 70;
avoidChance = 40;
onEnterFrame = function () {
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
_root.lunchpause = true;
_root.character.gotoAndStop(11);
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(6), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(4, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(5);
health = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 658 MovieClip [enemy_frieza] Frame 2
atk.gotoAndPlay("a" + _root.rnd(5));
Symbol 685 MovieClip Frame 20
_root.character.gotoAndStop(1);
Symbol 685 MovieClip Frame 25
stop();
_root.playGame();
_parent.gotoAndStop(1);
Symbol 701 MovieClip Frame 16
done = false;
stop();
catchspeed = 3;
onEnterFrame = function () {
if (this.hitTest(_root.character)) {
if (!done) {
this.gotoAndStop(16);
}
if (_currentframe == 16) {
if (_root.character._x > _parent._x) {
if (_root.character._x > (_parent._x + 30)) {
_root.character._x = _root.character._x - catchspeed;
} else {
done = true;
play();
}
} else if (_root.character._x < _parent._x) {
if (_root.character._x < (_parent._x - 30)) {
_root.character._x = _root.character._x + catchspeed;
} else {
done = true;
play();
}
}
}
} else if (_currentframe < 3) {
_parent.gotoAndStop(1);
} else if (_currentframe < 18) {
this.gotoAndStop(_currentframe - 2);
}
};
Symbol 701 MovieClip Frame 17
Symbol 701 MovieClip Frame 18
stop();
_root.takeDamage(5 - _root.supersayian, "powerabsorb");
_root.power = _root.power - (10 - _root.supersayian);
play();
Symbol 701 MovieClip Frame 35
_root.playFX("punch" + (random(3) + 1));
Symbol 701 MovieClip Frame 37
stop();
if (this.foot.hitTest(_root.character)) {
_root.takeDamage(12 - _root.supersayian, "punchfallhit", 10, _parent._xscale);
}
play();
Symbol 701 MovieClip Frame 44
stop();
_parent.gotoAndStop(1);
Symbol 705 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 705 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 711 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 718 MovieClip Frame 7
stop();
Symbol 721 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 722 MovieClip [enemy_gero] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
blockChance = 50;
avoidChance = 0;
onEnterFrame = function () {
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
_root.lunchpause = true;
_root.character.gotoAndStop(11);
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(4), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(3, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(5);
health = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 722 MovieClip [enemy_gero] Frame 2
atk.gotoAndPlay("a" + _root.rnd(2));
Symbol 747 MovieClip Frame 23
_root.playFX("punch" + (random(3) + 1));
Symbol 747 MovieClip Frame 24
stop();
if (this.arm.hitTest(_root.character)) {
_root.takeDamage(20 - _root.supersayian, "punchfallhit", 20, _parent._xscale);
}
play();
Symbol 747 MovieClip Frame 34
stop();
_parent.gotoAndStop(1);
Symbol 751 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 751 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 754 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 763 MovieClip Frame 11
stop();
Symbol 765 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 766 MovieClip [enemy_napa] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
blockChance = 0;
avoidChance = 0;
onEnterFrame = function () {
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
_root.lunchpause = true;
_root.character.gotoAndStop(11);
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(4), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(3, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(5);
health = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 782 MovieClip Frame 7
stop();
catchspeed = 3;
onEnterFrame = function () {
if (this.hitTest(_root.character)) {
if (_currentframe == 7) {
if (_root.character._x > _parent._x) {
if (_root.character._x > (_parent._x + 30)) {
_root.character._x = _root.character._x - catchspeed;
} else {
play();
}
} else if (_root.character._x < _parent._x) {
if (_root.character._x < (_parent._x - 30)) {
_root.character._x = _root.character._x + catchspeed;
} else {
play();
}
}
}
} else if (_currentframe < 3) {
_parent.gotoAndStop(1);
} else if (_currentframe < 13) {
this.gotoAndStop(_currentframe - 2);
}
};
Symbol 782 MovieClip Frame 8
Symbol 782 MovieClip Frame 12
_root.playFX("punch" + (random(3) + 1));
Symbol 782 MovieClip Frame 13
stop();
_root.takeDamage(5 - _root.supersayian, "kneehit");
play();
Symbol 782 MovieClip Frame 17
if (this.hitTest(_root.character) && (_root.character._currentframe == 5)) {
_root.character.gotoAndStop(1);
}
Symbol 782 MovieClip Frame 30
stop();
_root.playGame();
_parent.gotoAndStop(1);
Symbol 786 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 786 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 789 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 804 MovieClip Frame 36
stop();
_parent.removeMovieClip();
_parent.unloadMovie();
Symbol 806 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 807 MovieClip [enemy_fighter] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
stop();
speed = 2;
space = 30;
leftspeed = 0;
blockChance = 0;
avoidChance = 0;
onEnterFrame = function () {
if (!_root.lunchpause) {
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
this.gotoAndStop(5);
if (_root.battle == 2) {
if (_root.killed < _root.need) {
if (_root.addKill._x != 999) {
_root.killed++;
}
_root.addKill._alpha = 100;
_root.addKill._x = _x;
_root.addKill._y = _y;
_root.kill_move = true;
}
if (_root.killed < _root.need) {
_root.addEnemy("fighter", 1, true);
}
peopleleft = _root.need - _root.killed;
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
if (peopleleft == 0) {
_root.newmsg("Mission Completed");
}
}
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(5);
prnd2 = _root.rnd(5);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(2), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(1, _x + thernd);
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
health = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 810 MovieClip [ssout] Frame 10
stop();
this.removeMovieClip();
this.unloadMovie();
Symbol 813 MovieClip [fxBigger] Frame 30
stop();
this.swapDepths(0);
this.removeMovieClip();
Symbol 816 MovieClip [fxBig] Frame 30
stop();
this.swapDepths(0);
this.removeMovieClip();
Symbol 819 MovieClip [fx] Frame 30
stop();
this.swapDepths(0);
this.removeMovieClip();
Symbol 825 MovieClip [teleport_cell] Frame 10
stop();
this.removeMovieClip();
this.unloadMovie();
Symbol 830 MovieClip [teleport_majinvegeta] Frame 10
stop();
this.removeMovieClip();
this.unloadMovie();
Symbol 835 MovieClip [teleport_frieza] Frame 10
stop();
this.removeMovieClip();
this.unloadMovie();
Symbol 856 MovieClip Frame 1
onEnterFrame = function () {
this.gotoAndStop(_root.supersayian + 1);
};
Symbol 861 MovieClip [teleport] Frame 10
stop();
this.removeMovieClip();
this.unloadMovie();
Symbol 862 MovieClip [energyshot4] Frame 1
speed = _root.bulletspeed[4];
myFrame = _root._currentframe;
onEnterFrame = function () {
if (myFrame != _root._currentframe) {
this.swapDepths(0);
this.removeMovieClip();
}
if (!_root.lunchpause) {
if (side == "left") {
_x = (_x - speed);
} else if (side == "right") {
_x = (_x + speed);
}
if (_x > Stage.width) {
this.swapDepths(0);
this.removeMovieClip();
} else if (_x < 0) {
this.swapDepths(0);
this.removeMovieClip();
}
}
};
Symbol 863 MovieClip [energyshot3] Frame 1
speed = _root.bulletspeed[3];
myFrame = _root._currentframe;
onEnterFrame = function () {
if (myFrame != _root._currentframe) {
this.swapDepths(0);
this.removeMovieClip();
}
if (!_root.lunchpause) {
if (side == "left") {
_x = (_x - speed);
} else if (side == "right") {
_x = (_x + speed);
}
if (_x > Stage.width) {
this.swapDepths(0);
this.removeMovieClip();
} else if (_x < 0) {
this.swapDepths(0);
this.removeMovieClip();
}
}
};
Symbol 864 MovieClip [energyshot2] Frame 1
speed = _root.bulletspeed[2];
myFrame = _root._currentframe;
onEnterFrame = function () {
if (myFrame != _root._currentframe) {
this.swapDepths(0);
this.removeMovieClip();
}
if (!_root.lunchpause) {
if (side == "left") {
_x = (_x - speed);
} else if (side == "right") {
_x = (_x + speed);
}
if (_x > Stage.width) {
this.swapDepths(0);
this.removeMovieClip();
} else if (_x < 0) {
this.swapDepths(0);
this.removeMovieClip();
}
}
};
Symbol 865 MovieClip [energyshot1] Frame 1
speed = _root.bulletspeed[1];
myFrame = _root._currentframe;
onEnterFrame = function () {
if (myFrame != _root._currentframe) {
this.swapDepths(0);
this.removeMovieClip();
}
if (!_root.lunchpause) {
if (side == "left") {
_x = (_x - speed);
} else if (side == "right") {
_x = (_x + speed);
}
if (_x > Stage.width) {
this.swapDepths(0);
this.removeMovieClip();
} else if (_x < 0) {
this.swapDepths(0);
this.removeMovieClip();
}
}
};
Symbol 866 MovieClip [energyshot0] Frame 1
stop();
speed = _root.bulletspeed[0];
myFrame = _root._currentframe;
onEnterFrame = function () {
if (myFrame != _root._currentframe) {
this.swapDepths(0);
this.removeMovieClip();
}
if (!_root.lunchpause) {
if (side == "left") {
_x = (_x - speed);
} else if (side == "right") {
_x = (_x + speed);
}
if (_x > Stage.width) {
this.swapDepths(0);
this.removeMovieClip();
} else if (_x < 0) {
this.swapDepths(0);
this.removeMovieClip();
}
}
};
Symbol 883 MovieClip Frame 5
_root.playFX("punch" + (random(3) + 1));
Symbol 883 MovieClip Frame 11
stop();
if (this.arm.hitTest(_root.character)) {
_root.takeDamage(8 - _root.supersayian, "punchhit", 5, _parent._xscale);
}
play();
Symbol 883 MovieClip Frame 23
stop();
_parent.gotoAndStop(1);
Symbol 888 MovieClip Frame 1
_root.playFX("hit" + (random(2) + 1));
Symbol 888 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 890 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 900 MovieClip Frame 11
stop();
Symbol 903 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 904 MovieClip [enemy_raditz] Frame 1
function animatewalk() {
if (walk._currentframe < walk._totalframes) {
this.walk.nextFrame();
} else {
walk.gotoAndStop(1);
}
}
function checkshots(supersayian) {
i = 0;
while (i < (_root.objects + 1)) {
if (this.hitTest(_root[(("energyshot" + supersayian) + "Number") + i])) {
if ((random(100) + 1) > (100 - blockChance)) {
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
this.gotoAndStop(7);
if ((deflect._currentframe > 1) && (i != defnum)) {
deflect.gotoAndPlay(1);
}
defnum = i;
} else {
_root.inflictBall();
this.gotoAndStop(6);
this.hiteffect.gotoAndPlay(1);
if (_root.character._xscale == 100) {
leftspeed = 5 + _root.supersayian;
} else {
leftspeed = -(5 + _root.supersayian);
}
_root[(("energyshot" + supersayian) + "Number") + i].swapDepths(0);
_root[(("energyshot" + supersayian) + "Number") + i].removeMovieClip();
}
}
i++;
}
}
function updatescreen() {
_root.enemy_bar._xscale = health;
}
stop();
speed = 4;
space = 30;
leftspeed = 0;
blockChance = 50;
avoidChance = 0;
onEnterFrame = function () {
if (!_root.lunchpause) {
updatescreen();
if (atk._currentframe < atk._totalframes) {
atk.play();
}
if ((health <= 0) && (!got)) {
_root.lunchpause = true;
_root.character.gotoAndStop(11);
rndnum = _root.rnd(2) + 1;
thernd = 0;
if (rndnum == 1) {
thernd = _root.rnd(50);
} else if (rndnum == 2) {
thernd = _root.rnd(-50);
}
if (((_x + thernd) > (Stage.width - 50)) || ((_x + thernd) < 50)) {
thernd = 0;
}
prnd1 = _root.rnd(2);
prnd2 = _root.rnd(2);
if (prnd1 == prnd2) {
_root.newpotion(_root.rnd(2), (_x + thernd) - 50);
_root.duplicate("created", (_x + thernd) - 50, 350);
}
_root.newcoin(2, _x + thernd);
_root.newmsg(("You have gained experience (+" + Math.round(((defence + 1) * _root.getEXP) / _root.level)) + ")");
_root.experience = _root.experience + Math.round(((defence + 1) * _root.getEXP) / _root.level);
got = true;
}
if (health <= 0) {
this.gotoAndStop(5);
health = 0;
}
_x = (_x + leftspeed);
if (leftspeed > 0) {
leftspeed--;
} else if (leftspeed < 0) {
leftspeed++;
}
if ((_root.character._x > (_x + space)) && (_currentframe == 1)) {
_x = (_x + speed);
_xscale = 100;
percentstxt._xscale = 100;
animatewalk();
} else if ((_root.character._x < (_x - space)) && (_currentframe == 1)) {
_x = (_x - speed);
_xscale = -100;
percentstxt._xscale = -100;
animatewalk();
}
if (this.hitTest(_root.character)) {
updatescreen();
}
c = 0;
while (c < (_root.supersayian + 1)) {
checkshots(c);
c++;
}
if (this.hitTest(_root.character) && (health > 0)) {
if ((_root.character._currentframe == 1) || (_root.character._currentframe == 19)) {
this.gotoAndStop(2);
} else {
_root.inflictDamage();
}
}
} else {
atk.stop();
}
};
Symbol 914 Button
on (release) {
butt1._alpha = 100;
butt2._alpha = 20;
butt3._alpha = 20;
_quality = "HIGH";
}
Symbol 915 Button
on (release) {
butt1._alpha = 20;
butt2._alpha = 100;
butt3._alpha = 20;
_quality = "MEDIUM";
}
Symbol 916 Button
on (release) {
butt1._alpha = 20;
butt2._alpha = 20;
butt3._alpha = 100;
_quality = "LOW";
}
Symbol 919 Button
on (release) {
bu1._alpha = 100;
bu2._alpha = 0;
bu3._alpha = 0;
bu4._alpha = 0;
bu5._alpha = 0;
_root.fxlevel = 0;
}
Symbol 920 Button
on (release) {
bu1._alpha = 0;
bu2._alpha = 100;
bu3._alpha = 0;
bu4._alpha = 0;
bu5._alpha = 0;
_root.fxlevel = 5;
}
Symbol 921 Button
on (release) {
bu1._alpha = 0;
bu2._alpha = 0;
bu3._alpha = 100;
bu4._alpha = 0;
bu5._alpha = 0;
_root.fxlevel = 10;
}
Symbol 922 Button
on (release) {
bu1._alpha = 0;
bu2._alpha = 0;
bu3._alpha = 0;
bu4._alpha = 100;
bu5._alpha = 0;
_root.fxlevel = 20;
}
Symbol 923 Button
on (release) {
bu1._alpha = 0;
bu2._alpha = 0;
bu3._alpha = 0;
bu4._alpha = 0;
bu5._alpha = 100;
_root.fxlevel = 30;
}
Symbol 928 Button
on (release) {
_root.unPauseGame();
}
Symbol 933 Button
on (release) {
bf1._alpha = 100;
bf2._alpha = 0;
_root.sound_fx = true;
}
Symbol 934 Button
on (release) {
bf1._alpha = 0;
bf2._alpha = 100;
_root.sound_fx = false;
}
Symbol 935 Button
on (release) {
bg1._alpha = 100;
bg2._alpha = 0;
if (!_root.sound_bg) {
_root.sound_bg = true;
_root.playBG("battle" + _root.rndBG);
}
}
Symbol 936 Button
on (release) {
bg1._alpha = 0;
bg2._alpha = 100;
if (_root.sound_bg) {
_root.sound_bg = false;
_root.sounds_battle.pack.gotoAndStop(1);
}
}
Symbol 937 Button
on (release) {
bc1._alpha = 100;
bc2._alpha = 0;
_root.activeCamera = true;
}
Symbol 938 Button
on (release) {
bc1._alpha = 0;
bc2._alpha = 100;
_root.activeCamera = false;
}
Symbol 957 Button
on (release) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 959 MovieClip [pauseWin] Frame 1
if (_quality == "HIGH") {
butt1._alpha = 100;
butt2._alpha = 20;
butt3._alpha = 20;
} else if (_quality == "MEDIUM") {
butt1._alpha = 20;
butt2._alpha = 100;
butt3._alpha = 20;
} else if (_quality == "LOW") {
butt1._alpha = 20;
butt2._alpha = 20;
butt3._alpha = 100;
}
bon._alpha = 20;
boff._alpha = 100;
voices = false;
bu1._alpha = 0;
bu2._alpha = 0;
bu3._alpha = 100;
bu4._alpha = 0;
bu5._alpha = 0;
if (_root.fxlevel == 0) {
bu1._alpha = 100;
bu2._alpha = 0;
bu3._alpha = 0;
bu4._alpha = 0;
bu5._alpha = 0;
} else if (_root.fxlevel == 5) {
bu1._alpha = 0;
bu2._alpha = 100;
bu3._alpha = 0;
bu4._alpha = 0;
bu5._alpha = 0;
} else if ((_root.fxlevel == undefined) || (_root.fxlevel == 10)) {
bu1._alpha = 0;
bu2._alpha = 0;
bu3._alpha = 100;
bu4._alpha = 0;
bu5._alpha = 0;
_root.fxlevel = 10;
} else if (_root.fxlevel == 20) {
bu1._alpha = 0;
bu2._alpha = 0;
bu3._alpha = 0;
bu4._alpha = 100;
bu5._alpha = 0;
} else if (_root.fxlevel == 30) {
bu1._alpha = 0;
bu2._alpha = 0;
bu3._alpha = 0;
bu4._alpha = 0;
bu5._alpha = 100;
}
if (_root.sound_fx) {
bf1._alpha = 100;
bf2._alpha = 0;
} else {
bf1._alpha = 0;
bf2._alpha = 100;
}
if (_root.sound_bg) {
bg1._alpha = 100;
bg2._alpha = 0;
} else {
bg1._alpha = 0;
bg2._alpha = 100;
}
if (_root.activeCamera) {
bc1._alpha = 100;
bc2._alpha = 0;
} else {
bc1._alpha = 0;
bc2._alpha = 100;
}
Symbol 969 MovieClip [popCredits] Frame 70
stop();
this.removeMovieClip();
Symbol 972 MovieClip [majinExplosion] Frame 1
if (this.hitTest(_root.character)) {
_root.hp = _root.hp - (10 - _root.supersayian);
_root.stopGame();
_root.character.gotoAndStop("punchhit");
if (_root.character._xscale == 100) {
_root.character.pushback = -10;
} else {
_root.character.pushback = 10;
}
}
Symbol 972 MovieClip [majinExplosion] Frame 10
stop();
this.removeMovieClip();
Symbol 986 MovieClip [dmg_digitsB] Frame 1
onEnterFrame = function () {
if (_alpha <= 0) {
this.swapDepths(0);
this.removeMovieClip();
} else {
_y = (_y-1);
_alpha = (_alpha - 5);
}
};
Symbol 998 MovieClip [dmg_digits] Frame 1
onEnterFrame = function () {
if (_alpha <= 0) {
this.swapDepths(0);
this.removeMovieClip();
} else {
_y = (_y-1);
_alpha = (_alpha - 5);
}
};
Symbol 1023 MovieClip Frame 1
onRelease = function () {
getURL (_root.current_site_url, "_blank");
};
_root.stop();
Symbol 1023 MovieClip Frame 90
stop();
_root.nextFrame();
Symbol 1040 MovieClip Frame 68
stop();
Symbol 1069 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 1092 MovieClip Frame 56
stop();
Symbol 1116 MovieClip Frame 67
stop();
Symbol 1127 MovieClip Frame 106
stop();
Symbol 1143 MovieClip Frame 1
_root.playBG("intro");
Symbol 1143 MovieClip Frame 502
_root.playFX("intro_ssj");
Symbol 1143 MovieClip Frame 764
stop();
_root.onEnterFrame = null;
_root.sounds_main.pack.gotoAndStop(1);
_root.nextFrame();
Symbol 1146 Button
on (release) {
_root.sounds_main.pack.gotoAndStop(1);
_root.nextFrame();
}
Symbol 1148 MovieClip Frame 1
stop();
Symbol 1148 MovieClip Frame 30
stop();
Symbol 1162 Button
on (release) {
_root.zennie = 0;
_root.experience = 0;
_root.supersayian = 0;
_root.level = 1;
_root.timer_ss1 = 1000;
_root.timer_ss2 = 1000;
_root.timer_ss3 = 1000;
_root.timer_ss4 = 1000;
_root.zcounter = 0;
_root.ztimer = 50;
_root.maxhp = 100;
_root.maxpower = 100;
_root.hp = maxhp;
_root.power = maxpower;
_root.story = 1;
_root.battle = 1;
i = 1;
while (i < 4) {
this["btn" + i].enabled = false;
i++;
}
_root.disabled = true;
_root.moveFrame(1);
}
Symbol 1165 Button
on (release) {
_root.info._visible = true;
}
Symbol 1169 Button
on (release) {
_root.loadSlot(1);
}
Symbol 1172 Button
on (release) {
_root.loadSlot(2);
}
Symbol 1175 Button
on (release) {
_root.loadSlot(3);
}
Symbol 1186 Button
on (release) {
getURL (_root.current_site_url, "_blank");
}
Symbol 1218 Button
on (release) {
nextFrame();
page.text = (_currentframe + "/") + _totalframes;
}
Symbol 1224 Button
on (release) {
prevFrame();
page.text = (_currentframe + "/") + _totalframes;
}
Symbol 1227 MovieClip Frame 19
gotoAndPlay (1);
Symbol 1230 MovieClip Frame 19
gotoAndPlay (1);
Symbol 1232 Button
on (release) {
_visible = false;
}
Symbol 1268 MovieClip Frame 1
page.text = (_currentframe + "/") + _totalframes;
blank_btn.useHandCursor = false;
stop();
Symbol 1270 MovieClip Frame 1
c = "" + this._name.charAt(4);
if (this._name.charAt(5) != undefined) {
c = c + this._name.charAt(5);
c = Number(c);
}
if (c != 1) {
this.stop();
}
Symbol 1270 MovieClip Frame 5
_parent["line" + (c + 1)].play();
Symbol 1270 MovieClip Frame 10
stop();
if (c == 20) {
_root.sounds_main.pack.gotoAndStop(1);
_root.sounds_battle.pack.gotoAndStop(1);
_root.gotoAndStop(_parent.num + 4);
}
Symbol 1271 MovieClip Frame 1
stop();
Symbol 1271 MovieClip Frame 2
_root.removeObjs();
_root.removeSquares();
if (((_root._currentframe == 3) && (_root.hp > 0)) && (!_root.temporalbattle)) {
_root.story++;
}
if (_root._currentframe == 3) {
_root.temporalbattle = false;
}
Symbol 1273 MovieClip Frame 17
stop();
Symbol 1276 Button
on (release) {
gameMode = "Hard";
_root.moveFrame(2);
d3._visible = false;
d1.enabled = (d2.enabled = (d3.enabled = false));
}
Symbol 1277 Button
on (release) {
gameMode = "Normal";
_root.moveFrame(2);
d2._visible = false;
d1.enabled = (d2.enabled = (d3.enabled = false));
}
Symbol 1278 Button
on (release) {
gameMode = "Easy";
_root.moveFrame(2);
d1._visible = false;
d1.enabled = (d2.enabled = (d3.enabled = false));
}
Symbol 1294 MovieClip Frame 30
this.gotoAndPlay(random(_totalframes) + 1);
Symbol 1346 MovieClip Frame 1
this.gotoAndStop(_root.supersayian + 1);
Symbol 1350 MovieClip Frame 7
_root.duplicate("energyshot" + _root.supersayian, _root.character._x + (_root.character._xscale / 2), 317, true);
_root.power = _root.power - _root.powertake[1];
_root.playFX("energyball");
Symbol 1350 MovieClip Frame 18
stop();
_parent.gotoAndStop(1);
Symbol 1372 MovieClip Frame 1
stop();
onEnterFrame = function () {
this.gotoAndStop(_root.supersayian + 1);
};
Symbol 1374 MovieClip Frame 1
stop();
Symbol 1374 MovieClip Frame 36
_root.playFX("kameha");
Instance of Symbol 1373 MovieClip "wave" in Symbol 1374 MovieClip Frame 40
onClipEvent (load) {
_yscale = (_yscale * (_root.supersayian + 1));
}
Symbol 1374 MovieClip Frame 43
stop();
Symbol 1374 MovieClip Frame 44
prevFrame();
Symbol 1374 MovieClip Frame 45
prevFrame();
Symbol 1374 MovieClip Frame 61
stop();
_parent.gotoAndStop(1);
Symbol 1395 MovieClip Frame 5
_root.playFX("punch" + (random(3) + 1));
Symbol 1395 MovieClip Frame 20
stop();
_parent.gotoAndStop(1);
Symbol 1395 MovieClip Frame 30
_root.playFX("punch" + (random(3) + 1));
Symbol 1395 MovieClip Frame 37
stop();
_parent.gotoAndStop(1);
Symbol 1400 MovieClip Frame 1
_root.stopGame();
_root.playFX("pain" + (random(4) + 1));
Symbol 1400 MovieClip Frame 5
stop();
_root.playGame();
_parent.gotoAndStop(1);
Symbol 1404 MovieClip Frame 12
_root.playFX("teleport");
Symbol 1404 MovieClip Frame 13
_root.duplicate("teleport", _root.character._x, _root.character._y, false, false, true);
_root.character._x = _root.lunchpausecursor._x;
_root.lunchpausecursor._x = 9999;
_root.activescreen("play");
_root.lunchpause = false;
Symbol 1404 MovieClip Frame 25
stop();
_parent.gotoAndStop(1);
Symbol 1428 MovieClip Frame 10
light._yscale = light._yscale * (_root.supersayian + 1);
light._xscale = light._xscale * (_root.supersayian + 1);
Symbol 1428 MovieClip Frame 19
stop();
_parent.gotoAndStop(1);
Symbol 1438 MovieClip Frame 3
_root.Zoom(true);
_root.playFX("speak_death");
Symbol 1438 MovieClip Frame 41
_root.playFX("death");
Symbol 1438 MovieClip Frame 47
stop();
_root.Zoom(false);
Symbol 1450 MovieClip Frame 1
_root.stopGame();
_root.playFX("pain" + (random(4) + 1));
Symbol 1450 MovieClip Frame 10
stop();
_root.playGame();
_parent.gotoAndStop(1);
Symbol 1467 MovieClip Frame 1
_root.stopGame();
_root.Zoom(true);
_root.playFX("pain" + (random(4) + 1));
Symbol 1467 MovieClip Frame 9
_root.playFX("ground_hit");
Symbol 1467 MovieClip Frame 19
_root.Zoom(false);
Symbol 1467 MovieClip Frame 27
stop();
_root.playGame();
_parent.gotoAndStop(1);
Symbol 1475 MovieClip Frame 5
_root.Zoom(true);
_root.playFX("speak_win");
Symbol 1475 MovieClip Frame 36
stop();
_root.Zoom(false);
Symbol 1484 MovieClip Frame 2
_root.stopGame();
Symbol 1484 MovieClip Frame 20
stop();
Symbol 1490 MovieClip Frame 1
_root.stopGame();
_root.playFX("pain" + (random(4) + 1));
Symbol 1490 MovieClip Frame 6
stop();
_root.playGame();
_parent.gotoAndStop(1);
Symbol 1520 MovieClip Frame 34
stop();
_parent.gotoAndStop(1);
Symbol 1537 MovieClip Frame 1
_root.stopGame();
Symbol 1537 MovieClip Frame 34
_root.Zoom(true);
Symbol 1537 MovieClip Frame 51
_root.playGame();
Symbol 1537 MovieClip Frame 62
_root.stopGame();
Symbol 1537 MovieClip Frame 74
stop();
_root.playGame();
_root.Zoom(false);
_parent.gotoAndStop(1);
Symbol 1557 MovieClip Frame 2
_root.stopGame();
_root.Zoom(true);
Symbol 1557 MovieClip Frame 19
_root.supersayian++;
_root.sstimer = _root["timer_ss" + _root.supersayian];
_root.sscounter = _root.sstimer;
_root.playFX("ssj");
Symbol 1557 MovieClip Frame 80
stop();
_root.Zoom(false);
_root.playGame();
_parent.gotoAndStop(1);
Symbol 1595 MovieClip Frame 1
_root.stopGame();
_root.Zoom(true);
Symbol 1595 MovieClip Frame 5
_root.playFX("pain" + (random(4) + 1));
Symbol 1595 MovieClip Frame 22
_root.playFX("death");
Symbol 1595 MovieClip Frame 43
_root.Zoom(false);
Symbol 1595 MovieClip Frame 61
stop();
if (_parent._xscale == 100) {
_parent._x = _parent._x + 50;
} else {
_parent._x = _parent._x - 50;
}
_root.playGame();
_parent.gotoAndStop(1);
Symbol 1612 MovieClip Frame 1
_root.stopGame();
_root.Zoom(true);
Symbol 1612 MovieClip Frame 8
_root.playFX("death");
Symbol 1612 MovieClip Frame 17
_root.Zoom(false);
Symbol 1612 MovieClip Frame 29
stop();
_root.playGame();
_parent.gotoAndStop(1);
Symbol 1622 MovieClip Frame 1
stop();
Symbol 1623 MovieClip Frame 1
stop();
attacking = false;
hitting = false;
Symbol 1627 MovieClip Frame 1
stop();
Symbol 1641 MovieClip Frame 1
stop();
Symbol 1641 MovieClip Frame 36
stop();
Symbol 1645 MovieClip Frame 1
enemy.text = _root.Elist[_root.battle - 1];
Symbol 1648 MovieClip Frame 1
stop();
Symbol 1648 MovieClip Frame 46
stop();
Symbol 1658 MovieClip Frame 1
stop();
Symbol 1666 MovieClip Frame 1
stop();
Symbol 1690 MovieClip Frame 1
stop();
Symbol 1698 Button
on (release) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 1700 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 1723 MovieClip Frame 10
stop();
Symbol 1725 Button
on (release) {
saveNum = 1;
i = 1;
while (i < 4) {
_root["saveBtn_" + i].enabled = false;
i++;
}
save_slot._visible = true;
save_slot._y = _root["saveBtn_" + saveNum]._y;
save_slot.slotName.text = _root["slotName_" + saveNum];
black._visible = true;
}
Symbol 1726 Button
on (release) {
saveNum = 2;
i = 1;
while (i < 4) {
_root["saveBtn_" + i].enabled = false;
i++;
}
save_slot._visible = true;
save_slot._y = _root["saveBtn_" + saveNum]._y;
save_slot.slotName.text = _root["slotName_" + saveNum];
black._visible = true;
}
Symbol 1727 Button
on (release) {
saveNum = 3;
i = 1;
while (i < 4) {
_root["saveBtn_" + i].enabled = false;
i++;
}
save_slot._visible = true;
save_slot._y = _root["saveBtn_" + saveNum]._y;
save_slot.slotName.text = _root["slotName_" + saveNum];
black._visible = true;
}
Symbol 1733 Button
on (release) {
_root.saveSlot(_root.saveNum, slotName.text);
_root.loadSlots(3);
_root.black._visible = false;
i = 1;
while (i < 4) {
_root["saveBtn_" + i].enabled = true;
i++;
}
_visible = false;
}
Symbol 1735 Button
on (release) {
_root.black._visible = false;
i = 1;
while (i < 4) {
_root["saveBtn_" + i].enabled = true;
i++;
}
_visible = false;
}
Symbol 1742 MovieClip Frame 1
stop();
Symbol 1758 Button
on (release) {
info._visible = true;
}
Symbol 1763 Button
on (release) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 1771 Button
on (release) {
getURL (current_site_url, "_blank");
}