Frame 1
System.security.allowDomain("*");
if (_root.controller == undefined) {
var playList = new Array("idle", "walk");
var playListIndex = 0;
var targetClip = enemy;
targetClip.stop();
recenterEnemy = function (targ, blendf) {
if (blendf == undefined) {
blendf = 0.1;
}
var _local3 = targ.getBounds(_root);
var _local7 = _local3.xMax - _local3.xMin;
var _local6 = _local3.yMax - _local3.yMin;
if ((((_local7 != undefined) && (_local7 > 0)) && (_local6 != undefined)) && (_local6 > 0)) {
var _local14 = targ._xscale / 100;
var _local13 = targ._yscale / 100;
var _local5 = Stage.width / _local7;
var _local4 = Stage.height / _local6;
if (_local5 <= _local4) {
_local4 = _local5;
} else {
_local5 = _local4;
}
var _local9 = (Stage.width - (_local7 * _local5)) / 2;
var _local11 = (Stage.height - (_local6 * _local4)) / 2;
var _local12 = _local9 - (_local3.xMin - targ._x);
var _local10 = _local11 - (_local3.yMin - targ._y);
targ._x = targ._x + ((_local12 - targ._x) * blendf);
targ._y = targ._y + ((_local10 - targ._y) * blendf);
targ._xscale = targ._xscale + ((((100 * _local5) * _local14) - targ._xscale) * blendf);
targ._yscale = targ._yscale + ((((100 * _local4) * _local13) - targ._yscale) * blendf);
return(1);
}
return(0);
};
recenterEnemy(targetClip);
targetClip.G = new Object();
targetClip.G.goPlay = function (targ, aname) {
targ.gotoAndPlay(aname);
};
var mouseListener = new Object();
var mouseData = new Object({x:_xmouse, y:_ymousem, down:0, up:0});
mouseListener.onMouseMove = function () {
mouseData.x = _xmouse;
mouseData.y = _ymouse;
};
mouseListener.onMouseDown = function () {
mouseData.down = 1;
};
mouseListener.onMouseUp = function () {
mouseData.up = 1;
};
Mouse.addListener(mouseListener);
onEnterFrame = function () {
recenterEnemy(targetClip);
if (mouseData.up) {
mouseData.down = 0;
mouseData.up = 0;
}
if (mouseData.down) {
mouseData.down = 0;
playListIndex = playListIndex + 1;
playListIndex = playListIndex % playList.length;
targetClip.G.goPlay(targetClip, playList[playListIndex]);
}
};
}
Symbol 4 MovieClip Frame 1
this.onEnterFrame = function () {
_root.controller.updateVictimSync(this);
};
Symbol 30 MovieClip Frame 1
G.actIdle(this);
if (G.manualReset(this)) {
G.setScaleValue(200);
G.setName("Lion");
G.setStatus("");
G.setCredit("Z");
G.setHAtk(4);
G.setMAtk(4);
G.setLAtk(4);
G.setHDef(31);
G.setMDef(28);
G.setLDef(31);
G.enemySetAttackHistogram(1, 1, 1);
G.setMaxHP(300);
G.setHP(300);
G.enemySetAllowPets(0);
G.V.state = 0;
G.V.stateCount = 0;
G.V.STATE_APPROACH = G.V.stateCount;
G.V.stateCount++;
G.V.STATE_STAND_MAW_DOWN = G.V.stateCount;
G.V.stateCount++;
G.V.STATE_STAND_ATKH = G.V.stateCount;
G.V.stateCount++;
var mySF = new Array();
mySF[G.V.STATE_APPROACH] = function (G, O, player, currentState) {
var _local2 = currentState;
var _local3 = G.playerDistance();
if (_local3 > 200) {
G.eaiActionMoveToward();
} else if (_local3 < 20) {
if (G.chance(50)) {
G.enemyPlay("stand_atkh");
_local2 = G.V.STATE_STAND_ATKH;
} else {
G.eaiActionStay();
G.enemyPlay("stand_maw_down");
_local2 = G.V.STATE_STAND_MAW_DOWN;
}
} else {
G.eaiActionMoveToward();
}
return(_local2);
};
mySF[G.V.STATE_STAND_MAW_DOWN] = function (G, O, player, currentState) {
var _local2 = currentState;
if (G.V.eatbox == 1) {
G.enemyPlay("stand_maw_down_swallow");
G.consumePlayer(O);
G.V.eatbox = 0;
}
if (G.enemyCurrAnim() == "idle") {
_local2 = G.V.STATE_APPROACH;
}
return(_local2);
};
mySF[G.V.STATE_STAND_ATKH] = function (G, O, player, currentState) {
var _local1 = currentState;
if (G.enemyCurrAnim() == "idle") {
_local1 = G.V.STATE_APPROACH;
}
return(_local1);
};
G.V.stateFuncs = mySF;
var meth = function (G, O, player) {
if (!G.isV("state")) {
G.V.state = G.V.STATE_APPROACH;
} else if (G.V.state < 1) {
G.V.state = G.V.STATE_APPROACH;
} else if (G.V.state > G.V.stateFuncs.length) {
G.V.state = G.V.STATE_APPROACH;
}
if (!G.isPlayerConsumed(player)) {
var _local2 = G.V.stateFuncs[G.V.state](G, O, player, G.V.state);
G.V.state = _local2;
}
};
G.enemySetAIFunction(meth);
}
Symbol 30 MovieClip Frame 48
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 51
G.actMove(this, 0);
Symbol 30 MovieClip Frame 98
G.goPlay(this, "walk");
Symbol 30 MovieClip Frame 104
G.actHurt(this, 4);
G.endDigestion(this);
Symbol 30 MovieClip Frame 109
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 110
G.actHurt(this, 4);
G.endDigestion(this);
Symbol 30 MovieClip Frame 115
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 116
G.actHurt(this, 4);
G.endDigestion(this);
Symbol 30 MovieClip Frame 121
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 124
G.actHurt(this, 0);
Symbol 30 MovieClip Frame 136
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 139
G.actHurt(this, 0);
G.endDigestion(this);
G.unconsumePlayer(this, 50);
G.actUnbusy();
Symbol 30 MovieClip Frame 155
G.actHurt(this, 0);
Symbol 30 MovieClip Frame 162
G.goPlay(this, "dead");
Symbol 30 MovieClip Frame 168
G.actAttack(this, G.ATTACK_MEDIUM);
if (G.smoothChanceDown(G.getPlayerHealthPercent())) {
G.goPlay(this, "attackexample");
} else {
G.goPlay(this, "attackexample");
}
Symbol 30 MovieClip Frame 175
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 177
G.actAttack(this, G.ATTACK_HIGH);
if (G.getPlayerHealthPercent() <= 25) {
G.goPlay(this, "attackexample");
} else {
G.goPlay(this, "attackexample");
}
Symbol 30 MovieClip Frame 184
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 186
G.actAttack(this, G.ATTACK_LOW);
if (G.chance(50)) {
G.goPlay(this, "attackexample");
} else {
G.goPlay(this, "attackexample");
}
Symbol 30 MovieClip Frame 193
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 198
G.actAttack(this, G.ATTACK_MEDIUM);
Symbol 30 MovieClip Frame 209
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 214
G.actAttack(this, G.ATTACK_HIGH);
Symbol 30 MovieClip Frame 227
if (G.hitPlayer(eatbox)) {
G.goPlay(this, "swallow_example");
}
Symbol 30 MovieClip Frame 237
G.goPlay(this, "idle");
Symbol 30 MovieClip Frame 241
G.consumePlayer(this);
Symbol 30 MovieClip Frame 266
G.goPlay(this, "digest_example");
Symbol 30 MovieClip Frame 345
G.goPlay(this, "digest_example");
Symbol 30 MovieClip Frame 350
G.actAttack(this, G.ATTACK_HIGH);
Symbol 30 MovieClip Frame 377
G.goPlay(this, "idle");