Combined Code
frame 1 {
}
frame 1 {
play();
}
// unknown tag 88 length 73
movieClip 10 {
frame 1 {
stop();
}
}
instance player_special_meter of movieClip 10 {
onClipEvent (enterFrame) {
this._xscale = _root.specialmeter * 1;
}
}
movieClip 17 {
frame 1 {
stop();
}
frame 12 {
root.gotoAndStop('victory');
}
}
instance boss1_health of movieClip 17 {
onClipEvent (load) {
_root.bosshealth = 100;
_root.specialmeter = 0;
_root.playerhealth = 100;
}
onClipEvent (enterFrame) {
this._xscale = _root.bosshealth * 1;
if (_root.playerhealth >= 100) {
_root.playerhealth = 100;
}
if (_root.bosshealth <= 1) {
_root.bosshealth = 0;
_root.gotoAndStop('victory');
}
if (_root.playerhealth <= 1) {
_root.playerhealth = 0;
_root.gotoAndStop('defeat');
}
}
}
movieClip 22 {
frame 1 {
stop();
}
}
instance player_health of movieClip 22 {
onClipEvent (enterFrame) {
this._xscale = _root.playerhealth * 1;
}
}
frame 4 {
function getRandomLabel() {
var v1 = new Array('boss_attack', 'boss_special', 'boss_secret');
var v2 = Math.floor(Math.random() * v1.length);
return v1[v2];
}
this.gotoAndPlay(getRandomLabel());
}
frame 11 {
stop();
}
button 25 {
on (press) {
play();
}
}
button 26 {
on (press) {
gotoAndPlay('player_heal');
}
}
button 27 {
on (press) {
gotoAndPlay('player_special');
}
}
button 32 {
on (press) {
gotoAndPlay('artifact');
}
}
movieClip 41 {
}
// unknown tag 88 length 72
frame 27 {
_root.bosshealth -= 10;
}
frame 76 {
gotoAndPlay(1);
}
frame 94 {
_root.playerhealth += 20;
}
frame 128 {
gotoAndPlay(1);
}
frame 147 {
_root.bosshealth -= 35;
}
frame 173 {
gotoAndPlay(1);
}
frame 200 {
_root.bosshealth -= 35;
_root.playerhealth += 20;
}
frame 238 {
gotoAndPlay(1);
}
frame 276 {
gotoAndPlay(1);
}
button 55 {
on (press) {
_root.playerhealth = 100;
_root.specialmeter = 0;
_root.bosshealth = 100;
gotoAndPlay(1);
}
}
button 57 {
on (press) {
_root.playerhealth = 100;
_root.specialmeter = 0;
_root.bosshealth = 100;
gotoAndPlay(1);
}
}
frame 306 {
_root.playerhealth -= 20;
}
frame 330 {
gotoAndStop('battle_ready');
}
frame 355 {
_root.playerhealth -= 20;
}
frame 384 {
gotoAndStop('battle_ready');
}
frame 414 {
_root.playerhealth -= 20;
}
frame 442 {
gotoAndStop('battle_ready');
}