Frame 1
System.security.allowDomain("*");
if (_root != this) {
this.onEnterFrame = function () {
stop();
if (getBytesLoaded() < getBytesTotal()) {
} else {
this.onEnterFrame = function () {
_root.controller.syncInsidePlayer(this);
};
gotoAndStop ("rootCache");
}
};
stop();
} else {
gotoAndPlay ("rootLoad");
}
Instance of Symbol 4 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
this._xscale = 4500 * (_root.getBytesLoaded() / _root.getBytesTotal());
} else {
_root.play();
}
_parent.loadtext = ("Loading... " + (Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 1000) / 10)) + " Percent";
}
Frame 4
function colorize(obje, passr, passg, passb, passa) {
tempc = new Color(eval (obje));
tempc = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
tempc.rb = passr;
tempc.gb = passg;
tempc.bb = passb;
tempc.ab = passa;
eval (obje).Acolor = tempc;
eval (obje).Ccolor = new Color(eval (obje));
eval (obje).Ccolor.setTransform(eval (obje).Acolor);
}
GLOBAL_PLAYERGRAPHIC = 1;
GLOBAL_PLAYERSUBGRAPHIC = 1;
GLOBAL_ASSISTANCE = 0;
GLOBAL_SANDBOXTYPE = System.security.sandboxType;
System.security.allowDomain("*");
Frame 5
flashTraceFilters = function (mc) {
var _local2 = mc.filters;
for (var _local4 in _local2) {
var _local1 = _local2[_local4];
trace((("Filter: " + typeof(_local1)) + " ") + _local4);
for (var _local3 in _local1) {
trace((("\t" + _local3) + ": ") + _local1[_local3]);
}
if (_local1 instanceof flash.filters.GradientBevelFilter) {
scode = "";
scode = scode + "new flash.filters.GradientBevelFilter( ";
scode = scode + (_local1.distance + ", ");
scode = scode + (_local1.angle + ", ");
scode = scode + (("Array(" + _local1.colors) + "), ");
scode = scode + (("Array(" + _local1.alphas) + "), ");
scode = scode + (("Array(" + _local1.ratios) + "), ");
scode = scode + (_local1.blurX + ", ");
scode = scode + (_local1.blurY + ", ");
scode = scode + (_local1.strength + ", ");
scode = scode + (_local1.quality + ", ");
scode = scode + (("\"" + _local1.type) + "\", ");
scode = scode + _local1.knockout;
scode = scode + " )";
trace(scode);
}
}
};
flashApplyFilter = function (MC, filtobject) {
var _local1 = [];
_local1.push(filtobject);
MC.filters = _local1;
};
flashApplyFilters = function (MC, filtlist) {
var _local2 = [];
for (obj in filtlist) {
_local2.push(filtlist[obj]);
}
MC.filters = _local2;
};
flashColorize = function (obj, r, g, b, al) {
var _local2 = new flash.geom.Transform(obj);
if (al == undefined) {
al = 1;
}
var _local1 = new flash.geom.ColorTransform(r, g, b, al, 0, 0, 0, 0);
_local2.colorTransform = _local1;
return(_local1);
};
onEnterFrame = function () {
gamescore = "Score: " + minigame.entertainor.gGameScore;
};
stop();
Frame 10
function check_savedata() {
trace("Checking save data...");
_global.SaveDataCheck = "Good";
check_savedata$Player_ShowDirtyBits();
check_savedata$Player_Gender();
check_savedata$Player_Mating();
check_savedata$Option_CockVore();
check_savedata$Option_UnBirthVore();
check_savedata$Option_AnalVore();
check_savedata$Option_Gore();
check_savedata$Option_Scat();
check_savedata$Player_SKIN();
check_savedata$Player_HAT();
check_savedata$Player_SKIN_number();
check_savedata$Player_HAT_number();
check_savedata$Option_Cheats();
trace("***Save file status: " + _global.SaveDataCheck);
trace("End of save data check...");
check_done();
}
function check_savedata$Player_ShowDirtyBits() {
if (_global.Player_ShowDirtyBits == undefined) {
trace("*Player Show dirty bits save data is not found.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Player_Gender() {
if (_global.Player_Gender == undefined) {
trace("*Player Gender save data is not found.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Player_Mating() {
if (_global.Player_MatingSex == undefined) {
trace("*Player mating option is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Option_CockVore() {
if (_global.Option_CockVore == undefined) {
trace("*Cock vore option is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Option_UnBirthVore() {
if (_global.Option_UnBirthVore == undefined) {
trace("*Unbirth vore option is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Option_AnalVore() {
if (_global.Option_AnalVore == undefined) {
trace("*Anal vore option is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Option_Gore() {
if (_global.Option_Gore == undefined) {
trace("*Gore option is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Option_Scat() {
if (_global.Option_Scat == undefined) {
trace("*Scat vore option is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Player_SKIN() {
if (_global.Player_SKIN == undefined) {
trace("*Player skin is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Player_HAT() {
if (_global.Player_HAT == undefined) {
trace("*Player hat is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Player_SKIN_number() {
if (_global.Player_SKIN_number == undefined) {
trace("*Player skin number is wrong.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Player_HAT_number() {
if (_global.Player_HAT_number == undefined) {
trace("*Player hat number is wrong.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_savedata$Option_Cheats() {
if (_global.Option_Cheats == undefined) {
trace("*Cheat option is not set.");
_global.SaveDataCheck = "Bad File/Missing Data";
}
}
function check_done() {
if (_global.SaveDataCheck == "Good") {
trace("===Saved Data Loaded===");
trace("Player Gender: " + gamedata.data.Player_Gender);
_global.Player_Gender = gamedata.data.Player_Gender;
trace("Player Show Dirty Bits: " + gamedata.data.Player_ShowDirtyBits);
_global.Player_ShowDirtyBits = gamedata.data.Player_ShowDirtyBits;
trace("Player Mating & Sex: " + gamedata.data.Player_MatingSex);
_global.Player_MatingSex = gamedata.data.Player_MatingSex;
trace("Option Cock Vore: " + gamedata.data.Option_CockVore);
_global.Option_CockVore = gamedata.data.Option_CockVore;
trace("Option Unbirth Vore: " + gamedata.data.Option_UnBirthVore);
_global.Option_UnBirthVore = gamedata.data.Option_UnBirthVore;
trace("Option Anal Vore: " + gamedata.data.Option_AnalVore);
_global.Option_AnalVore = gamedata.data.Option_AnalVore;
trace("Option Gore: " + gamedata.data.Option_Gore);
_global.Option_Gore = gamedata.data.Option_Gore;
trace("Option Scat: " + gamedata.data.Option_Scat);
_global.Option_Scat = gamedata.data.Option_Scat;
trace("Player Skin: " + gamedata.data.Player_SKIN);
_global.Player_SKIN = gamedata.data.Player_SKIN;
trace("Player Hat: " + gamedata.data.Player_HAT);
_global.Player_HAT = gamedata.data.Player_HAT;
trace("Player Skin #: " + gamedata.data.Player_SKIN_number);
_global.Player_SKIN_number = gamedata.data.Player_SKIN_number;
trace("Player Hat #: " + gamedata.data.Player_HAT_number);
_global.Player_HAT_number = gamedata.data.Player_HAT_number;
trace("Cheats Enabled?: " + gamedata.data.Option_Cheats);
_global.Option_Cheats = gamedata.data.Option_Cheats;
trace("===End of Save Data===");
} else {
new_savedata();
}
}
function new_savedata() {
gamedata.data.Player_ShowDirtyBits = "false";
gamedata.data.Player_Gender = "male";
gamedata.data.Player_MatingSex = "false";
gamedata.data.Option_CockVore = "false";
gamedata.data.Option_UnBirthVore = "false";
gamedata.data.Option_AnalVore = "false";
gamedata.data.Option_Gore = "false";
gamedata.data.Option_Scat = "false";
gamedata.data.Player_SKIN = "burd1";
gamedata.data.Player_HAT = "none";
gamedata.data.Player_SKIN_number = "1";
gamedata.data.Player_HAT_number = "1";
gamedata.data.Option_Cheats = "false";
gamedata.data.NEWS = "1";
_global.SaveDataCheck = "Good";
trace("new save file created...");
check_done();
}
stop();
var gamedata = SharedObject.getLocal("19BlusBarbftrCVMflashgame91");
_global.Player_Gender = gamedata.data.Player_Gender;
_global.Player_ShowDirtyBits = gamedata.data.Player_ShowDirtyBits;
_global.Player_MatingSex = gamedata.data.Player_MatingSex;
_global.Option_CockVore = gamedata.data.Option_CockVore;
_global.Option_UnBirthVore = gamedata.data.Option_UnBirthVore;
_global.Option_AnalVore = gamedata.data.Option_AnalVore;
_global.Option_Gore = gamedata.data.Option_Gore;
_global.Option_Scat = gamedata.data.Option_Scat;
_global.Player_SKIN = gamedata.data.Player_SKIN;
_global.Player_HAT = gamedata.data.Player_HAT;
_global.Player_SKIN_number = gamedata.data.Player_SKIN_number;
_global.Player_HAT_number = gamedata.data.Player_HAT_number;
_global.Option_Cheats = gamedata.data.Option_Cheats;
_global.Player_mana = 128;
check_savedata();
Frame 11
stop();
if (Number(gamedata.data.NEWS) == Number(1)) {
_parent.news._visible = true;
} else {
news._visible = false;
}
Frame 12
function skinupdate() {
if (_global.Player_SKIN_number == "1") {
_global.Player_SKIN = "burd1";
}
if (_global.Player_SKIN_number == "2") {
_global.Player_SKIN = "canine1";
}
if (_global.Player_SKIN_number == "3") {
_global.Player_SKIN = "reptile1";
}
}
function hatupdate() {
if (_global.Player_HAT_number == "1") {
_global.Player_HAT = "none";
}
if (_global.Player_HAT_number == "2") {
_global.Player_HAT = "fancy1";
}
if (_global.Player_HAT_number == "3") {
_global.Player_HAT = "fancy2";
}
if (_global.Player_HAT_number == "4") {
_global.Player_HAT = "MadHatter";
}
if (_global.Player_HAT_number == "5") {
_global.Player_HAT = "I<3Vore";
}
}
stop();
Frame 13
stop();
Frame 14
stop();
Frame 15
stop();
Frame 16
stop();
Frame 17
stop();
Frame 18
stop();
Frame 21
var m_input_raw_mouse_x = _xmouse;
var m_input_raw_mouse_y = _ymouse;
var m_input_raw_mouse_dx = 0;
var m_input_raw_mouse_dy = 0;
var m_input_raw_mouse_down = 0;
var m_input_raw_mouse_clicked = 0;
var m_input_raw_mouse_wheel = 0;
var m_input_keys_active = new Object();
var m_game_mouse_listener = new Object();
m_game_mouse_listener.onMouseMove = function () {
var _local2 = _xmouse;
var _local1 = _ymouse;
m_input_raw_mouse_dx = _local2 - m_input_raw_mouse_x;
m_input_raw_mouse_dy = _local1 - m_input_raw_mouse_y;
m_input_raw_mouse_x = _local2;
m_input_raw_mouse_y = _local1;
};
m_game_mouse_listener.onMouseDown = function () {
if (m_input_raw_mouse_down == 0) {
m_input_raw_mouse_clicked = 1;
}
m_input_raw_mouse_down = m_input_raw_mouse_down + 1;
};
m_game_mouse_listener.onMouseUp = function () {
m_input_raw_mouse_down = 0;
};
m_game_mouse_listener.onMouseWheel = function (vdelta) {
m_input_raw_mouse_wheel = m_input_raw_mouse_wheel + vdelta;
};
Mouse.addListener(m_game_mouse_listener);
stop();
Instance of Symbol 70 MovieClip "controller" in Frame 21
onClipEvent (load) {
function _loadSyncClipInto(uclipDST, path) {
var mclListener = new Object();
mclListener.loaded = false;
mclListener.onLoadInit = function (target_mc) {
mclListener.loaded = true;
};
mclListener.onLoadComplete = function (target_mc, httpStatus) {
};
mclListener.onLoadProgress = function (target_mc, errorCode, httpStatus) {
};
mclListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace((("onLoadError: " + errorCode) + " ") + httpStatus);
};
var _local1 = new MovieClipLoader();
_local1.addListener(mclListener);
_local1.loadClip(path, uclipDST);
mclListener.loader = _local1;
return(mclListener);
}
function syncInsidePlayer(fromwhere) {
fromwhere._syncInsidePlayer = 1;
}
function _updateVictimSyncInternalClip(CO) {
CO.toanim.gotoAndStop(CO.anim);
CO.toanim.aniclip.gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
var _local3 = CO.clip.transform;
var _local4 = new flash.geom.Matrix();
CO.toanim.transform = _local3;
CO.toanim.aniclip.mc.stop();
}
function _updateVictimSyncInternalClipNextframe(CO) {
var _local2 = CO.toanim.aniclip.mc._currentframe;
CO.toanim.aniclip.mc.nextFrame();
var _local3 = CO.toanim.aniclip.mc._currentframe;
if (_local3 == _local2) {
CO.toanim.aniclip.mc.gotoAndStop(1);
}
}
function updateVictimSync(from) {
if (from.loaded != 1) {
from.loaded = 0;
if (from.mc == undefined) {
from.createEmptyMovieClip("mc", 0);
from.mapClips = new Object();
if (GLOBAL_LOCALSCOPE) {
from._attachedLoader = _loadSyncClipInto(from.mc, GLOBAL_SWF_NAME);
} else {
from._attachedLoader = _loadSyncClipInto(from.mc, GLOBAL_SWF_URL);
}
}
if (from._attachedLoader != undefined) {
if (from._attachedLoader.loaded) {
if (from.mc._syncInsidePlayer == 1) {
from.loaded = 1;
}
}
}
from.mc._visible = false;
from._visible = false;
}
if (from.loaded == 1) {
from.mc._visible = true;
from._visible = true;
if (_root.controller.GLOBAL_SHOW_PLAYER_INSIDEPLUS) {
if (from.mc.SPECIALPLAYER == undefined) {
from.mc.attachMovie("mcPlayer", "SPECIALPLAYER", from.mc.getNextHighestDepth());
} else {
_root.controller.GLOBALUPDATECOX[String(from.mc.SPECIALPLAYER)] = from.mc.SPECIALPLAYER;
}
}
var _local3 = new Object();
for (var _local4 in from.mapClips) {
if (from.mapClips[_local4].clip._visible == undefined) {
_local3[_local4] = 1;
}
}
for (var _local4 in _local3) {
from.mapClips[_local4].toanim.removeMovieClip();
delete from.mapClips[_local4];
}
for (var _local4 in from.mapClips) {
_updateVictimSyncInternalClip(from.mapClips[_local4]);
if (!isPaused()) {
_updateVictimSyncInternalClipNextframe(from.mapClips[_local4]);
}
}
}
}
function updateVictimSyncClip(from, anim) {
var _local5 = getEnemyGSync(from);
var _local2 = _local5.VICSYNC;
if (_local2 != undefined) {
var _local1 = String(from);
var _local3;
if (_local2.mapClips.hasOwnProperty(_local1)) {
_local3 = _local2.mapClips[_local1].toanim;
} else {
_local2.mapClips[_local1] = new Object();
_local2.mapClips[_local1].clip = from;
_local2.mapClips[_local1].anim = anim;
_local2.mapClips[_local1].toanim = _local3;
_local2.mapClips[_local1].key = _local1;
}
_local2.mapClips[_local1].clip = from;
_local2.mapClips[_local1].anim = anim;
_local2.mapClips[_local1].key = _local1;
if (_local3 == undefined) {
_local3 = _local2.mc.attachMovie("mcPlayer", _local1, _local2.mc.getNextHighestDepth());
}
_local2.mapClips[_local1].toanim = _local3;
_updateVictimSyncInternalClip(_local2.mapClips[_local1]);
} else {
trace((("updateVictimSyncClip: No VICSYNC " + anim) + " ") + from);
}
}
function displayHelp() {
_root.GLOBAL_ASSISTANCE = 1;
GLOBAL_ASSISTANCE_TIMER = 0;
Log("Use arrow keys and spacebar");
}
function _extSetup(T, D) {
var _local5;
var _local2 = T._parent;
if (T == T.G._parent.enemyshad.t.enemy) {
trace((((T + " ") + T._parent) + " ") + T.G);
trace("Ext setup was shadow!");
} else if (T == T.G._parent.enemyshad.t.enemy.enemy) {
trace((((T + " ") + T._parent) + " ") + T.G);
trace("Ext setup was shadow from correct external clip!");
} else {
trace("Ext setup called: " + T);
for (var _local4 in D) {
_local2[_local4] = D[_local4];
}
_local2.hp = _local2.maxhp;
T.in_movex = 0;
T.in_movey = 0;
T.in_action = 0;
if (D.in_movex != undefined) {
T.in_movex = D.in_movex;
}
if (D.in_movey != undefined) {
T.in_movey = D.in_movey;
}
if (D.in_action != undefined) {
T.in_action = D.in_action;
}
T.s_atktype = 0;
T.s_animbusy = 0;
T.s_idle = 1;
T.s_moving = 0;
T.s_attacking = 0;
T.s_hit = 0;
T.s_vx = 0;
_local2.ignore_hitweak = -1;
_local2.ignore_hitanim = false;
_local2.ignore_hitanimonly = false;
_local2.hatk_original = _local2.hatk;
_local2.matk_original = _local2.matk;
_local2.latk_original = _local2.latk;
_local2.hdef_original = _local2.hdef;
_local2.mdef_original = _local2.mdef;
_local2.ldef_original = _local2.ldef;
_local2.hatk_original = _local2.hatk;
T.is_external = true;
T.is_external_loaded = 0;
_local2._xscale = 100;
_local2._yscale = 100;
T._xscale = 100;
T._yscale = 100;
_local5 = "idle";
}
if (D.m_scale == undefined) {
_local2.m_scale = 100;
}
var _local6 = 100 * (100 / _local2.m_scale);
T.onEnterFrame = function () {
};
if (_local5 != undefined) {
T.gotoAndPlay(_local5);
}
T._xscale = _local6;
T._yscale = _local6;
}
function goPlay(target, animm) {
var _local1;
var _local2;
if ((target != undefined) and (animm != undefined)) {
_local1 = target;
_local2 = animm;
} else if (target != undefined) {
trace((("Reassigned target to enemy: " + target) + " ") + animm);
_local1 = getEnemyT(GLOBAL_ENEMY);
_local2 = target;
} else {
trace(((" goPlay has bad arguments: " + target) + " ") + animm);
}
if (_local1.__animmap == undefined) {
_local1.__animmap = new Object();
}
if (_local1.__animnamemap == undefined) {
_local1.__animnamemap = new Object();
}
if (_local1.__aniprefix != undefined) {
_local2 = _local1.__aniprefix + _local2;
}
if (!_local1.__animmap.hasOwnProperty(_local1._currentframe)) {
_local1.__animmap[_local1._currentframe] = new Object();
}
_local1.__animcurrent = _local2;
_local1.gotoAndPlay(_local2);
_local1.__animmap[_local1._currentframe][_local2] = 0;
if (!_local1.__animnamemap.hasOwnProperty(_local2)) {
_local1.__animnamemap[_local2] = new Object({fmin:_local1._currentframe, fmax:_local1._currentframe});
}
var _local3 = _local1.__animnamemap[_local2];
if (_local1._currentframe > _local3.fmax) {
_local3.fmax = _local1._currentframe;
}
if (_local1._currentframe < _local3.fmin) {
_local3.fmin = _local1._currentframe;
}
}
function enemyCurrAnim() {
return(getEnemyT(GLOBAL_ENEMY).__animcurrent);
}
function playerCurrAnim() {
return(GLOBAL_PLAYER.__animcurrent);
}
function enemyPlay(thisone) {
goPlay(getEnemyT(GLOBAL_ENEMY), thisone);
}
function goPlayGetMinFrame(target, aname) {
if (target.__animmap != undefined) {
if (target.__animmap.hasOwnProperty(aname)) {
return(target.__animnamemap[aname].fmin);
}
}
return(undefined);
}
function goPlayGetMaxFrame(target, aname) {
if (target.__animmap != undefined) {
if (target.__animmap.hasOwnProperty(aname)) {
return(target.__animnamemap[aname].fmax);
}
}
return(undefined);
}
function fixURL(url) {
if (GLOBAL_LOCALSCOPE) {
} else if (GLOBAL_USEHTTPS) {
if (url.indexOf("http:") == 0) {
url = "https" + url.substring(4);
}
} else if (url.indexOf("https:") == 0) {
url = "http" + url.substring(5);
}
return(url);
}
function _loadGui(targ, url, usermessage) {
var tp = targ._parent;
tp.controllerClip = _root.controller;
tp.MovieClipLoaderURL = url;
tp.MovieClipLoaderStatus = 0;
tp.onLoadInit = function (target_mc) {
target_mc._visible = false;
target_mc.stop();
target_mc.G = _root.controller;
tp.MovieClipLoaderStatus = 3;
};
tp.onLoadComplete = function (target_mc, httpStatus) {
tp.MovieClipLoaderStatus = 2;
};
tp.onLoadProgress = function (target_mc, errorCode, httpStatus) {
tp.MovieClipLoaderStatus = 1;
};
tp.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("Could not load gui: " + tp.MovieClipLoaderURL);
Log("Could not load gui: " + tp.MovieClipLoaderURL);
tp.MovieClipLoaderStatus = -1;
};
var _local2 = new MovieClipLoader();
_local2.addListener(tp);
targ._visible = false;
_local2.loadClip(url, targ);
}
function _loadMovie(targ, url, usermessage) {
var tp = targ._parent;
GLOBAL_ENEMY.is_external_loaded = 0;
tp.controllerClip = _root.controller;
tp.MovieClipLoaderURL = url;
tp.onLoadInit = function (target_mc) {
target_mc.stop();
};
tp.onLoadComplete = function (target_mc, httpStatus) {
};
tp.onLoadProgress = function (target_mc, errorCode, httpStatus) {
};
tp.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("Could not load: " + tp.MovieClipLoaderURL);
Log("Could not load: " + tp.MovieClipLoaderURL);
var _local2 = 0;
while (_local2 < tp.controllerClip.GLOBAL_LOADEEMS.length) {
if (tp.controllerClip.GLOBAL_LOADEEMS[_local2] == tp.MovieClipLoaderURL) {
var _local3 = true;
var _local1 = 0;
while (_local1 < tp.controllerClip.GLOBAL_LOADEEMS_BROKEN.length) {
if (tp.controllerClip.GLOBAL_LOADEEMS_BROKEN[_local1] == tp.MovieClipLoaderURL) {
_local3 = false;
break;
}
_local1++;
}
if (_local3) {
tp.controllerClip.GLOBAL_LOADEEMS_BROKEN.push(tp.MovieClipLoaderURL);
}
}
_local2++;
}
};
var _local5 = new MovieClipLoader();
_local5.addListener(tp);
_local5.loadClip(url, targ);
}
function cameraComputeZoomScale(targetclip) {
var _local6 = targetclip._x - _parent.camControl._x;
var _local3 = targetclip._y - _parent.camControl._y;
var _local5 = (120 + ((1 - GLOBAL_CAMERA_ZOOMPLAYER) * (GLOBAL_FLOOR - 120))) - _parent.camControl._y;
var _local7 = -(targetclip._y - GLOBAL_FLOOR);
var _local2 = _local7 / ((GLOBAL_CAMERA_ZOOMPLAYER * 240) / 2);
if (_local2 > 1) {
_local2 = 1;
}
if (_local2 < 0) {
_local2 = 0;
}
_local3 = (_local2 * _local3) + ((1 - _local2) * _local5);
_parent.camControl._x = _parent.camControl._x + _local6;
_parent.camControl._y = _parent.camControl._y + _local3;
_parent.camControl._xscale = _parent.camControl._xscale * GLOBAL_CAMERA_ZOOMPLAYER;
_parent.camControl._yscale = _parent.camControl._yscale * GLOBAL_CAMERA_ZOOMPLAYER;
}
function isPaused() {
if (GLOBAL_PAUSE or GLOBAL_TRUEPAUSE) {
return(true);
}
return(false);
}
function mcPointToLocal(mc, px, py) {
var _local5 = new flash.geom.Point(px, py);
if (mc != undefined) {
var _local6 = new Array();
var _local8 = this._parent;
var _local2 = mc;
while (_local2 != _local8) {
_local6.unshift(_local2);
_local2 = _local2._parent;
}
var _local4 = 0;
var _local7 = _local6.length;
while (_local4 != _local7) {
_local2 = _local6[_local4];
var _local3 = _local2.transform.matrix.clone();
_local3.invert();
_local5 = _local3.transformPoint(_local5);
_local4++;
}
}
return(Object({_x:_local5.x, _y:_local5.y}));
}
function mcPointToGlobal(mc, px, py) {
var _local4 = new flash.geom.Point(px, py);
if (mc != undefined) {
var _local5 = this._parent;
var _local2 = mc;
while (_local2 != _local5) {
var _local3 = _local2.transform.matrix;
_local4 = _local3.transformPoint(_local4);
_local2 = _local2._parent;
}
}
return(Object({_x:_local4.x, _y:_local4.y}));
}
function rand(nval, pval) {
if (pval == undefined) {
if (nval == undefined) {
return(Math.random());
}
if (nval > 0) {
return(Math.floor(nval * Math.random()));
}
if (nval == 0) {
}
}
return(0);
}
function chance(percent) {
if (percent != undefined) {
return((100 * Math.random()) < percent);
}
return((100 * Math.random()) < 50);
}
function smoothChanceDown(healthpercent) {
var _local1 = 100 - healthpercent;
if (_local1 > 0) {
if (_local1 < 100) {
return(chance(_local1));
}
return(true);
}
return(false);
}
function smoothChanceUp(healthpercent) {
var _local1 = healthpercent;
if (_local1 > 0) {
if (_local1 < 100) {
return(chance(_local1));
}
return(true);
}
return(false);
}
function chanceSmoothLess(percent, lowpercent) {
if (percent <= lowpercent) {
return(true);
}
if (lowpercent < 100) {
(percent - lowpercent) / (100 - lowpercent);
} else {
return(true);
}
}
function chanceCall(percent, functionptr, arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
if (chance(percent)) {
functionptr(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
return(true);
}
return(false);
}
function histFromObject(A) {
var _local4 = new Array();
var _local2 = new Array();
for (akey in A) {
_local2.push(akey);
}
_local2.sort();
var _local1 = 0;
while (_local1 < _local2.length) {
_local4.push(A[_local2[_local1]]);
_local1++;
}
return(_local4);
}
function histToUnityRange(A) {
var _local3 = 0;
var _local4 = 0;
var _local5 = 0;
for (akey in A) {
var _local1 = A[akey];
if (_local1 < _local3) {
_local3 = _local1;
}
if (_local1 > _local4) {
_local4 = _local1;
}
_local5 = _local5 + _local1;
}
_local4 = _local4 / _local5;
_local3 = _local3 / _local5;
if (_local3 < _local4) {
var _local6 = new Object();
var _local7 = _local4 - _local3;
for (akey in A) {
_local6[akey] = ((A[akey] / _local5) - _local3) / _local7;
}
return(histFromObject(_local6));
}
return(histFromObject(A));
}
function histSelect(distofanims) {
var _local2 = new Array();
var _local9 = new Array();
var _local4 = 0;
var _local8 = 0;
for (akey in distofanims) {
var _local1 = distofanims[akey];
_local2.push(_local1);
_local9.push(akey);
if (_local1 < _local4) {
_local4 = _local1;
}
if (_local1 > _local8) {
_local8 = _local1;
}
}
if (_local4 < _local8) {
var _local7 = 0;
var _local3 = 0;
while (_local3 < _local2.length) {
var _local6 = _local2[_local3] - _local4;
_local7 = _local7 + _local6;
_local2[_local3] = _local7;
_local3++;
}
var _local10 = Math.random() * _local7;
_local3 = 0;
while (_local3 < _local2.length) {
if (_local2[_local3] > _local10) {
return(_local9[_local3]);
}
_local3++;
}
}
for (var _local11 in distofanims) {
return(_local11);
}
return(undefined);
}
function histBlend(A, B, factor) {
if (A.length == B.length) {
var _local2 = histToUnityRange(A);
var _local4 = histToUnityRange(B);
var _local3 = new Array(_local2.length);
var _local1 = 0;
while (_local1 < _local2.length) {
_local3[_local1] = _local2[_local1] + (factor * (_local4[_local1] - _local2[_local1]));
_local1++;
}
return(histToUnityRange(_local3));
}
return(histFromObject(A));
}
function setPlayerName(uname) {
GLOBAL_PLAYER.m_name = uname;
}
function setPlayerGraphic(sid, subid) {
if (sid < 1) {
sid = 1;
}
sid = sid % GLOBAL_MAX_PLAYERGRAPHIC;
if (sid < 1) {
sid = 1;
}
_root.GLOBAL_PLAYERGRAPHIC = sid;
if (subid != undefined) {
_root.GLOBAL_PLAYERSUBGRAPHIC = subid;
}
}
function getPlayerGraphic() {
return(_root.GLOBAL_PLAYERGRAPHIC);
}
function getPlayerSubGraphic() {
return(_root.GLOBAL_PLAYERSUBGRAPHIC);
}
function getPlayerMode() {
return(GLOBAL_PLAYER_MODE);
}
function isPlayerFacingEnemy() {
var _local1 = GLOBAL_ENEMY._xscale > 0;
var _local2 = GLOBAL_PLAYER._xscale > 0;
return(_local1 != _local2);
}
function playerFacing() {
if (GLOBAL_PLAYER._xscale >= 0) {
return(1);
}
return(-1);
}
function enemyFacing() {
if (GLOBAL_ENEMY._xscale >= 0) {
return(1);
}
return(-1);
}
function enemyFacingRight() {
return(GLOBAL_ENEMY._xscale >= 0);
}
function enemyFacingLeft() {
return(GLOBAL_ENEMY._xscale < 0);
}
function playerInputX() {
return(GLOBAL_PLAYER.in_movex);
}
function playerInputY() {
return(GLOBAL_PLAYER.in_movey);
}
function playerInputA() {
return(GLOBAL_PLAYER.in_action);
}
function playerTapReset() {
GLOBAL_PLAYER_TAPS.L = 2;
GLOBAL_PLAYER_TAPS.R = 2;
GLOBAL_PLAYER_TAPS.U = 2;
GLOBAL_PLAYER_TAPS.D = 2;
GLOBAL_PLAYER_TAPS.B = 2;
}
function playerTapGet() {
var _local1 = "";
for (var _local2 in GLOBAL_PLAYER_TAPS) {
if (GLOBAL_PLAYER_TAPS[_local2] == 1) {
_local1 = _local1 + _local2;
}
}
return(_local1);
}
function getPlayerRelativeMovement(option) {
if (option == undefined) {
option = 0;
}
var _local2 = GLOBAL_PLAYER;
var _local6 = GLOBAL_ENEMY;
var _local4 = _local6._xscale > 0;
var _local1 = "";
var _local3 = "";
if (_local2.in_action) {
_local1 = "B";
_local3 = _local3 + "B";
}
_local3 = _local1;
if (_local2.in_movex < 0) {
if (_local4) {
_local1 = _local1 + "L";
} else {
_local1 = _local1 + "R";
}
_local3 = _local1;
} else if (_local2.in_movex > 0) {
if (_local4) {
_local1 = _local1 + "R";
} else {
_local1 = _local1 + "L";
}
_local3 = _local1;
} else if (_local2.in_movey < 0) {
_local1 = _local1 + "D";
} else if (_local2.in_movey > 0) {
_local1 = _local1 + "U";
}
if (_local1 == "") {
}
if (option == 1) {
if (_local2.in_movey < 0) {
_local3 = _local3 + "D";
} else if (_local2.in_movey > 0) {
_local3 = _local3 + "U";
}
return(_local3);
}
return(_local1);
}
function getNextAnimation(AO, RM) {
var _local2 = "";
if (AO != undefined) {
if (RM == "B") {
if (AO.b != undefined) {
_local2 = AO.b;
}
} else if (RM == "L") {
if (AO.l != undefined) {
_local2 = AO.l;
}
} else if (RM == "R") {
if (AO.r != undefined) {
_local2 = AO.r;
}
} else if (RM == "U") {
if (AO.u != undefined) {
_local2 = AO.u;
}
} else if (RM == "D") {
if (AO.d != undefined) {
_local2 = AO.d;
}
} else if (RM == "BL") {
if (AO.bl != undefined) {
_local2 = AO.bl;
}
} else if (RM == "BR") {
if (AO.br != undefined) {
_local2 = AO.br;
}
} else if (RM == "BU") {
if (AO.bu != undefined) {
_local2 = AO.bu;
}
} else if (RM == "BD") {
if (AO.bd != undefined) {
_local2 = AO.bd;
}
} else if (RM == "LU") {
if (AO.lu != undefined) {
_local2 = AO.lu;
} else if (AO.l != undefined) {
_local2 = AO.l;
} else if (AO.u != undefined) {
_local2 = AO.u;
}
} else if (RM == "RU") {
if (AO.ru != undefined) {
_local2 = AO.ru;
} else if (AO.r != undefined) {
_local2 = AO.r;
} else if (AO.u != undefined) {
_local2 = AO.u;
}
} else if (RM == "LD") {
if (AO.ld != undefined) {
_local2 = AO.ld;
} else if (AO.l != undefined) {
_local2 = AO.l;
} else if (AO.d != undefined) {
_local2 = AO.d;
}
} else if (RM == "RD") {
if (AO.rd != undefined) {
_local2 = AO.rd;
} else if (AO.r != undefined) {
_local2 = AO.r;
} else if (AO.d != undefined) {
_local2 = AO.d;
}
} else if (RM == "BLU") {
if (AO.blu != undefined) {
_local2 = AO.blu;
} else if (AO.bl != undefined) {
_local2 = AO.bl;
} else if (AO.bu != undefined) {
_local2 = AO.bu;
} else if (AO.b != undefined) {
_local2 = AO.b;
} else if (AO.l != undefined) {
_local2 = AO.l;
} else if (AO.u != undefined) {
_local2 = AO.u;
}
} else if (RM == "BRU") {
if (AO.bru != undefined) {
_local2 = AO.bru;
} else if (AO.br != undefined) {
_local2 = AO.br;
} else if (AO.bu != undefined) {
_local2 = AO.bu;
} else if (AO.b != undefined) {
_local2 = AO.b;
} else if (AO.r != undefined) {
_local2 = AO.r;
} else if (AO.u != undefined) {
_local2 = AO.u;
}
} else if (RM == "BLD") {
if (AO.bld != undefined) {
_local2 = AO.bld;
} else if (AO.bl != undefined) {
_local2 = AO.bl;
} else if (AO.bd != undefined) {
_local2 = AO.bd;
} else if (AO.b != undefined) {
_local2 = AO.b;
} else if (AO.l != undefined) {
_local2 = AO.l;
} else if (AO.d != undefined) {
_local2 = AO.d;
}
} else if (RM == "BRD") {
if (AO.brd != undefined) {
_local2 = AO.brd;
} else if (AO.br != undefined) {
_local2 = AO.br;
} else if (AO.bd != undefined) {
_local2 = AO.bd;
} else if (AO.b != undefined) {
_local2 = AO.b;
} else if (AO.r != undefined) {
_local2 = AO.r;
} else if (AO.d != undefined) {
_local2 = AO.d;
}
}
}
return(_local2);
}
function initDigestion(target) {
_traceF1("initDigestion");
target.digeststruct = new Object();
target.digeststruct.frames = 0;
target.digeststruct.curr = 0;
target.digeststruct.escapes = new Array();
}
function startDigestion(target, onehpperframes) {
_traceF2("startDigestion");
if (target.digeststruct == undefined) {
initDigestion(target);
}
target.digeststruct.frames = onehpperframes;
}
function stopDigestion(target) {
_traceF1("stopDigestion");
target.digeststruct.frames = 0;
target.digeststruct.curr = 0;
target.digeststruct.escapes = new Array();
target.digeststruct = undefined;
}
function endDigestion(target) {
_traceF1("endDigestion");
target.digeststruct.frames = 0;
target.digeststruct.curr = 0;
target.digeststruct.escapes = new Array();
target.digeststruct = undefined;
}
function getDigestion(target) {
if (target.digeststruct == undefined) {
initDigestion(target);
}
return(target.digeststruct);
}
function enemyGetAnimStruct() {
if (GLOBAL_ENEMY.enemy.animstruct == undefined) {
if (GLOBAL_ENEMY.enemy.enemy.animstruct == undefined) {
if (GLOBAL_ENEMY.enemy.enemy.enemy.animstruct == undefined) {
// unexpected jump
}
return(GLOBAL_ENEMY.enemy.enemy.enemy.animstruct);
} else {
return(GLOBAL_ENEMY.enemy.enemy.animstruct);
}
} else {
return(GLOBAL_ENEMY.enemy.animstruct);
}
return(undefined);
}
function enemyGetDigestionStruct() {
if (GLOBAL_ENEMY.enemy.digeststruct == undefined) {
if (GLOBAL_ENEMY.enemy.enemy.digeststruct == undefined) {
if (GLOBAL_ENEMY.enemy.enemy.enemy.digeststruct == undefined) {
// unexpected jump
}
return(GLOBAL_ENEMY.enemy.enemy.enemy.digeststruct);
} else {
return(GLOBAL_ENEMY.enemy.enemy.digeststruct);
}
} else {
return(GLOBAL_ENEMY.enemy.digeststruct);
}
return(undefined);
}
function hurtPlayer(whodoes, amount) {
if (amount >= 0) {
if (GLOBAL_PLAYER.hp > amount) {
GLOBAL_PLAYER.hp = GLOBAL_PLAYER.hp - amount;
} else {
GLOBAL_PLAYER.hp = 0;
}
} else {
healPlayer(whodoes, -amount);
}
}
function healPlayer(whodoes, amount) {
if (amount >= 0) {
GLOBAL_PLAYER.hp = GLOBAL_PLAYER.hp + amount;
if (GLOBAL_PLAYER.hp > GLOBAL_PLAYER.maxhp) {
GLOBAL_PLAYER.hp = GLOBAL_PLAYER.maxhp;
}
} else {
hurtPlayer(whodoes, -amount);
}
}
function healEnemy(amount, optiona) {
if (optiona != undefined) {
amount = optiona;
}
if (amount >= 0) {
GLOBAL_ENEMY.hp = GLOBAL_ENEMY.hp + amount;
if (GLOBAL_ENEMY.hp > GLOBAL_ENEMY.maxhp) {
GLOBAL_ENEMY.hp = GLOBAL_ENEMY.maxhp;
}
} else {
hurtEnemy(-amount);
}
}
function hurtEnemy(amount, optiona) {
if (optiona != undefined) {
amount = optiona;
}
if (amount >= 0) {
if (GLOBAL_ENEMY.hp > amount) {
GLOBAL_ENEMY.hp = GLOBAL_ENEMY.hp - amount;
} else {
GLOBAL_ENEMY.hp = 0;
}
} else {
healEnemy(-amount);
}
}
function enemySetIgnoreHits(vals) {
if (vals != 0) {
GLOBAL_ENEMY.ignore_hitanim = 1;
} else {
GLOBAL_ENEMY.ignore_hitanim = 0;
}
}
function enemySetIgnoreWeakHits(vals) {
if (vals == undefined) {
GLOBAL_ENEMY.ignore_hitweak = -1;
} else {
GLOBAL_ENEMY.ignore_hitweak = vals;
}
}
function enemySetDontPlayHitAnimation(vals) {
if (vals != 0) {
GLOBAL_ENEMY.ignore_hitanimonly = 1;
} else {
GLOBAL_ENEMY.ignore_hitanimonly = 0;
}
}
function enemySetAttackHistogram(vallow, valmedium, valhigh) {
if (vallow == undefined) {
vallow = 0;
}
if (valmedium == undefined) {
valmedium = 0;
}
if (valhigh == undefined) {
valhigh = 0;
}
if (valhigh < 0) {
valhigh = 0;
}
if (valmedium < 0) {
valmedium = 0;
}
if (vallow < 0) {
vallow = 0;
}
if (((valhigh + valmedium) + vallow) <= 0) {
vallow = 0.09;
valmedium = 0.71;
valhigh = 0.1;
}
var _local1 = new Array(valhigh, vallow, valmedium);
var _local5 = (_local1[0] + _local1[1]) + _local1[2];
_local1[0] = _local1[0] / _local5;
_local1[1] = _local1[1] / _local5;
_local1[2] = _local1[2] / _local5;
GLOBAL_ENEMY_ATKUSE = _local1;
}
function enemySetAllowPets(doit) {
GLOBAL_ALLOW_PETS = doit;
}
function getNumEscapes(targ) {
if (targ.digeststruct != undefined) {
var _local1 = targ.digeststruct;
if (_local1.escapes != undefined) {
return(_local1.escapes.length);
}
}
return(0);
}
function toggleOption(optname) {
if (GLOBAL_OPTIONS[optname] > 0) {
GLOBAL_OPTIONS[optname] = 0;
} else {
GLOBAL_OPTIONS[optname] = 1;
}
}
function getOption(optname) {
return(GLOBAL_OPTIONS[optname]);
}
function setAnims(targ, AO) {
if (targ.animstruct == undefined) {
targ.animstruct = new Object();
}
targ.animstruct = AO;
}
function clearAnims(targ, AO) {
targ.animstruct = undefined;
}
function replaceEscape(targ, nextanim, inputseq, count, options) {
return(setEscape(targ, nextanim, inputseq, count, options, true));
}
function setEscape(targ, nextanim, inputseq, count, options, specialkey) {
if (targ.digeststruct != undefined) {
var _local2 = targ.digeststruct;
var _local7 = new Object();
_local7.inseq = inputseq;
_local7.count = count;
_local7.options = options;
_local7.curr = 0;
_local7.anim = nextanim;
_local7.inputs = new Array();
var _local9 = inputseq.split(" ");
var _local1 = 0;
while (_local1 < _local9.length) {
var _local5 = _local9[_local1].toUpperCase();
var _local6 = "";
var _local4 = 0;
while (_local4 < _local5.length) {
var _local3 = _local5.charCodeAt(_local4);
if ((_local3 >= 65) && (_local3 <= 90)) {
_local6 = _local6 + String.fromCharCode(_local3);
}
_local4++;
}
if (_local6.length > 0) {
_local7.inputs.push(_local6);
}
_local1++;
}
if (_local2.escapes == undefined) {
_local2.escapes = new Array();
_local2.escapes.push(_local7);
} else {
var _local8 = true;
_local1 = 0;
while (_local1 < _local2.escapes.length) {
if (_local2.escapes[_local1].anim == nextanim) {
if (specialkey == true) {
if (_local8 == true) {
_local2.escapes[_local1].inseq = _local7.inseq;
_local2.escapes[_local1].inputs = _local7.inputs;
_local2.escapes[_local1].options = _local7.options;
_local2.escapes[_local1].count = count;
_local8 = false;
} else {
_local2.escapes.splice(_local1, 1);
_local1--;
}
} else if (_local2.escapes[_local1].inseq == inputseq) {
if (_local2.escapes[_local1].options == options) {
_local8 = false;
}
}
}
_local1++;
}
if (_local8) {
_local2.escapes.push(_local7);
}
}
}
}
function setBlockEscape(nframes) {
var _local1 = getEnemyT(GLOBAL_ENEMY);
if (_local1.digeststruct != undefined) {
_local1.digeststruct.blockescapes = nframes;
}
}
function updateOnlyDigestion(target) {
if (target.digeststruct != undefined) {
var _local2 = target.digeststruct;
if (_local2.frames > 0) {
_local2.curr = _local2.curr + 1;
this.hurtPlayer(target, 1 / _local2.frames);
}
}
}
function updateDigestion(target, movedex) {
var _local8 = "";
if (target.digeststruct != undefined) {
var _local7 = target.digeststruct;
updateOnlyDigestion(target);
if (_local7.escapes != undefined) {
if (movedex == "") {
if (GLOBAL_PLAYER.hp < 1) {
movedex = "E";
} else {
movedex = "W";
}
}
var _local5 = 0;
while (_local5 < _local7.escapes.length) {
var _local1 = _local7.escapes[_local5];
var _local4 = false;
var _local2 = 0;
while (_local2 < _local1.inputs.length) {
if (_local1.inputs[_local2] == "W") {
_local4 = true;
break;
}
_local2++;
}
if (_local4) {
if (movedex != "W") {
_local1.curr = 0;
}
} else {
_local1.curr = _local1.curr - 0.0333333333333333;
}
if (_local1.curr < 0) {
_local1.curr = 0;
}
if (movedex != undefined) {
var _local6 = 0;
_local2 = 0;
while (_local2 < _local1.inputs.length) {
if (_local1.inputs[_local2] == movedex) {
_local6 = true;
break;
}
_local2++;
}
if (_local6) {
if (movedex == "W") {
_local1.curr = _local1.curr + 0.0333333333333333;
} else {
_local1.curr = _local1.curr + 1;
}
if (_local1.curr > _local1.count) {
if (_local8 == "") {
_local8 = _local1.anim;
_local1.curr = 0;
}
}
}
}
_local5++;
}
}
if (_local7.blockescapes != undefined) {
_local7.blockescapes--;
if (_local7.blockescapes < 1) {
_local7.blockescapes = undefined;
}
}
}
return(_local8);
}
function upMapAOVars(AO) {
if (AO != undefined) {
if (AO.E != undefined) {
if (AO.e == undefined) {
AO.e = AO.E;
}
}
if (AO.W != undefined) {
if (AO.w == undefined) {
AO.w = AO.W;
}
}
if (AO.L != undefined) {
if (AO.l == undefined) {
AO.l = AO.L;
}
}
if (AO.R != undefined) {
if (AO.r == undefined) {
AO.r = AO.R;
}
}
if (AO.U != undefined) {
if (AO.u == undefined) {
AO.u = AO.U;
}
}
if (AO.D != undefined) {
if (AO.d == undefined) {
AO.d = AO.D;
}
}
if (AO.B != undefined) {
if (AO.b == undefined) {
AO.b = AO.B;
}
}
if (AO.BL != undefined) {
if (AO.bl == undefined) {
AO.bl = AO.BL;
}
}
if (AO.BR != undefined) {
if (AO.br == undefined) {
AO.br = AO.BR;
}
}
if (AO.BU != undefined) {
if (AO.bu == undefined) {
AO.bu = AO.BU;
}
}
if (AO.BD != undefined) {
if (AO.bd == undefined) {
AO.bd = AO.BD;
}
}
if (AO.LU != undefined) {
if (AO.lu == undefined) {
AO.lu = AO.LU;
}
}
if (AO.RU != undefined) {
if (AO.ru == undefined) {
AO.ru = AO.RU;
}
}
if (AO.LD != undefined) {
if (AO.ld == undefined) {
AO.ld = AO.LD;
}
}
if (AO.RD != undefined) {
if (AO.rd == undefined) {
AO.rd = AO.RD;
}
}
if (AO.BLU != undefined) {
if (AO.blu == undefined) {
AO.blu = AO.BLU;
}
}
if (AO.BRU != undefined) {
if (AO.bru == undefined) {
AO.bru = AO.BRU;
}
}
if (AO.BLD != undefined) {
if (AO.bld == undefined) {
AO.bld = AO.BLD;
}
}
if (AO.BRD != undefined) {
if (AO.brd == undefined) {
AO.brd = AO.BRD;
}
}
}
}
function handleBasicStruggle(targ, AO) {
if (targ.animstruct != undefined) {
if (AO == undefined) {
AO = targ.animstruct;
}
}
upMapAOVars(AO);
targ.animstruct = AO;
if (AO != undefined) {
if (GLOBAL_PLAYER.hp < 1) {
if (AO.e != undefined) {
goPlay(targ, AO.e);
return(false);
}
}
}
var _local4 = getPlayerRelativeMovement(1);
if (targ.digeststruct != undefined) {
var _local5 = targ.digeststruct;
if (_local5.blockescapes != undefined) {
_local4 = "";
}
}
var _local2 = updateDigestion(targ, _local4);
if (_local2 == "") {
_local2 = getNextAnimation(AO, _local4);
if (_local2 != "") {
goPlay(targ, _local2);
_traceF2((("Handle digest update, play this: " + _local2) + " from ") + targmoveindex);
return(true);
}
_traceF2((("Handle digest update, play this digest: " + _local2) + " from ") + targmoveindex);
} else {
goPlay(targ, _local2);
return(true);
}
return(false);
}
function actGet(target) {
var _local1 = new Object();
_local1.idle = target.s_idle;
_local1.attack = target.s_atktype;
_local1.busy = target.s_animbusy;
_local1.moving = target.s_moving;
_local1.attacking = target.s_attacking;
_local1.hit = target.s_hit;
_local1.inputX = target.in_movex;
_local1.inputY = target.in_movey;
_local1.inputA = target.in_action;
_local1.vx = target.s_vx;
return(_local1);
}
function actIdle(target) {
_traceF1("actIdle");
target.s_idle = 1;
target.s_atktype = 0;
target.s_animbusy = 0;
target.s_moving = 0;
target.s_attacking = 0;
target.s_hit = 0;
target.in_movex = 0;
target.in_movey = 0;
target.in_action = 0;
target.s_vx = 0;
}
function actMove(target, uvx) {
_traceF1("actMove");
target.s_idle = 0;
if (uvx != undefined) {
target.s_moving = uvx;
} else {
target.s_moving = 0;
}
target.s_attacking = 0;
target.s_hit = 0;
target.s_animbusy = 0;
}
function actSetMove(target, amt) {
if (amt == undefined) {
amt = 0;
}
target.s_moving = amt;
}
function actMoveAttack(target, uvx, attype) {
_traceF1("actMoveAttack");
target.s_idle = 0;
if (uvx != undefined) {
target.s_moving = uvx;
} else {
target.s_moving = 0;
}
target.s_attacking = 0;
target.s_hit = 0;
target.s_animbusy = 0;
target.s_attacking = 1;
target.s_animbusy = 0;
target.s_atktype = attype;
}
function actHurt(target, knockback) {
_traceF1("actHurt");
target.s_idle = 0;
target.s_moving = 0;
target.s_attacking = 0;
target.s_hit = 1;
target.s_animbusy = 1;
if (knockback != undefined) {
target.s_vx = knockback;
} else {
target.s_vx = 0;
}
}
function actAttack(target, type) {
_traceF1("actAttack");
target.s_idle = 0;
target.s_moving = 0;
target.s_attacking = 1;
target.s_hit = 0;
target.s_animbusy = 1;
target.s_atktype = type;
}
function actBusy(target, movex) {
_traceF1("actBusy");
target.s_idle = 0;
target.s_moving = 0;
target.s_attacking = 0;
target.s_hit = 1;
target.s_animbusy = 1;
if (movex != undefined) {
target.s_vx = -movex;
target.s_moving = -movex;
} else {
target.s_moving = 0;
target.s_vx = 0;
}
}
function actSetBusy(target, mv) {
target.s_animbusy = mv;
}
function actUnbusy(target) {
_traceF1("actUnbusy");
target.s_hit = 0;
target.s_animbusy = 0;
target.s_vx = 0;
}
function consumePlayer(target) {
_traceF1("consumePlayer");
var _local1 = GLOBAL_PLAYER;
_local1.s_consumed = 1;
_local1._alpha = 0;
_local1.s_animbusy = 1;
_local1.s_hit = 1;
_local1.s_vx = 0;
_local1.in_movex = 0;
_local1.in_movey = 0;
_local1.in_action = 0;
_local1.stop();
_local1.mc.stop();
GLOBAL_ENEMY.s_atktype = 8;
}
function isPlayerConsumed(target) {
if (target == undefined) {
target = GLOBAL_PLAYER;
}
if (target.s_consumed != undefined) {
return(target.s_consumed > 0);
}
return(target._alpha < 50);
}
function suckPlayer(target, range, speed) {
var _local3 = GLOBAL_PLAYER;
var _local4 = mcPointToGlobal(target, 0, 0);
var _local2 = _local4._x - _local3._x;
if (Math.abs(_local2) < range) {
var _local1 = 1 - Math.abs(_local2 / range);
if (_local2 < 0) {
_local1 = -_local1;
}
_local3._x = _local3._x + (speed * _local1);
}
}
function instantKillPlayer(target) {
_traceF1("instantKillPlayer");
var _local1 = GLOBAL_PLAYER;
_local1.hp = 0;
}
function setPlayerStatus(msg) {
GLOBAL_PLAYER.m_status = msg;
}
function setPlayerMode(newmode) {
if (newmode == undefined) {
GLOBAL_PLAYER_MODE++;
if (GLOBAL_PLAYER_MODE > GLOBAL_PLAYER_MODE_MAX) {
GLOBAL_PLAYER_MODE = 0;
}
} else if ((newmode >= 0) && (newmode <= GLOBAL_PLAYER_MODE_MAX)) {
GLOBAL_PLAYER_MODE = newmode;
}
if (GLOBAL_PLAYER_MODE == 0) {
setPlayerSparkAt(GLOBAL_PLAYER);
setPlayerSparkPhysics("MoveUp,2");
GLOBAL_PLAYERSPARK.gotoAndPlay("number" + GLOBAL_PLAYER_MODE);
} else if (GLOBAL_PLAYER_MODE == 1) {
setPlayerSparkAt(GLOBAL_PLAYER);
setPlayerSparkPhysics("MoveUp,2");
GLOBAL_PLAYERSPARK.gotoAndPlay("number" + GLOBAL_PLAYER_MODE);
}
}
function pointsSetPerDamage(factor) {
if (factor > 0) {
GLOBAL_SCORE_ON_DAMAGE = factor;
} else {
GLOBAL_SCORE_ON_DAMAGE = 0;
}
}
function pointsAdd(amount, dontuselog) {
if (amount > 0) {
GLOBAL_POINTS = GLOBAL_POINTS + amount;
if (dontuselog == 1) {
Log(((GLOBAL_PLAYER.m_name + " got ") + amount) + " points!");
}
}
}
function pointsGet(amount) {
return(GLOBAL_POINTS);
}
function pointsGetFightDelta(amount) {
return(GLOBAL_POINTS - GLOBAL_POINTS_START);
}
function setHAtk(v) {
GLOBAL_ENEMY.hatk = v;
}
function setMAtk(v) {
GLOBAL_ENEMY.matk = v;
}
function setLAtk(v) {
GLOBAL_ENEMY.latk = v;
}
function setHDef(v) {
GLOBAL_ENEMY.hdef = v;
}
function setMDef(v) {
GLOBAL_ENEMY.mdef = v;
}
function setLDef(v) {
GLOBAL_ENEMY.ldef = v;
}
function setMaxHP(v) {
GLOBAL_ENEMY.maxhp = v;
}
function setHP(v) {
GLOBAL_ENEMY.hp = v;
}
function setHMLDef(vh, vm, vl) {
GLOBAL_ENEMY.hdef = vh;
GLOBAL_ENEMY.mdef = vm;
GLOBAL_ENEMY.ldef = vl;
}
function setHMLAtk(vh, vm, vl) {
GLOBAL_ENEMY.hatk = vh;
GLOBAL_ENEMY.matk = vm;
GLOBAL_ENEMY.latk = vl;
}
function setScaleValue(v) {
GLOBAL_ENEMY.m_scale = v;
GLOBAL_ENEMY.enemy.m_scale = v;
getEnemyT(GLOBAL_ENEMY).m_scale = v;
var _local2 = 100 * (100 / v);
if (GLOBAL_ENEMY._xscale >= 0) {
GLOBAL_ENEMY._xscale = 100;
} else {
GLOBAL_ENEMY._xscale = -100;
}
GLOBAL_ENEMY._yscale = 100;
getEnemyT(GLOBAL_ENEMY)._xscale = _local2;
getEnemyT(GLOBAL_ENEMY)._yscale = _local2;
}
function setName(v) {
GLOBAL_ENEMY.m_name = v;
}
function setStatus(v) {
GLOBAL_ENEMY.m_status = v;
}
function setCredit(v) {
GLOBAL_ENEMY.m_credit = v;
}
function getHAtk() {
return(GLOBAL_ENEMY.hatk);
}
function getMAtk() {
return(GLOBAL_ENEMY.matk);
}
function getLAtk() {
return(GLOBAL_ENEMY.latk);
}
function getHDef() {
return(GLOBAL_ENEMY.hdef);
}
function getMDef() {
return(GLOBAL_ENEMY.mdef);
}
function getLDef() {
return(GLOBAL_ENEMY.ldef);
}
function getMaxHP() {
return(GLOBAL_ENEMY.maxhp);
}
function getHP() {
return(GLOBAL_ENEMY.hp);
}
function getScaleValue() {
return(GLOBAL_ENEMY.m_scale);
}
function getName() {
return(GLOBAL_ENEMY.m_name);
}
function getStatus() {
return(GLOBAL_ENEMY.m_status);
}
function getCredit() {
return(GLOBAL_ENEMY.m_credit);
}
function resetHAtk(v) {
GLOBAL_ENEMY.hatk = GLOBAL_ENEMY.hatk_original;
}
function resetMAtk(v) {
GLOBAL_ENEMY.matk = GLOBAL_ENEMY.matk_original;
}
function resetLAtk(v) {
GLOBAL_ENEMY.latk = GLOBAL_ENEMY.latk_original;
}
function resetHDef(v) {
GLOBAL_ENEMY.hdef = GLOBAL_ENEMY.hdef_original;
}
function resetMDef(v) {
GLOBAL_ENEMY.mdef = GLOBAL_ENEMY.mdef_original;
}
function resetLDef(v) {
GLOBAL_ENEMY.ldef = GLOBAL_ENEMY.ldef_original;
}
function resetMaxHP(v) {
GLOBAL_ENEMY.maxhp = GLOBAL_ENEMY.maxhp_original;
}
function setEnemySolid(v) {
if (v == 1) {
GLOBAL_ENEMY.m_notsolid = undefined;
} else {
GLOBAL_ENEMY.m_notsolid = 1;
}
}
function setEnemyFaceTarget(v) {
if (v == 1) {
GLOBAL_ENEMY.m_dontfacetarget = 0;
} else {
GLOBAL_ENEMY.m_dontfacetarget = 1;
}
}
function setEnemyAIUseAttacks(v) {
if (v == 1) {
GLOBAL_ENEMY.m_dontattackauto = undefined;
} else {
GLOBAL_ENEMY.m_dontattackauto = 1;
}
}
function setPlayerHP(v) {
GLOBAL_PLAYER.hp = v;
}
function setPlayerAbove(ynq) {
if (ynq == 1) {
if (GLOBAL_PLAYER.getDepth() < GLOBAL_ENEMY.getDepth()) {
GLOBAL_ENEMY.swapDepths(GLOBAL_PLAYER);
}
} else if (GLOBAL_PLAYER.getDepth() > GLOBAL_ENEMY.getDepth()) {
GLOBAL_ENEMY.swapDepths(GLOBAL_PLAYER);
}
}
function enemyReplaceWalk(newanim) {
if (newanim == undefined) {
newanim = "walk";
}
GLOBAL_ENEMY.replaceAnimWalk = newanim;
if (getEnemyT(GLOBAL_ENEMY).__animcurrent != newanim) {
goPlay(getEnemyT(GLOBAL_ENEMY), newanim);
}
}
function syncSubclip(owner, subclip, framename, funccall) {
if (GLOBAL_SYNCMAP.hasOwnProperty(subclip)) {
GLOBAL_SYNCMAP[subclip].framename = framename;
GLOBAL_SYNCMAP[subclip].owner = owner;
GLOBAL_SYNCMAP[subclip].target = subclip;
GLOBAL_SYNCMAP[subclip].ownerstring = String(owner);
GLOBAL_SYNCMAP[subclip].targetstring = String(subclip).substr(GLOBAL_SYNCMAP[subclip].ownerstring.length);
GLOBAL_SYNCMAP[subclip].funccall = funccall;
} else {
var _local2 = new Object();
_local2.framename = framename;
_local2.owner = owner;
_local2.target = subclip;
_local2.funccall = funccall;
_local2.ownerstring = String(owner);
_local2.targetstring = String(subclip).substr(_local2.ownerstring.length);
_local2.fixedframemap = new Object();
GLOBAL_SYNCMAP[subclip] = _local2;
}
}
function setPreSync(func) {
GLOBAL_PRESYNC = func;
}
function setPostSync(func) {
GLOBAL_POSTSYNC = func;
}
function isV(key) {
return(GLOBAL_VALUES.hasOwnProperty(key));
}
function setValue(key, val) {
if (GLOBAL_VALUES[key] != val) {
_traceF1(((("setValue( " + key) + ", ") + val) + ");");
}
GLOBAL_VALUES[key] = val;
}
function getValue(key, usedefault) {
if (GLOBAL_VALUES.hasOwnProperty(key)) {
return(GLOBAL_VALUES[key]);
}
return(usedefault);
}
function hasValue(key) {
return(GLOBAL_VALUES.hasOwnProperty(key));
}
function addValue(key, addme) {
if (GLOBAL_VALUES.hasOwnProperty(key)) {
if (addme != val) {
_traceF1(((("addValue( " + key) + ", ") + addme) + ");");
}
GLOBAL_VALUES[key] = GLOBAL_VALUES[key] + addme;
return(true);
}
trace(("Value: " + key) + " does not exist, adding as 0");
GLOBAL_VALUES[key] = addme;
return(false);
}
function setF(key, func) {
GLOBAL_FUNCS[key] = func;
}
function callF(key, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
if (GLOBAL_FUNCS.hasOwnProperty(key)) {
return(GLOBAL_FUNCS[key](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7));
}
trace(("callF: " + key) + " does not exist");
}
function setAnimPrefix(target, v) {
target.__aniprefix = v;
}
function unconsumePlayer(target, xposrel, playanim) {
_traceF1("unconsumePlayer");
if (isPlayerConsumed(GLOBAL_PLAYER)) {
var _local2 = GLOBAL_PLAYER;
_local2.s_consumed = 0;
_local2._alpha = 100;
_local2.s_animbusy = 0;
_local2.s_hit = 1;
_local2.s_vx = 0;
_local2.in_movex = 0;
_local2.in_movey = 0;
_local2.in_action = 0;
if (playanim != undefined) {
goPlay(_local2, playanim);
} else {
goPlay(_local2, "hitm");
}
trace((((target + " ") + target._parent) + " ") + target._parent._parent);
if (xposrel != undefined) {
if (target._parent._parent == GLOBAL_ENEMY) {
_local2._x = target._parent._parent._x + ((xposrel * (target._xscale / 100)) * (target._parent._parent._xscale / 100));
} else {
_local2._x = target._parent._x + ((xposrel * (target._xscale / 100)) * (target._parent._xscale / 100));
}
} else if (target._parent._parent == GLOBAL_ENEMY) {
_local2._x = target._parent._parent._x + ((32 * (target._xscale / 100)) * (target._parent._parent._xscale / 100));
} else {
_local2._x = target._parent._x + ((32 * (target._xscale / 100)) * (target._parent._xscale / 100));
}
}
}
function enemySetViewBetween(doit) {
if (doit == 0) {
GLOBAL_SHOW_PLAYER_INSIDEPLUS_ENEMY_ENABLE = false;
} else {
GLOBAL_SHOW_PLAYER_INSIDEPLUS_ENEMY_ENABLE = true;
}
}
function playerSignedDistance(target) {
var _local3 = GLOBAL_ENEMY._x;
var _local2 = GLOBAL_PLAYER._x;
var _local4 = GLOBAL_ENEMY._xscale < 0;
var _local6 = getCBox(GLOBAL_PLAYER);
if (target == undefined) {
target = getEnemyT(GLOBAL_ENEMY);
}
var _local5 = getCBox(GLOBAL_ENEMY.enemy);
if ((_local6 != undefined) and (_local5 != undefined)) {
A = _local6.getBounds(_root);
B = _local5.getBounds(_root);
if (!_local4) {
_local3 = B.xMax;
_local2 = A.xMin;
} else {
_local3 = B.xMin;
_local2 = A.xMax;
}
}
if (_local4) {
return(_local3 - _local2);
}
return(_local2 - _local3);
}
function playerDistance(target) {
var _local3 = getCBox(GLOBAL_PLAYER);
if (target == undefined) {
target = getEnemyT(GLOBAL_ENEMY);
}
var _local2 = getCBox(GLOBAL_ENEMY.enemy);
if ((_local3 != undefined) and (_local2 != undefined)) {
A = _local3.getBounds(_root);
B = _local2.getBounds(_root);
if ((A.xMin <= B.xMax) and (A.xMax >= B.xMin)) {
if ((A.yMin <= B.yMax) and (A.yMax >= B.yMin)) {
return(-Math.abs(0.5 * ((A.xMax + A.xMin) - (B.xMax + B.xMin))));
}
}
if (A.xMin >= B.xMax) {
return(Math.abs(B.xMax - A.xMin));
}
if (A.xMax <= B.xMin) {
return(Math.abs(B.xMin - A.xMax));
}
}
return(Math.abs(GLOBAL_PLAYER._x - GLOBAL_ENEMY._x));
}
function playerEnemyCenterDistance() {
var _local1 = (GLOBAL_PLAYER._x - GLOBAL_ENEMY._x) * 1;
if (GLOBAL_ENEMY._xscale < 0) {
return(-_local1);
}
return(_local1);
}
function playerWithin(target, distance, fardistance) {
if (fardistance != undefined) {
var _local1 = playerDistance(target);
return((_local1 >= distance) and (_local1 <= fardistance));
}
return(playerDistance(target) < distance);
}
function playSound(soundkey, extravolume, exparam) {
var _local5 = _parent.soundbank;
if (extravolume != undefined) {
var _local7 = new Sound(_local5);
_local7.setVolume(extravolume);
} else {
var _local7 = new Sound(_local5);
_local7.setVolume(100);
}
var _local4 = "";
var _local2 = 0;
while (_local2 < soundkey.length) {
if (soundkey.charCodeAt(_local2) == 46) {
_local4 = _local4 + "_";
} else {
_local4 = _local4 + soundkey.charAt(_local2);
}
_local2++;
}
var _local9 = _local5._currentframe;
_local5.gotoAndPlay(1);
_local5.gotoAndPlay(_local4);
var _local6 = _local5._currentframe;
if (_local6 == 1) {
trace(((((((((((("Manual soundplay" + _local5) + ": ") + _local4) + " :") + extravolume) + " |") + exparam) + " [") + _local9) + " ") + _local6) + "]");
}
}
function _getCBox(bc) {
if (bc.cbox != undefined) {
return(bc.cbox);
}
if (bc.cBox != undefined) {
return(bc.cBox);
}
if (bc.Cbox != undefined) {
return(bc.Cbox);
}
if (bc.CBox != undefined) {
return(bc.CBox);
}
if (bc.CBOX != undefined) {
return(bc.CBOX);
}
return(undefined);
}
function _getABox(bc) {
if (bc.abox != undefined) {
return(bc.abox);
}
if (bc.aBox != undefined) {
return(bc.aBox);
}
if (bc.Abox != undefined) {
return(bc.Abox);
}
if (bc.ABox != undefined) {
return(bc.ABox);
}
if (bc.ABOX != undefined) {
return(bc.ABOX);
}
return(undefined);
}
function _getSBox(bc) {
if (bc.sbox != undefined) {
return(bc.sbox);
}
if (bc.sBox != undefined) {
return(bc.sBox);
}
if (bc.Sbox != undefined) {
return(bc.Sbox);
}
if (bc.SBox != undefined) {
return(bc.SBox);
}
if (bc.SBOX != undefined) {
return(bc.SBOX);
}
return(undefined);
}
function _getScopelessFunc(bc, usefunc) {
var _local1 = usefunc(bc);
if (_local1 != undefined) {
return(_local1);
}
_local1 = usefunc(bc.aniclip.mc);
if (_local1 != undefined) {
return(_local1);
}
_local1 = usefunc(bc.aniclip.mc.mc);
if (_local1 != undefined) {
return(_local1);
}
_local1 = usefunc(bc.enemy);
if (_local1 != undefined) {
return(_local1);
}
return(undefined);
}
function getCBox(mc) {
return(_getScopelessFunc(mc, _getCBox));
}
function getABox(mc) {
return(_getScopelessFunc(mc, _getABox));
}
function getSBox(mc) {
return(_getScopelessFunc(mc, _getSBox));
}
function getEnemyT(GE) {
if (GE.enemy.enemy != undefined) {
return(GE.enemy.enemy);
}
return(GE.enemy);
}
function getEnemyGSync(GC) {
var _local2 = GC;
while (_local2.VICSYNC == undefined) {
if (_local2.VICSYNC != undefined) {
return(_local2);
}
if (_local2 == _root) {
return(undefined);
}
_local2 = _local2._parent;
}
return(_local2);
}
function getEnemyURL(index) {
if (index > GLOBAL_MAXENEMYNONEXTERNAL) {
var _local1 = (index - GLOBAL_MAXENEMYNONEXTERNAL) - 1;
if (_local1 < GLOBAL_LOADEEMS.length) {
return(GLOBAL_LOADEEMS[_local1]);
}
}
return("");
}
function getEnemyURLIndex(index) {
if (index > GLOBAL_MAXENEMYNONEXTERNAL) {
var _local1 = (index - GLOBAL_MAXENEMYNONEXTERNAL) - 1;
if (_local1 < GLOBAL_LOADEEMS.length) {
return(_local1);
}
}
return(-1);
}
function stringTrimR(s, char, flip) {
if (flip == undefined) {
flip = 0;
}
if (flip) {
var _local4 = s.indexOf(char);
var _local1 = _local4;
while (_local4 > 0) {
_local1 = _local4;
_local4 = s.indexOf(char, _local1 + 1);
}
if (_local1 >= 0) {
s = s.substr(_local1 + 1);
}
} else {
var _local4 = s.indexOf(char);
if (_local4 > 0) {
s = s.substr(0, _local4);
}
}
return(s);
}
function stringTrimL(s, char, flip) {
if (flip == undefined) {
flip = 0;
}
var _local1 = s.indexOf(char);
var _local2 = _local1;
while (_local1 > 0) {
_local2 = _local1;
_local1 = s.indexOf(char, _local2 + 1);
}
if (_local2 >= 0) {
if (flip) {
s = s.substr(0, _local2);
} else {
s = s.substr(_local2 + 1);
}
}
return(s);
}
function getEnemyURLName(index) {
var _local1 = "";
if (GLOBAL_ENEMY_DATA.hasOwnProperty(index)) {
var _local5 = GLOBAL_ENEMY_DATA[index];
var _local4 = _local5.m_name;
var _local3 = _local5.m_status;
var _local2 = _local5.m_credit;
if (_local4 == undefined) {
_local4 = "?";
}
if (_local3 == undefined) {
_local3 = "?";
}
if (_local2 == undefined) {
_local2 = "?";
}
_local1 = ((((_local4 + ", ") + _local3) + "[") + _local2) + "]";
} else {
_local1 = getEnemyURL(index);
_local1 = stringTrimL(_local1, "/");
_local1 = stringTrimL(_local1, ".", 1);
_local1 = stringTrimL(_local1, ".");
}
return(_local1);
}
function _getScopeless(bc, targetname) {
var _local1 = function (xc) {
if (xc.hasOwnProperty(targetname)) {
return(xc[targetname]);
}
return(undefined);
};
return(_getScopelessFunc(bc, _local1));
}
function reassignAllXClips(mc) {
var _local3 = getCBox(mc);
if (_local3 == mc) {
_local3 = undefined;
}
if (_local3 != mc.cbox) {
mc.cbox = _local3;
}
if (_local3 != mc.cBox) {
mc.cBox = _local3;
}
if (_local3 != mc.CBox) {
mc.CBox = _local3;
}
if (_local3 != mc.CBOX) {
mc.CBOX = _local3;
}
var _local4 = getABox(mc);
if (_local4 == mc) {
_local4 = undefined;
}
if (_local4 != mc.abox) {
mc.abox = _local4;
}
if (_local4 != mc.aBox) {
mc.aBox = _local4;
}
if (_local4 != mc.ABox) {
mc.ABox = _local4;
}
if (_local4 != mc.ABOX) {
mc.ABOX = _local4;
}
var _local2 = getSBox(mc);
if (_local2 == mc) {
_local2 = undefined;
}
if (_local2 != mc.sbox) {
mc.sbox = _local2;
}
if (_local2 != mc.sBox) {
mc.sBox = _local2;
}
if (_local2 != mc.SBox) {
mc.SBox = _local2;
}
if (_local2 != mc.SBOX) {
mc.SBOX = _local2;
}
}
function hitPlayerAttack(clip) {
var _local1 = getABox(GLOBAL_PLAYER);
return(_local1.hitTest(clip));
}
function hitPlayerHeadCenter(clip) {
return(clip.hitTest(_root.player.head.center));
}
function hitPlayerHead(clip) {
return(clip.hitTest(_root.player.head));
}
function hitPlayerCenter(clip) {
return(clip.hitTest(_root.player.centerbox));
}
function hitPlayer(clip) {
return(clip.hitTest(_root.player.cbox));
}
function getPlayer() {
return(_root.player);
}
function getPlayerHealthPercent() {
return(100 * (_root.player.hp / 63));
}
function getEnemyHealthPercent() {
return(100 * (_root.enemy.hp / _root.enemy.maxhp));
}
function getPlayerHP() {
return(_root.player.hp);
}
function getEnemyHP() {
return(_root.enemy.hp);
}
function getEnemy() {
return(_root.enemy);
}
function getController() {
return(_root.controller);
}
function enemyFacePlayer() {
if (GLOBAL_ENEMY._x < GLOBAL_PLAYER._x) {
GLOBAL_ENEMY._xscale = Math.abs(GLOBAL_ENEMY._xscale);
} else {
GLOBAL_ENEMY._xscale = -Math.abs(GLOBAL_ENEMY._xscale);
}
}
function enemyGetXPosition() {
return(GLOBAL_ENEMY._x);
}
function playerGetXPosition() {
return(GLOBAL_PLAYER._x);
}
function enemyRecenter(atx) {
if (atx == undefined) {
atx = 0;
}
var _local2 = GLOBAL_PLAYER._x - GLOBAL_ENEMY._x;
GLOBAL_ENEMY._x = atx;
GLOBAL_PLAYER._x = atx + _local2;
}
function enemyPlaceFromPlayer(deltx, delty) {
if (GLOBAL_PLAYER._xscale > 0) {
GLOBAL_ENEMY._x = deltx + GLOBAL_PLAYER._x;
} else {
GLOBAL_ENEMY._x = (-deltx) + GLOBAL_PLAYER._x;
}
if (delty != undefined) {
GLOBAL_ENEMY._y = delty;
}
}
function setPlayerHasHead(v) {
if (v) {
_root.GLOBAL_PLAYERHEAD = 1;
GLOBAL_PLAYERHASHEAD = true;
} else {
_root.GLOBAL_PLAYERHEAD = 0;
GLOBAL_PLAYERHASHEAD = false;
}
}
function enemyGetID() {
return(GLOBAL_ENEMY._currentframe);
}
function enemyGetHashData(thisframe) {
if (GLOBAL_ENEMY_HASHCODES.hasOwnProperty(thisframe)) {
return(GLOBAL_ENEMY_HASHCODES[thisframe]);
}
var _local1 = new Object();
_local1.external = 0;
_local1.url = "";
_local1.index = thisframe;
if (thisframe > GLOBAL_MAXENEMYNONEXTERNAL) {
var _local13 = (thisframe - GLOBAL_MAXENEMYNONEXTERNAL) - 1;
if (_local13 < GLOBAL_LOADEEMS.length) {
_local1.url = GLOBAL_LOADEEMS[_local13];
_local1.external = 1;
} else {
return(undefined);
}
}
var _local12 = 2147483647 /* 0x7FFFFFFF */;
var _local9 = 2147483647 /* 0x7FFFFFFF */;
var _local3 = int(_local12);
if (_local1.external) {
_local3 = _local12;
} else {
_local3 = _local12 * _local1.index;
}
var _local5 = 0;
while (_local5 < _local1.url.length) {
var _local4 = _local1.url.charCodeAt(_local5);
_local3 = _local3 ^ (((_local4 | (_local4 << 8)) | (_local4 << 16)) | (_local4 << 24));
_local3 = _local3 + _local9;
_local5++;
}
_local1.hashcode = _local3;
_local1.hashflip = ((((_local3 >> 24) & 255) ^ ((_local3 >> 16) & 255)) ^ ((_local3 >> 8) & 255)) ^ (_local3 & 255);
_local1.red = 0;
_local1.green = 0;
_local1.blue = 0;
var _local2 = 0;
while (_local2 < 11) {
var _local8 = (_local3 >> (0 + (_local2 * 3))) & 1;
var _local7 = (_local3 >> (1 + (_local2 * 3))) & 1;
var _local6 = (_local3 >> (2 + (_local2 * 3))) & 1;
_local1.red = _local1.red << 1;
_local1.green = _local1.green << 1;
_local1.blue = _local1.blue << 1;
_local1.red = _local1.red | _local8;
_local1.green = _local1.green | _local7;
_local1.blue = _local1.blue | _local6;
_local2++;
}
_local1.red = _local1.red / 2048;
_local1.green = _local1.green / 2048;
_local1.blue = _local1.blue / 2048;
var _local10 = Math.sqrt(((_local1.red * _local1.red) + (_local1.green * _local1.green)) + (_local1.blue * _local1.blue));
if (_local10 > 0) {
_local1.red = _local1.red / _local10;
_local1.green = _local1.green / _local10;
_local1.blue = _local1.blue / _local10;
}
GLOBAL_ENEMY_HASHCODES[thisframe] = _local1;
return(_local1);
}
function toggleQuality() {
if (_root._quality == "LOW") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "HIGH";
} else {
_root._quality = "LOW";
}
}
function toggleSlowMode() {
GLOBAL_PAUSEHFR++;
GLOBAL_PAUSEHFR = GLOBAL_PAUSEHFR % 4;
}
function legacy4Struggle(target, aright, aleft, aup, adown) {
return(legacy8StruggleDist(target, aright, aleft, aup, adown, aright, aleft, aup, adown));
}
function legacy8Struggle(target, aright, aleft, aup, adown, bright, bleft, bup, bdown) {
return(legacy8StruggleDist(target, aright, aleft, aup, adown, bright, bleft, bup, bdown));
}
function legacyRandomStruggle(target, aright, aleft, aup, adown) {
var _local1 = new Object();
if (adown != undefined) {
_local1[adown] = 1;
}
if (aup != undefined) {
_local1[aup] = 1;
}
if (aleft != undefined) {
_local1[aleft] = 1;
}
if (aright != undefined) {
_local1[aright] = 1;
}
return(legacy8StruggleDist(target, _local1, _local1, _local1, _local1, _local1, _local1, _local1, _local1));
}
function legacySelectAndPlay(target, distofanims) {
if (typeof(distofanims) == "string") {
target.gotoAndPlay(distofanims);
return(true);
}
var _local1 = histSelect(distofanims);
if (_local1 != undefined) {
target.gotoAndPlay(_local1);
return(true);
}
return(false);
}
function legacy4StruggleDist(target, aright, aleft, aup, adown, bright, bleft, bup, bdown) {
return(legacy8StruggleDist(target, aright, aleft, aup, adown, aright, aleft, aup, adown));
}
function legacy8StruggleDist(target, aright, aleft, aup, adown, bright, bleft, bup, bdown) {
var _local4 = playerInputX();
var _local3 = playerInputY();
var _local5 = playerInputA();
var _local2 = enemyFacingRight();
if (_local5 != 0) {
if (_local4 < 0) {
if (_local2) {
return(legacySelectAndPlay(target, aleft));
}
return(legacySelectAndPlay(target, aright));
}
if (_local4 > 0) {
if (_local2) {
return(legacySelectAndPlay(target, aright));
}
return(legacySelectAndPlay(target, aleft));
}
if (_local3 > 0) {
return(legacySelectAndPlay(target, aup));
}
if (_local3 < 0) {
return(legacySelectAndPlay(target, adown));
}
} else {
if (_local4 < 0) {
if (_local2) {
return(legacySelectAndPlay(target, bleft));
}
return(legacySelectAndPlay(target, bright));
}
if (_local4 > 0) {
if (_local2) {
return(legacySelectAndPlay(target, bright));
}
return(legacySelectAndPlay(target, bleft));
}
if (_local3 > 0) {
return(legacySelectAndPlay(target, bup));
}
if (_local3 < 0) {
return(legacySelectAndPlay(target, bdown));
}
}
return(false);
}
function _stopExtSounds() {
var _local2 = new Sound(GLOBAL_ENEMY);
_local2.stop();
_local2.setVolume(0);
var _local3 = new Sound(GLOBAL_ENEMY.enemy);
_local3.stop();
_local3.setVolume(0);
var _local4 = new Sound(GLOBAL_ENEMY.enemy.enemy);
_local4.stop();
_local4.setVolume(0);
var _local5 = new Sound(GLOBAL_ENEMY.enemy.enemy.enemy);
_local5.stop();
_local5.setVolume(0);
var _local1 = new Sound(getEnemyT(GLOBAL_ENEMY));
_local1.stop();
_local1.setVolume(0);
}
function _startExtSounds() {
var _local2 = new Sound(GLOBAL_ENEMY);
_local2.stop();
_local2.setVolume(100);
var _local3 = new Sound(GLOBAL_ENEMY.enemy);
_local3.stop();
_local3.setVolume(100);
var _local4 = new Sound(GLOBAL_ENEMY.enemy.enemy);
_local4.stop();
_local4.setVolume(100);
var _local5 = new Sound(GLOBAL_ENEMY.enemy.enemy.enemy);
_local5.stop();
_local5.setVolume(100);
var _local1 = new Sound(getEnemyT(GLOBAL_ENEMY));
_local1.stop();
_local1.setVolume(100);
}
function easClear() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
_local1.s_moving = 0;
_local1.s_movespeed = 0;
_local1.s_atktype = 0;
_local1.s_moving = 0;
_local1.s_attacking = 0;
_local1.s_hit = 0;
_local1.s_vx = 0;
}
function eaiActionStay() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
_local1.in_movex = 0;
}
function eaiActionMoveToward() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
var _local2 = playerDistance();
if (_local2 < 0) {
_local1.in_movex = -1;
} else {
_local1.in_movex = 1;
}
}
function eaiActionMoveAway() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
var _local2 = playerDistance();
if (_local2 < 0) {
_local1.in_movex = 1;
} else {
_local1.in_movex = -1;
}
}
function eaiActionMoveUp() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
_local1.in_movey = 1;
}
function eaiActionMoveDown() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
_local1.in_movey = -1;
}
function eaiActionAttack() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
_local1.in_action = 1;
}
function eaiActionAttackLow() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
_local1.in_movex = 0;
eaiActionMoveDown();
_local1.in_action = 1;
}
function eaiActionAttackMid() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
eaiActionMoveToward();
_local1.in_movey = 0;
_local1.in_action = 1;
}
function eaiActionAttackHigh() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
_local1.in_movex = 0;
eaiActionMoveUp();
_local1.in_action = 1;
}
function eaiAnimPlayIdle() {
goPlay(getEnemyT(GLOBAL_ENEMY), "idle");
}
function eaiAnimPlay(specific) {
goPlay(getEnemyT(GLOBAL_ENEMY), specific);
}
function eaiActBusy() {
var _local1 = getEnemyT(GLOBAL_ENEMY);
_local1.in_movex = 0;
_local1.in_movey = 0;
_local1.in_action = 0;
_local1.s_idle = 0;
_local1.s_moving = 0;
_local1.s_attacking = 0;
_local1.s_hit = 1;
_local1.s_animbusy = 1;
}
function _enemyAIDefault(G, enemy, player) {
if (!G.isPlayerConsumed(player)) {
if (((Math.abs(player._x - enemy._x) < (2 * player._width)) || (!player.s_attacking)) && ((G.getCBox(player).getBounds(_root).xMax + 16) < G.getCBox(enemy.enemy).getBounds(_root).xMin)) {
G.getEnemyT(enemy).in_movex = -1 * enemy.ai;
if ((Math.random() * 10) < 2) {
enemy.ai = 1;
}
} else if (((Math.abs(player._x - enemy._x) < (2 * player._width)) || (!player.s_attacking)) && ((G.getCBox(player).getBounds(_root).xMin - 16) > G.getCBox(enemy.enemy).getBounds(_root).xMax)) {
G.getEnemyT(enemy).in_movex = 1 * enemy.ai;
if ((Math.random() * 10) < 2) {
enemy.ai = 1;
}
} else {
G.getEnemyT(enemy).in_movex = 0;
if ((player.s_attacking && (!G.getEnemyT(enemy).s_attacking)) && (Math.abs(player._x - enemy._x) < (2 * player._width))) {
enemy.ai = -1;
} else if ((((G.getEnemyT(enemy).s_moving != 0) && (!G.getEnemyT(enemy).s_attacking)) && (!G.getEnemyT(enemy).s_hit)) && (!G.getEnemyT(enemy).s_animbusy)) {
G.goPlay(G.getEnemyT(enemy), "idle");
} else {
var _local6 = player._x < enemy._x;
var _local7 = true;
var _local5 = G.histSelect(G.GLOBAL_ENEMY_ATKUSE);
if (enemy.m_dontattackauto != 1) {
if (_local6) {
if (_local5 == 0) {
G.getEnemyT(enemy).in_movex = 0;
G.getEnemyT(enemy).in_movey = 1;
G.getEnemyT(enemy).in_action = 1;
} else if (_local5 == 1) {
G.getEnemyT(enemy).in_movex = 0;
G.getEnemyT(enemy).in_movey = -1;
G.getEnemyT(enemy).in_action = 1;
} else {
G.getEnemyT(enemy).in_movex = -1;
G.getEnemyT(enemy).in_movey = 0;
G.getEnemyT(enemy).in_action = 1;
}
} else if (_local5 == 0) {
G.getEnemyT(enemy).in_movex = 0;
G.getEnemyT(enemy).in_movey = 1;
G.getEnemyT(enemy).in_action = 1;
} else if (_local5 == 1) {
G.getEnemyT(enemy).in_movex = 0;
G.getEnemyT(enemy).in_movey = -1;
G.getEnemyT(enemy).in_action = 1;
} else {
G.getEnemyT(enemy).in_movex = 1;
G.getEnemyT(enemy).in_movey = 0;
G.getEnemyT(enemy).in_action = 1;
}
}
}
}
}
}
function manualReset(T) {
if (T._manuallyReset == undefined) {
GLOBAL_DELAY_STARTNOISE = 4;
var _local3 = T.getBytesLoaded() >= T.getBytesTotal();
if (_local3) {
T._manuallyReset = 0;
var _local2 = T._parent;
_local2.m_scale = 100;
_local2.m_name = "NULL";
_local2.m_status = "NULL";
_local2.m_credit = "AUTO";
_local2.maxhp = 100;
_local2.hp = _local2.maxhp;
T.in_movex = 0;
T.in_movey = 0;
T.in_action = 0;
_local2.hatk = 0;
_local2.matk = 0;
_local2.latk = 0;
_local2.hdef = 0;
_local2.mdef = 0;
_local2.ldef = 0;
T.s_atktype = 0;
T.s_animbusy = 0;
T.s_idle = 1;
T.s_moving = 0;
T.s_attacking = 0;
T.s_hit = 0;
T.s_vx = 0;
_local2.m_cameraoffset = 0;
return(true);
}
trace("Force Reframe...");
T.gotoAndPlay("idle");
}
return(false);
}
function calcShadowPosition(ycoord) {
var _local2 = Math.abs(GLOBAL_FLOOR - ycoord) / 10;
var _local1 = 1;
if (_local2 > 1) {
_local1 = 1 / _local2;
if (_local1 > 1) {
_local1 = 1;
}
}
return(GLOBAL_FLOOR);
}
function calcShadowScale(ycoord) {
var _local2 = Math.abs(GLOBAL_FLOOR - ycoord) / 10;
if (_local2 > 1) {
var _local1 = 1 / _local2;
if (_local1 > 1) {
_local1 = 1;
}
return(Math.sqrt(_local1));
}
return(1);
}
function enemyClearIcon(cellid) {
if (GLOBAL_ENEMY_DATA[cellid] != undefined) {
if (GLOBAL_ENEMY_DATA[cellid].bitmap != undefined) {
GLOBAL_ENEMY_DATA[cellid].bitmap.dispose();
}
}
}
function enemySetIconBitmap(cellid, srcbmp, srcrect) {
if (GLOBAL_ENEMY_DATA[cellid] != undefined) {
if (GLOBAL_ENEMY_DATA[cellid].bitmap != undefined) {
GLOBAL_ENEMY_DATA[cellid].bitmap.dispose();
}
var _local2 = new flash.display.BitmapData(srcrect.width, srcrect.height, true, 0);
if (srcbmp != undefined) {
_local2.copyPixels(srcbmp, srcrect, new flash.geom.Point(0, 0));
}
GLOBAL_ENEMY_DATA[cellid].bitmap = _local2;
trace("EnemyBitmap: created " + cellid);
}
return(true);
}
function enemyGetIconBitmap(cellid) {
if (GLOBAL_ENEMY_DATA[cellid] != undefined) {
if (GLOBAL_ENEMY_DATA[cellid].bitmap == undefined) {
if (GLOBAL_ENEMY_DATA[cellid].bitmapstring != undefined) {
if (enemyLoadIconString(cellid, GLOBAL_ENEMY_DATA[cellid].bitmapstring)) {
return(GLOBAL_ENEMY_DATA[cellid].bitmap);
}
}
// unexpected jump
}
return(GLOBAL_ENEMY_DATA[cellid].bitmap);
}
var _local2 = getEnemyURLIndex(cellid);
if (GLOBAL_LOADEEMS_ICONS[_local2] != undefined) {
trace("Premade icon for: " + cellid);
GLOBAL_ENEMY_DATA[cellid] = new Object();
GLOBAL_ENEMY_DATA[cellid].bitmapstring = GLOBAL_LOADEEMS_ICONS[_local2];
if (enemyLoadIconString(cellid, GLOBAL_ENEMY_DATA[cellid].bitmapstring)) {
return(GLOBAL_ENEMY_DATA[cellid].bitmap);
}
}
return(undefined);
}
function enemySetIconString(cellid, x64lzssstring) {
if (GLOBAL_ENEMY_DATA[cellid] != undefined) {
GLOBAL_ENEMY_DATA[cellid].bitmapstring = x64lzssstring;
return(true);
}
return(false);
}
function enemyLoadIconString(cellid, x64lzssstring) {
if (GLOBAL_ENEMY_DATA[cellid] != undefined) {
var _local14 = function (A, i) {
var _local1 = A[i];
return(_local1);
};
var _local15 = function (A, i) {
return((((A[i] << 24) | (A[i + 1] << 16)) | (A[i + 2] << 8)) | A[i + 3]);
};
var _local20 = TexDa.arrayFromA64(x64lzssstring);
var _local10 = TexDa.lzssDecompress(_local20);
var _local12 = new Array();
_local12.push(_local14(_local10, 0));
_local12.push(_local14(_local10, 1));
var _local5 = 2;
while (_local5 < _local10.length) {
_local12.push(_local14(_local10, _local5));
_local12.push(_local15(_local10, _local5 + 1));
_local5 = _local5 + 5;
}
var _local11 = _local12;
var _local4 = 0;
var _local16 = _local11.length;
var _local8 = _local11[_local4];
_local4++;
var _local18 = _local11[_local4];
_local4++;
enemySetIconBitmap(cellid, undefined, new flash.geom.Rectangle(0, 0, _local8, _local18));
var _local13 = GLOBAL_ENEMY_DATA[cellid].bitmap;
var _local3 = 0;
while (_local4 < _local16) {
var _local9 = _local11[_local4];
_local4++;
var _local2 = _local11[_local4];
_local4++;
var _local1 = 0;
while (_local1 < _local9) {
var _local7 = _local3 % _local8;
var _local6 = Math.floor(_local3 / _local8);
if ((_local2 & 16777216) != 0) {
_local2 = _local2 | -16777216;
}
_local13.setPixel32(_local7 + 0, _local6 + 0, _local2);
_local3++;
_local1++;
}
}
GLOBAL_ENEMY_DATA[cellid].bitmapstring = x64lzssstring;
return(true);
}
return(false);
}
function enemySaveIconString(cellid) {
if (GLOBAL_ENEMY_DATA[cellid] != undefined) {
if (GLOBAL_ENEMY_DATA[cellid].bitmap != undefined) {
var _local10 = GLOBAL_ENEMY_DATA[cellid].bitmap;
var _local18 = new flash.geom.Rectangle(0, 0, _local10.width, _local10.height);
var _local3 = new Array();
var _local20 = Math.floor(_local18.width);
var _local19 = Math.floor(_local18.height);
var _local11 = Math.floor(_local18.x);
var _local14 = Math.floor(_local18.y);
var _local12 = _local11 + _local20;
var _local16 = _local14 + _local19;
var _local5 = 0;
var _local1 = 0;
_local3.push(_local20);
_local3.push(_local19);
var _local8 = _local14;
while (_local8 < _local16) {
var _local4 = _local11;
while (_local4 < _local12) {
var _local2 = _local10.getPixel32(_local4, _local8);
if ((_local2 >> 24) & true) {
_local2 = _local2 & 16777215;
_local2 = _local2 | 16777216;
} else {
_local2 = 0;
}
if (_local2 != _local5) {
if (_local1 > 0) {
_local3.push(_local1);
_local3.push(_local5);
}
_local1 = 0;
}
_local1++;
if (_local1 > 255) {
_local3.push(_local1);
_local3.push(_local5);
_local1 = 0;
_local1++;
}
_local5 = _local2;
_local4++;
}
_local8++;
}
if (_local1 > 0) {
if (_local5 != undefined) {
_local3.push(_local1);
_local3.push(_local5);
}
}
var _local13 = function (v) {
return(Math.floor(v) & 255);
};
var _local15 = function (v) {
v = Math.floor(v);
var _local1 = new Array();
_local1.push((v >> 24) & 255);
_local1.push((v >> 16) & 255);
_local1.push((v >> 8) & 255);
_local1.push(v & 255);
return(_local1);
};
var _local9 = new Array();
_local9.push(_local13(_local3[0]));
_local9.push(_local13(_local3[1]));
var _local7 = 2;
while (_local7 < _local3.length) {
_local9.push(_local13(_local3[_local7]));
var _local6 = _local15(_local3[_local7 + 1]);
_local9.push(_local6[0]);
_local9.push(_local6[1]);
_local9.push(_local6[2]);
_local9.push(_local6[3]);
_local7 = _local7 + 2;
}
var _local21 = TexDa.lzssCompress(_local9);
var _local23 = TexDa.arrayToA64(_local21);
return(_local23);
}
}
return("");
}
function _traceFx(msg) {
trace((((("#GT [" + GLOBAL_ENEMY_FRAMES_RUN) + "](") + getEnemyT(GLOBAL_ENEMY)._currentframe) + ")\t") + msg);
}
function enableFullTrace(newlevel) {
GLOBAL_FULL_TRACE = 0;
_traceF0 = function (msg) {
_traceFx(msg);
};
_traceF1 = function (msg) {
};
_traceF2 = function (msg) {
};
_traceF3 = function (msg) {
};
if (newlevel > 0) {
_traceF1 = function (msg) {
_traceFx(msg);
};
GLOBAL_FULL_TRACE = 1;
if (newlevel > 1) {
_traceF2 = function (msg) {
_traceFx(msg);
};
GLOBAL_FULL_TRACE = 2;
if (newlevel > 2) {
_traceF3 = function (msg) {
_traceFx(msg);
};
GLOBAL_FULL_TRACE = 3;
}
}
}
}
function disableFullTrace() {
GLOBAL_FULL_TRACE = 0;
}
function Log(s) {
LogScrollOffset = 0;
GLOBAL_LOG.unshift(s + newline);
if (GLOBAL_LOG.length > 4096) {
GLOBAL_LOG.pop();
}
}
function parseString(s) {
var _local5 = "";
var _local2 = 0;
var _local8 = s.length;
while (_local2 < _local8) {
if (s.charCodeAt(_local2) == 37) {
if ((_local2 + 1) < _local8) {
if (s.charCodeAt(_local2 + 1) == 91) {
var _local7 = _local2 + 2;
var _local6 = _local7;
var _local3 = _local2 + 1;
while (_local3 < _local8) {
if (s.charCodeAt(_local3) == 93) {
_local6 = _local3;
break;
}
_local3++;
}
var _local1 = s.substr(_local7, _local6 - _local7);
if (GLOBAL_VALUES.hasOwnProperty(_local1)) {
_local5 = _local5 + GLOBAL_VALUES[_local1];
} else {
_local1 = _local1.toLowerCase();
hasmsg = _local1;
if (_local1 == "enemyname") {
hasmsg = GLOBAL_ENEMY.m_name;
} else if (_local1 == "playername") {
hasmsg = GLOBAL_PLAYER.m_name;
} else if (_local1 == "enemydescr") {
hasmsg = GLOBAL_ENEMY.m_status;
} else if (_local1 == "playerdescr") {
hasmsg = "";
} else if (_local1 == "enemyhp") {
hasmsg = GLOBAL_ENEMY.hp;
} else if (_local1 == "playerhp") {
hasmsg = GLOBAL_PLAYER.hp;
} else if (getValue(_local1, undefined) != undefined) {
hasmsg = getValue(_local1);
}
_local5 = _local5 + hasmsg;
}
_local2 = _local6 + 1;
} else {
_local5 = _local5 + s.charAt(_local2);
_local5 = _local5 + s.charAt(_local2 + 1);
_local2 = _local2 + 2;
}
} else {
_local5 = _local5 + s.charAt(_local2);
_local2++;
}
} else {
_local5 = _local5 + s.charAt(_local2);
_local2++;
}
}
return(_local5);
}
function LogParsed(s) {
Log(parseString(s));
}
function chatMessage(msg, flags) {
_parent.camControl.chatbubble.addMessage(parseString(msg), flags);
}
function chatClear() {
_parent.camControl.chatbubble.clearMessage();
}
function chatTarget(mclip) {
_parent.camControl.chatbubble.setTarget(mclip);
}
function chatType(framename) {
if (framename != undefined) {
_parent.camControl.chatbubble.bubbletype.gotoAndStop(framename);
_parent.camControl.chatbubble.bubbletail.gotoAndStop(framename);
}
return(_parent.camControl.chatbubble.bubbletype);
}
function numclamp(v) {
if (v < 0) {
v = 0;
} else {
v = Math.ceil(v);
}
return(v);
}
function addcharactervariables(targ) {
targ.hp = 63;
targ.in_movex = 0;
targ.in_movey = 0;
targ.in_action = 0;
targ.hatk = 32;
targ.matk = 32;
targ.latk = 32;
targ.hdef = 0;
targ.mdef = 0;
targ.ldef = 0;
targ.hdefon = 0;
targ.mdefon = 0;
targ.ldefon = 0;
targ.s_atktype = 0;
targ.s_animbusy = 0;
targ.s_idle = 1;
targ.s_moving = 0;
targ.s_attacking = 0;
targ.s_hit = 0;
targ.s_vx = 0;
targ.s_movespeed = 1;
targ.m_name = "NULL";
targ.m_status = "NULL";
targ._y = GLOBAL_FLOOR;
targ.s_vy = 0;
}
function pauseall() {
GLOBAL_PAUSE = true;
GLOBAL_PLAYER.stop();
GLOBAL_PLAYER.aniclip.mc.stop();
GLOBAL_PLAYER.aniclip.mc.mc.stop();
getEnemyT(GLOBAL_ENEMY).stop();
_parent.playershad.t.stop();
_parent.playershad.t.head.stop();
_parent.playershad.t.aniclip.stop();
_parent.playershad.t.aniclip.mc.stop();
_parent.enemyshad.t.stop();
_parent.enemyshad.t.enemy.stop();
GLOBAL_ENEMYSPARK.stop();
GLOBAL_PLAYERSPARK.stop();
}
function unpauseall() {
GLOBAL_PAUSE = false;
if ((GLOBAL_QTE_DATA.qliveevent <= 0) && (!GLOBAL_QTE_DATA.active)) {
GLOBAL_PLAYER.play(GLOBAL_PLAYER._currentframe);
if (GLOBAL_PLAYER.aniclip.mc.mc != undefined) {
GLOBAL_PLAYER.aniclip.mc.mc.play();
} else {
GLOBAL_PLAYER.aniclip.mc.play();
}
getEnemyT(GLOBAL_ENEMY).play(GLOBAL_ENEMY._currentframe);
GLOBAL_ENEMYSPARK.play(GLOBAL_ENEMYSPARK._currentframe);
GLOBAL_PLAYERSPARK.stop(GLOBAL_PLAYERSPARK._currentframe);
}
}
function moveCharacterGravity(sourcedata, char) {
char.s_vy = char.s_vy + 0.533333333333333;
sourcedata._y = sourcedata._y + char.s_vy;
if (sourcedata._y >= GLOBAL_FLOOR) {
sourcedata._y = GLOBAL_FLOOR;
char.s_vy = 0;
}
}
function movecharacter(obje, objdataclip, options) {
var _local4 = Math.abs(obje._xscale);
var _local3 = "null";
if (!isPlayerConsumed(objdataclip)) {
if ((objdataclip.s_idle || (objdataclip.s_moving != 0)) && (((!objdataclip.s_attacking) && (!objdataclip.s_hit)) && (!objdataclip.s_animbusy))) {
if (objdataclip.in_action) {
obje.hdefon = 0;
obje.mdefon = 0;
obje.ldefon = 0;
if ((objdataclip.attackmode == undefined) || (objdataclip.attackmode == 0)) {
if (objdataclip.in_movex > 0) {
if (obje.m_dontfacetarget != 1) {
obje._xscale = _local4;
}
_local3 = "atkm";
} else if (objdataclip.in_movex < 0) {
if (obje.m_dontfacetarget != 1) {
obje._xscale = -_local4;
}
_local3 = "atkm";
}
if (objdataclip.in_movey > 0) {
_local3 = "atkh";
} else if (objdataclip.in_movey < 0) {
_local3 = "atkl";
}
} else if (objdataclip.attackmode == 1) {
if (objdataclip.in_movex > 0) {
if (obje.m_dontfacetarget != 1) {
obje._xscale = _local4;
}
_local3 = "atkp";
} else if (objdataclip.in_movex < 0) {
if (obje.m_dontfacetarget != 1) {
obje._xscale = -_local4;
}
_local3 = "atkp";
}
if (objdataclip.in_movey > 0) {
_local3 = "atkp";
} else if (objdataclip.in_movey < 0) {
_local3 = "atkp";
}
}
} else if (objdataclip.in_movex > 0) {
obje.hdefon = 0;
obje.mdefon = 0;
obje.ldefon = 0;
if (obje.m_dontfacetarget != 1) {
obje._xscale = _local4;
}
if (objdataclip.s_moving == 0) {
_local3 = "walk";
}
} else if (objdataclip.in_movex < 0) {
obje.hdefon = 0;
obje.mdefon = 0;
obje.ldefon = 0;
if (obje.m_dontfacetarget != 1) {
obje._xscale = -_local4;
}
if (objdataclip.s_moving == 0) {
_local3 = "walk";
}
} else if (objdataclip.in_movex == 0) {
obje.hdefon = 0;
obje.mdefon = 0;
obje.ldefon = 0;
if (objdataclip.in_movey > 0) {
obje.hdefon = 1;
} else if (objdataclip.in_movey < 0) {
obje.ldefon = 1;
} else if (objdataclip.in_movey == 0) {
obje.mdefon = 1;
}
}
if (objdataclip.in_movex == 0) {
if ((((objdataclip.s_moving != 0) && (!objdataclip.s_attacking)) && (!objdataclip.s_hit)) && (!objdataclip.s_animbusy)) {
_local3 = "idle";
}
}
} else if (objdataclip.s_moving != 0) {
}
}
objdataclip.def_h._visible = false;
objdataclip.def_m._visible = false;
objdataclip.def_l._visible = false;
if (obje.hdefon != 0) {
objdataclip.def_h._visible = true;
}
if (obje.mdefon != 0) {
objdataclip.def_m._visible = true;
}
if (obje.ldefon != 0) {
objdataclip.def_l._visible = true;
}
if (_local3 == "null") {
if (((((objdataclip.s_idle == 0) && (objdataclip.s_moving == 0)) && (objdataclip.s_attacking == 0)) && (objdataclip.s_hit == 1)) && (objdataclip.s_animbusy == 1)) {
_local3 = objdataclip.__animcurrent;
}
}
if (_local3 != "null") {
if (_local3 == "walk") {
if (objdataclip.replaceAnimWalk != undefined) {
_local3 = objdataclip.replaceAnimWalk;
} else {
_local3 = "walk";
}
}
if ((options != undefined) and (options == 2)) {
objdataclip.__animcurrent = _local3;
objdataclip.gotoAndStop(_local3);
} else if (objdataclip.__animcurrent != _local3) {
goPlay(objdataclip, _local3);
}
}
}
function moveplayer() {
GLOBAL_PLAYER.attackmode = GLOBAL_PLAYER_MODE;
movecharacter(GLOBAL_PLAYER, GLOBAL_PLAYER, 2);
if (!isPlayerConsumed(GLOBAL_PLAYER)) {
if ((((GLOBAL_PLAYER.s_idle == 0) && (GLOBAL_PLAYER.s_moving != 0)) && (GLOBAL_PLAYER.s_vx == 0)) && (!GLOBAL_PLAYER.s_animbusy)) {
GLOBAL_PLAYER._x = GLOBAL_PLAYER._x + ((GLOBAL_PLAYER._xscale / Math.abs(GLOBAL_PLAYER._xscale)) * GLOBAL_PLAYER.s_moving);
}
}
if ((GLOBAL_PLAYER.s_vx != 0) && (!GLOBAL_PLAYER.s_animbusy)) {
if (GLOBAL_PLAYER._x > GLOBAL_ENEMY._x) {
GLOBAL_PLAYER._x = GLOBAL_PLAYER._x + GLOBAL_PLAYER.s_vx;
} else {
GLOBAL_PLAYER._x = GLOBAL_PLAYER._x - GLOBAL_PLAYER.s_vx;
}
}
moveCharacterGravity(GLOBAL_PLAYER, GLOBAL_PLAYER);
if (GLOBAL_ENEMY.m_notsolid != 1) {
var _local4 = getCBox(GLOBAL_ENEMY.enemy);
var _local5 = getCBox(GLOBAL_PLAYER);
if (((_local5 != undefined) && (_local4 != undefined)) && (_local5.hitTest(_local4))) {
var _local2 = _local4.getBounds(_root);
var _local3 = _local5.getBounds(_root);
if (((_local2.xMin + _local2.xMax) / 2) > ((_local3.xMin + _local3.xMax) / 2)) {
GLOBAL_PLAYER._x = GLOBAL_PLAYER._x + (_local2.xMin - _local3.xMax);
} else {
GLOBAL_PLAYER._x = GLOBAL_PLAYER._x + (_local2.xMax - _local3.xMin);
}
}
}
}
function moveenemy(ENMC) {
moveCharacterGravity(ENMC, getEnemyT(ENMC));
if (getEnemyT(ENMC)._run != undefined) {
return(getEnemyT(ENMC)._run(this, ENMC));
}
if (getEnemyT(ENMC) != undefined) {
movecharacter(ENMC, getEnemyT(ENMC), undefined);
} else {
movecharacter(ENMC, ENMC, undefined);
}
if (ENMC.m_dontfacetarget != 1) {
enemyFacePlayer();
}
if (((getEnemyT(ENMC).s_idle == 0) && (getEnemyT(ENMC).s_moving != 0)) && (!getEnemyT(ENMC).s_animbusy)) {
ENMC._x = ENMC._x + (((ENMC._xscale / Math.abs(ENMC._xscale)) * getEnemyT(ENMC).s_moving) * ENMC.s_movespeed);
}
if ((getEnemyT(ENMC).s_vx != 0) && (!getEnemyT(ENMC).s_animbusy)) {
if (GLOBAL_PLAYER._x > ENMC._x) {
ENMC._x = ENMC._x - getEnemyT(ENMC).s_vx;
} else {
ENMC._x = ENMC._x + getEnemyT(ENMC).s_vx;
}
} else if (((getEnemyT(ENMC).s_moving != 0) && (getEnemyT(ENMC).s_vx != 0)) && (getEnemyT(ENMC).s_animbusy)) {
if (GLOBAL_PLAYER._x > ENMC._x) {
ENMC._x = ENMC._x - getEnemyT(ENMC).s_vx;
} else {
ENMC._x = ENMC._x + getEnemyT(ENMC).s_vx;
}
}
if (ENMC.m_notsolid != 1) {
if (getCBox(ENMC.enemy).hitTest(getCBox(GLOBAL_PLAYER))) {
var _local4 = getCBox(ENMC.enemy).getBounds(_root);
var _local5 = getCBox(GLOBAL_PLAYER).getBounds(_root);
if (((_local4.xMin + _local4.xMax) / 2) < ((_local5.xMin + _local5.xMax) / 2)) {
ENMC._x = ENMC._x + (_local5.xMin - _local4.xMax);
} else {
ENMC._x = ENMC._x + (_local5.xMax - _local4.xMin);
}
}
}
}
function setClipAt(mc, clip) {
var _local2 = clip.getBounds(_root);
mc._x = (_local2.xMax + _local2.xMin) * 0.5;
mc._y = (_local2.xMax + _local2.xMin) * 0.5;
}
function setClipAtExact(mc, clip) {
var _local2 = mcPointToGlobal(clip, 0, 0);
var _local6 = mcPointToGlobal(clip, 1, 0);
var _local4 = _local6._x - _local2._x;
var _local3 = _local6._y - _local2._y;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local7 = 57.2957795130823 * Math.atan2(_local3 / _local5, _local4 / _local5);
mc._x = _local2._x;
mc._y = _local2._y;
mc._rotation = _local7;
mc._xscale = (100 * _local5) / 1;
mc._yscale = mc._xscale;
}
function _resetSparkSim(clip) {
clip.xvel = 0;
clip.yvel = 0;
clip.rotvel = 0;
clip.xacc = 0;
clip.yacc = 0;
clip.rotacc = 0;
clip.shrinkto = 0;
clip.shrinktime = 0;
clip.shrinktimemax = 0;
}
function _updateSparkSim(mc, steps) {
if (mc.xacc != 0) {
mc.xvel = mc.xvel + (steps * mc.xacc);
}
if (mc.yacc != 0) {
mc.yvel = mc.yvel + (steps * mc.yacc);
}
if (mc.rotacc != 0) {
mc.rotvel = mc.rotvel + (steps * mc.rotacc);
}
if (mc.xvel != 0) {
mc._x = mc._x + (steps * mc.xvel);
}
if (mc.yvel != 0) {
mc._y = mc._y + (steps * mc.yvel);
}
if (mc.rotvel != 0) {
mc._rotation = mc._rotation + (steps * mc.rotvel);
}
if (mc.shrinktimemax > 0) {
if (mc.shrinktime == mc.shrinktimemax) {
mc._originalscalex = mc._xscale;
mc._originalscaley = mc._yscale;
}
mc.shrinktime = mc.shrinktime - steps;
if (mc.shrinktime < 0) {
mc.shrinktime = 0;
}
var _local3 = (1 - mc.shrinkto) * ((1 * mc.shrinktime) / (1 * mc.shrinktimemax));
mc._xscale = (mc.shrinkto + _local3) * mc._originalscalex;
mc._yscale = (mc.shrinkto + _local3) * mc._originalscaley;
}
}
function _setClipPhysics(clip, vx, vy, ax, ay, rv, ra, shrinkin, shrinkamount) {
if (vx != undefined) {
clip.xvel = vx;
} else {
clip.xvel = 0;
}
if (vy != undefined) {
clip.yvel = vy;
} else {
clip.yvel = 0;
}
if (ax != undefined) {
clip.xacc = ax;
} else {
clip.xacc = 0;
}
if (ay != undefined) {
clip.yacc = ay;
} else {
clip.yacc = 0;
}
if (rv != undefined) {
clip.rotvel = rv;
} else {
clip.rotvel = 0;
}
if (ra != undefined) {
clip.rotacc = ra;
} else {
clip.rotacc = 0;
}
if (shrinkin != undefined) {
clip.shrinkto = 0;
clip.shrinktime = shrinkin;
clip.shrinktimemax = shrinkin;
if (shrinkamount != undefined) {
clip.shrinkto = shrinkamount / 100;
}
} else {
clip.shrinktimemax = 0;
clip.shrinkto = 0;
clip.shrinktime = 0;
}
}
function _parseClipPhysicsAndSet(clip, lex) {
var _local5;
var _local4;
var _local10;
var _local9;
var _local7;
var _local11;
var _local8;
var _local6;
var _local2 = lex.split(",");
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2[_local1] == "MoveUp") {
_local1++;
if (_local1 < _local3) {
_local4 = -Number(_local2[_local1]);
}
} else if (_local2[_local1] == "MoveRight") {
_local1++;
if (_local1 < _local3) {
_local5 = Number(_local2[_local1]);
}
} else if (_local2[_local1] == "MoveLeft") {
_local1++;
if (_local1 < _local3) {
_local5 = -Number(_local2[_local1]);
}
} else if (_local2[_local1] == "MoveDown") {
_local1++;
if (_local1 < _local3) {
_local4 = Number(_local2[_local1]);
}
} else if (_local2[_local1] == "Spin") {
_local1++;
if (_local1 < _local3) {
_local7 = Number(_local2[_local1]);
}
} else if (_local2[_local1] == "Shrink") {
_local1++;
if (_local1 < _local3) {
_local8 = 60;
_local6 = Number(_local2[_local1]);
}
}
_local1++;
}
_setClipPhysics(clip, _local5, _local4, _local10, _local9, _local7, _local11, _local8, _local6);
}
function setEnemySparkPhysics(lex) {
_parseClipPhysicsAndSet(GLOBAL_ENEMYSPARK, lex);
}
function setPlayerSparkPhysics(lex) {
_parseClipPhysicsAndSet(GLOBAL_PLAYERSPARK, lex);
}
function setEnemySparkAnim(anim) {
if (anim != undefined) {
GLOBAL_PLAYERSPARK.gotoAndPlay(anim);
}
}
function setPlayerSparkAt(clip, anim, offsetx, offsety) {
setClipAt(GLOBAL_PLAYERSPARK, clip);
_resetSparkSim(GLOBAL_PLAYERSPARK);
if (GLOBAL_PLAYER._xscale < 0) {
GLOBAL_PLAYERSPARK._xscale = -100;
} else {
GLOBAL_PLAYERSPARK._xscale = 100;
}
if (offsetx != undefined) {
if (GLOBAL_PLAYERSPARK._xscale > 0) {
GLOBAL_PLAYERSPARK._x = GLOBAL_PLAYERSPARK._x + offsetx;
} else {
GLOBAL_PLAYERSPARK._x = GLOBAL_PLAYERSPARK._x - offsetx;
}
}
if (offsety != undefined) {
GLOBAL_PLAYERSPARK._y = GLOBAL_PLAYERSPARK._y + offsety;
}
if (anim != undefined) {
GLOBAL_PLAYERSPARK.gotoAndPlay(anim);
}
}
function setEnemySparkAt(clip, anim, offsetx, offsety) {
setClipAt(GLOBAL_ENEMYSPARK, clip);
_resetSparkSim(GLOBAL_ENEMYSPARK);
if (GLOBAL_ENEMY._xscale < 0) {
GLOBAL_ENEMYSPARK._xscale = -100;
} else {
GLOBAL_ENEMYSPARK._xscale = 100;
}
if (offsetx != undefined) {
if (GLOBAL_ENEMYSPARK._xscale > 0) {
GLOBAL_ENEMYSPARK._x = GLOBAL_ENEMYSPARK._x + offsetx;
} else {
GLOBAL_ENEMYSPARK._x = GLOBAL_ENEMYSPARK._x - offsetx;
}
}
if (offsety != undefined) {
GLOBAL_ENEMYSPARK._y = GLOBAL_ENEMYSPARK._y + offsety;
}
if (anim != undefined) {
GLOBAL_ENEMYSPARK.gotoAndPlay(anim);
}
}
function setPlayerScale(val) {
GLOBAL_PLAYER._xscale = val * (GLOBAL_PLAYER._xscale / Math.abs(GLOBAL_PLAYER._xscale));
GLOBAL_PLAYER._yscale = val * (GLOBAL_PLAYER._yscale / Math.abs(GLOBAL_PLAYER._yscale));
}
function getPlayerScale() {
return(Math.abs(GLOBAL_PLAYER._xscale));
}
function setEnemySparkOnScreen(anim, screenfloatx, screenfloaty, screenscale) {
_resetSparkSim(GLOBAL_ENEMYSPARK);
GLOBAL_ENEMYSPARK._x = _parent.camControl._x;
GLOBAL_ENEMYSPARK._y = _parent.camControl._y;
var _local3 = 0;
if (screenfloatx != undefined) {
_local3 = (screenfloatx * _parent.camControl.fixX) * (_parent.camControl._xscale / 200);
}
var _local2 = 0;
if (screenfloaty != undefined) {
_local2 = ((-screenfloaty) * _parent.camControl.fixY) * (_parent.camControl._yscale / 200);
}
GLOBAL_ENEMYSPARK._x = GLOBAL_ENEMYSPARK._x + _local3;
GLOBAL_ENEMYSPARK._y = GLOBAL_ENEMYSPARK._y + _local2;
if (screenscale != undefined) {
GLOBAL_ENEMYSPARK._xscale = screenscale * Math.abs(_parent.camControl._xscale / 100);
GLOBAL_ENEMYSPARK._yscale = screenscale * Math.abs(_parent.camControl._yscale / 100);
}
if (anim != undefined) {
GLOBAL_ENEMYSPARK.gotoAndPlay(anim);
}
}
function setEnemySparkAtExact(clip, anim, param) {
_resetSparkSim(GLOBAL_ENEMYSPARK);
setClipAtExact(GLOBAL_ENEMYSPARK, clip);
if (param != undefined) {
for (var _local2 in param) {
GLOBAL_ENEMYSPARK[_local2] = param[_local2];
}
}
if (anim != undefined) {
GLOBAL_ENEMYSPARK.gotoAndPlay(anim);
}
}
function unscaleEnemySpark(arg1) {
if (arg1 != undefined) {
GLOBAL_ENEMYSPARK._xscale = arg1;
GLOBAL_ENEMYSPARK._yscale = arg1;
} else {
GLOBAL_ENEMYSPARK._xscale = 100;
GLOBAL_ENEMYSPARK._yscale = 100;
}
}
function getEnemySpark() {
return(GLOBAL_ENEMYSPARK);
}
function damagecollisions() {
var _local2 = null;
var _local1 = null;
var _local4 = getABox(GLOBAL_PLAYER);
var _local6 = getCBox(GLOBAL_PLAYER);
var _local3 = getABox(GLOBAL_ENEMY.enemy);
var _local5 = getCBox(GLOBAL_ENEMY.enemy);
if (getEnemyT(GLOBAL_ENEMY).s_attacking) {
if (((_local3 != undefined) && (_local6 != undefined)) && (_local3.hitTest(_local6))) {
if (getEnemyT(GLOBAL_ENEMY).s_atktype < 1) {
var _local7 = GLOBAL_ENEMY.latk - GLOBAL_PLAYER.ldef;
if (GLOBAL_PLAYER.ldefon != 0) {
_local7 = _local7 / 2;
}
_local7 = numclamp(_local7);
setEnemySparkAt(getABox(GLOBAL_ENEMY.enemy));
if (GLOBAL_PLAYER.ldefon != 0) {
GLOBAL_ENEMYSPARK.gotoAndPlay("cutblock");
} else {
GLOBAL_ENEMYSPARK.gotoAndPlay("cutlow");
}
GLOBAL_PLAYER.hp = GLOBAL_PLAYER.hp - _local7;
_local2 = "hitl";
GLOBAL_PLAYER.s_hit = 1;
getEnemyT(GLOBAL_ENEMY).s_attacking = 0;
Log(((((GLOBAL_ENEMY.m_name + " hit ") + GLOBAL_PLAYER.m_name) + " for ") + _local7) + "!");
} else if (getEnemyT(GLOBAL_ENEMY).s_atktype == 1) {
var _local7 = GLOBAL_ENEMY.matk - GLOBAL_PLAYER.mdef;
if (GLOBAL_PLAYER.mdefon != 0) {
_local7 = _local7 / 2;
}
_local7 = numclamp(_local7);
setEnemySparkAt(getABox(GLOBAL_ENEMY.enemy));
if (GLOBAL_PLAYER.mdefon != 0) {
GLOBAL_ENEMYSPARK.gotoAndPlay("cutblock");
} else {
GLOBAL_ENEMYSPARK.gotoAndPlay("cutmid");
}
GLOBAL_PLAYER.hp = GLOBAL_PLAYER.hp - _local7;
_local2 = "hitm";
GLOBAL_PLAYER.s_hit = 1;
getEnemyT(GLOBAL_ENEMY).s_attacking = 0;
Log(((((GLOBAL_ENEMY.m_name + " hit ") + GLOBAL_PLAYER.m_name) + " for ") + _local7) + "!");
} else if (getEnemyT(GLOBAL_ENEMY).s_atktype == 2) {
var _local7 = GLOBAL_ENEMY.hatk - GLOBAL_PLAYER.hdef;
if (GLOBAL_PLAYER.hdefon != 0) {
_local7 = _local7 / 2;
}
_local7 = numclamp(_local7);
setEnemySparkAt(getABox(GLOBAL_ENEMY.enemy));
if (GLOBAL_PLAYER.hdefon != 0) {
GLOBAL_ENEMYSPARK.gotoAndPlay("cutblock");
} else {
GLOBAL_ENEMYSPARK.gotoAndPlay("cuthigh");
}
GLOBAL_PLAYER.hp = GLOBAL_PLAYER.hp - _local7;
_local2 = "hith";
GLOBAL_PLAYER.s_hit = 1;
getEnemyT(GLOBAL_ENEMY).s_attacking = 0;
Log(((((GLOBAL_ENEMY.m_name + " hit ") + GLOBAL_PLAYER.m_name) + " for ") + _local7) + "!");
}
numclamp(GLOBAL_PLAYER.hp);
}
}
if (GLOBAL_PLAYER.s_attacking and (GLOBAL_ENEMY.hp >= 1)) {
if (((_local5 != undefined) && (_local4 != undefined)) && (_local4.hitTest(_local5))) {
if (GLOBAL_PLAYER.s_atktype < 1) {
var _local7 = GLOBAL_PLAYER.latk - GLOBAL_ENEMY.ldef;
if (GLOBAL_ENEMY.ldefon != 0) {
_local7 = _local7 / 2;
}
_local7 = numclamp(_local7);
setPlayerSparkAt(getABox(GLOBAL_PLAYER));
if (GLOBAL_ENEMY.ldefon != 0) {
GLOBAL_PLAYERSPARK.gotoAndPlay("hitblock");
} else {
GLOBAL_PLAYERSPARK.gotoAndPlay("hitlow");
}
GLOBAL_ENEMY.hp = GLOBAL_ENEMY.hp - _local7;
if (!GLOBAL_ENEMY.ignore_hitanim) {
if ((_local7 > GLOBAL_ENEMY.ignore_hitweak) && (!GLOBAL_ENEMY.ignore_hitanimonly)) {
_local1 = "hitl";
}
}
if ((_local7 > GLOBAL_ENEMY.ignore_hitweak) && (!GLOBAL_ENEMY.ignore_hitanimonly)) {
GLOBAL_ENEMY.s_hit = true;
GLOBAL_ENEMY.ai = -1;
}
GLOBAL_PLAYER.s_attacking = 0;
if ((GLOBAL_SCORE_ON_DAMAGE * _local7) > 0) {
GLOBAL_POINTS = GLOBAL_POINTS + (GLOBAL_SCORE_ON_DAMAGE * _local7);
Log(((((GLOBAL_PLAYER.m_name + " hit ") + GLOBAL_ENEMY.m_name) + " for ") + _local7) + "!");
}
} else if (GLOBAL_PLAYER.s_atktype == 1) {
var _local7 = GLOBAL_PLAYER.matk - GLOBAL_ENEMY.mdef;
if (GLOBAL_ENEMY.lmdefon != 0) {
_local7 = _local7 / 2;
}
_local7 = numclamp(_local7);
setPlayerSparkAt(getABox(GLOBAL_PLAYER));
if (GLOBAL_ENEMY.lmdefon != 0) {
GLOBAL_PLAYERSPARK.gotoAndPlay("hitblock");
} else {
GLOBAL_PLAYERSPARK.gotoAndPlay("hitmid");
}
GLOBAL_ENEMY.hp = GLOBAL_ENEMY.hp - _local7;
if (!GLOBAL_ENEMY.ignore_hitanim) {
if ((_local7 > GLOBAL_ENEMY.ignore_hitweak) && (!GLOBAL_ENEMY.ignore_hitanimonly)) {
_local1 = "hitm";
}
}
if ((_local7 > GLOBAL_ENEMY.ignore_hitweak) && (!GLOBAL_ENEMY.ignore_hitanimonly)) {
GLOBAL_ENEMY.s_hit = true;
GLOBAL_ENEMY.ai = -1;
}
GLOBAL_PLAYER.s_attacking = 0;
if ((GLOBAL_SCORE_ON_DAMAGE * _local7) > 0) {
GLOBAL_POINTS = GLOBAL_POINTS + (GLOBAL_SCORE_ON_DAMAGE * _local7);
Log(((((GLOBAL_PLAYER.m_name + " hit ") + GLOBAL_ENEMY.m_name) + " for ") + _local7) + "!");
}
} else if (GLOBAL_PLAYER.s_atktype == 2) {
var _local7 = GLOBAL_PLAYER.hatk - GLOBAL_ENEMY.hdef;
if (GLOBAL_ENEMY.hdefon != 0) {
_local7 = _local7 / 2;
}
_local7 = numclamp(_local7);
setPlayerSparkAt(getABox(GLOBAL_PLAYER));
if (GLOBAL_ENEMY.hdefon != 0) {
GLOBAL_PLAYERSPARK.gotoAndPlay("hitblock");
} else {
GLOBAL_PLAYERSPARK.gotoAndPlay("hithigh");
}
GLOBAL_ENEMY.hp = GLOBAL_ENEMY.hp - _local7;
if (!GLOBAL_ENEMY.ignore_hitanim) {
if ((_local7 > GLOBAL_ENEMY.ignore_hitweak) && (!GLOBAL_ENEMY.ignore_hitanimonly)) {
_local1 = "hith";
}
}
if ((_local7 > GLOBAL_ENEMY.ignore_hitweak) && (!GLOBAL_ENEMY.ignore_hitanimonly)) {
GLOBAL_ENEMY.s_hit = true;
GLOBAL_ENEMY.ai = -1;
}
GLOBAL_PLAYER.s_attacking = 0;
if ((GLOBAL_SCORE_ON_DAMAGE * _local7) > 0) {
GLOBAL_POINTS = GLOBAL_POINTS + (GLOBAL_SCORE_ON_DAMAGE * _local7);
Log(((((GLOBAL_PLAYER.m_name + " hit ") + GLOBAL_ENEMY.m_name) + " for ") + _local7) + "!");
}
} else if (GLOBAL_PLAYER.s_atktype == 4) {
var _local7 = 0;
if (GLOBAL_ALLOW_PETS) {
setPlayerSparkAt(getABox(GLOBAL_PLAYER));
GLOBAL_PLAYERSPARK.gotoAndPlay("heart");
_local1 = "hitp";
Log(((GLOBAL_PLAYER.m_name + " pet ") + GLOBAL_ENEMY.m_name) + "!");
} else {
setPlayerSparkAt(getABox(GLOBAL_PLAYER));
GLOBAL_PLAYERSPARK.gotoAndPlay("heart");
}
GLOBAL_PLAYER.s_attacking = 0;
}
numclamp(GLOBAL_ENEMY.hp);
}
}
if (!isPlayerConsumed(GLOBAL_PLAYER)) {
if (_local1 != null) {
goPlay(getEnemyT(GLOBAL_ENEMY), _local1);
}
if (_local2 != null) {
goPlay(GLOBAL_PLAYER, _local2);
actHurt(GLOBAL_PLAYER, 1);
}
}
}
function _pickEnemyReset() {
V = new Object();
GLOBAL_VALUES = V;
GLOBAL_SYNCMAP = new Object();
GLOBAL_POSTSYNC = function (G, Obj, extra) {
};
GLOBAL_PRESYNC = function (G, Obj, extra) {
};
GLOBAL_ENEMY_AI_FUNC = _enemyAIDefault;
GLOBAL_ENEMY.m_scale = undefined;
GLOBAL_ENEMY.enemy.m_scale = undefined;
getEnemyT(GLOBAL_ENEMY).m_scale = undefined;
GLOBAL_ALLOW_PETS = 0;
BLOCK_ENEMY_ONE_FRAME = true;
GLOBAL_SHOW_CONSUMED_PLAYER = false;
GLOBAL_SHOW_PLAYER_INSIDEPLUS_ENEMY_ENABLE = false;
}
function pickEnemy(userev) {
GLOBAL_ENEMY_FRAMES_RUN = 0;
GLOBAL_ENEMY_REQUEST_VICTORY = 0;
GLOBAL_ENEMY_REQUEST_VICTORY_NEXT = 0;
var _local5 = userev;
var _local7 = false;
var _local4;
if ((_local5 < 2) || (_local5 > GLOBAL_MAXENEMYFRAMES)) {
if ((GLOBAL_ENEMY._currentframe + 1) > GLOBAL_MAXENEMYFRAMES) {
_pickEnemyReset();
_local4 = 2;
} else {
_pickEnemyReset();
_local4 = GLOBAL_ENEMY._currentframe + 1;
}
} else if (GLOBAL_ENEMY._currentframe == int(_local5)) {
_local7 = true;
_local4 = int(_local5);
} else {
_pickEnemyReset();
_local4 = int(_local5);
}
if (_local4 != undefined) {
GLOBAL_ENEMY.m_scale = 100;
GLOBAL_ENEMY.maxhp = 1;
GLOBAL_ENEMY.hp = GLOBAL_ENEMY.maxhp;
GLOBAL_ENEMY.enemy.in_movex = 0;
GLOBAL_ENEMY.enemy.in_movey = 0;
GLOBAL_ENEMY.enemy.in_action = 0;
getEnemyT(GLOBAL_ENEMY).in_movex = 0;
getEnemyT(GLOBAL_ENEMY).in_movey = 0;
getEnemyT(GLOBAL_ENEMY).in_action = 0;
GLOBAL_ENEMY.hatk = 0;
GLOBAL_ENEMY.matk = 0;
GLOBAL_ENEMY.latk = 0;
GLOBAL_ENEMY.hdef = 0;
GLOBAL_ENEMY.mdef = 0;
GLOBAL_ENEMY.ldef = 0;
GLOBAL_ENEMY.enemy.s_atktype = 0;
GLOBAL_ENEMY.enemy.s_animbusy = 0;
GLOBAL_ENEMY.enemy.s_idle = 1;
GLOBAL_ENEMY.enemy.s_moving = 0;
GLOBAL_ENEMY.enemy.s_attacking = 0;
GLOBAL_ENEMY.enemy.s_hit = 0;
GLOBAL_ENEMY.enemy.s_vx = 0;
getEnemyT(GLOBAL_ENEMY).s_atktype = 0;
getEnemyT(GLOBAL_ENEMY).s_animbusy = 0;
getEnemyT(GLOBAL_ENEMY).s_idle = 1;
getEnemyT(GLOBAL_ENEMY).s_moving = 0;
getEnemyT(GLOBAL_ENEMY).s_attacking = 0;
getEnemyT(GLOBAL_ENEMY).s_hit = 0;
getEnemyT(GLOBAL_ENEMY).s_vx = 0;
GLOBAL_ENEMY.m_cameraoffset = 0;
GLOBAL_ENEMY.m_animPrefix = undefined;
GLOBAL_ENEMY.m_background = undefined;
GLOBAL_ENEMY.m_notsolid = undefined;
GLOBAL_ENEMY.m_dontfacetarget = 0;
GLOBAL_ENEMY.m_dontattackauto = undefined;
GLOBAL_ENEMY.m_dontplayhurt = undefined;
GLOBAL_ENEMY.m_dontplayhurtforweakattacks = -1;
GLOBAL_ENEMY._manuallyReset = undefined;
GLOBAL_ENEMY.is_external = undefined;
GLOBAL_ENEMY.is_external_loaded = 0;
GLOBAL_ENEMY.enemy.is_external_loaded = 0;
GLOBAL_ENEMY.enemy.enemy.is_external_loaded = 0;
GLOBAL_ENEMY.m_loadurl = undefined;
GLOBAL_ENEMY_ATKUSE = new Array(0.1, 0.09, 0.71);
GLOBAL_ENEMY.gotoAndStop(_local4);
GLOBAL_ENEMY.enemy.G = this;
GLOBAL_ENEMY.enemy.enemy.G = this;
getEnemyT(GLOBAL_ENEMY).G = this;
GLOBAL_ENEMY.m_blatently_reset = 2;
GLOBAL_ENEMY.m_blatently_resetenemy = _local4;
}
if (_local7) {
GLOBAL_ENEMY._manuallyReset = undefined;
getEnemyT(GLOBAL_ENEMY)._manuallyReset = undefined;
getEnemyT(GLOBAL_ENEMY).gotoAndPlay("idle");
}
if ((!_local7) && (_local4 != undefined)) {
GLOBAL_ENEMY.m_name = "Default";
GLOBAL_ENEMY.m_status = "Default";
GLOBAL_ENEMY.m_credit = "";
if (_local4 > GLOBAL_MAXENEMYNONEXTERNAL) {
GLOBAL_ENEMY.m_loadurl = fixURL(_root.externalURL);
GLOBAL_ENEMY.is_external = fixURL(_root.externalURL);
GLOBAL_ENEMY.m_name = "EXTERNAL";
GLOBAL_ENEMY.m_status = "SxS*NOTLOADED";
var _local6 = (_local4 - GLOBAL_MAXENEMYNONEXTERNAL) - 1;
if (_local6 < GLOBAL_LOADEEMS.length) {
GLOBAL_ENEMY.m_loadurl = fixURL(GLOBAL_LOADEEMS[_local6]);
GLOBAL_ENEMY.is_external = fixURL(GLOBAL_LOADEEMS[_local6]);
GLOBAL_ENEMY.bitmapiconstring = undefined;
if (GLOBAL_LOADEEMS_ICONS[_local6] != undefined) {
GLOBAL_ENEMY.bitmapiconstring = GLOBAL_LOADEEMS_ICONS[_local6];
}
}
BLOCK_ENEMY_ONE_FRAME = true;
}
musicStop();
}
GLOBAL_ENEMY.enemy.G = this;
getEnemyT(GLOBAL_ENEMY).G = this;
GLOBAL_ENEMY.enemy.enemy.G = this;
GLOBAL_ENEMY.ignore_hitweak = -1;
GLOBAL_ENEMY.ignore_hitanim = false;
GLOBAL_ENEMY.ignore_hitanimonly = false;
GLOBAL_ENEMY.hatk_original = GLOBAL_ENEMY.hatk;
GLOBAL_ENEMY.matk_original = GLOBAL_ENEMY.matk;
GLOBAL_ENEMY.latk_original = GLOBAL_ENEMY.latk;
GLOBAL_ENEMY.hdef_original = GLOBAL_ENEMY.hdef;
GLOBAL_ENEMY.mdef_original = GLOBAL_ENEMY.mdef;
GLOBAL_ENEMY.ldef_original = GLOBAL_ENEMY.ldef;
GLOBAL_ENEMY.hatk_original = GLOBAL_ENEMY.hatk;
_parent.camControl.emptygrid.drawnyet = undefined;
GLOBAL_PLAYER.m_status = "Normal";
GLOBAL_SCORE_ON_DAMAGE = 1;
GLOBAL_POINTS_START = GLOBAL_POINTS;
fadeInBG();
_resetSparkSim(GLOBAL_ENEMYSPARK);
_resetSparkSim(GLOBAL_PLAYERSPARK);
BLOCK_ENEMY_ONE_FRAME = true;
if (Math.random() < 0.5) {
GLOBAL_ENEMY._x = GLOBAL_PLAYER._x + 640;
GLOBAL_ENEMY._xscale = -Math.abs(GLOBAL_ENEMY._xscale);
} else {
GLOBAL_ENEMY._x = GLOBAL_PLAYER._x - 640;
GLOBAL_ENEMY._xscale = Math.abs(GLOBAL_ENEMY._xscale);
}
GLOBAL_ENEMY_TIMEOUT = 0;
}
function victoryStatus() {
if (GLOBAL_ENEMY.hp < 1) {
return(-1);
}
return(GLOBAL_ENEMY_REQUEST_VICTORY);
}
function victoryRequest(nextenemy, endanim) {
GLOBAL_ENEMY_REQUEST_VICTORY = 1;
GLOBAL_ENEMY_REQUEST_VICTORY_NEXT = 0;
if (nextenemy != undefined) {
if (typeof(nextenemy) == "number") {
GLOBAL_ENEMY_REQUEST_VICTORY_NEXT = nextenemy;
} else if (typeof(nextenemy) == "string") {
if (GLOBAL_ENEMIES_BY_NAME.hasOwnProperty(nextenemy)) {
GLOBAL_ENEMY_REQUEST_VICTORY_NEXT = GLOBAL_ENEMIES_BY_NAME[nextenemy];
} else {
_traceF0(("requestVictory does not have monster: \"" + nextenemy) + "\"");
}
}
}
}
function ObjHitsBody(obj) {
return(getCBox(GLOBAL_PLAYER).hitTest(obj));
}
function ObjHitsBodyCenter(obj) {
return(GLOBAL_PLAYER.centerbox.hitTest(obj));
}
function ObjHitsHead(obj) {
return(GLOBAL_PLAYER.head.hitTest(obj));
}
function ObjHitsHeadCenter(obj) {
return(GLOBAL_PLAYER.head.center.hitTest(obj));
}
function CanVoreHigh() {
if (GLOBAL_PLAYER.hdefon == 0) {
return(true);
}
return(false);
}
function CanVoreMid() {
if (GLOBAL_PLAYER.mdefon == 0) {
return(true);
}
return(false);
}
function CanVoreLow() {
if (GLOBAL_PLAYER.ldefon == 0) {
return(true);
}
return(false);
}
function CanVore() {
if (((GLOBAL_PLAYER.ldefon == 0) && (GLOBAL_PLAYER.mdefon == 0)) && (GLOBAL_PLAYER.hdefon == 0)) {
return(true);
}
return(false);
}
function shakeBegin(freq, amplitude, autodecay) {
if (GLOBAL_CAMERA_SHAKE.use == 0) {
GLOBAL_CAMERA_SHAKE.phase = 0;
GLOBAL_CAMERA_SHAKE.decay = 0;
GLOBAL_CAMERA_SHAKE.maxdecay = 10;
}
GLOBAL_CAMERA_SHAKE.use = 1;
GLOBAL_CAMERA_SHAKE.amp = amplitude;
GLOBAL_CAMERA_SHAKE.freq = freq * Math.PI;
GLOBAL_CAMERA_SHAKE.autodecay = -1;
if (autodecay != undefined) {
if (autodecay > 0) {
GLOBAL_CAMERA_SHAKE.autodecay = autodecay;
} else {
GLOBAL_CAMERA_SHAKE.autodecay = -1;
}
}
}
function shakeEnd(decay) {
GLOBAL_CAMERA_SHAKE.autodecay = -1;
GLOBAL_CAMERA_SHAKE.use = 0;
if (decay != undefined) {
if (decay > 0) {
GLOBAL_CAMERA_SHAKE.maxdecay = decay;
} else {
GLOBAL_CAMERA_SHAKE.maxdecay = 0;
}
}
}
function _setClipColor(mc, color) {
var _local2 = new flash.geom.Transform(mc);
var _local6 = 1;
var _local4 = (color & 255) / 255;
var _local7 = ((color >> 8) & 255) / 255;
var _local3 = ((color >> 16) & 255) / 255;
var _local1 = new flash.geom.ColorTransform(_local4, _local7, _local3, _local6, 0, 0, 0, 0);
_local2.colorTransform = _local1;
return(_local1);
}
function fadeBG(nframes, optionalcolor) {
GLOBAL_BG_FADE_COLOR = 0;
if (optionalcolor != undefined) {
GLOBAL_BG_FADE_COLOR = optionalcolor;
}
GLOBAL_BG_FADE = -1;
GLOBAL_BG_FADE_TIME = -1;
if ((nframes != undefined) and (nframes > 0)) {
GLOBAL_BG_FADE = 0;
GLOBAL_BG_FADE_TIME = nframes;
} else {
_setClipColor(GLOBAL_SCROLLBG, GLOBAL_BG_FADE_COLOR);
GLOBAL_BG_FADE_PREV_COLOR = GLOBAL_BG_FADE_COLOR;
}
}
function fadeInBG(nframes, optionalcolor) {
GLOBAL_BG_FADE_COLOR = 16777215 /* 0xFFFFFF */;
if (optionalcolor != undefined) {
GLOBAL_BG_FADE_COLOR = optionalcolor;
}
GLOBAL_BG_FADE = -1;
GLOBAL_BG_FADE_TIME = -1;
if ((nframes != undefined) and (nframes > 0)) {
GLOBAL_BG_FADE = 0;
GLOBAL_BG_FADE_TIME = nframes;
} else {
_setClipColor(GLOBAL_SCROLLBG, GLOBAL_BG_FADE_COLOR);
GLOBAL_BG_FADE_PREV_COLOR = GLOBAL_BG_FADE_COLOR;
}
}
function showConsumedPlayer(how, freezy) {
if (how != undefined) {
GLOBAL_SHOW_CONSUMED_PLAYER = how;
} else {
GLOBAL_SHOW_CONSUMED_PLAYER = false;
}
if (freezy != undefined) {
GLOBAL_SHOW_CONSUMED_PLAYER_FROZEN = freezy;
} else {
GLOBAL_SHOW_CONSUMED_PLAYER_FROZEN = false;
}
}
function musicPlay(localname) {
if (localname != GLOBAL_MUSIC_FILE) {
GLOBAL_MUSIC_FILE = localname;
}
trace("MUSIC: " + GLOBAL_MUSIC_FILE);
GLOBAL_MUSIC.loadSound(GLOBAL_MUSIC_FILE, true);
GLOBAL_MUSIC.start();
GLOBAL_MUSIC.onSoundComplete = function () {
GLOBAL_MUSIC.start();
};
GLOBAL_MUSIC.setVolume(0.5 * GLOBAL_SET_VOLUME);
}
function musicStop() {
GLOBAL_MUSIC.setVolume(0);
GLOBAL_MUSIC.stop();
}
function musicUpdate() {
}
function resetPlayer() {
GLOBAL_PLAYER.hp = 63;
GLOBAL_PLAYER.s_atktype = 0;
GLOBAL_PLAYER.s_animbusy = 0;
GLOBAL_PLAYER.s_idle = 1;
GLOBAL_PLAYER.s_moving = 0;
GLOBAL_PLAYER.s_attacking = 0;
GLOBAL_PLAYER.s_hit = 0;
GLOBAL_PLAYER.s_vx = 0;
GLOBAL_PLAYER.s_consumed = undefined;
GLOBAL_PLAYER._alpha = 100;
GLOBAL_PLAYER.head._alpha = 100;
GLOBAL_PLAYER.head._visible = true;
GLOBAL_PLAYER._visible = true;
setPlayerScale(100);
goPlay(GLOBAL_PLAYER, "idle");
setPlayerHasHead(true);
G.enemyFacePlayer();
}
function qteEvent(frames, typeobject) {
if (typeobject == undefined) {
typeobject = new Object({type:1});
}
GLOBAL_QTE_DATA.qliveevent = 0;
for (var _local2 in typeobject) {
GLOBAL_QTE_DATA[_local2] = typeobject[_local2];
}
if (frames == undefined) {
frames = 20;
}
GLOBAL_QTE_DATA.result = 0;
GLOBAL_QTE_DATA.active = true;
GLOBAL_QTE_DATA.timeleft = frames;
GLOBAL_QTE_DATA.qsetup = 0;
if (GLOBAL_QTE_DATA.qliveevent > 0) {
} else {
GLOBAL_ENEMY.enemy.stop();
getEnemyT(GLOBAL_ENEMY).stop();
GLOBAL_PLAYER.stop();
GLOBAL_PLAYER.aniclip.mc.stop();
GLOBAL_PLAYER.aniclip.mc.mc.stop();
if (GLOBAL_SHOW_CONSUMED_PLAYER) {
GLOBAL_PLAYER._alpha = 100;
}
}
}
function qteAbort(setto) {
if (setto != undefined) {
GLOBAL_QTE_DATA.result = setto;
} else {
GLOBAL_QTE_DATA.result = 0;
}
GLOBAL_QTE_DATA.active = 0;
}
function qteCheck() {
trace("Checking QTE result: " + GLOBAL_QTE_DATA.result);
return(GLOBAL_QTE_DATA.result);
}
function loadURLList(textData) {
var _local10 = new Array();
var _local4 = new Array();
var _local11 = 0;
var _local2 = 0;
while (_local2 < textData.length) {
var _local8 = textData.charCodeAt(_local2);
if ((_local8 == 13) || (_local8 == 0)) {
if (_local11 < _local2) {
var _local3 = textData.substring(_local11, _local2);
if (String.fromCharCode(_local3.charCodeAt(0)) == "#") {
} else if (String.fromCharCode(_local3.charCodeAt(0)) == "~") {
if (_local4.length > 0) {
_local4[_local4.length - 1] = _local3.substr(1);
}
} else {
var _local7 = new Object();
_local7.text = _local3;
_local10.push(_local7);
_local4.push(undefined);
loadicon = undefined;
}
}
_local11 = _local2 + 1;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local10.length) {
var _local12 = _local10[_local2];
var _local9 = _local4[_local2];
var _local6 = _local12.text;
BLOCK_ENEMY_ONE_FRAME = true;
var _local5 = true;
var _local1 = 0;
while (_local1 < GLOBAL_LOADEEMS.length) {
if (GLOBAL_LOADEEMS[_local1] == _local6) {
_local5 = false;
break;
}
_local1++;
}
if (_local5) {
GLOBAL_LOADEEMS.push(_local6);
if (_local9 != undefined) {
GLOBAL_LOADEEMS_ICONS[GLOBAL_LOADEEMS.length] = _local9;
}
GLOBAL_MAXENEMYFRAMES = GLOBAL_MAXENEMYFRAMES + 1;
}
_local2++;
}
return(0);
}
function getURLList() {
var _local2 = "";
var _local1 = 0;
while (_local1 < GLOBAL_LOADEEMS.length) {
_local2 = _local2 + GLOBAL_LOADEEMS[_local1];
_local2 = _local2 + newline;
if (GLOBAL_LOADEEMS_ICONS[_local1] != undefined) {
_local2 = _local2 + (("~" + GLOBAL_LOADEEMS_ICONS[_local1]) + newline);
}
_local1++;
}
return(_local2);
}
function enemySetAIFunction(fptr) {
GLOBAL_ENEMY_AI_FUNC = fptr;
}
function setCustomGui(embedpath, embedframe) {
var _local2 = 0;
if (embedframe == undefined) {
if (GLOBAL_GAME_GUI_TYPE_FRAME != GLOBAL_GAME_GUI_TYPE_FRAME_DEFAULT) {
_local2 = _local2 + 1;
}
GLOBAL_GAME_GUI_TYPE_FRAME = GLOBAL_GAME_GUI_TYPE_FRAME_DEFAULT;
} else {
if (GLOBAL_GAME_GUI_TYPE_FRAME != embedframe) {
_local2 = _local2 + 1;
}
GLOBAL_GAME_GUI_TYPE_FRAME = embedframe;
}
if (embedpath == 0) {
if (GLOBAL_GAME_GUI_TYPE != GLOBAL_GAME_GUI_TYPE_DEFAULT) {
_local2 = _local2 + 1;
}
GLOBAL_GAME_GUI_TYPE = GLOBAL_GAME_GUI_TYPE_DEFAULT;
} else {
if (GLOBAL_GAME_GUI_TYPE != "gamecustom") {
_local2 = _local2 + 1;
}
GLOBAL_GAME_GUI_TYPE = "gamecustom";
if (embedpath == undefined) {
var _local3 = getEnemyURL(enemyGetID());
if (GLOBAL_GAME_GUI_TYPE_PATH != _local3) {
_local2 = _local2 + 1;
}
GLOBAL_GAME_GUI_TYPE_PATH = _local3;
} else {
if (GLOBAL_GAME_GUI_TYPE_PATH != embedpath) {
_local2 = _local2 + 1;
}
GLOBAL_GAME_GUI_TYPE_PATH = embedpath;
}
}
if (_local2) {
_parent.camControl.gotoAndStop(GLOBAL_GAME_GUI_TYPE);
}
}
GLOBAL_LOADEEMS = new Array();
GLOBAL_LOADEEMS_ICONS = new Object();
GLOBAL_LOADEEMS_BROKEN = new Array();
var GLOBAL_LOCALSCOPE = (String(_root._url).indexOf("file") == 0);
var GLOBAL_USEHTTPS = (String(_root._url).indexOf("https") == 0);
trace((((_root._url + " ") + GLOBAL_LOCALSCOPE) + " ") + GLOBAL_USEHTTPS);
var GLOBAL_SWF_NAME = "";
var GLOBAL_SWF_URL = unescape(String(_root._url));
swfName = String(_root._url);
swfName = swfName.slice(swfName.lastIndexOf("/") + 1);
GLOBAL_SWF_NAME = unescape(swfName);
trace((GLOBAL_SWF_NAME + " ") + GLOBAL_SWF_URL);
if (GLOBAL_LOCALSCOPE) {
trace("no defaults");
} else {
var URLPLACE = "http://d.facdn.net/art/";
GLOBAL_LOADEEMS.push(URLPLACE + "bluthelizard/1439784576/1439784576.bluthelizard_blubarbftrmonster_snake_wildlife.swf");
}
GLOBAL_OPTIONS = new Object();
_global.MouseButtonsEnabled = "true";
GLOBAL_EXTERNAL_XML_FILEURL = "external.xml";
GLOBAL_MAX_PLAYERGRAPHIC = 7;
GLOBAL_MAXENEMYFRAMES = GLOBAL_LOADEEMS.length;
_root.GLOBAL_PLAYERGRAPHIC = 1;
_root.GLOBAL_PLAYERSUBGRAPHIC = 1;
_root.GLOBAL_PLAYERHEAD = 1;
_root.GLOBAL_SKIN_CLASS = "Human";
GLOBAL_SET_VOLUME = 50;
_root.GLOBAL_WEAPON_TYPE = 2;
GLOBAL_ENEMIES_BY_NAME_LOADING = 0;
GLOBAL_CAMERA_ZOOMPLAYER = 1;
GLOBAL_ALLOW_PETS = 0;
GLOBAL_PLAYER_MODE = 0;
GLOBAL_PLAYER_MODE_MAX = 1;
GLOBAL_PLAYER_MODE_DETECT = 0;
GLOBAL_ENEMY_REQUEST_VICTORY = 0;
GLOBAL_ENEMY_REQUEST_VICTORY_NEXT = 0;
GLOBAL_GAME_GUI_TYPE_DEFAULT = "gamebluDemo";
GLOBAL_GAME_GUI_TYPE = GLOBAL_GAME_GUI_TYPE_DEFAULT;
GLOBAL_GAME_GUI_TYPE_PATH = 0;
GLOBAL_GAME_GUI_TYPE_FRAME_DEFAULT = "gamebluDemo";
GLOBAL_GAME_GUI_TYPE_FRAME = 0;
var GLOBALUPDATECOX = new Object();
GLOBAL_SHOW_PLAYER_INSIDEPLUS = true;
GLOBAL_SHOW_PLAYER_INSIDEPLUS_ENEMY_ENABLE = false;
GLOBAL_QTE_DATA = new Object({result:0});
ATTACK_MEDIUM = 1;
ATTACK_HIGH = 2;
ATTACK_LOW = 0;
ATTACK_SPECIAL = 1;
_parent.camControl.gotoAndStop(GLOBAL_GAME_GUI_TYPE);
_parent.camControl.resetStage();
GLOBAL_SYNCMAP = new Object();
GLOBAL_PRESYNC = function (G, Obj, extra) {
};
GLOBAL_POSTSYNC = function (G, Obj, extra) {
};
V = new Object();
GLOBAL_VALUES = V;
GLOBAL_FUNCS = new Object();
GLOBAL_ENEMY_HASHCODES = new Object();
var GLOBAL_ENEMY_AI_FUNC = _enemyAIDefault;
_root.nvSetVolume = function (amt100) {
var _local2 = new Sound(_parent);
_local2.setVolume(amt100);
GLOBAL_SET_VOLUME = amt100;
GLOBAL_MUSIC.setVolume(0.5 * GLOBAL_SET_VOLUME);
};
_root.nvSetVolume(GLOBAL_SET_VOLUME);
GLOBAL_ENEMY_DATA = new Object();
GLOBAL_CURRENT_BACKGROUND = "default";
GLOBAL_FLOOR = 180;
GLOBAL_LIVES = 6;
GLOBAL_KILLS = 0;
GLOBAL_POINTS = 0;
GLOBAL_LOG = new Array();
GLOBAL_TRUEPAUSE = false;
GLOBAL_PAUSE = false;
GLOBAL_PAUSECTR = false;
GLOBAL_PAUSEHFR = 0;
GLOBAL_PAUSEHFRCTR = 0;
GLOBAL_PLAYER = _parent.player;
GLOBAL_PLAYERHASHEAD = true;
GLOBAL_ENEMY = _parent.enemy;
GLOBAL_ENEMY_TIMEOUT = 0;
GLOBAL_BG = _parent.MBG;
_parent.colorize(_parent.playershad, -100, -100, -100, -50);
_parent.colorize(_parent.enemyshad, -100, -100, -100, -50);
GLOBAL_CAMERA_SHAKE = new Object();
GLOBAL_CAMERA_SHAKE.use = false;
GLOBAL_CAMERA_SHAKE.freq = 5;
GLOBAL_CAMERA_SHAKE.amp = 1;
GLOBAL_CAMERA_SHAKE.decay = 0;
GLOBAL_CAMERA_SHAKE.maxdecay = 0;
GLOBAL_ENEMYSPARK = _parent.enemyspark;
GLOBAL_PLAYERSPARK = _parent.playerspark;
GLOBAL_ENEMY_FRAMES_RUN = 0;
GLOBAL_FULL_TRACE = 0;
GLOBAL_ENEMY_ATKUSE = new Array(0.1, 0.09, 0.71);
GLOBAL_PLAYER_TAPS = new Object();
GLOBAL_SCORE_ON_DAMAGE = 1;
GLOBAL_POINTS_START = 0;
GLOBAL_DELAY_STARTNOISE = 0;
playerTapReset();
GLOBAL_SHOW_CONSUMED_PLAYER = false;
GLOBAL_SHOW_CONSUMED_PLAYER_FROZEN = false;
GLOBAL_MAXENEMYFRAMES = GLOBAL_ENEMY._totalframes;
_traceF0 = _traceFx;
_traceF1 = function (msg) {
};
_traceF2 = function (msg) {
};
_traceF3 = function (msg) {
};
LogScrollOffset = 0;
GLOBAL_BG_FADE = -1;
GLOBAL_BG_FADE_TIME = -1;
GLOBAL_BG_FADE_COLOR = 16777215 /* 0xFFFFFF */;
GLOBAL_BG_FADE_PREV_COLOR = 16777215 /* 0xFFFFFF */;
GLOBAL_SCROLLBG = _parent.scrollbg;
GLOBAL_MUSIC = new Sound(this);
GLOBAL_MUSIC_FILE = "";
addcharactervariables(GLOBAL_PLAYER);
addcharactervariables(GLOBAL_ENEMY);
GLOBAL_ENEMY.ai = 1;
GLOBAL_PLAYER.m_name = "Barb";
GLOBAL_PLAYER.m_status = "Normal";
setPlayerHasHead(true);
GLOBAL_ENEMIES_BY_NAME = new Object();
GLOBAL_ENEMIES_BY_NAME_SORTED = new Array();
BLOCK_ENEMY_ONE_FRAME = true;
GLOBAL_MAXENEMYNONEXTERNAL = 1;
LOADINGXML = false;
LOADINGXMLCOMPLETED = false;
REGISTER_FIRST_ENEMY_FRAME = 1;
GLOBAL_ENEMY.gotoAndStop("external");
Log((GLOBAL_SWF_NAME + " ") + GLOBAL_SWF_URL);
Log((((("Player: " + System.capabilities.playerType) + ", ") + GLOBAL_LOCALSCOPE) + ": ") + _root._url);
}
onClipEvent (enterFrame) {
if (_root.GLOBAL_ASSISTANCE) {
if (GLOBAL_ASSISTANCE_TIMER == undefined) {
GLOBAL_ASSISTANCE_TIMER = 0;
}
GLOBAL_ASSISTANCE_TIMER++;
if (GLOBAL_ASSISTANCE_TIMER > 30) {
GLOBAL_ASSISTANCE_TIMER = 0;
_root.GLOBAL_ASSISTANCE = 0;
}
}
if (REGISTER_FIRST_ENEMY_FRAME) {
GLOBAL_MAXENEMYNONEXTERNAL = GLOBAL_ENEMY._currentframe;
GLOBAL_MAXENEMYFRAMES = GLOBAL_MAXENEMYNONEXTERNAL;
GLOBAL_MAXENEMYFRAMES = GLOBAL_MAXENEMYFRAMES + GLOBAL_LOADEEMS.length;
REGISTER_FIRST_ENEMY_FRAME = 0;
BLOCK_ENEMY_ONE_FRAME = true;
trace("Synced auto: " + GLOBAL_MAXENEMYNONEXTERNAL);
var loadme = new XML();
loadme.ignoreWhite = true;
loadme.onLoad = function (success) {
var _local2 = loadme.firstChild.firstChild;
while (_local2 != null) {
var _local5 = _local2.attributes.path;
var _local1 = _local2.attributes.local;
var _local4 = _local2.attributes.icon;
if (_local1 == undefined) {
_local1 = 0;
}
_local1 = Number(_local1);
var _local3 = false;
if (GLOBAL_LOCALSCOPE) {
_local3 = true;
} else if (_local1 == 0) {
_local3 = true;
}
if (_local3) {
GLOBAL_LOADEEMS.push(_local5);
if (_local4 != undefined) {
GLOBAL_LOADEEMS_ICONS[GLOBAL_LOADEEMS.length - 1] = _local4;
}
GLOBAL_MAXENEMYFRAMES = GLOBAL_MAXENEMYFRAMES + 1;
}
_local2 = _local2.nextSibling;
}
trace("loaded XML " + GLOBAL_LOADEEMS);
LOADINGXML = false;
};
LOADINGXML = true;
if (GLOBAL_EXTERNAL_XML_FILEURL == undefined) {
GLOBAL_EXTERNAL_XML_FILEURL = "external.xml";
}
loadme.load(GLOBAL_EXTERNAL_XML_FILEURL);
}
if (LOADINGXML) {
LOADINGXMLCOMPLETED = false;
if (loadme.getBytesTotal() > 0) {
}
return(undefined);
}
if (!LOADINGXMLCOMPLETED) {
_parent.camControl.emptygrid.drawnyet = undefined;
_parent.camControl.emptygrid.selectnext = 1;
LOADINGXMLCOMPLETED = true;
Log("Loaded!");
pickEnemy(2);
}
if (GLOBAL_LOADEEMS_BROKEN.length > 0) {
while (GLOBAL_LOADEEMS_BROKEN.length > 0) {
var killme = GLOBAL_LOADEEMS_BROKEN.pop();
var i = 0;
while (i < GLOBAL_LOADEEMS.length) {
if (GLOBAL_LOADEEMS[i] == killme) {
GLOBAL_LOADEEMS.splice(i, 1);
if (GLOBAL_ENEMY_HASHCODES.hasOwnProperty(i)) {
delete GLOBAL_ENEMY_HASHCODES[i];
}
if (GLOBAL_ENEMY_DATA.hasOwnProperty(i)) {
delete GLOBAL_ENEMY_DATA[i];
}
GLOBAL_MAXENEMYFRAMES = GLOBAL_MAXENEMYFRAMES - 1;
trace("EXREMOVE: " + killme);
Log("EXREMOVE: " + killme);
break;
}
i++;
}
}
pickEnemy(0);
}
GLOBAL_PLAYER.aniclip.mc.G = this;
GLOBAL_ENEMY.enemy.G = this;
GLOBAL_ENEMY.enemy.enemy.G = this;
getEnemyT(GLOBAL_ENEMY).G = this;
var correctMyExternalEnemy = 0;
if (GLOBAL_ENEMY.m_name == "EXTERNAL") {
BLOCK_ENEMY_ONE_FRAME = true;
if (GLOBAL_ENEMY.m_status == "SxS*NOTLOADED") {
if (GLOBAL_ENEMIES_BY_NAME_LOADING > 0) {
pickEnemy(2);
GLOBAL_ENEMIES_BY_NAME_LOADING = 0;
var nenemies = 0;
var names = new Array();
for (var key in GLOBAL_ENEMIES_BY_NAME) {
names.push(new Object({name:key, value:GLOBAL_ENEMIES_BY_NAME[key]}));
}
names.sortOn("name", Array.CASEINSENSITIVE);
GLOBAL_ENEMIES_BY_NAME_SORTED = new Object();
var ia = 0;
while (ia < names.length) {
GLOBAL_ENEMIES_BY_NAME_SORTED[ia + 2] = names[ia].value;
ia++;
}
trace(GLOBAL_ENEMIES_BY_NAME_SORTED);
_parent.camControl.gotoAndStop(GLOBAL_GAME_GUI_TYPE);
return(undefined);
}
_stopExtSounds();
if (GLOBAL_ENEMY.m_loadurl != undefined) {
GLOBAL_ENEMY.is_external = fixURL(GLOBAL_ENEMY.m_loadurl);
GLOBAL_ENEMY.is_external_loaded = 0;
GLOBAL_ENEMY._manuallyReset = undefined;
GLOBAL_ENEMY.enemy._xscale = 100;
GLOBAL_ENEMY.enemy._yscale = 100;
_loadMovie(_parent.enemyshad.t.enemy, GLOBAL_ENEMY.m_loadurl, "");
_loadMovie(GLOBAL_ENEMY.enemy, GLOBAL_ENEMY.m_loadurl, "");
} else {
GLOBAL_ENEMY.is_external = fixURL(_root.externalURL);
GLOBAL_ENEMY.is_external_loaded = 0;
GLOBAL_ENEMY._manuallyReset = undefined;
GLOBAL_ENEMY.enemy._xscale = 100;
GLOBAL_ENEMY.enemy._yscale = 100;
_loadMovie(_parent.enemyshad.t.enemy, _root.externalURL, "");
_loadMovie(GLOBAL_ENEMY.enemy, _root.externalURL, "");
}
_parent.enemyshad.t.enemy.G = this;
_parent.enemyshad.t.enemy.enemy.G = this;
GLOBAL_ENEMY.m_status = "";
}
}
if (GLOBAL_ENEMY.is_external) {
if (!GLOBAL_ENEMY.is_external_loaded) {
var FMin = goPlayGetMinFrame(getEnemyT(GLOBAL_ENEMY), "idle");
if (FMin == undefined) {
FMin = 1;
}
if (getEnemyT(GLOBAL_ENEMY)._currentframe != FMin) {
correctMyExternalEnemy = 1;
}
} else if (GLOBAL_ENEMY.is_external_loaded == 1) {
correctMyExternalEnemy = 1;
GLOBAL_ENEMY.is_external_loaded = 2;
}
}
if (GLOBAL_ENEMY.m_blatently_reset > 0) {
GLOBAL_ENEMY.m_blatently_reset--;
if (GLOBAL_ENEMY.m_blatently_reset < 1) {
GLOBAL_CURRENT_BACKGROUND = GLOBAL_ENEMY.m_background;
if (GLOBAL_CURRENT_BACKGROUND == undefined) {
GLOBAL_CURRENT_BACKGROUND = "default";
}
_parent.scrollbg.gotoAndStop(GLOBAL_CURRENT_BACKGROUND);
}
}
var usethisenemy = GLOBAL_ENEMY._currentframe;
var continueme = true;
if (GLOBAL_ENEMY.is_external) {
if (!GLOBAL_ENEMY.is_external_loaded) {
continueme = false;
}
}
if ((GLOBAL_ENEMY.m_name == "EXTERNAL") || (GLOBAL_ENEMY.m_status == "SxS*NOTLOADED")) {
continueme = false;
}
if (GLOBAL_ENEMY_DATA.hasOwnProperty(usethisenemy)) {
if (continueme) {
var EDATA = GLOBAL_ENEMY_DATA[usethisenemy];
if (EDATA.m_scale == undefined) {
EDATA.m_scale = GLOBAL_ENEMY.m_scale;
}
if (EDATA.m_name == undefined) {
EDATA.m_name = GLOBAL_ENEMY.m_name;
}
if (EDATA.m_status == undefined) {
EDATA.m_status = GLOBAL_ENEMY.m_status;
}
if (EDATA.m_credit == undefined) {
EDATA.m_credit = GLOBAL_ENEMY.m_credit;
}
if (EDATA.maxhp == undefined) {
EDATA.maxhp = GLOBAL_ENEMY.maxhp;
}
if (GLOBAL_ENEMIES_BY_NAME[EDATA.m_name] == undefined) {
GLOBAL_ENEMIES_BY_NAME[EDATA.m_name] = GLOBAL_ENEMY._currentframe;
}
}
} else if (continueme) {
var EDATA = new Object();
EDATA.m_scale = GLOBAL_ENEMY.m_scale;
EDATA.m_name = GLOBAL_ENEMY.m_name;
EDATA.m_status = GLOBAL_ENEMY.m_status;
EDATA.m_credit = GLOBAL_ENEMY.m_credit;
EDATA.maxhp = GLOBAL_ENEMY.maxhp;
GLOBAL_ENEMIES_BY_NAME[EDATA.m_name] = GLOBAL_ENEMY._currentframe;
GLOBAL_ENEMY_DATA[usethisenemy] = EDATA;
}
if (GLOBAL_ENEMIES_BY_NAME_LOADING > 0) {
pickEnemy(Math.floor(GLOBAL_ENEMIES_BY_NAME_LOADING) + 1);
GLOBAL_ENEMIES_BY_NAME_LOADING = GLOBAL_ENEMIES_BY_NAME_LOADING + 0.5;
_parent.camControl.gotoAndStop("loading");
_parent.scrollbg._visible = false;
return(undefined);
}
_parent.scrollbg._visible = true;
if (GLOBAL_GAME_GUI_TYPE == "gamecustom") {
var ECAM = _parent.camControl;
var EGUI = ECAM.embedgui;
if (EGUI != undefined) {
if (EGUI.mc == undefined) {
EGUI.createEmptyMovieClip("mc", 0);
}
if (EGUI.mc != undefined) {
var eGUI = EGUI.mc;
if (EGUI.MovieClipLoaderURL != GLOBAL_GAME_GUI_TYPE_PATH) {
_loadGui(eGUI, GLOBAL_GAME_GUI_TYPE_PATH);
trace("TRUE load gui");
} else if (EGUI.MovieClipLoaderStatus == 3) {
if (EGUI.MovieClipLoaderURL == GLOBAL_GAME_GUI_TYPE_PATH) {
if (Key.isDown(8) || (Key.isDown(27))) {
setCustomGui(0);
} else {
eGUI.gotoAndStop(GLOBAL_GAME_GUI_TYPE_FRAME);
eGUI._visible = true;
eGUI.update();
}
} else {
trace("not correctly loaded...");
setCustomGui(0);
}
} else if (EGUI.MovieClipLoaderStatus < 0) {
trace((((("not loaded..." + EGUI.MovieClipLoaderStatus) + " ") + EGUI) + " ") + eGUI);
Log("Could not load: " + GLOBAL_GAME_GUI_TYPE_PATH);
setCustomGui(0);
} else {
trace((((((((((EGUI.MovieClipLoaderURL + " ") + GLOBAL_GAME_GUI_TYPE_PATH) + " ") + GLOBAL_GAME_GUI_TYPE) + " ") + EGUI.MovieClipLoaderStatus) + " ") + GLOBAL_GAME_GUI_TYPE_PATH) + " ") + GLOBAL_GAME_GUI_TYPE_FRAME);
}
}
}
}
if (_global.MouseButtonsEnabled == "true") {
var inputKeyAction = (Key.isDown(101) || (Key.isDown(32)));
var inputKeyLeft = (Key.isDown(100) || (Key.isDown(37)));
var inputKeyRight = (Key.isDown(102) || (Key.isDown(39)));
var inputKeyUp = (Key.isDown(104) || (Key.isDown(38)));
var inputKeyDown = (Key.isDown(98) || (Key.isDown(40)));
}
if (_global.MouseButtonsEnabled == "true") {
var inputMouseX = ((_parent.camControl.mouseX - -160) / 320);
var inputMouseY = ((_parent.camControl.mouseY - -72) / 144);
var inputMouseB = _parent.m_input_raw_mouse_down;
var inputMouseValid = false;
if ((inputMouseX >= 0) && (inputMouseX <= 1)) {
if ((inputMouseY >= 0) && (inputMouseY <= 1)) {
inputMouseValid = true;
}
}
}
var inputB = (1 & (Key.isDown(101) || (Key.isDown(32))));
var inputL = (1 & (Key.isDown(100) || (Key.isDown(37))));
var inputR = (1 & (Key.isDown(102) || (Key.isDown(39))));
var inputU = (1 & (Key.isDown(104) || (Key.isDown(38))));
var inputD = (1 & (Key.isDown(98) || (Key.isDown(40))));
_parent.camControl.mousecursor.gotoAndStop("none");
if (inputMouseValid) {
if (inputMouseB) {
var useactioncode = false;
if (inputMouseX < 0.5) {
GLOBAL_PLAYER.in_action = false;
} else {
GLOBAL_PLAYER.in_action = true;
useactioncode = true;
}
var dx = (inputMouseX / 0.5);
var dy = (inputMouseY / 1);
if (dx > 1) {
dx = dx - 1;
mcframe = mcframe + "A";
}
GLOBAL_PLAYER.in_movex = 0;
GLOBAL_PLAYER.in_movey = 0;
if (useactioncode) {
inputB = inputB | 1;
if (dx < 0.333) {
inputL = inputL | 1;
GLOBAL_PLAYER.in_movex = -1;
if (GLOBAL_PLAYER._xscale > 0) {
GLOBAL_PLAYER._xscale = -Math.abs(GLOBAL_PLAYER._xscale);
}
} else if (dx > 0.666) {
inputR = inputR | 1;
GLOBAL_PLAYER.in_movex = 1;
if (GLOBAL_PLAYER._xscale < 0) {
GLOBAL_PLAYER._xscale = Math.abs(GLOBAL_PLAYER._xscale);
}
}
if (dy < 0.333) {
inputU = inputU | 1;
GLOBAL_PLAYER.in_movey = 1;
} else if (dy > 0.666) {
inputD = inputD | 1;
GLOBAL_PLAYER.in_movey = -1;
}
} else if (Math.abs(dx - 0.5) > Math.abs(dy - 0.5)) {
if (dx < 0.333) {
inputL = inputL | 1;
GLOBAL_PLAYER.in_movex = -1;
if (GLOBAL_PLAYER._xscale > 0) {
GLOBAL_PLAYER._xscale = -Math.abs(GLOBAL_PLAYER._xscale);
}
} else if (dx > 0.666) {
inputR = inputR | 1;
GLOBAL_PLAYER.in_movex = 1;
if (GLOBAL_PLAYER._xscale < 0) {
GLOBAL_PLAYER._xscale = Math.abs(GLOBAL_PLAYER._xscale);
}
}
} else if (dy < 0.333) {
inputU = inputU | 1;
GLOBAL_PLAYER.in_movey = 1;
} else if (dy > 0.666) {
inputD = inputD | 1;
GLOBAL_PLAYER.in_movey = -1;
}
}
var mcframe = "c";
var dx = (inputMouseX / 0.5);
var dy = (inputMouseY / 1);
if (dx > 1) {
dx = dx - 1;
mcframe = mcframe + "A";
if (dx < 0.333) {
mcframe = mcframe + "L";
} else if (dx > 0.666) {
mcframe = mcframe + "R";
}
if (dy < 0.333) {
mcframe = mcframe + "U";
} else if (dy > 0.666) {
mcframe = mcframe + "D";
}
} else if (Math.abs(dx - 0.5) > Math.abs(dy - 0.5)) {
if (dx < 0.333) {
mcframe = mcframe + "L";
} else if (dx > 0.666) {
mcframe = mcframe + "R";
}
} else if (dy < 0.333) {
mcframe = mcframe + "U";
} else if (dy > 0.666) {
mcframe = mcframe + "D";
}
_parent.camControl.mousecursor.gotoAndStop(mcframe);
}
if (inputL) {
GLOBAL_PLAYER_TAPS.L = GLOBAL_PLAYER_TAPS.L + 1;
} else {
GLOBAL_PLAYER_TAPS.L = 0;
}
if (inputR) {
GLOBAL_PLAYER_TAPS.R = GLOBAL_PLAYER_TAPS.R + 1;
} else {
GLOBAL_PLAYER_TAPS.R = 0;
}
if (inputU) {
GLOBAL_PLAYER_TAPS.U = GLOBAL_PLAYER_TAPS.U + 1;
} else {
GLOBAL_PLAYER_TAPS.U = 0;
}
if (inputD) {
GLOBAL_PLAYER_TAPS.D = GLOBAL_PLAYER_TAPS.D + 1;
} else {
GLOBAL_PLAYER_TAPS.D = 0;
}
if (inputB) {
GLOBAL_PLAYER_TAPS.B = GLOBAL_PLAYER_TAPS.B + 1;
} else {
GLOBAL_PLAYER_TAPS.B = 0;
}
GLOBAL_PRESYNC(this, getEnemyT(GLOBAL_ENEMY), undefined);
GLOBAL_CAMERA_ZOOMPLAYER = getPlayerScale() / 100;
var cancelthisframe = 0;
if (GLOBAL_QTE_DATA.active) {
if (GLOBAL_QTE_DATA.qliveevent > 0) {
cancelthisframe = 0;
} else {
cancelthisframe = 1;
}
var QT = _parent.camControl.mcqte;
GLOBAL_QTE_DATA.fadetime = 10;
var deltaxm = 128;
var deltaym = -40;
if (enemyFacingRight()) {
deltaxm = Math.abs(deltaxm);
} else {
deltaxm = -Math.abs(deltaxm);
}
QT._x = deltaxm;
QT._y = deltaym;
QT._visible = true;
if (!GLOBAL_PAUSE) {
GLOBAL_QTE_DATA.timeleft = GLOBAL_QTE_DATA.timeleft - 1;
}
if (GLOBAL_QTE_DATA.timeleft < 0) {
GLOBAL_QTE_DATA.active = false;
}
if (GLOBAL_QTE_DATA.qliveevent > 0) {
} else if (getEnemyT(GLOBAL_ENEMY).camera != undefined) {
var offy = 0;
var cbounds = getEnemyT(GLOBAL_ENEMY).camera.getBounds(_root);
var useviewbox = false;
if (cbounds.xMax != undefined) {
if (((cbounds.xMax - cbounds.xMin) > 2) && ((cbounds.yMax - cbounds.yMin) > 2)) {
useviewbox = true;
}
}
if (useviewbox) {
var xsize = (cbounds.xMax - cbounds.xMin);
var ysize = (cbounds.yMax - cbounds.yMin);
var ysp = ((ysize * 320) / 240);
if (xsize >= ysp) {
ysize = (xsize * 240) / 320;
} else {
xsize = (ysize * 320) / 240;
}
var newx = (0.5 * (cbounds.xMin + cbounds.xMax));
var newy = (0.5 * (cbounds.yMin + cbounds.yMax));
var newxscale = (xsize / 3.2);
var newyscale = (ysize / 2.4);
_parent.camControl._x = newx;
_parent.camControl._y = newy;
_parent.camControl._xscale = newxscale;
_parent.camControl._yscale = newyscale;
delmove = (160 - newx) * decayspeed;
} else {
_parent.camControl.resetStage();
var offx = (((GLOBAL_ENEMY._xscale / Math.abs(GLOBAL_ENEMY._xscale)) * (getEnemyT(GLOBAL_ENEMY)._xscale / Math.abs(getEnemyT(GLOBAL_ENEMY)._xscale))) * getEnemyT(GLOBAL_ENEMY).camera._x);
delmove = ((160 - GLOBAL_ENEMY._x) - offx) * decayspeed;
if (!isPlayerConsumed(GLOBAL_PLAYER)) {
cameraComputeZoomScale(GLOBAL_PLAYER);
} else {
cameraComputeZoomScale(GLOBAL_ENEMY);
}
}
}
_parent.camControl.emenydir.gotoAndStop("qte");
_traceF1("QTE Active");
if (GLOBAL_QTE_DATA.type == 1) {
if (GLOBAL_QTE_DATA.qsetup == 0) {
playerTapReset();
var barray = new Array("L", "D", "U", "R");
GLOBAL_QTE_DATA.qbutton = barray[Math.floor(Math.random() * barray.length)];
GLOBAL_QTE_DATA.qsetup = 1;
}
QT.gotoAndStop(GLOBAL_QTE_DATA.qbutton);
if (playerTapGet() == GLOBAL_QTE_DATA.qbutton) {
GLOBAL_QTE_DATA.active = false;
GLOBAL_QTE_DATA.result = 1;
}
} else if (GLOBAL_QTE_DATA.type == 2) {
if (GLOBAL_QTE_DATA.qsetup == 0) {
playerTapReset();
var barray = new Array("B", "L", "D", "U", "R");
GLOBAL_QTE_DATA.qbutton = barray[Math.floor(Math.random() * barray.length)];
GLOBAL_QTE_DATA.qsetup = 1;
}
QT.gotoAndStop(GLOBAL_QTE_DATA.qbutton);
if (playerTapGet() == GLOBAL_QTE_DATA.qbutton) {
GLOBAL_QTE_DATA.active = false;
GLOBAL_QTE_DATA.result = 1;
}
} else if (GLOBAL_QTE_DATA.type == 3) {
if (GLOBAL_QTE_DATA.qsetup == 0) {
playerTapReset();
GLOBAL_QTE_DATA.qbuttons = new Array("L", "D", "U", "R");
GLOBAL_QTE_DATA.qframe = "MASHDIR";
GLOBAL_QTE_DATA.qsetup = 1;
GLOBAL_QTE_DATA.qsmashcount = 0;
GLOBAL_QTE_DATA.qdeltatime = 0;
GLOBAL_QTE_DATA.qsmashmark = GLOBAL_QTE_DATA.timeleft / 7;
if (GLOBAL_QTE_DATA.qsmashmark < 1) {
GLOBAL_QTE_DATA.qsmashmark = 1;
}
}
QT.gotoAndStop(GLOBAL_QTE_DATA.qframe);
QT.progressSet(GLOBAL_QTE_DATA.qsmashcount / GLOBAL_QTE_DATA.qsmashmark);
GLOBAL_QTE_DATA.qdeltatime = GLOBAL_QTE_DATA.qdeltatime + 1;
var tappedit = 0;
var i = 0;
while (i < GLOBAL_QTE_DATA.qbuttons.length) {
if (playerTapGet() == GLOBAL_QTE_DATA.qbuttons[i]) {
tappedit = tappedit + 1;
}
i++;
}
if (tappedit == 1) {
GLOBAL_QTE_DATA.qsmashcount++;
}
if (GLOBAL_QTE_DATA.qsmashcount > GLOBAL_QTE_DATA.qsmashmark) {
GLOBAL_QTE_DATA.active = false;
GLOBAL_QTE_DATA.result = 1;
}
} else {
if (GLOBAL_QTE_DATA.qsetup == 0) {
playerTapReset();
GLOBAL_QTE_DATA.qsetup = 1;
}
QT.gotoAndStop("ANY");
if (playerTapGet().length > 0) {
GLOBAL_QTE_DATA.active = false;
GLOBAL_QTE_DATA.result = 1;
}
}
if (GLOBAL_QTE_DATA.qliveevent > 0) {
} else {
if (!GLOBAL_QTE_DATA.active) {
trace(" Should QTE play ");
if (!GLOBAL_PAUSE) {
unpauseall();
}
if (GLOBAL_QTE_DATA.result) {
QT.gotoAndStop("OK");
} else {
QT.gotoAndStop("FAIL");
}
} else {
GLOBAL_ENEMY.enemy.stop();
getEnemyT(GLOBAL_ENEMY).stop();
GLOBAL_PLAYER.stop();
GLOBAL_PLAYER.aniclip.mc.stop();
GLOBAL_PLAYER.aniclip.mc.mc.stop();
}
if (GLOBAL_SHOW_CONSUMED_PLAYER) {
if (isPlayerConsumed(GLOBAL_PLAYER)) {
GLOBAL_PLAYER._alpha = 100;
} else {
GLOBAL_PLAYER._alpha = 100;
}
} else if (isPlayerConsumed(GLOBAL_PLAYER)) {
GLOBAL_PLAYER._alpha = 0;
} else {
GLOBAL_PLAYER._alpha = 100;
}
}
}
if (cancelthisframe) {
} else if (!GLOBAL_PAUSE) {
if (GLOBAL_QTE_DATA.fadetime > 0) {
GLOBAL_QTE_DATA.fadetime = GLOBAL_QTE_DATA.fadetime - 1;
} else {
_parent.camControl.mcqte._visible = false;
_parent.camControl.mcqte.gotoAndStop(1);
}
if (inputB) {
GLOBAL_PLAYER.in_action = true;
} else {
GLOBAL_PLAYER.in_action = false;
}
if (inputL) {
GLOBAL_PLAYER.in_movex = -1;
} else if (inputR) {
GLOBAL_PLAYER.in_movex = 1;
} else {
GLOBAL_PLAYER.in_movex = 0;
}
if (inputU) {
GLOBAL_PLAYER.in_movey = 1;
} else if (inputD) {
GLOBAL_PLAYER.in_movey = -1;
} else {
GLOBAL_PLAYER.in_movey = 0;
}
if (GLOBAL_PLAYER_MODE_DETECT < 0) {
GLOBAL_PLAYER_MODE_DETECT = 0;
} else {
GLOBAL_PLAYER_MODE_DETECT = GLOBAL_PLAYER_MODE_DETECT - 0.08;
}
if (GLOBAL_PLAYER_TAPS.D == 1) {
GLOBAL_PLAYER_MODE_DETECT = GLOBAL_PLAYER_MODE_DETECT + 1;
if (GLOBAL_PLAYER_MODE_DETECT > 3) {
setPlayerMode();
GLOBAL_PLAYER_MODE_DETECT = 0;
}
}
_parent.camControl.mousecursor._x = _parent.camControl.mouseX;
_parent.camControl.mousecursor._y = _parent.camControl.mouseY;
_updateSparkSim(GLOBAL_PLAYERSPARK, 1);
_updateSparkSim(GLOBAL_ENEMYSPARK, 1);
moveplayer();
GLOBAL_ENEMY_AI_FUNC(this, GLOBAL_ENEMY, GLOBAL_PLAYER);
if (Key.isDown(87)) {
getEnemyT(GLOBAL_ENEMY).in_movey = 1;
} else if (Key.isDown(83)) {
getEnemyT(GLOBAL_ENEMY).in_movey = -1;
}
if (Key.isDown(65)) {
getEnemyT(GLOBAL_ENEMY).in_movex = 1;
} else if (Key.isDown(68)) {
getEnemyT(GLOBAL_ENEMY).in_movex = -1;
}
if (Key.isDown(70)) {
getEnemyT(GLOBAL_ENEMY).in_action = 1;
}
if (GLOBAL_ENEMY_REQUEST_VICTORY) {
if ((getEnemyT(GLOBAL_ENEMY).s_idle || (getEnemyT(GLOBAL_ENEMY).s_moving)) && (((!getEnemyT(GLOBAL_ENEMY).s_attacking) && (!getEnemyT(GLOBAL_ENEMY).s_hit)) && (!getEnemyT(GLOBAL_ENEMY).s_animbusy))) {
var movehere = (GLOBAL_ENEMY._x - GLOBAL_PLAYER._x);
if (movehere > 0) {
GLOBAL_ENEMY._xscale = Math.abs(GLOBAL_ENEMY._xscale);
getEnemyT(GLOBAL_ENEMY).in_movex = -1;
} else {
GLOBAL_ENEMY._xscale = -Math.abs(GLOBAL_ENEMY._xscale);
getEnemyT(GLOBAL_ENEMY).in_movex = 1;
}
getEnemyT(GLOBAL_ENEMY).in_movey = 0;
getEnemyT(GLOBAL_ENEMY).in_action = 0;
setEnemyFaceTarget(0);
}
}
if (GLOBAL_PLAYER.hp > 0) {
GLOBAL_ENEMY.enemy.G = this;
GLOBAL_ENEMY.enemy.enemy.G = this;
getEnemyT(GLOBAL_ENEMY).G = this;
if (!BLOCK_ENEMY_ONE_FRAME) {
moveenemy(GLOBAL_ENEMY);
}
}
damagecollisions();
var delmove = 0;
var decayspeed = 0.25;
if (!isPlayerConsumed(GLOBAL_PLAYER)) {
delmove = (160 - GLOBAL_PLAYER._x) * decayspeed;
_parent.camControl.resetStage();
cameraComputeZoomScale(GLOBAL_PLAYER);
} else if (getEnemyT(GLOBAL_ENEMY).camera != undefined) {
var offy = 0;
var cbounds = getEnemyT(GLOBAL_ENEMY).camera.getBounds(_root);
var useviewbox = false;
if (cbounds.xMax != undefined) {
if (((cbounds.xMax - cbounds.xMin) > 2) && ((cbounds.yMax - cbounds.yMin) > 2)) {
useviewbox = true;
}
}
if (useviewbox) {
var xsize = (cbounds.xMax - cbounds.xMin);
var ysize = (cbounds.yMax - cbounds.yMin);
var ysp = ((ysize * 320) / 240);
if (xsize >= ysp) {
ysize = (xsize * 240) / 320;
} else {
xsize = (ysize * 320) / 240;
}
var newx = (0.5 * (cbounds.xMin + cbounds.xMax));
var newy = (0.5 * (cbounds.yMin + cbounds.yMax));
var newxscale = (xsize / 3.2);
var newyscale = (ysize / 2.4);
_parent.camControl._x = newx;
_parent.camControl._y = newy;
_parent.camControl._xscale = newxscale;
_parent.camControl._yscale = newyscale;
delmove = (160 - newx) * decayspeed;
} else {
_parent.camControl.resetStage();
var offx = (((GLOBAL_ENEMY._xscale / Math.abs(GLOBAL_ENEMY._xscale)) * (getEnemyT(GLOBAL_ENEMY)._xscale / Math.abs(getEnemyT(GLOBAL_ENEMY)._xscale))) * getEnemyT(GLOBAL_ENEMY).camera._x);
delmove = ((160 - GLOBAL_ENEMY._x) - offx) * decayspeed;
if (!isPlayerConsumed(GLOBAL_PLAYER)) {
cameraComputeZoomScale(GLOBAL_PLAYER);
} else {
cameraComputeZoomScale(GLOBAL_ENEMY);
}
}
} else {
_parent.camControl.resetStage();
if (GLOBAL_ENEMY.m_cameraoffset != undefined) {
var offx = (((GLOBAL_ENEMY._xscale / Math.abs(GLOBAL_ENEMY._xscale)) * (getEnemyT(GLOBAL_ENEMY)._xscale / Math.abs(getEnemyT(GLOBAL_ENEMY)._xscale))) * GLOBAL_ENEMY.m_cameraoffset);
delmove = ((160 - GLOBAL_ENEMY._x) - offx) * decayspeed;
}
if (!isPlayerConsumed(GLOBAL_PLAYER)) {
cameraComputeZoomScale(GLOBAL_PLAYER);
} else {
cameraComputeZoomScale(GLOBAL_ENEMY);
}
}
if (GLOBAL_CAMERA_SHAKE.use != 0) {
_parent.camControl._y = _parent.camControl._y + (GLOBAL_CAMERA_SHAKE.amp * Math.cos(GLOBAL_CAMERA_SHAKE.phase));
GLOBAL_CAMERA_SHAKE.phase = GLOBAL_CAMERA_SHAKE.phase + GLOBAL_CAMERA_SHAKE.freq;
GLOBAL_CAMERA_SHAKE.decay = 0;
if (GLOBAL_CAMERA_SHAKE.autodecay > 0) {
GLOBAL_CAMERA_SHAKE.autodecay--;
if (GLOBAL_CAMERA_SHAKE.autodecay < 1) {
GLOBAL_CAMERA_SHAKE.use = 0;
}
}
} else if (GLOBAL_CAMERA_SHAKE.maxdecay > 0) {
var decay = (1 - (GLOBAL_CAMERA_SHAKE.decay / GLOBAL_CAMERA_SHAKE.maxdecay));
if (decay < 0) {
decay = 0;
} else {
_parent.camControl._y = _parent.camControl._y + ((decay * GLOBAL_CAMERA_SHAKE.amp) * Math.cos(GLOBAL_CAMERA_SHAKE.phase));
GLOBAL_CAMERA_SHAKE.decay = GLOBAL_CAMERA_SHAKE.decay + 1;
}
}
if ((GLOBAL_BG_FADE_TIME >= 0) and (GLOBAL_BG_FADE >= 0)) {
GLOBAL_BG_FADE++;
if (GLOBAL_BG_FADE >= GLOBAL_BG_FADE_TIME) {
GLOBAL_BG_FADE = GLOBAL_BG_FADE_TIME;
}
var fadef = ((1 * GLOBAL_BG_FADE) / (1 * GLOBAL_BG_FADE_TIME));
var fader = Math.floor(((GLOBAL_BG_FADE_PREV_COLOR & 255) * (1 - fadef)) + (fadef * (GLOBAL_BG_FADE_COLOR & 255)));
var fadeg = Math.floor((((GLOBAL_BG_FADE_PREV_COLOR >> 8) & 255) * (1 - fadef)) + (fadef * ((GLOBAL_BG_FADE_COLOR >> 8) & 255)));
var fadeb = Math.floor((((GLOBAL_BG_FADE_PREV_COLOR >> 16) & 255) * (1 - fadef)) + (fadef * ((GLOBAL_BG_FADE_COLOR >> 16) & 255)));
var fadec = ((fader + (fadeg << 8)) + (fadeb << 16));
_setClipColor(_parent.scrollbg, fadec);
if (GLOBAL_BG_FADE >= GLOBAL_BG_FADE_TIME) {
GLOBAL_BG_FADE_PREV_COLOR = GLOBAL_BG_FADE_COLOR;
GLOBAL_BG_FADE_TIME = -1;
GLOBAL_BG_FADE = -1;
}
}
if (delmove != 0) {
_parent.scrollbg.gotoAndStop(GLOBAL_CURRENT_BACKGROUND);
GLOBAL_PLAYER._x = GLOBAL_PLAYER._x + delmove;
GLOBAL_ENEMY._x = GLOBAL_ENEMY._x + delmove;
_parent.scrollbg.mc._x = _parent.scrollbg.mc._x + delmove;
var waxol = (_parent.scrollbg.mc._width / 3);
if (_parent.scrollbg.mc._x < 0) {
_parent.scrollbg.mc._x = _parent.scrollbg.mc._x + waxol;
} else if (_parent.scrollbg.mc._x > waxol) {
_parent.scrollbg.mc._x = _parent.scrollbg.mc._x - waxol;
}
}
if (isPlayerConsumed(GLOBAL_PLAYER)) {
_parent.camControl.emenydir.gotoAndStop("eaten");
} else if (GLOBAL_PLAYER.hp < 1) {
_parent.camControl.emenydir.gotoAndStop("dead");
} else if (GLOBAL_ENEMY._x < (GLOBAL_PLAYER._x - 160)) {
_parent.camControl.emenydir.gotoAndStop(3);
} else if (GLOBAL_ENEMY._x > (GLOBAL_PLAYER._x + 160)) {
_parent.camControl.emenydir.gotoAndStop(2);
} else if (GLOBAL_ALLOW_PETS) {
_parent.camControl.emenydir.gotoAndStop("allowpets");
} else {
_parent.camControl.emenydir.gotoAndStop(1);
}
if (isPlayerConsumed(GLOBAL_PLAYER)) {
_parent.camControl.playerModeClip._visible = true;
_parent.camControl.playerModeClip.gotoAndStop("consumed");
var PV = _parent.camControl.playerModeClip;
var sourcebutts = new Array("L", "R", "U", "D", "E", "B", "W", "BL", "BR", "BU", "BD");
var flipbutts = new Object();
var i = 0;
while (i < sourcebutts.length) {
flipbutts[sourcebutts[i]] = sourcebutts[i];
i++;
}
if (enemyFacing() < 0) {
flipbutts.L = "R";
flipbutts.R = "L";
flipbutts.BL = "BR";
flipbutts.BR = "BL";
}
var onlyanim = new Array(-140, -140, -140);
var allcolors = new Array();
allcolors.push(new Array(128, -64, -64));
allcolors.push(new Array(128, 128, -64));
allcolors.push(new Array(-64, 128, -64));
allcolors.push(new Array(-64, 128, 128));
allcolors.push(new Array(-64, -64, 128));
allcolors.push(new Array(128, 64, -64));
allcolors.push(new Array(128, -64, 128));
allcolors.push(new Array(128, 128, 128));
var i = 0;
while (i < sourcebutts.length) {
var mc = PV[sourcebutts[i]];
mc._visible = false;
i++;
}
var TAS = enemyGetAnimStruct();
if (TAS != undefined) {
var i = 0;
while (i < sourcebutts.length) {
var mc = PV[flipbutts[sourcebutts[i]]];
var hasit = getNextAnimation(TAS, sourcebutts[i]);
if (hasit != "") {
mc._visible = true;
_parent.colorize(mc, onlyanim[0], onlyanim[1], onlyanim[2], 0);
}
i++;
}
}
var TDS = enemyGetDigestionStruct();
if (TDS != undefined) {
var inuse = new Object();
var escapeid = 0;
while (escapeid < TDS.escapes.length) {
var D = TDS.escapes[escapeid];
var usecolor = allcolors[escapeid % allcolors.length];
var din = 0;
while (din < D.inputs.length) {
var dirmoved = D.inputs[din];
if (TDS.blockescapes != undefined) {
if ((dirmoved == "E") || (dirmoved == "W")) {
// unexpected jump
}
} else {
var mc = PV[flipbutts[dirmoved]];
if (inuse[dirmoved] == undefined) {
inuse[dirmoved] = new Array();
}
mc._visible = true;
inuse[dirmoved].push(D.anim);
}
din++;
}
escapeid++;
}
var uniquekeys = new Object();
var maxuniquekeys = 0;
for (var k in inuse) {
inuse[k].sort();
var sk = String(inuse[k]);
if (uniquekeys.hasOwnProperty(sk)) {
} else {
maxuniquekeys++;
uniquekeys[sk] = maxuniquekeys;
}
inuse[k] = uniquekeys[sk];
}
for (var k in inuse) {
var mc = PV[flipbutts[k]];
var usecolor = allcolors[inuse[k] % allcolors.length];
_parent.colorize(mc, usecolor[0], usecolor[1], usecolor[2], 0);
}
}
PV.BV._visible = ((PV.BL._visible | PV.BR._visible) | PV.BU._visible) | PV.BD._visible;
_parent.colorize(PV.BV, onlyanim[0], onlyanim[1], onlyanim[2], 0);
} else {
_parent.camControl.playerModeClip._visible = true;
_parent.camControl.playerModeClip.gotoAndStop("mode" + GLOBAL_PLAYER_MODE);
}
if (GLOBAL_PLAYER.hp < 1) {
if ((!GLOBAL_PLAYER.s_hit) && (!GLOBAL_PLAYER.s_animbusy)) {
goPlay(GLOBAL_PLAYER, "death");
}
}
if (GLOBAL_ENEMY.hp < 1) {
GLOBAL_ENEMY.hp = 0;
if (!GLOBAL_ENEMY.ignore_hitanim) {
if (GLOBAL_ENEMY_TIMEOUT == 1) {
goPlay(getEnemyT(GLOBAL_ENEMY), "death");
GLOBAL_KILLS++;
Log(("YOU KILLED THE " + GLOBAL_ENEMY.m_name) + "!");
}
GLOBAL_ENEMY_TIMEOUT++;
if (GLOBAL_ENEMY_TIMEOUT > 60) {
pickEnemy(0);
resetPlayer();
}
} else {
GLOBAL_ENEMY_TIMEOUT = 0;
}
} else if (GLOBAL_ENEMY_REQUEST_VICTORY) {
if (GLOBAL_ENEMY_TIMEOUT == 1) {
Log(("YOU DEFEATED THE " + GLOBAL_ENEMY.m_name) + "!");
}
if (_parent.camControl.bounds.hitTest(GLOBAL_ENEMY)) {
} else {
trace("notvisible! ");
GLOBAL_ENEMY_TIMEOUT = 150;
}
GLOBAL_ENEMY_TIMEOUT++;
if (GLOBAL_ENEMY_TIMEOUT > 150) {
pickEnemy(GLOBAL_ENEMY_REQUEST_VICTORY_NEXT);
}
} else {
GLOBAL_ENEMY_TIMEOUT = 0;
}
if (GLOBAL_SHOW_CONSUMED_PLAYER) {
if (isPlayerConsumed(GLOBAL_PLAYER)) {
GLOBAL_PLAYER._alpha = 100;
} else {
GLOBAL_PLAYER._alpha = 100;
}
} else if (isPlayerConsumed(GLOBAL_PLAYER)) {
GLOBAL_PLAYER._alpha = 0;
} else {
GLOBAL_PLAYER._alpha = 100;
}
GLOBAL_ENEMYSPARK.nextFrame();
GLOBAL_PLAYERSPARK.nextFrame();
_parent.camControl.gui_enemyhp.setbarvalue(GLOBAL_ENEMY.hp);
_parent.camControl.gui_playerhp.setbarvalue(GLOBAL_PLAYER.hp);
_parent.camControl.gui_playermana.setbarvalue(_global.Player_mana);
_parent.camControl.gui_playername = GLOBAL_PLAYER.m_name;
_parent.camControl.gui_playerstatus = GLOBAL_PLAYER.m_status;
_parent.camControl.gui_enemyname = GLOBAL_ENEMY.m_name;
_parent.camControl.gui_enemystatus = ((GLOBAL_ENEMY.m_status + "[") + GLOBAL_ENEMY.m_credit) + "]";
_parent.camControl.gui_points = "Score: " + GLOBAL_POINTS;
_parent.camControl.gui_kills = "Creatures Captured: " + GLOBAL_KILLS;
_parent.playershad._y = calcShadowPosition(GLOBAL_PLAYER._y) + 33.5;
_parent.playershad._x = GLOBAL_PLAYER._x;
_parent.playershad._yscale = 10 * calcShadowScale(GLOBAL_PLAYER._y);
_parent.playershad._xscale = GLOBAL_PLAYER._xscale * calcShadowScale(GLOBAL_PLAYER._y);
_parent.playershad.t.gotoAndStop(GLOBAL_PLAYER._currentframe);
_parent.playershad._alpha = GLOBAL_PLAYER._alpha;
if (GLOBAL_SHOW_CONSUMED_PLAYER) {
_parent.playershad._visible = true;
} else if (isPlayerConsumed(GLOBAL_PLAYER)) {
_parent.playershad._visible = false;
} else {
_parent.playershad._visible = true;
}
_parent.playershad.t.head._alpha = GLOBAL_PLAYER.head._alpha;
_parent.playershad.t.head._x = GLOBAL_PLAYER.head._x;
_parent.playershad.t.head._y = GLOBAL_PLAYER.head._y;
_parent.enemyshad._y = calcShadowPosition(GLOBAL_ENEMY._y) + 35.5;
_parent.enemyshad._x = GLOBAL_ENEMY._x;
_parent.enemyshad._xscale = 100;
_parent.enemyshad._yscale = 10;
_parent.enemyshad.t._xscale = GLOBAL_ENEMY._xscale * calcShadowScale(GLOBAL_ENEMY._y);
_parent.enemyshad.t._yscale = GLOBAL_ENEMY._yscale * calcShadowScale(GLOBAL_ENEMY._y);
_parent.enemyshad.t.enemy._xscale = GLOBAL_ENEMY.enemy._xscale;
_parent.enemyshad.t.enemy._yscale = GLOBAL_ENEMY.enemy._yscale;
_parent.enemyshad.t.enemy.enemy._xscale = GLOBAL_ENEMY.enemy.enemy._xscale;
_parent.enemyshad.t.enemy.enemy._yscale = GLOBAL_ENEMY.enemy.enemy._yscale;
_parent.enemyshad.t.enemy.G = undefined;
_parent.enemyshad.t.enemy.enemy.G = undefined;
_parent.enemyshad.t.G = undefined;
_parent.enemyshad.G = undefined;
_parent.enemyshad.t.gotoAndStop(GLOBAL_ENEMY._currentframe);
_parent.enemyshad.t.enemy.gotoAndStop(GLOBAL_ENEMY.enemy._currentframe);
_parent.enemyshad.t.enemy.enemy.gotoAndStop(GLOBAL_ENEMY.enemy.enemy._currentframe);
GLOBAL_ENEMY_FRAMES_RUN++;
} else if (GLOBAL_TRUEPAUSE) {
if (inputMouseValid) {
if (inputMouseB) {
if (inputMouseX < 0.333) {
inputKeyLeft = 1;
} else if (inputMouseX > 0.666) {
inputKeyRight = 1;
}
if (inputMouseY < 0.333) {
inputKeyUp = 1;
} else if (inputMouseY > 0.666) {
inputKeyDown = 1;
}
}
}
var delx = (inputKeyRight - inputKeyLeft);
var dely = (inputKeyUp - inputKeyDown);
if (inputKeyAction) {
if (dely != 0) {
var factorx = 1;
if (dely > 0) {
factorx = 1.125;
} else if (dely < 0) {
factorx = 0.8;
}
_parent.camControl._xscale = _parent.camControl._xscale * factorx;
_parent.camControl._yscale = _parent.camControl._yscale * factorx;
}
if (delx != 0) {
_parent.camControl._xscale = _parent.camControl._xscale + (0.1 * (100 - _parent.camControl._xscale));
_parent.camControl._yscale = _parent.camControl._yscale + (0.1 * (100 - _parent.camControl._yscale));
}
if (_parent.camControl._xscale < 26.2144) {
_parent.camControl._xscale = 26.2144;
} else if (_parent.camControl._xscale > 100) {
_parent.camControl._xscale = 100;
}
if (_parent.camControl._yscale < 26.2144) {
_parent.camControl._yscale = 26.2144;
} else if (_parent.camControl._yscale > 100) {
_parent.camControl._yscale = 100;
}
} else {
if (delx != 0) {
_parent.camControl._x = _parent.camControl._x + (((8 * delx) * _parent.camControl._xscale) / 100);
}
if (dely != 0) {
_parent.camControl._y = _parent.camControl._y - (((8 * dely) * _parent.camControl._yscale) / 100);
}
}
}
if (GLOBAL_ENEMY.is_external) {
var lpercent = 0;
if (GLOBAL_ENEMY.enemy != undefined) {
if (GLOBAL_ENEMY.enemy.getBytesTotal() > 0) {
lpercent = (100 * GLOBAL_ENEMY.enemy.getBytesLoaded()) / GLOBAL_ENEMY.enemy.getBytesTotal();
}
}
if (!GLOBAL_ENEMY.is_external_loaded) {
if (lpercent < 100) {
_parent.camControl.gui_enemystatus = Math.floor(lpercent) + "% ";
_parent.camControl.gui_enemyname = GLOBAL_ENEMY.m_name;
_parent.camControl.gui_enemystatus = _parent.camControl.gui_enemystatus + (((GLOBAL_ENEMY.m_status + "[") + GLOBAL_ENEMY.m_credit) + "]");
if (GLOBAL_ENEMY._x < GLOBAL_PLAYER._x) {
GLOBAL_ENEMY._x = GLOBAL_PLAYER._x - 640;
} else {
GLOBAL_ENEMY._x = GLOBAL_PLAYER._x + 640;
}
} else {
GLOBAL_ENEMY.is_external_loaded = 1;
}
} else if (lpercent < 100) {
GLOBAL_ENEMY.is_external_loaded = 0;
}
}
if (Key.isDown(45)) {
if (!GLOBAL_PAUSECTR) {
GLOBAL_TRUEPAUSE = !GLOBAL_TRUEPAUSE;
var TM = getEnemyT(GLOBAL_ENEMY).__animmap;
for (var fkey in TM) {
trace("frame " + fkey);
var ao = TM[fkey];
for (var akey in ao) {
trace("\t" + akey);
}
}
}
GLOBAL_PAUSECTR = true;
} else {
GLOBAL_PAUSECTR = false;
}
if (Key.isDown(16)) {
}
if (!GLOBAL_TRUEPAUSE) {
if (GLOBAL_PAUSEHFR != 0) {
GLOBAL_PAUSEHFRCTR = GLOBAL_PAUSEHFRCTR + 1;
if (GLOBAL_PAUSEHFRCTR > GLOBAL_PAUSEHFR) {
unpauseall();
GLOBAL_PAUSEHFRCTR = 0;
} else {
pauseall();
}
} else if ((!GLOBAL_TRUEPAUSE) and GLOBAL_PAUSE) {
unpauseall();
}
} else if (GLOBAL_TRUEPAUSE and (!GLOBAL_PAUSE)) {
pauseall();
}
var esounds = new Sound(_parent.enemyshad);
esounds.setVolume(0);
var psounds = new Sound(_parent.playershad);
psounds.setVolume(0);
_parent.flashColorize(_parent.playershad, -1, -1, -1, 0.4);
_parent.flashColorize(_parent.enemyshad, -1, -1, -1, 0.4);
GLOBAL_ENEMY.G = this;
GLOBAL_ENEMY.enemy.G = this;
GLOBAL_ENEMY.enemy.enemy.G = this;
getEnemyT(GLOBAL_ENEMY).G = this;
GLOBAL_PLAYER.G = this;
_root.G = this;
GLOBAL_ENEMY.enemy.goPlay = function (animf) {
_root.controller.goPlay(_root.controller.GLOBAL_ENEMY.enemy, animf);
};
getEnemyT(GLOBAL_ENEMY).goPlay = function (animf) {
_root.controller.goPlay(_root.controller.GLOBAL_ENEMY.enemy.enemy, animf);
};
if (_parent.camControl.sld_sound.mousedown) {
var sldtarg = _parent.camControl.sld_sound;
var my = sldtarg.My;
var checkyb = sldtarg.sldbak.getBounds(_parent.camControl.sld_sound);
var sldcoord = my;
var sldsize = (checkyb.yMax - checkyb.yMin);
var val = (-100 * (sldcoord / sldsize));
if (val > 100) {
val = 100;
}
if (val < 0) {
val = 0;
}
sldtarg.sld._yscale = val;
_root.nvSetVolume(val);
}
_parent.camControl.gui_playergfxid = _root.GLOBAL_PLAYERGRAPHIC;
BLOCK_ENEMY_ONE_FRAME = false;
if (_parent.camControl.exturl != undefined) {
if (_parent.camControl.exturl != _root.externalURL) {
trace("exturl exists? :" + _parent.camControl.exturl);
_root.externalURL = _parent.camControl.exturl;
}
}
reassignAllXClips(GLOBAL_ENEMY);
reassignAllXClips(GLOBAL_ENEMY.enemy);
reassignAllXClips(GLOBAL_ENEMY.enemy.enemy);
reassignAllXClips(GLOBAL_PLAYER);
if (GLOBAL_PLAYERHASHEAD) {
setPlayerHasHead(true);
} else {
setPlayerHasHead(false);
}
if (guiTextScroll == 1) {
var gmx = ((_parent.camControl.mouseX - -160) / 240);
var gmy = ((_parent.camControl.mouseY - 72) / 48);
if ((gmx > 0) and (gmx < 1)) {
if ((gmy > 0) and (gmy < 1)) {
if (gmx < 0.1) {
LogScrollOffset = 0;
} else if (gmx > 0.9) {
LogScrollOffset = GLOBAL_LOG.length - 2;
} else {
LogScrollOffset = LogScrollOffset + ((gmy - 0.5) * 4);
}
if (LogScrollOffset > (GLOBAL_LOG.length - 2)) {
LogScrollOffset = GLOBAL_LOG.length - 2;
}
if (LogScrollOffset < 0) {
LogScrollOffset = 0;
}
}
}
}
var offi = Math.floor(LogScrollOffset);
_parent.camControl.gui_leveldesc = "";
if (offi < GLOBAL_LOG.length) {
_parent.camControl.gui_leveldesc = _parent.camControl.gui_leveldesc + GLOBAL_LOG[offi + 0];
offi++;
}
if (offi < GLOBAL_LOG.length) {
_parent.camControl.gui_leveldesc = _parent.camControl.gui_leveldesc + GLOBAL_LOG[offi + 0];
offi++;
}
if (offi < GLOBAL_LOG.length) {
_parent.camControl.gui_leveldesc = _parent.camControl.gui_leveldesc + GLOBAL_LOG[offi + 0];
offi++;
}
if (offi < GLOBAL_LOG.length) {
_parent.camControl.gui_leveldesc = _parent.camControl.gui_leveldesc + GLOBAL_LOG[offi + 0];
offi++;
}
if (getOption("showDirty")) {
_parent.camControl.showDirty.gotoAndStop("on");
} else {
_parent.camControl.showDirty.gotoAndStop("off");
}
if (getOption("showNaughty")) {
_parent.camControl.showNaughty.gotoAndStop("on");
} else {
_parent.camControl.showNaughty.gotoAndStop("off");
}
if ((!GLOBAL_PAUSE) && (!GLOBAL_TRUEPAUSE)) {
_parent.camControl.chatbubble.update();
}
if (GLOBAL_PLAYER.aniclip != undefined) {
GLOBAL_PLAYER.stop();
GLOBAL_PLAYER.aniclip.stop();
GLOBAL_PLAYER.aniclip.mc.stop();
var updateplayerclip = (!GLOBAL_PAUSE);
if (GLOBAL_SHOW_CONSUMED_PLAYER) {
if (GLOBAL_SHOW_CONSUMED_PLAYER_FROZEN) {
if (isPlayerConsumed(GLOBAL_PLAYER)) {
updateplayerclip = false;
}
}
}
if ((!GLOBAL_PAUSE) && (!GLOBAL_QTE_DATA.active)) {
var cframe = GLOBAL_PLAYER.aniclip.mc._currentframe;
var tframe = GLOBAL_PLAYER.aniclip.mc._totalframes;
if (cframe == tframe) {
var isnextanim = (cframe == tframe);
var cura = playerCurrAnim().toLowerCase();
var nextanim = cura;
if (cura == "idle") {
nextanim = "idle";
} else if (cura == "walk") {
nextanim = "walk";
} else if (cura == "atkl") {
nextanim = "idle";
} else if (cura == "atkm") {
nextanim = "idle";
} else if (cura == "atkh") {
nextanim = "idle";
} else if (cura == "atkp") {
nextanim = "idle";
} else if (cura == "hitl") {
nextanim = "idle";
} else if (cura == "hitm") {
nextanim = "idle";
} else if (cura == "hith") {
nextanim = "idle";
} else if (cura == "death") {
nextanim = "dead";
} else if (cura == "dead") {
nextanim = "dead";
isnextanim = 0;
} else if (cura == undefined) {
nextanim = "idle";
} else {
trace("Not in scope anim: " + cura);
}
if (GLOBAL_PLAYER.hp < 1) {
if ((nextanim != "death") || (nextanim != "dead")) {
nextanim = "death";
}
}
if (isnextanim) {
goPlay(GLOBAL_PLAYER, nextanim);
GLOBAL_PLAYER.aniclip.mc.gotoAndStop(1);
}
} else {
GLOBAL_PLAYER.aniclip.mc.gotoAndStop(cframe + 1);
}
} else {
GLOBAL_PLAYER.stop();
GLOBAL_PLAYER.aniclip.stop();
GLOBAL_PLAYER.aniclip.mc.stop();
}
}
if (GLOBAL_SHOW_PLAYER_INSIDEPLUS) {
var displaydistance = 150;
for (var mckey in GLOBALUPDATECOX) {
var COX = GLOBALUPDATECOX[mckey];
var pdist = playerEnemyCenterDistance();
if ((GLOBAL_SHOW_PLAYER_INSIDEPLUS_ENEMY_ENABLE && (pdist < displaydistance)) && (GLOBAL_PLAYER._visible)) {
var flipx = ((GLOBAL_PLAYER._xscale > 0) == (GLOBAL_ENEMY._xscale > 0));
if (flipx == 0) {
flipx = -1;
} else {
flipx = 1;
}
var scaleval = (GLOBAL_ENEMY.m_scale / 100);
var delx = (((GLOBAL_ENEMY.m_scale / 100) * (GLOBAL_PLAYER._x - GLOBAL_ENEMY._x)) * (GLOBAL_ENEMY._xscale / 100));
var dely = (((GLOBAL_ENEMY.m_scale / 100) * (GLOBAL_PLAYER._y - GLOBAL_ENEMY._y)) * (GLOBAL_ENEMY._yscale / 100));
COX.gotoAndStop(GLOBAL_PLAYER._currentframe);
COX.aniclip.gotoAndStop(GLOBAL_PLAYER.aniclip._currentframe);
COX.aniclip.mc.gotoAndStop(GLOBAL_PLAYER.aniclip.mc._currentframe);
COX._rotation = GLOBAL_PLAYER._rotation;
COX._xscale = (scaleval * flipx) * Math.abs(GLOBAL_PLAYER._xscale);
COX._yscale = scaleval * GLOBAL_PLAYER._yscale;
COX._x = delx;
COX._y = dely;
COX._visible = true;
COX._alpha = GLOBAL_PLAYER._alpha;
} else {
COX._x = 0;
COX._y = 0;
COX._xscale = 100;
COX._yscale = 100;
COX._rotation = 0;
COX._alpha = 0;
COX._visible = false;
}
}
}
GLOBALUPDATECOX = new Object();
if (GLOBAL_PLAYER.aniclip != undefined) {
_parent.playershad.t.aniclip.gotoAndStop(GLOBAL_PLAYER.aniclip._currentframe);
_parent.playershad.t.aniclip.mc.gotoAndStop(GLOBAL_PLAYER.aniclip.mc._currentframe);
_parent.playershad.t.aniclip.mc.mc.gotoAndStop(GLOBAL_PLAYER.aniclip.mc.mc._currentframe);
GLOBAL_PLAYER.aniclip.mc.head._visible = _root.GLOBAL_PLAYERHEAD;
GLOBAL_PLAYER.aniclip.mc.head2._visible = _root.GLOBAL_PLAYERHEAD;
GLOBAL_PLAYER.aniclip.mc.head3._visible = _root.GLOBAL_PLAYERHEAD;
_parent.playershad.t.aniclip.mc.head._visible = _root.GLOBAL_PLAYERHEAD;
_parent.playershad.t.aniclip.mc.head2._visible = _root.GLOBAL_PLAYERHEAD;
_parent.playershad.t.aniclip.mc.head3._visible = _root.GLOBAL_PLAYERHEAD;
}
for (var skey in GLOBAL_SYNCMAP) {
var S = GLOBAL_SYNCMAP[skey];
if (S.owner._visible) {
if (S.target != undefined) {
if (S.owner.__animcurrent == S.framename) {
var anis = S.owner.__animnamemap[S.framename];
if (anis != undefined) {
var delfram = (S.owner._currentframe - anis.fmin);
if (!S.fixedframemap.hasOwnProperty(S.framename)) {
S.target.gotoAndStop(S.framename);
S.fixedframemap[S.framename] = S.target._currentframe;
}
S.target.gotoAndStop(S.fixedframemap[S.framename] + delfram);
S.target._visible = true;
if (S.target._alpha < 100) {
S.target._alpha = S.target._alpha + 5;
}
if (S.target._alpha > 95) {
S.target._alpha = 100;
}
} else {
trace((("not mapped yet? " + anis) + " ") + S.framename);
}
}
}
}
if (S.funccall != undefined) {
S.funccall(this, S.owner, S.target);
}
}
musicUpdate();
if (correctMyExternalEnemy) {
GLOBAL_ENEMY._manuallyReset = undefined;
goPlay(getEnemyT(GLOBAL_ENEMY), "idle");
getEnemyT(GLOBAL_ENEMY).gotoAndStop(getEnemyT(GLOBAL_ENEMY)._totalframes);
getEnemyT(GLOBAL_ENEMY).gotoAndPlay("idle");
_parent.camControl.clearDrawingByIndex(GLOBAL_ENEMY._currentframe);
}
if (_global.Player_mana > 128) {
_global.Player_mana = 128;
}
if (_global.Player_mana < 0) {
_global.Player_mana = 0;
}
if (GLOBAL_ENEMY.is_external) {
if (correctMyExternalEnemy || (GLOBAL_ENEMY.is_external_loaded == 0)) {
_stopExtSounds();
}
}
GLOBAL_POSTSYNC(this, getEnemyT(GLOBAL_ENEMY), undefined);
if (GLOBAL_DELAY_STARTNOISE > 0) {
GLOBAL_DELAY_STARTNOISE--;
if (GLOBAL_DELAY_STARTNOISE < 1) {
_startExtSounds();
}
}
_root.stop();
}
Symbol 24 MovieClip Frame 1
var setBar = function (factor) {
if (factor < 0) {
factor = 0;
}
if (factor > 1) {
factor = 1;
}
prog._xscale = factor * 100;
};
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 55
var progressSet = function (factor) {
progbar.setBar(factor);
};
Symbol 46 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
function addMessage(msg, flags) {
if (flags != undefined) {
if ((flags & 1) != 0) {
if (msg.length < msgDisplay.length) {
var _local2 = msgDisplay.substr((msgDisplay.length - msg.length) - 1, msg.length);
if (_local2 == msg) {
msgTimeout = 0;
downDeltaTimeout = msg.length;
return(undefined);
}
}
}
}
msgDisplay = msgDisplay + (msg + newline);
}
function clearMessage() {
msgDisplay = "";
msgTextText = "";
msgChar = 0;
}
function setMessageSpeed(cpf) {
msgSpeed = cpf;
}
function setMessage(msg, speed) {
clearMessage();
addMessage(msg);
if (speed != undefined) {
setMessageSpeed(speed);
}
}
function setTarget(mclip) {
followTarget = mclip;
}
function update() {
shouldUpdate = true;
}
var msgDisplay = "";
var msgSpeed = 1;
var msgChar = 0;
var msgTimeout = 0;
var originalPosition = _y;
var deltaPosition = 48;
var shouldUpdate = true;
var followTarget = undefined;
var downDeltaTimeout = 0;
msgTextText = "";
this.onEnterFrame = function () {
if ((((_xmouse > 0) && (_ymouse > 0)) && (_xmouse < 296)) && (_ymouse < 48)) {
_alpha = 20;
} else {
_alpha = 100;
}
if (shouldUpdate) {
shouldUpdate = false;
var _local10 = msgText.scroll;
var _local9 = msgText.maxscroll;
var _local5 = 0;
var _local4 = 0;
if (msgDisplay.length > 0) {
downDeltaTimeout = downDeltaTimeout - msgSpeed;
if (msgSpeed == 0) {
downDeltaTimeout = 0;
}
if (msgChar < msgDisplay.length) {
if (msgSpeed > 0) {
var _local6 = msgDisplay.charAt(msgChar);
msgTextText = msgTextText + _local6;
msgChar++;
} else {
msgTextText = msgDisplay;
msgChar = msgDisplay.length;
}
_local5 = 1;
msgTimeout = 0;
} else {
msgTimeout++;
if (msgTimeout > 90) {
_local4 = 1;
downDeltaTimeout = 0;
}
}
} else {
_local4 = 1;
}
if (downDeltaTimeout > 0) {
_local5 = 1;
} else {
downDeltaTimeout = 0;
}
var _local3 = originalPosition;
if (_local4) {
_local3 = originalPosition;
} else {
_local3 = originalPosition + deltaPosition;
}
if (_local3 < this._y) {
this._y = this._y - 4;
if (this._y < _local3) {
this._y = _local3;
}
} else {
this._y = this._y + 4;
if (this._y > _local3) {
this._y = _local3;
}
}
if (this._y == originalPosition) {
clearMessage();
_visible = false;
} else {
_visible = true;
}
var _local7 = msgText.scroll;
var _local8 = msgText.maxscroll;
msgTextText.scroll = msgTextText.maxscroll - 1;
if (((!_local5) || (_local4)) || (followTarget == undefined)) {
bubbletail._visible = false;
} else {
var _local2 = {x:0, y:0};
followTarget.localToGlobal(_local2);
this.globalToLocal(_local2);
if (_local2.x < 32) {
_local2.x = 32;
} else if (_local2.x > 264) {
_local2.x = 264;
}
bubbletail._x = _local2.x;
bubbletail._visible = true;
}
}
};
Symbol 67 MovieClip Frame 10
stop();
Symbol 69 Button
on (release) {
guiButtonRelease = 1;
}
Symbol 75 MovieClip Frame 5
if (_root.GLOBAL_ASSISTANCE) {
} else {
gotoAndPlay ("off");
}
Symbol 77 Button
on (press) {
gotoAndStop ("gameBlu");
}
Symbol 78 Button
on (release, releaseOutside) {
_parent.controller.guiTextScroll = 0;
}
on (press) {
_parent.controller.guiTextScroll = 1;
}
Symbol 81 Button
on (press) {
var parc = _parent.controller;
parc.toggleQuality();
}
Symbol 82 Button
on (press) {
var parc = _parent.controller;
parc.toggleSlowMode();
}
Symbol 84 Button
on (press) {
var parc = _parent.controller;
parc.GLOBAL_TRUEPAUSE = !parc.GLOBAL_TRUEPAUSE;
}
Symbol 86 Button
on (release, releaseOutside) {
mousedown = 0;
}
on (press) {
mousedown = 1;
}
Instance of Symbol 89 MovieClip "sldbak" in Symbol 91 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.Mx = _xmouse;
_parent.My = _ymouse;
}
Symbol 93 Button
on (press) {
_parent.controller.toggleOption("showDirty");
}
Symbol 94 Button
on (press) {
_parent.controller.toggleOption("showNaughty");
}
Symbol 96 Button
on (press) {
gotoAndStop ("debuggui");
}
Symbol 97 Button
on (press) {
gotoAndStop ("nogui");
}
Symbol 119 Button
on (press) {
_parent.controller.resetPlayer();
}
Symbol 122 Button
on (press) {
var parc = _parent.controller;
parc.setPlayerGraphic(parc.getPlayerGraphic() + 1);
}
Symbol 125 Button
on (press) {
selectorDown = 1;
return(undefined);
}
Symbol 127 Button
on (press) {
emptygrid.drawnyet = undefined;
emptygrid.selectnext = selectf;
_parent.controller.pickEnemy(0);
_parent.controller.resetPlayer();
}
Symbol 128 Button
on (press) {
var xp = hpslider._xmouse;
var yp = hpslider._ymouse;
var xs = hpslider._width;
var ys = hpslider._height;
var factor = (Math.abs(yp) / xs);
factor = (factor - 0.1) / 0.8;
_parent.controller.setPlayerHP(factor * 63);
}
Symbol 129 Button
on (press) {
_parent.controller.setPlayerMode();
}
Symbol 134 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_WEAPON_TYPE);
stop();
Symbol 134 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_WEAPON_TYPE);
stop();
Symbol 134 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_WEAPON_TYPE);
stop();
Symbol 134 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_WEAPON_TYPE);
stop();
Symbol 149 MovieClip Frame 1
function setbarvalue(v) {
if (v < 0) {
v = 0;
}
colorv = int(v / 64);
if (colorv == 0) {
_root.colorize(bar, 200, 0, 0, 100);
_root.colorize(nextcolor, 0, 0, 0, 0);
} else if (colorv == 1) {
_root.colorize(bar, 200, 200, 0, 0);
_root.colorize(nextcolor, 0, 200, 0, 0);
} else if (colorv == 2) {
_root.colorize(bar, 255, 128, 0, 0);
_root.colorize(nextcolor, 200, 200, 0, 0);
} else if (colorv == 3) {
_root.colorize(bar, 200, 0, 0, 0);
_root.colorize(nextcolor, 255, 128, 0, 0);
} else if (colorv == 4) {
_root.colorize(bar, 200, 200, 200, 0);
_root.colorize(nextcolor, 200, 0, 0, 0);
} else {
_root.colorize(bar, 200, 200, 200, 0);
_root.colorize(nextcolor, 50, 50, 50, 0);
}
v = v % 64;
bar._yscale = v / 0.64;
}
Symbol 149 MovieClip Frame 2
stop();
Symbol 153 Button
on (press) {
gotoAndStop(_root.controller.GLOBAL_GAME_GUI_TYPE);
}
Symbol 155 Button
on (release) {
exturllist = _parent.controller.getURLList();
}
Symbol 158 Button
on (release) {
_parent.controller.loadURLList(exturllist);
}
Symbol 164 Button
on (press) {
gotoAndStop ("game");
}
Instance of Symbol 89 MovieClip "sldbak" in Symbol 178 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.Mx = _xmouse;
_parent.My = _ymouse;
}
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 11
stop();
Symbol 192 MovieClip Frame 21
stop();
Symbol 192 MovieClip Frame 31
stop();
Symbol 192 MovieClip Frame 41
stop();
Symbol 192 MovieClip Frame 51
stop();
Symbol 192 MovieClip Frame 61
stop();
Symbol 192 MovieClip Frame 71
stop();
Symbol 214 MovieClip Frame 1
function setbarvalue(v) {
if (v < 0) {
v = 0;
}
colorv = int(v / 64);
if (colorv == 0) {
_root.colorize(bar, 0, 67, 63, 0);
_root.colorize(nextcolor, 0, 0, 0, 0);
} else if (colorv == 1) {
_root.colorize(bar, 83, 0, 161, 0);
_root.colorize(nextcolor, 0, 67, 63, 0);
} else if (colorv == 2) {
_root.colorize(bar, 234, 255, 100, 0);
_root.colorize(nextcolor, 83, 0, 161, 0);
} else if (colorv == 3) {
_root.colorize(bar, 186, 12, 0, 0);
_root.colorize(nextcolor, 234, 255, 100, 0);
} else if (colorv == 4) {
_root.colorize(bar, 232, 189, 16, 0);
_root.colorize(nextcolor, 186, 12, 0, 0);
} else {
_root.colorize(bar, 186, 12, 0, 0);
_root.colorize(nextcolor, 232, 189, 16, 0);
}
v = v % 64;
bar._yscale = v / 0.64;
}
Symbol 214 MovieClip Frame 2
stop();
Symbol 223 Button
on (press) {
_parent._parent.controller.resetPlayer();
}
Symbol 224 Button
on (press) {
var xp = hpslider._xmouse;
var yp = hpslider._ymouse;
var xs = hpslider._width;
var ys = hpslider._height;
var factor = (Math.abs(yp) / xs);
factor = (factor - 0.1) / 0.8;
_parent._parent.controller.setPlayerHP(factor * 63);
}
Symbol 225 MovieClip Frame 1
if (_global.Option_Cheats == "true") {
this._visible = true;
} else {
this._visible = false;
}
Symbol 228 Button
on (press) {
var parc = _parent.controller;
parc.GLOBAL_TRUEPAUSE = !parc.GLOBAL_TRUEPAUSE;
_global.MouseButtonsEnabled = "false";
gotoAndStop ("Settings");
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 11
stop();
Symbol 237 Button
on (press) {
if (_global.Player_ShowDirtyBits == "true") {
_global.Player_ShowDirtyBits = "false";
} else {
_global.Player_ShowDirtyBits = "true";
}
}
on (rollOver) {
option_text.gotoAndPlay("option_1");
}
on (rollOut) {
option_text.gotoAndPlay("noinfo");
}
Symbol 245 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 11
stop();
Symbol 245 MovieClip Frame 21
stop();
Symbol 245 MovieClip Frame 31
stop();
Symbol 245 MovieClip Frame 41
stop();
Symbol 245 MovieClip Frame 51
stop();
Symbol 245 MovieClip Frame 61
stop();
Symbol 245 MovieClip Frame 71
stop();
Symbol 247 MovieClip Frame 1
if (_global.Player_ShowDirtyBits == "true") {
_parent.option_1.gotoAndPlay("yes");
} else {
_parent.option_1.gotoAndPlay("no");
}
if (_global.Player_MatingSex == "true") {
_parent.option_2.gotoAndPlay("yes");
} else {
_parent.option_2.gotoAndPlay("no");
}
if (_global.Option_CockVore == "true") {
_parent.option_3.gotoAndPlay("yes");
} else {
_parent.option_3.gotoAndPlay("no");
}
if (_global.Option_UnBirthVore == "true") {
_parent.option_4.gotoAndPlay("yes");
} else {
_parent.option_4.gotoAndPlay("no");
}
if (_global.Option_AnalVore == "true") {
_parent.option_5.gotoAndPlay("yes");
} else {
_parent.option_5.gotoAndPlay("no");
}
if (_global.Option_Scat == "true") {
_parent.option_6.gotoAndPlay("yes");
} else {
_parent.option_6.gotoAndPlay("no");
}
if (_global.Option_Cheats == "true") {
_parent.option_7.gotoAndPlay("yes");
} else {
_parent.option_7.gotoAndPlay("no");
}
Symbol 248 Button
on (press) {
if (_global.Option_Cheats == "true") {
_global.Option_Cheats = "false";
} else {
_global.Option_Cheats = "true";
}
}
on (rollOver) {
option_text.gotoAndPlay("option_7");
}
on (rollOut) {
option_text.gotoAndPlay("noinfo");
}
Symbol 249 Button
on (press) {
if (_global.Option_Scat == "true") {
_global.Option_Scat = "false";
} else {
_global.Option_Scat = "true";
}
}
on (rollOver) {
option_text.gotoAndPlay("option_6");
}
on (rollOut) {
option_text.gotoAndPlay("noinfo");
}
Symbol 250 Button
on (press) {
if (_global.Option_AnalVore == "true") {
_global.Option_AnalVore = "false";
} else {
_global.Option_AnalVore = "true";
}
}
on (rollOver) {
option_text.gotoAndPlay("option_5");
}
on (rollOut) {
option_text.gotoAndPlay("noinfo");
}
Symbol 251 Button
on (press) {
if (_global.Option_UnBirthVore == "true") {
_global.Option_UnBirthVore = "false";
} else {
_global.Option_UnBirthVore = "true";
}
}
on (rollOver) {
option_text.gotoAndPlay("option_4");
}
on (rollOut) {
option_text.gotoAndPlay("noinfo");
}
Symbol 252 Button
on (press) {
if (_global.Option_CockVore == "true") {
_global.Option_CockVore = "false";
} else {
_global.Option_CockVore = "true";
}
}
on (rollOver) {
option_text.gotoAndPlay("option_3");
}
on (rollOut) {
option_text.gotoAndPlay("noinfo");
}
Symbol 253 Button
on (press) {
if (_global.Player_MatingSex == "true") {
_global.Player_MatingSex = "false";
} else {
_global.Player_MatingSex = "true";
}
}
on (rollOver) {
option_text.gotoAndPlay("option_2");
}
on (rollOut) {
option_text.gotoAndPlay("noinfo");
}
Symbol 257 Button
on (press) {
gotoAndStop ("gameBluDemo");
_parent.gamedata.data.Player_ShowDirtyBits = _global.Player_ShowDirtyBits;
_parent.gamedata.data.Player_MatingSex = _global.Player_MatingSex;
_parent.gamedata.data.Option_CockVore = _global.Option_CockVore;
_parent.gamedata.data.Option_UnBirthVore = _global.Option_UnBirthVore;
_parent.gamedata.data.Option_AnalVore = _global.Option_AnalVore;
_parent.gamedata.data.Option_Gore = _global.Option_Gore;
_parent.gamedata.data.Option_Scat = _global.Option_Scat;
_parent.gamedata.data.Option_Cheats = _global.Option_Cheats;
var parc = _parent.controller;
parc.GLOBAL_TRUEPAUSE = !parc.GLOBAL_TRUEPAUSE;
_global.MouseButtonsEnabled = "true";
}
Symbol 259 MovieClip Frame 1
function updateCallback() {
}
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / ((fixX * this._xscale) / 100);
var _local3 = sY / ((fixY * this._yscale) / 100);
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
mouseX = _xmouse;
mouseY = _ymouse;
updateCallback();
}
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;
_xscale = 100;
_yscale = 100;
_x = (fixX / 2);
_y = (fixY / 2);
}
parentColor.setTransform(camColor.getTransform());
this.stop();
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;
var fixX = 320;
var fixY = 240;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 259 MovieClip Frame 11
function getCellCoords(idex, selectmax4, delx, dern, ncolumns) {
if (dern == undefined) {
dern = 1;
}
if (idex == undefined) {
idex = 0;
}
if (idex < 0) {
idex = 0;
}
if (idex > 1024) {
idex = 0;
}
var _local3 = 0;
while (idex >= selectmax4) {
idex = idex - selectmax4;
_local3++;
}
var _local4 = new Object();
_local4.xMin = (idex * delx) + dern;
_local4.xMax = ((idex * delx) + delx) - dern;
_local4.yMin = ((_local3 * 36) / ncolumns) + dern;
_local4.yMax = (((_local3 * 36) / ncolumns) + (36 / ncolumns)) - dern;
return(_local4);
}
function drawCell(M, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMax);
M.lineTo(_local1.xMin, _local1.yMax);
M.lineTo(_local1.xMin, _local1.yMin);
M.endFill();
}
function drawCellBits(M, bits, idex, selectmax4, delx, color, dern, ncolumns) {
var _local2 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
var _local4 = (_local2.xMin + _local2.xMax) / 2;
var _local3 = (_local2.yMin + _local2.yMax) / 2;
if (bits & 1) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local2.xMin, _local2.yMin);
M.lineTo(_local4, _local2.yMin);
M.lineTo(_local4, _local3);
M.lineTo(_local2.xMin, _local3);
M.lineTo(_local2.xMin, _local2.yMin);
M.endFill();
}
if (bits & 2) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4, _local2.yMin);
M.lineTo(_local2.xMax, _local2.yMin);
M.lineTo(_local2.xMax, _local3);
M.lineTo(_local4, _local3);
M.lineTo(_local4, _local2.yMin);
M.endFill();
}
if (bits & 4) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local2.xMin, _local3);
M.lineTo(_local4, _local3);
M.lineTo(_local4, _local2.yMax);
M.lineTo(_local2.xMin, _local2.yMax);
M.lineTo(_local2.xMin, _local3);
M.endFill();
}
if (bits & 8) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4, _local3);
M.lineTo(_local2.xMax, _local3);
M.lineTo(_local2.xMax, _local2.yMax);
M.lineTo(_local4, _local2.yMax);
M.lineTo(_local4, _local3);
M.endFill();
}
if (bits & 16) {
var _local6 = _local4 - (_local4 / 2);
var _local5 = _local3 - (_local3 / 2);
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4 - _local6, _local3 - _local5);
M.lineTo(_local4 + _local6, _local3 - _local5);
M.lineTo(_local4 + _local6, _local3 + _local5);
M.lineTo(_local4 - _local6, _local3 + _local5);
M.lineTo(_local4 - _local6, _local3 - _local5);
M.endFill();
}
}
function drawCellX(M, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0.5, color, 100);
M.beginFill(0, 0);
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMax);
M.moveTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMin, _local1.yMax);
M.endFill();
}
function drawCellChar(M, uchar, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0.5, color, 100);
M.beginFill(0, 0);
var _local5 = (_local1.xMin + _local1.xMax) / 2;
var _local4 = (_local1.yMin + _local1.yMax) / 2;
if (char8segmap.hasOwnProperty(uchar)) {
var _local3 = char8segmap[uchar];
if (_local3 & 1) {
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMin);
}
if (_local3 & 2) {
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMin, _local4);
}
if (_local3 & 4) {
M.moveTo(_local1.xMin, _local4);
M.lineTo(_local1.xMax, _local4);
}
if (_local3 & 8) {
M.moveTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMax, _local4);
}
if (_local3 & 16) {
M.moveTo(_local1.xMin, _local4);
M.lineTo(_local1.xMin, _local1.yMax);
}
if (_local3 & 32) {
M.moveTo(_local1.xMin, _local1.yMax);
M.lineTo(_local1.xMax, _local1.yMax);
}
if (_local3 & 64) {
M.moveTo(_local1.xMax, _local4);
M.lineTo(_local1.xMax, _local1.yMax);
}
}
M.endFill();
}
function gridSelectFrom(max, may) {
}
function clearDrawingByIndex(enemyid) {
newGui.drawMap[enemyid] = 1;
}
function updateCallback() {
if (newGui == undefined) {
var _local14 = new Object();
_local14.activeEnemySelection = 0;
_local14.enemySelectionFade = 0;
_local14.bitmapChars = undefined;
_local14.bitmapIconStored = undefined;
_local14.bitmapScale = 3;
_local14.cellSize = 100;
_local14.maxCount = 0;
_local14.drawMap = new Object();
newGui = _local14;
}
var _local12 = 296;
var _local13 = 48;
var _local32 = -148;
var _local28 = -120;
var _local52 = 48;
var _local26 = new Object({xMin:_local32, xMax:_local32 + 148, yMin:_local28, yMax:_local28 + 36});
var _local57 = _local32;
var _local45 = _local28 - _local52;
var _local31 = false;
var _local10 = selectdown.drawText;
if (_local10.mytext == undefined) {
var _local27 = new TextFormat();
_local27.font = "Arial";
_local27.size = 16;
_local27.color = 0;
_local10.createTextField("mytext", 0, 0, 0, selectdown._width, 24);
_local10.mytext.multiline = false;
_local10.mytext.wordWrap = false;
_local10.mytext.text = "";
_local10.mytext.embedFonts = false;
_local10.mytext.selectable = false;
_local10.mytext.antiAliasType = "normal";
_local10.mytext.backgroundColor = 2155905152;
_local10.mytext.textColor = 0;
_local10.useformat = _local27;
_local10.mytext.setNewTextFormat(_local10.useformat);
}
_local10.mytext.text = "";
_local10._x = 0;
var _local24 = selectdown.drawinto;
var _local4 = selectdown.drawSelector;
if (newGui.bitmapChars == undefined) {
newGui.bitmapChars = new flash.display.BitmapData(newGui.bitmapScale * _local12, newGui.bitmapScale * _local13, true, 0);
_local24.attachBitmap(newGui.bitmapChars, 0, "auto", false);
_local24._xscale = 100 / newGui.bitmapScale;
_local24._yscale = 100 / newGui.bitmapScale;
}
var _local15 = _parent.controller.GLOBAL_MAXENEMYFRAMES;
if (newGui.maxCount != _local15) {
newGui.drawMap = new Object();
newGui.maxCount = _local15;
var _local23 = new flash.geom.Rectangle(0, 0, newGui.bitmapScale * _local12, newGui.bitmapScale * _local13);
newGui.bitmapChars.fillRect(_local23, 0);
var _local5 = Math.min(_local13, _local12);
while ((Math.floor(_local12 / _local5) * Math.floor(_local13 / _local5)) < _local15) {
_local5--;
}
newGui.cellSize = _local5;
_local15++;
var _local8 = Math.floor(_local12 / _local5);
var _local11 = Math.floor(_local13 / _local5);
_local4.clear();
var _local20 = newGui.cellSize / 64;
var _local7 = 0;
while (_local7 < _local11) {
var _local3 = 0;
while (_local3 < _local8) {
var _local6 = (_local3 + (_local7 * _local8)) + 1;
var _local25 = _parent.controller.enemyGetHashData(_local6);
if (_local25 != undefined) {
var _local22 = 0;
_local22 = _local22 | -16777216;
_local22 = _local22 | ((int(_local25.red * 255) & 255) << 16);
_local22 = _local22 | ((int(_local25.green * 255) & 255) << 8);
_local22 = _local22 | (int(_local25.blue * 255) & 255);
_local23 = new flash.geom.Rectangle((newGui.bitmapScale * newGui.cellSize) * _local3, (newGui.bitmapScale * newGui.cellSize) * _local7, (newGui.bitmapScale * 64) * _local20, (newGui.bitmapScale * 64) * _local20);
var _local37 = new flash.geom.Rectangle(((newGui.bitmapScale * newGui.cellSize) * _local3) + 1, ((newGui.bitmapScale * newGui.cellSize) * _local7) + 1, ((newGui.bitmapScale * 64) * _local20) - 2, ((newGui.bitmapScale * 64) * _local20) - 2);
newGui.bitmapChars.fillRect(_local37, _local22);
var _local38 = _parent.controller.enemyGetIconBitmap(_local6);
if (_local38 != undefined) {
trace((("Enemy [" + _local6) + "] has icon: ") + _local38);
var _local36 = new flash.geom.Matrix();
_local36.translate(_local23.x, _local23.y);
newGui.bitmapChars.draw(_local38, _local36, undefined, "normal", _local23, false);
}
}
_local3 = _local3 + 1;
}
_local7 = _local7 + 1;
}
_local4._x = 0;
_local4._y = 0;
_local4._xscale = 100;
_local4._yscale = 100;
_local4.clear();
_local4.lineStyle(0, 8421504, 255);
var _local9 = 0;
while (_local9 <= _local8) {
_local4.moveTo(_local9 * _local5, 0);
_local4.lineTo(_local9 * _local5, _local11 * _local5);
_local9 = _local9 + 1;
}
_local9 = 0;
while (_local9 <= _local11) {
_local4.moveTo(0, _local9 * _local5);
_local4.lineTo(_local8 * _local5, _local9 * _local5);
_local9 = _local9 + 1;
}
_local4.lineStyle(0, 8421504, 255);
_local4.moveTo(0, 0);
_local4.lineTo(_local5, _local5);
_local4.moveTo(_local5, 0);
_local4.lineTo(0, _local5);
var _local17 = _local4.transform.matrix.clone();
var _local44 = _local24.transform.matrix.clone();
_local44.invert();
_local17.concat(_local44);
var _local48;
var _local49;
_local23 = undefined;
var _local64 = false;
newGui.bitmapChars.draw(_local4, _local17, _local48, _local49, _local23, true);
_local4.clear();
_local4.beginFill(16777215, 25);
_local4.lineStyle(1, 16711808, 255);
_local4.moveTo(0, 0);
_local4.lineTo(100, 0);
_local4.lineTo(100, 100);
_local4.lineTo(0, 100);
_local4.lineTo(0, 0);
_local4.endFill(16777215, 25);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
} else {
var _local46 = _parent.controller.enemyGetID() - 1;
if (!newGui.drawMap.hasOwnProperty(_local46)) {
newGui.drawMap[_local46] = 1;
}
if (newGui.drawMap[_local46] != 3) {
newGui.drawMap[_local46] = newGui.drawMap[_local46] + 1;
} else {
newGui.drawMap[_local46] = newGui.drawMap[_local46] + 1;
var _local43 = Math.floor(_local12 / newGui.cellSize);
var _local62 = Math.floor(_local13 / newGui.cellSize);
var _local58 = Math.floor(_local46 % _local43);
var _local56 = Math.floor(_local46 / _local43);
var _local35 = _local58 * newGui.cellSize;
var _local34 = _local56 * newGui.cellSize;
var _local20 = newGui.cellSize / 64;
var _local18 = _parent.controller.GLOBAL_ENEMY;
var _local33 = _local18;
if (_local18.enemy.enemy.head != undefined) {
_local33 = _local18.enemy.enemy.head;
} else if (_local18.enemy.head != undefined) {
_local33 = _local18.enemy.head;
}
var _local17 = _local18.transform.matrix.clone();
var _local19 = 1;
var _local21 = _local33.getBounds(_root);
var _local40 = _local21.xMax - _local21.xMin;
var _local41 = _local21.yMax - _local21.yMin;
var _local53 = _local18._x - _local21.xMin;
var _local54 = _local18._y - _local21.yMin;
if (_local40 > 0) {
_local19 = 64 / _local40;
}
if (_local41 > 0) {
var _local39 = 64 / _local41;
if (_local39 < _local19) {
_local19 = _local39;
}
}
_local17.scale(_local19, _local19);
_local17.translate((-_local17.tx) + (_local19 * _local53), (-_local17.ty) + (_local19 * _local54));
_local17.scale(_local20, _local20);
_local17.translate(_local35, _local34);
var _local44 = _local24.transform.matrix.clone();
_local44.invert();
_local17.concat(_local44);
var _local23 = new flash.geom.Rectangle(newGui.bitmapScale * _local35, newGui.bitmapScale * _local34, (newGui.bitmapScale * 64) * _local20, (newGui.bitmapScale * 64) * _local20);
var _local37 = new flash.geom.Rectangle((newGui.bitmapScale * _local35) + 1, (newGui.bitmapScale * _local34) + 1, ((newGui.bitmapScale * 64) * _local20) - 2, ((newGui.bitmapScale * 64) * _local20) - 2);
var _local25 = _parent.controller.enemyGetHashData(_parent.controller.enemyGetID());
if (_local25 != undefined) {
var _local22 = 0;
_local22 = _local22 | -16777216;
_local22 = _local22 | ((int(_local25.red * 255) & 255) << 16);
_local22 = _local22 | ((int(_local25.green * 255) & 255) << 8);
_local22 = _local22 | (int(_local25.blue * 255) & 255);
newGui.bitmapChars.fillRect(_local37, _local22);
} else {
newGui.bitmapChars.fillRect(_local37, 0);
}
var _local38 = _parent.controller.enemyGetIconBitmap(_parent.controller.enemyGetID());
if (_local38 == undefined) {
var _local55 = _parent.controller.GLOBAL_ENEMY._quality;
_parent.controller.GLOBAL_ENEMY._quality = "LOW";
newGui.bitmapChars.draw(_parent.controller.GLOBAL_ENEMY, _local17, undefined, undefined, _local23, false);
_parent.controller.GLOBAL_ENEMY._quality = _local55;
_parent.controller.enemySetIconBitmap(_parent.controller.enemyGetID(), newGui.bitmapChars, _local23);
} else {
var _local36 = new flash.geom.Matrix();
_local36.translate(_local23.x, _local23.y);
newGui.bitmapChars.draw(_local38, _local36, undefined, "normal", _local23, true);
}
}
}
if (newGui.activeEnemySelection) {
_local31 = 1;
var _local43 = Math.floor(_local12 / newGui.cellSize);
var _local62 = Math.floor(_local13 / newGui.cellSize);
var _local30 = Math.floor((selectdown._xmouse - 0) / newGui.cellSize);
var _local29 = Math.floor((selectdown._ymouse - 0) / newGui.cellSize);
var _local16 = _local30 + (_local29 * _local43);
if ((_local16 > 0) && (_local16 < newGui.maxCount)) {
} else {
_local16 = 0;
}
_local4._visible = false;
if ((_local30 >= 0) && (_local30 < _local43)) {
if ((_local29 >= 0) && (_local29 < _local62)) {
if ((_local16 > 0) && (_local16 < newGui.maxCount)) {
_local4._x = 0 + (_local30 * newGui.cellSize);
_local4._y = 0 + (_local29 * newGui.cellSize);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
_local4._visible = true;
}
}
}
if (!_local4._visible) {
var _local46 = _parent.controller.enemyGetID() - 1;
_local43 = Math.floor(_local12 / newGui.cellSize);
_local62 = Math.floor(_local13 / newGui.cellSize);
var _local58 = Math.floor(_local46 % _local43);
var _local56 = Math.floor(_local46 / _local43);
_local4._x = 0 + (_local58 * newGui.cellSize);
_local4._y = 0 + (_local56 * newGui.cellSize);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
_local4._visible = true;
var _local47 = new flash.geom.ColorTransform();
_local47.blueMultiplier = 0.5;
_local47.greenMultiplier = 0.5;
_local47.redMultiplier = 0.5;
var _local51 = new flash.geom.Transform(_local4);
_local51.colorTransform = _local47;
} else {
var _local47 = new flash.geom.ColorTransform();
var _local51 = new flash.geom.Transform(_local4);
_local51.colorTransform = _local47;
var _local50 = _parent.controller.getEnemyURLName(_local16 + 1);
_local10.mytext.text = _local50;
_local10._y = 0;
if (selectdown._ymouse < 24) {
_local10._y = 24;
}
}
if (selectdown.guiButtonRelease) {
newGui.activeEnemySelection = 0;
if (_local16 > 0) {
_parent.controller.pickEnemy(_local16 + 1);
_parent.controller.resetPlayer();
}
} else {
_local45 = _local28;
}
} else {
_local31 = 0;
var _local42 = false;
if ((_xmouse < _local26.xMax) && (_xmouse > _local26.xMin)) {
if ((_ymouse < _local26.yMax) && (_ymouse > _local26.yMin)) {
if (selectorDown) {
_local42 = true;
}
}
}
if (_local42) {
newGui.activeEnemySelection = 1;
}
}
selectdown._x = _local57;
selectdown._y = _local45;
selectdown._visible = _local31;
selectdown.guiButtonRelease = 0;
selectorDown = 0;
}
var blockX = 16;
var blockY = 0;
var blockWidth = 128;
var blockHeight = 36;
var blockColumns = 5;
char8segmap = new Object();
char8segmap["0"] = 91;
char8segmap["1"] = 72;
char8segmap["2"] = 61;
char8segmap["3"] = 109;
char8segmap["4"] = 78;
char8segmap["5"] = 103;
char8segmap["6"] = 119;
char8segmap["7"] = 73;
char8segmap["8"] = 127;
char8segmap["9"] = 79;
char8segmap.A = 95;
char8segmap.B = 118;
char8segmap.C = 52;
char8segmap.D = 124;
char8segmap.E = 55;
char8segmap.F = 23;
char8segmap.G = 115;
char8segmap.H = 94;
char8segmap.I = 64;
char8segmap.J = 120;
char8segmap.K = 30;
char8segmap.L = 50;
char8segmap.M = 92;
char8segmap.N = 84;
char8segmap.O = 116;
char8segmap.P = 31;
char8segmap.Q = 27;
char8segmap.R = 20;
char8segmap.S = 103;
char8segmap.T = 19;
char8segmap.U = 122;
char8segmap.V = 112;
char8segmap.W = 14;
char8segmap.X = 94;
char8segmap.Y = 78;
char8segmap.Z = 28;
var newGui = undefined;
Symbol 259 MovieClip Frame 18
stop();
Symbol 259 MovieClip Frame 27
function updateCallback() {
}
Symbol 259 MovieClip Frame 33
function updateCallback() {
}
exturl = _root.externalURL;
Symbol 259 MovieClip Frame 57
function getCellCoords(idex, selectmax4, delx, dern, ncolumns) {
if (dern == undefined) {
dern = 1;
}
if (idex == undefined) {
idex = 0;
}
if (idex < 0) {
idex = 0;
}
if (idex > 1024) {
idex = 0;
}
var _local3 = 0;
while (idex >= selectmax4) {
idex = idex - selectmax4;
_local3++;
}
var _local4 = new Object();
_local4.xMin = (idex * delx) + dern;
_local4.xMax = ((idex * delx) + delx) - dern;
_local4.yMin = ((_local3 * 36) / ncolumns) + dern;
_local4.yMax = (((_local3 * 36) / ncolumns) + (36 / ncolumns)) - dern;
return(_local4);
}
function drawCell(M, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMax);
M.lineTo(_local1.xMin, _local1.yMax);
M.lineTo(_local1.xMin, _local1.yMin);
M.endFill();
}
function drawCellBits(M, bits, idex, selectmax4, delx, color, dern, ncolumns) {
var _local2 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
var _local4 = (_local2.xMin + _local2.xMax) / 2;
var _local3 = (_local2.yMin + _local2.yMax) / 2;
if (bits & 1) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local2.xMin, _local2.yMin);
M.lineTo(_local4, _local2.yMin);
M.lineTo(_local4, _local3);
M.lineTo(_local2.xMin, _local3);
M.lineTo(_local2.xMin, _local2.yMin);
M.endFill();
}
if (bits & 2) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4, _local2.yMin);
M.lineTo(_local2.xMax, _local2.yMin);
M.lineTo(_local2.xMax, _local3);
M.lineTo(_local4, _local3);
M.lineTo(_local4, _local2.yMin);
M.endFill();
}
if (bits & 4) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local2.xMin, _local3);
M.lineTo(_local4, _local3);
M.lineTo(_local4, _local2.yMax);
M.lineTo(_local2.xMin, _local2.yMax);
M.lineTo(_local2.xMin, _local3);
M.endFill();
}
if (bits & 8) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4, _local3);
M.lineTo(_local2.xMax, _local3);
M.lineTo(_local2.xMax, _local2.yMax);
M.lineTo(_local4, _local2.yMax);
M.lineTo(_local4, _local3);
M.endFill();
}
if (bits & 16) {
var _local6 = _local4 - (_local4 / 2);
var _local5 = _local3 - (_local3 / 2);
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4 - _local6, _local3 - _local5);
M.lineTo(_local4 + _local6, _local3 - _local5);
M.lineTo(_local4 + _local6, _local3 + _local5);
M.lineTo(_local4 - _local6, _local3 + _local5);
M.lineTo(_local4 - _local6, _local3 - _local5);
M.endFill();
}
}
function drawCellX(M, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0.5, color, 100);
M.beginFill(0, 0);
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMax);
M.moveTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMin, _local1.yMax);
M.endFill();
}
function drawCellChar(M, uchar, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0.5, color, 100);
M.beginFill(0, 0);
var _local5 = (_local1.xMin + _local1.xMax) / 2;
var _local4 = (_local1.yMin + _local1.yMax) / 2;
if (char8segmap.hasOwnProperty(uchar)) {
var _local3 = char8segmap[uchar];
if (_local3 & 1) {
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMin);
}
if (_local3 & 2) {
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMin, _local4);
}
if (_local3 & 4) {
M.moveTo(_local1.xMin, _local4);
M.lineTo(_local1.xMax, _local4);
}
if (_local3 & 8) {
M.moveTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMax, _local4);
}
if (_local3 & 16) {
M.moveTo(_local1.xMin, _local4);
M.lineTo(_local1.xMin, _local1.yMax);
}
if (_local3 & 32) {
M.moveTo(_local1.xMin, _local1.yMax);
M.lineTo(_local1.xMax, _local1.yMax);
}
if (_local3 & 64) {
M.moveTo(_local1.xMax, _local4);
M.lineTo(_local1.xMax, _local1.yMax);
}
}
M.endFill();
}
function gridSelectFrom(max, may) {
}
function clearDrawingByIndex(enemyid) {
newGui.drawMap[enemyid] = 1;
}
function updateCallback() {
if (newGui == undefined) {
var _local14 = new Object();
_local14.activeEnemySelection = 0;
_local14.enemySelectionFade = 0;
_local14.bitmapChars = undefined;
_local14.bitmapIconStored = undefined;
_local14.bitmapScale = 3;
_local14.cellSize = 100;
_local14.maxCount = 0;
_local14.drawMap = new Object();
newGui = _local14;
}
var _local12 = 296;
var _local13 = 48;
var _local32 = -148;
var _local28 = -120;
var _local52 = 48;
var _local26 = new Object({xMin:_local32, xMax:_local32 + 148, yMin:_local28, yMax:_local28 + 36});
var _local57 = _local32;
var _local45 = _local28 - _local52;
var _local31 = false;
var _local10 = selectdown.drawText;
if (_local10.mytext == undefined) {
var _local27 = new TextFormat();
_local27.font = "Arial";
_local27.size = 16;
_local27.color = 0;
_local10.createTextField("mytext", 0, 0, 0, selectdown._width, 24);
_local10.mytext.multiline = false;
_local10.mytext.wordWrap = false;
_local10.mytext.text = "";
_local10.mytext.embedFonts = false;
_local10.mytext.selectable = false;
_local10.mytext.antiAliasType = "normal";
_local10.mytext.backgroundColor = 2155905152;
_local10.mytext.textColor = 0;
_local10.useformat = _local27;
_local10.mytext.setNewTextFormat(_local10.useformat);
}
_local10.mytext.text = "";
_local10._x = 0;
var _local24 = selectdown.drawinto;
var _local4 = selectdown.drawSelector;
if (newGui.bitmapChars == undefined) {
newGui.bitmapChars = new flash.display.BitmapData(newGui.bitmapScale * _local12, newGui.bitmapScale * _local13, true, 0);
_local24.attachBitmap(newGui.bitmapChars, 0, "auto", false);
_local24._xscale = 100 / newGui.bitmapScale;
_local24._yscale = 100 / newGui.bitmapScale;
}
var _local15 = _parent.controller.GLOBAL_MAXENEMYFRAMES;
if (newGui.maxCount != _local15) {
newGui.drawMap = new Object();
newGui.maxCount = _local15;
var _local23 = new flash.geom.Rectangle(0, 0, newGui.bitmapScale * _local12, newGui.bitmapScale * _local13);
newGui.bitmapChars.fillRect(_local23, 0);
var _local5 = Math.min(_local13, _local12);
while ((Math.floor(_local12 / _local5) * Math.floor(_local13 / _local5)) < _local15) {
_local5--;
}
newGui.cellSize = _local5;
_local15++;
var _local8 = Math.floor(_local12 / _local5);
var _local11 = Math.floor(_local13 / _local5);
_local4.clear();
var _local20 = newGui.cellSize / 64;
var _local7 = 0;
while (_local7 < _local11) {
var _local3 = 0;
while (_local3 < _local8) {
var _local6 = (_local3 + (_local7 * _local8)) + 1;
var _local25 = _parent.controller.enemyGetHashData(_local6);
if (_local25 != undefined) {
var _local22 = 0;
_local22 = _local22 | -16777216;
_local22 = _local22 | ((int(_local25.red * 255) & 255) << 16);
_local22 = _local22 | ((int(_local25.green * 255) & 255) << 8);
_local22 = _local22 | (int(_local25.blue * 255) & 255);
_local23 = new flash.geom.Rectangle((newGui.bitmapScale * newGui.cellSize) * _local3, (newGui.bitmapScale * newGui.cellSize) * _local7, (newGui.bitmapScale * 64) * _local20, (newGui.bitmapScale * 64) * _local20);
var _local37 = new flash.geom.Rectangle(((newGui.bitmapScale * newGui.cellSize) * _local3) + 1, ((newGui.bitmapScale * newGui.cellSize) * _local7) + 1, ((newGui.bitmapScale * 64) * _local20) - 2, ((newGui.bitmapScale * 64) * _local20) - 2);
newGui.bitmapChars.fillRect(_local37, _local22);
var _local38 = _parent.controller.enemyGetIconBitmap(_local6);
if (_local38 != undefined) {
trace((("Enemy [" + _local6) + "] has icon: ") + _local38);
var _local36 = new flash.geom.Matrix();
_local36.translate(_local23.x, _local23.y);
newGui.bitmapChars.draw(_local38, _local36, undefined, "normal", _local23, false);
}
}
_local3 = _local3 + 1;
}
_local7 = _local7 + 1;
}
_local4._x = 0;
_local4._y = 0;
_local4._xscale = 100;
_local4._yscale = 100;
_local4.clear();
_local4.lineStyle(0, 8421504, 255);
var _local9 = 0;
while (_local9 <= _local8) {
_local4.moveTo(_local9 * _local5, 0);
_local4.lineTo(_local9 * _local5, _local11 * _local5);
_local9 = _local9 + 1;
}
_local9 = 0;
while (_local9 <= _local11) {
_local4.moveTo(0, _local9 * _local5);
_local4.lineTo(_local8 * _local5, _local9 * _local5);
_local9 = _local9 + 1;
}
_local4.lineStyle(0, 8421504, 255);
_local4.moveTo(0, 0);
_local4.lineTo(_local5, _local5);
_local4.moveTo(_local5, 0);
_local4.lineTo(0, _local5);
var _local17 = _local4.transform.matrix.clone();
var _local44 = _local24.transform.matrix.clone();
_local44.invert();
_local17.concat(_local44);
var _local48;
var _local49;
_local23 = undefined;
var _local64 = false;
newGui.bitmapChars.draw(_local4, _local17, _local48, _local49, _local23, true);
_local4.clear();
_local4.beginFill(16777215, 25);
_local4.lineStyle(1, 16711808, 255);
_local4.moveTo(0, 0);
_local4.lineTo(100, 0);
_local4.lineTo(100, 100);
_local4.lineTo(0, 100);
_local4.lineTo(0, 0);
_local4.endFill(16777215, 25);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
} else {
var _local46 = _parent.controller.enemyGetID() - 1;
if (!newGui.drawMap.hasOwnProperty(_local46)) {
newGui.drawMap[_local46] = 1;
}
if (newGui.drawMap[_local46] != 3) {
newGui.drawMap[_local46] = newGui.drawMap[_local46] + 1;
} else {
newGui.drawMap[_local46] = newGui.drawMap[_local46] + 1;
var _local43 = Math.floor(_local12 / newGui.cellSize);
var _local62 = Math.floor(_local13 / newGui.cellSize);
var _local58 = Math.floor(_local46 % _local43);
var _local56 = Math.floor(_local46 / _local43);
var _local35 = _local58 * newGui.cellSize;
var _local34 = _local56 * newGui.cellSize;
var _local20 = newGui.cellSize / 64;
var _local18 = _parent.controller.GLOBAL_ENEMY;
var _local33 = _local18;
if (_local18.enemy.enemy.head != undefined) {
_local33 = _local18.enemy.enemy.head;
} else if (_local18.enemy.head != undefined) {
_local33 = _local18.enemy.head;
}
var _local17 = _local18.transform.matrix.clone();
var _local19 = 1;
var _local21 = _local33.getBounds(_root);
var _local40 = _local21.xMax - _local21.xMin;
var _local41 = _local21.yMax - _local21.yMin;
var _local53 = _local18._x - _local21.xMin;
var _local54 = _local18._y - _local21.yMin;
if (_local40 > 0) {
_local19 = 64 / _local40;
}
if (_local41 > 0) {
var _local39 = 64 / _local41;
if (_local39 < _local19) {
_local19 = _local39;
}
}
_local17.scale(_local19, _local19);
_local17.translate((-_local17.tx) + (_local19 * _local53), (-_local17.ty) + (_local19 * _local54));
_local17.scale(_local20, _local20);
_local17.translate(_local35, _local34);
var _local44 = _local24.transform.matrix.clone();
_local44.invert();
_local17.concat(_local44);
var _local23 = new flash.geom.Rectangle(newGui.bitmapScale * _local35, newGui.bitmapScale * _local34, (newGui.bitmapScale * 64) * _local20, (newGui.bitmapScale * 64) * _local20);
var _local37 = new flash.geom.Rectangle((newGui.bitmapScale * _local35) + 1, (newGui.bitmapScale * _local34) + 1, ((newGui.bitmapScale * 64) * _local20) - 2, ((newGui.bitmapScale * 64) * _local20) - 2);
var _local25 = _parent.controller.enemyGetHashData(_parent.controller.enemyGetID());
if (_local25 != undefined) {
var _local22 = 0;
_local22 = _local22 | -16777216;
_local22 = _local22 | ((int(_local25.red * 255) & 255) << 16);
_local22 = _local22 | ((int(_local25.green * 255) & 255) << 8);
_local22 = _local22 | (int(_local25.blue * 255) & 255);
newGui.bitmapChars.fillRect(_local37, _local22);
} else {
newGui.bitmapChars.fillRect(_local37, 0);
}
var _local38 = _parent.controller.enemyGetIconBitmap(_parent.controller.enemyGetID());
if (_local38 == undefined) {
var _local55 = _parent.controller.GLOBAL_ENEMY._quality;
_parent.controller.GLOBAL_ENEMY._quality = "LOW";
newGui.bitmapChars.draw(_parent.controller.GLOBAL_ENEMY, _local17, undefined, undefined, _local23, false);
_parent.controller.GLOBAL_ENEMY._quality = _local55;
_parent.controller.enemySetIconBitmap(_parent.controller.enemyGetID(), newGui.bitmapChars, _local23);
} else {
var _local36 = new flash.geom.Matrix();
_local36.translate(_local23.x, _local23.y);
newGui.bitmapChars.draw(_local38, _local36, undefined, "normal", _local23, true);
}
}
}
if (newGui.activeEnemySelection) {
_local31 = 1;
var _local43 = Math.floor(_local12 / newGui.cellSize);
var _local62 = Math.floor(_local13 / newGui.cellSize);
var _local30 = Math.floor((selectdown._xmouse - 0) / newGui.cellSize);
var _local29 = Math.floor((selectdown._ymouse - 0) / newGui.cellSize);
var _local16 = _local30 + (_local29 * _local43);
if ((_local16 > 0) && (_local16 < newGui.maxCount)) {
} else {
_local16 = 0;
}
_local4._visible = false;
if ((_local30 >= 0) && (_local30 < _local43)) {
if ((_local29 >= 0) && (_local29 < _local62)) {
if ((_local16 > 0) && (_local16 < newGui.maxCount)) {
_local4._x = 0 + (_local30 * newGui.cellSize);
_local4._y = 0 + (_local29 * newGui.cellSize);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
_local4._visible = true;
}
}
}
if (!_local4._visible) {
var _local46 = _parent.controller.enemyGetID() - 1;
_local43 = Math.floor(_local12 / newGui.cellSize);
_local62 = Math.floor(_local13 / newGui.cellSize);
var _local58 = Math.floor(_local46 % _local43);
var _local56 = Math.floor(_local46 / _local43);
_local4._x = 0 + (_local58 * newGui.cellSize);
_local4._y = 0 + (_local56 * newGui.cellSize);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
_local4._visible = true;
var _local47 = new flash.geom.ColorTransform();
_local47.blueMultiplier = 0.5;
_local47.greenMultiplier = 0.5;
_local47.redMultiplier = 0.5;
var _local51 = new flash.geom.Transform(_local4);
_local51.colorTransform = _local47;
} else {
var _local47 = new flash.geom.ColorTransform();
var _local51 = new flash.geom.Transform(_local4);
_local51.colorTransform = _local47;
var _local50 = _parent.controller.getEnemyURLName(_local16 + 1);
_local10.mytext.text = _local50;
_local10._y = 0;
if (selectdown._ymouse < 24) {
_local10._y = 24;
}
}
if (selectdown.guiButtonRelease) {
newGui.activeEnemySelection = 0;
if (_local16 > 0) {
_parent.controller.pickEnemy(_local16 + 1);
_parent.controller.resetPlayer();
}
} else {
_local45 = _local28;
}
} else {
_local31 = 0;
var _local42 = false;
if ((_xmouse < _local26.xMax) && (_xmouse > _local26.xMin)) {
if ((_ymouse < _local26.yMax) && (_ymouse > _local26.yMin)) {
if (selectorDown) {
_local42 = true;
}
}
}
if (_local42) {
newGui.activeEnemySelection = 1;
}
}
selectdown._x = _local57;
selectdown._y = _local45;
selectdown._visible = _local31;
selectdown.guiButtonRelease = 0;
selectorDown = 0;
}
var blockX = 16;
var blockY = 0;
var blockWidth = 128;
var blockHeight = 36;
var blockColumns = 5;
char8segmap = new Object();
char8segmap["0"] = 91;
char8segmap["1"] = 72;
char8segmap["2"] = 61;
char8segmap["3"] = 109;
char8segmap["4"] = 78;
char8segmap["5"] = 103;
char8segmap["6"] = 119;
char8segmap["7"] = 73;
char8segmap["8"] = 127;
char8segmap["9"] = 79;
char8segmap.A = 95;
char8segmap.B = 118;
char8segmap.C = 52;
char8segmap.D = 124;
char8segmap.E = 55;
char8segmap.F = 23;
char8segmap.G = 115;
char8segmap.H = 94;
char8segmap.I = 64;
char8segmap.J = 120;
char8segmap.K = 30;
char8segmap.L = 50;
char8segmap.M = 92;
char8segmap.N = 84;
char8segmap.O = 116;
char8segmap.P = 31;
char8segmap.Q = 27;
char8segmap.R = 20;
char8segmap.S = 103;
char8segmap.T = 19;
char8segmap.U = 122;
char8segmap.V = 112;
char8segmap.W = 14;
char8segmap.X = 94;
char8segmap.Y = 78;
char8segmap.Z = 28;
var newGui = undefined;
Symbol 259 MovieClip Frame 71
function getCellCoords(idex, selectmax4, delx, dern, ncolumns) {
if (dern == undefined) {
dern = 1;
}
if (idex == undefined) {
idex = 0;
}
if (idex < 0) {
idex = 0;
}
if (idex > 1024) {
idex = 0;
}
var _local3 = 0;
while (idex >= selectmax4) {
idex = idex - selectmax4;
_local3++;
}
var _local4 = new Object();
_local4.xMin = (idex * delx) + dern;
_local4.xMax = ((idex * delx) + delx) - dern;
_local4.yMin = ((_local3 * 36) / ncolumns) + dern;
_local4.yMax = (((_local3 * 36) / ncolumns) + (36 / ncolumns)) - dern;
return(_local4);
}
function drawCell(M, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMax);
M.lineTo(_local1.xMin, _local1.yMax);
M.lineTo(_local1.xMin, _local1.yMin);
M.endFill();
}
function drawCellBits(M, bits, idex, selectmax4, delx, color, dern, ncolumns) {
var _local2 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
var _local4 = (_local2.xMin + _local2.xMax) / 2;
var _local3 = (_local2.yMin + _local2.yMax) / 2;
if (bits & 1) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local2.xMin, _local2.yMin);
M.lineTo(_local4, _local2.yMin);
M.lineTo(_local4, _local3);
M.lineTo(_local2.xMin, _local3);
M.lineTo(_local2.xMin, _local2.yMin);
M.endFill();
}
if (bits & 2) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4, _local2.yMin);
M.lineTo(_local2.xMax, _local2.yMin);
M.lineTo(_local2.xMax, _local3);
M.lineTo(_local4, _local3);
M.lineTo(_local4, _local2.yMin);
M.endFill();
}
if (bits & 4) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local2.xMin, _local3);
M.lineTo(_local4, _local3);
M.lineTo(_local4, _local2.yMax);
M.lineTo(_local2.xMin, _local2.yMax);
M.lineTo(_local2.xMin, _local3);
M.endFill();
}
if (bits & 8) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4, _local3);
M.lineTo(_local2.xMax, _local3);
M.lineTo(_local2.xMax, _local2.yMax);
M.lineTo(_local4, _local2.yMax);
M.lineTo(_local4, _local3);
M.endFill();
}
if (bits & 16) {
var _local6 = _local4 - (_local4 / 2);
var _local5 = _local3 - (_local3 / 2);
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4 - _local6, _local3 - _local5);
M.lineTo(_local4 + _local6, _local3 - _local5);
M.lineTo(_local4 + _local6, _local3 + _local5);
M.lineTo(_local4 - _local6, _local3 + _local5);
M.lineTo(_local4 - _local6, _local3 - _local5);
M.endFill();
}
}
function drawCellX(M, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0.5, color, 100);
M.beginFill(0, 0);
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMax);
M.moveTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMin, _local1.yMax);
M.endFill();
}
function drawCellChar(M, uchar, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0.5, color, 100);
M.beginFill(0, 0);
var _local5 = (_local1.xMin + _local1.xMax) / 2;
var _local4 = (_local1.yMin + _local1.yMax) / 2;
if (char8segmap.hasOwnProperty(uchar)) {
var _local3 = char8segmap[uchar];
if (_local3 & 1) {
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMin);
}
if (_local3 & 2) {
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMin, _local4);
}
if (_local3 & 4) {
M.moveTo(_local1.xMin, _local4);
M.lineTo(_local1.xMax, _local4);
}
if (_local3 & 8) {
M.moveTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMax, _local4);
}
if (_local3 & 16) {
M.moveTo(_local1.xMin, _local4);
M.lineTo(_local1.xMin, _local1.yMax);
}
if (_local3 & 32) {
M.moveTo(_local1.xMin, _local1.yMax);
M.lineTo(_local1.xMax, _local1.yMax);
}
if (_local3 & 64) {
M.moveTo(_local1.xMax, _local4);
M.lineTo(_local1.xMax, _local1.yMax);
}
}
M.endFill();
}
function gridSelectFrom(max, may) {
}
function clearDrawingByIndex(enemyid) {
newGui.drawMap[enemyid] = 1;
}
function updateCallback() {
if (newGui == undefined) {
var _local14 = new Object();
_local14.activeEnemySelection = 0;
_local14.enemySelectionFade = 0;
_local14.bitmapChars = undefined;
_local14.bitmapIconStored = undefined;
_local14.bitmapScale = 3;
_local14.cellSize = 100;
_local14.maxCount = 0;
_local14.drawMap = new Object();
newGui = _local14;
}
var _local12 = 296;
var _local13 = 48;
var _local32 = -148;
var _local28 = -120;
var _local52 = 48;
var _local26 = new Object({xMin:_local32, xMax:_local32 + 148, yMin:_local28, yMax:_local28 + 36});
var _local57 = _local32;
var _local45 = _local28 - _local52;
var _local31 = false;
var _local10 = selectdown.drawText;
if (_local10.mytext == undefined) {
var _local27 = new TextFormat();
_local27.font = "Arial";
_local27.size = 16;
_local27.color = 0;
_local10.createTextField("mytext", 0, 0, 0, selectdown._width, 24);
_local10.mytext.multiline = false;
_local10.mytext.wordWrap = false;
_local10.mytext.text = "";
_local10.mytext.embedFonts = false;
_local10.mytext.selectable = false;
_local10.mytext.antiAliasType = "normal";
_local10.mytext.backgroundColor = 2155905152;
_local10.mytext.textColor = 0;
_local10.useformat = _local27;
_local10.mytext.setNewTextFormat(_local10.useformat);
}
_local10.mytext.text = "";
_local10._x = 0;
var _local24 = selectdown.drawinto;
var _local4 = selectdown.drawSelector;
if (newGui.bitmapChars == undefined) {
newGui.bitmapChars = new flash.display.BitmapData(newGui.bitmapScale * _local12, newGui.bitmapScale * _local13, true, 0);
_local24.attachBitmap(newGui.bitmapChars, 0, "auto", false);
_local24._xscale = 100 / newGui.bitmapScale;
_local24._yscale = 100 / newGui.bitmapScale;
}
var _local15 = _parent.controller.GLOBAL_MAXENEMYFRAMES;
if (newGui.maxCount != _local15) {
newGui.drawMap = new Object();
newGui.maxCount = _local15;
var _local23 = new flash.geom.Rectangle(0, 0, newGui.bitmapScale * _local12, newGui.bitmapScale * _local13);
newGui.bitmapChars.fillRect(_local23, 0);
var _local5 = Math.min(_local13, _local12);
while ((Math.floor(_local12 / _local5) * Math.floor(_local13 / _local5)) < _local15) {
_local5--;
}
newGui.cellSize = _local5;
_local15++;
var _local8 = Math.floor(_local12 / _local5);
var _local11 = Math.floor(_local13 / _local5);
_local4.clear();
var _local20 = newGui.cellSize / 64;
var _local7 = 0;
while (_local7 < _local11) {
var _local3 = 0;
while (_local3 < _local8) {
var _local6 = (_local3 + (_local7 * _local8)) + 1;
var _local25 = _parent.controller.enemyGetHashData(_local6);
if (_local25 != undefined) {
var _local22 = 0;
_local22 = _local22 | -16777216;
_local22 = _local22 | ((int(_local25.red * 255) & 255) << 16);
_local22 = _local22 | ((int(_local25.green * 255) & 255) << 8);
_local22 = _local22 | (int(_local25.blue * 255) & 255);
_local23 = new flash.geom.Rectangle((newGui.bitmapScale * newGui.cellSize) * _local3, (newGui.bitmapScale * newGui.cellSize) * _local7, (newGui.bitmapScale * 64) * _local20, (newGui.bitmapScale * 64) * _local20);
var _local37 = new flash.geom.Rectangle(((newGui.bitmapScale * newGui.cellSize) * _local3) + 1, ((newGui.bitmapScale * newGui.cellSize) * _local7) + 1, ((newGui.bitmapScale * 64) * _local20) - 2, ((newGui.bitmapScale * 64) * _local20) - 2);
newGui.bitmapChars.fillRect(_local37, _local22);
var _local38 = _parent.controller.enemyGetIconBitmap(_local6);
if (_local38 != undefined) {
trace((("Enemy [" + _local6) + "] has icon: ") + _local38);
var _local36 = new flash.geom.Matrix();
_local36.translate(_local23.x, _local23.y);
newGui.bitmapChars.draw(_local38, _local36, undefined, "normal", _local23, false);
}
}
_local3 = _local3 + 1;
}
_local7 = _local7 + 1;
}
_local4._x = 0;
_local4._y = 0;
_local4._xscale = 100;
_local4._yscale = 100;
_local4.clear();
_local4.lineStyle(0, 8421504, 255);
var _local9 = 0;
while (_local9 <= _local8) {
_local4.moveTo(_local9 * _local5, 0);
_local4.lineTo(_local9 * _local5, _local11 * _local5);
_local9 = _local9 + 1;
}
_local9 = 0;
while (_local9 <= _local11) {
_local4.moveTo(0, _local9 * _local5);
_local4.lineTo(_local8 * _local5, _local9 * _local5);
_local9 = _local9 + 1;
}
_local4.lineStyle(0, 8421504, 255);
_local4.moveTo(0, 0);
_local4.lineTo(_local5, _local5);
_local4.moveTo(_local5, 0);
_local4.lineTo(0, _local5);
var _local17 = _local4.transform.matrix.clone();
var _local44 = _local24.transform.matrix.clone();
_local44.invert();
_local17.concat(_local44);
var _local48;
var _local49;
_local23 = undefined;
var _local64 = false;
newGui.bitmapChars.draw(_local4, _local17, _local48, _local49, _local23, true);
_local4.clear();
_local4.beginFill(16777215, 25);
_local4.lineStyle(1, 16711808, 255);
_local4.moveTo(0, 0);
_local4.lineTo(100, 0);
_local4.lineTo(100, 100);
_local4.lineTo(0, 100);
_local4.lineTo(0, 0);
_local4.endFill(16777215, 25);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
} else {
var _local46 = _parent.controller.enemyGetID() - 1;
if (!newGui.drawMap.hasOwnProperty(_local46)) {
newGui.drawMap[_local46] = 1;
}
if (newGui.drawMap[_local46] != 3) {
newGui.drawMap[_local46] = newGui.drawMap[_local46] + 1;
} else {
newGui.drawMap[_local46] = newGui.drawMap[_local46] + 1;
var _local43 = Math.floor(_local12 / newGui.cellSize);
var _local62 = Math.floor(_local13 / newGui.cellSize);
var _local58 = Math.floor(_local46 % _local43);
var _local56 = Math.floor(_local46 / _local43);
var _local35 = _local58 * newGui.cellSize;
var _local34 = _local56 * newGui.cellSize;
var _local20 = newGui.cellSize / 64;
var _local18 = _parent.controller.GLOBAL_ENEMY;
var _local33 = _local18;
if (_local18.enemy.enemy.head != undefined) {
_local33 = _local18.enemy.enemy.head;
} else if (_local18.enemy.head != undefined) {
_local33 = _local18.enemy.head;
}
var _local17 = _local18.transform.matrix.clone();
var _local19 = 1;
var _local21 = _local33.getBounds(_root);
var _local40 = _local21.xMax - _local21.xMin;
var _local41 = _local21.yMax - _local21.yMin;
var _local53 = _local18._x - _local21.xMin;
var _local54 = _local18._y - _local21.yMin;
if (_local40 > 0) {
_local19 = 64 / _local40;
}
if (_local41 > 0) {
var _local39 = 64 / _local41;
if (_local39 < _local19) {
_local19 = _local39;
}
}
_local17.scale(_local19, _local19);
_local17.translate((-_local17.tx) + (_local19 * _local53), (-_local17.ty) + (_local19 * _local54));
_local17.scale(_local20, _local20);
_local17.translate(_local35, _local34);
var _local44 = _local24.transform.matrix.clone();
_local44.invert();
_local17.concat(_local44);
var _local23 = new flash.geom.Rectangle(newGui.bitmapScale * _local35, newGui.bitmapScale * _local34, (newGui.bitmapScale * 64) * _local20, (newGui.bitmapScale * 64) * _local20);
var _local37 = new flash.geom.Rectangle((newGui.bitmapScale * _local35) + 1, (newGui.bitmapScale * _local34) + 1, ((newGui.bitmapScale * 64) * _local20) - 2, ((newGui.bitmapScale * 64) * _local20) - 2);
var _local25 = _parent.controller.enemyGetHashData(_parent.controller.enemyGetID());
if (_local25 != undefined) {
var _local22 = 0;
_local22 = _local22 | -16777216;
_local22 = _local22 | ((int(_local25.red * 255) & 255) << 16);
_local22 = _local22 | ((int(_local25.green * 255) & 255) << 8);
_local22 = _local22 | (int(_local25.blue * 255) & 255);
newGui.bitmapChars.fillRect(_local37, _local22);
} else {
newGui.bitmapChars.fillRect(_local37, 0);
}
var _local38 = _parent.controller.enemyGetIconBitmap(_parent.controller.enemyGetID());
if (_local38 == undefined) {
var _local55 = _parent.controller.GLOBAL_ENEMY._quality;
_parent.controller.GLOBAL_ENEMY._quality = "LOW";
newGui.bitmapChars.draw(_parent.controller.GLOBAL_ENEMY, _local17, undefined, undefined, _local23, false);
_parent.controller.GLOBAL_ENEMY._quality = _local55;
_parent.controller.enemySetIconBitmap(_parent.controller.enemyGetID(), newGui.bitmapChars, _local23);
} else {
var _local36 = new flash.geom.Matrix();
_local36.translate(_local23.x, _local23.y);
newGui.bitmapChars.draw(_local38, _local36, undefined, "normal", _local23, true);
}
}
}
if (newGui.activeEnemySelection) {
_local31 = 1;
var _local43 = Math.floor(_local12 / newGui.cellSize);
var _local62 = Math.floor(_local13 / newGui.cellSize);
var _local30 = Math.floor((selectdown._xmouse - 0) / newGui.cellSize);
var _local29 = Math.floor((selectdown._ymouse - 0) / newGui.cellSize);
var _local16 = _local30 + (_local29 * _local43);
if ((_local16 > 0) && (_local16 < newGui.maxCount)) {
} else {
_local16 = 0;
}
_local4._visible = false;
if ((_local30 >= 0) && (_local30 < _local43)) {
if ((_local29 >= 0) && (_local29 < _local62)) {
if ((_local16 > 0) && (_local16 < newGui.maxCount)) {
_local4._x = 0 + (_local30 * newGui.cellSize);
_local4._y = 0 + (_local29 * newGui.cellSize);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
_local4._visible = true;
}
}
}
if (!_local4._visible) {
var _local46 = _parent.controller.enemyGetID() - 1;
_local43 = Math.floor(_local12 / newGui.cellSize);
_local62 = Math.floor(_local13 / newGui.cellSize);
var _local58 = Math.floor(_local46 % _local43);
var _local56 = Math.floor(_local46 / _local43);
_local4._x = 0 + (_local58 * newGui.cellSize);
_local4._y = 0 + (_local56 * newGui.cellSize);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
_local4._visible = true;
var _local47 = new flash.geom.ColorTransform();
_local47.blueMultiplier = 0.5;
_local47.greenMultiplier = 0.5;
_local47.redMultiplier = 0.5;
var _local51 = new flash.geom.Transform(_local4);
_local51.colorTransform = _local47;
} else {
var _local47 = new flash.geom.ColorTransform();
var _local51 = new flash.geom.Transform(_local4);
_local51.colorTransform = _local47;
var _local50 = _parent.controller.getEnemyURLName(_local16 + 1);
_local10.mytext.text = _local50;
_local10._y = 0;
if (selectdown._ymouse < 24) {
_local10._y = 24;
}
}
if (selectdown.guiButtonRelease) {
newGui.activeEnemySelection = 0;
if (_local16 > 0) {
_parent.controller.pickEnemy(_local16 + 1);
_parent.controller.resetPlayer();
}
} else {
_local45 = _local28;
}
} else {
_local31 = 0;
var _local42 = false;
if ((_xmouse < _local26.xMax) && (_xmouse > _local26.xMin)) {
if ((_ymouse < _local26.yMax) && (_ymouse > _local26.yMin)) {
if (selectorDown) {
_local42 = true;
}
}
}
if (_local42) {
newGui.activeEnemySelection = 1;
}
}
selectdown._x = _local57;
selectdown._y = _local45;
selectdown._visible = _local31;
selectdown.guiButtonRelease = 0;
selectorDown = 0;
}
var blockX = 16;
var blockY = 0;
var blockWidth = 128;
var blockHeight = 36;
var blockColumns = 5;
char8segmap = new Object();
char8segmap["0"] = 91;
char8segmap["1"] = 72;
char8segmap["2"] = 61;
char8segmap["3"] = 109;
char8segmap["4"] = 78;
char8segmap["5"] = 103;
char8segmap["6"] = 119;
char8segmap["7"] = 73;
char8segmap["8"] = 127;
char8segmap["9"] = 79;
char8segmap.A = 95;
char8segmap.B = 118;
char8segmap.C = 52;
char8segmap.D = 124;
char8segmap.E = 55;
char8segmap.F = 23;
char8segmap.G = 115;
char8segmap.H = 94;
char8segmap.I = 64;
char8segmap.J = 120;
char8segmap.K = 30;
char8segmap.L = 50;
char8segmap.M = 92;
char8segmap.N = 84;
char8segmap.O = 116;
char8segmap.P = 31;
char8segmap.Q = 27;
char8segmap.R = 20;
char8segmap.S = 103;
char8segmap.T = 19;
char8segmap.U = 122;
char8segmap.V = 112;
char8segmap.W = 14;
char8segmap.X = 94;
char8segmap.Y = 78;
char8segmap.Z = 28;
var newGui = undefined;
Symbol 259 MovieClip Frame 85
function getCellCoords(idex, selectmax4, delx, dern, ncolumns) {
if (dern == undefined) {
dern = 1;
}
if (idex == undefined) {
idex = 0;
}
if (idex < 0) {
idex = 0;
}
if (idex > 1024) {
idex = 0;
}
var _local3 = 0;
while (idex >= selectmax4) {
idex = idex - selectmax4;
_local3++;
}
var _local4 = new Object();
_local4.xMin = (idex * delx) + dern;
_local4.xMax = ((idex * delx) + delx) - dern;
_local4.yMin = ((_local3 * 36) / ncolumns) + dern;
_local4.yMax = (((_local3 * 36) / ncolumns) + (36 / ncolumns)) - dern;
return(_local4);
}
function drawCell(M, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMax);
M.lineTo(_local1.xMin, _local1.yMax);
M.lineTo(_local1.xMin, _local1.yMin);
M.endFill();
}
function drawCellBits(M, bits, idex, selectmax4, delx, color, dern, ncolumns) {
var _local2 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
var _local4 = (_local2.xMin + _local2.xMax) / 2;
var _local3 = (_local2.yMin + _local2.yMax) / 2;
if (bits & 1) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local2.xMin, _local2.yMin);
M.lineTo(_local4, _local2.yMin);
M.lineTo(_local4, _local3);
M.lineTo(_local2.xMin, _local3);
M.lineTo(_local2.xMin, _local2.yMin);
M.endFill();
}
if (bits & 2) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4, _local2.yMin);
M.lineTo(_local2.xMax, _local2.yMin);
M.lineTo(_local2.xMax, _local3);
M.lineTo(_local4, _local3);
M.lineTo(_local4, _local2.yMin);
M.endFill();
}
if (bits & 4) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local2.xMin, _local3);
M.lineTo(_local4, _local3);
M.lineTo(_local4, _local2.yMax);
M.lineTo(_local2.xMin, _local2.yMax);
M.lineTo(_local2.xMin, _local3);
M.endFill();
}
if (bits & 8) {
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4, _local3);
M.lineTo(_local2.xMax, _local3);
M.lineTo(_local2.xMax, _local2.yMax);
M.lineTo(_local4, _local2.yMax);
M.lineTo(_local4, _local3);
M.endFill();
}
if (bits & 16) {
var _local6 = _local4 - (_local4 / 2);
var _local5 = _local3 - (_local3 / 2);
M.lineStyle(0, 0);
M.beginFill(color, 100);
M.moveTo(_local4 - _local6, _local3 - _local5);
M.lineTo(_local4 + _local6, _local3 - _local5);
M.lineTo(_local4 + _local6, _local3 + _local5);
M.lineTo(_local4 - _local6, _local3 + _local5);
M.lineTo(_local4 - _local6, _local3 - _local5);
M.endFill();
}
}
function drawCellX(M, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0.5, color, 100);
M.beginFill(0, 0);
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMax);
M.moveTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMin, _local1.yMax);
M.endFill();
}
function drawCellChar(M, uchar, idex, selectmax4, delx, color, dern, ncolumns) {
var _local1 = getCellCoords(idex, selectmax4, delx, dern, ncolumns);
M.lineStyle(0.5, color, 100);
M.beginFill(0, 0);
var _local5 = (_local1.xMin + _local1.xMax) / 2;
var _local4 = (_local1.yMin + _local1.yMax) / 2;
if (char8segmap.hasOwnProperty(uchar)) {
var _local3 = char8segmap[uchar];
if (_local3 & 1) {
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMax, _local1.yMin);
}
if (_local3 & 2) {
M.moveTo(_local1.xMin, _local1.yMin);
M.lineTo(_local1.xMin, _local4);
}
if (_local3 & 4) {
M.moveTo(_local1.xMin, _local4);
M.lineTo(_local1.xMax, _local4);
}
if (_local3 & 8) {
M.moveTo(_local1.xMax, _local1.yMin);
M.lineTo(_local1.xMax, _local4);
}
if (_local3 & 16) {
M.moveTo(_local1.xMin, _local4);
M.lineTo(_local1.xMin, _local1.yMax);
}
if (_local3 & 32) {
M.moveTo(_local1.xMin, _local1.yMax);
M.lineTo(_local1.xMax, _local1.yMax);
}
if (_local3 & 64) {
M.moveTo(_local1.xMax, _local4);
M.lineTo(_local1.xMax, _local1.yMax);
}
}
M.endFill();
}
function gridSelectFrom(max, may) {
}
function clearDrawingByIndex(enemyid) {
newGui.drawMap[enemyid] = 1;
}
function updateCallback() {
if (newGui == undefined) {
var _local14 = new Object();
_local14.activeEnemySelection = 0;
_local14.enemySelectionFade = 0;
_local14.bitmapChars = undefined;
_local14.bitmapIconStored = undefined;
_local14.bitmapScale = 3;
_local14.cellSize = 100;
_local14.maxCount = 0;
_local14.drawMap = new Object();
newGui = _local14;
}
var _local12 = 296;
var _local13 = 48;
var _local32 = -148;
var _local28 = -120;
var _local52 = 48;
var _local26 = new Object({xMin:_local32, xMax:_local32 + 148, yMin:_local28, yMax:_local28 + 36});
var _local57 = _local32;
var _local45 = _local28 - _local52;
var _local31 = false;
var _local10 = selectdown.drawText;
if (_local10.mytext == undefined) {
var _local27 = new TextFormat();
_local27.font = "Arial";
_local27.size = 16;
_local27.color = 0;
_local10.createTextField("mytext", 0, 0, 0, selectdown._width, 24);
_local10.mytext.multiline = false;
_local10.mytext.wordWrap = false;
_local10.mytext.text = "";
_local10.mytext.embedFonts = false;
_local10.mytext.selectable = false;
_local10.mytext.antiAliasType = "normal";
_local10.mytext.backgroundColor = 2155905152;
_local10.mytext.textColor = 0;
_local10.useformat = _local27;
_local10.mytext.setNewTextFormat(_local10.useformat);
}
_local10.mytext.text = "";
_local10._x = 0;
var _local24 = selectdown.drawinto;
var _local4 = selectdown.drawSelector;
if (newGui.bitmapChars == undefined) {
newGui.bitmapChars = new flash.display.BitmapData(newGui.bitmapScale * _local12, newGui.bitmapScale * _local13, true, 0);
_local24.attachBitmap(newGui.bitmapChars, 0, "auto", false);
_local24._xscale = 100 / newGui.bitmapScale;
_local24._yscale = 100 / newGui.bitmapScale;
}
var _local15 = _parent.controller.GLOBAL_MAXENEMYFRAMES;
if (newGui.maxCount != _local15) {
newGui.drawMap = new Object();
newGui.maxCount = _local15;
var _local23 = new flash.geom.Rectangle(0, 0, newGui.bitmapScale * _local12, newGui.bitmapScale * _local13);
newGui.bitmapChars.fillRect(_local23, 0);
var _local5 = Math.min(_local13, _local12);
while ((Math.floor(_local12 / _local5) * Math.floor(_local13 / _local5)) < _local15) {
_local5--;
}
newGui.cellSize = _local5;
_local15++;
var _local8 = Math.floor(_local12 / _local5);
var _local11 = Math.floor(_local13 / _local5);
_local4.clear();
var _local20 = newGui.cellSize / 64;
var _local7 = 0;
while (_local7 < _local11) {
var _local3 = 0;
while (_local3 < _local8) {
var _local6 = (_local3 + (_local7 * _local8)) + 1;
var _local25 = _parent.controller.enemyGetHashData(_local6);
if (_local25 != undefined) {
var _local22 = 0;
_local22 = _local22 | -16777216;
_local22 = _local22 | ((int(_local25.red * 255) & 255) << 16);
_local22 = _local22 | ((int(_local25.green * 255) & 255) << 8);
_local22 = _local22 | (int(_local25.blue * 255) & 255);
_local23 = new flash.geom.Rectangle((newGui.bitmapScale * newGui.cellSize) * _local3, (newGui.bitmapScale * newGui.cellSize) * _local7, (newGui.bitmapScale * 64) * _local20, (newGui.bitmapScale * 64) * _local20);
var _local37 = new flash.geom.Rectangle(((newGui.bitmapScale * newGui.cellSize) * _local3) + 1, ((newGui.bitmapScale * newGui.cellSize) * _local7) + 1, ((newGui.bitmapScale * 64) * _local20) - 2, ((newGui.bitmapScale * 64) * _local20) - 2);
newGui.bitmapChars.fillRect(_local37, _local22);
var _local38 = _parent.controller.enemyGetIconBitmap(_local6);
if (_local38 != undefined) {
trace((("Enemy [" + _local6) + "] has icon: ") + _local38);
var _local36 = new flash.geom.Matrix();
_local36.translate(_local23.x, _local23.y);
newGui.bitmapChars.draw(_local38, _local36, undefined, "normal", _local23, false);
}
}
_local3 = _local3 + 1;
}
_local7 = _local7 + 1;
}
_local4._x = 0;
_local4._y = 0;
_local4._xscale = 100;
_local4._yscale = 100;
_local4.clear();
_local4.lineStyle(0, 8421504, 255);
var _local9 = 0;
while (_local9 <= _local8) {
_local4.moveTo(_local9 * _local5, 0);
_local4.lineTo(_local9 * _local5, _local11 * _local5);
_local9 = _local9 + 1;
}
_local9 = 0;
while (_local9 <= _local11) {
_local4.moveTo(0, _local9 * _local5);
_local4.lineTo(_local8 * _local5, _local9 * _local5);
_local9 = _local9 + 1;
}
_local4.lineStyle(0, 8421504, 255);
_local4.moveTo(0, 0);
_local4.lineTo(_local5, _local5);
_local4.moveTo(_local5, 0);
_local4.lineTo(0, _local5);
var _local17 = _local4.transform.matrix.clone();
var _local44 = _local24.transform.matrix.clone();
_local44.invert();
_local17.concat(_local44);
var _local48;
var _local49;
_local23 = undefined;
var _local64 = false;
newGui.bitmapChars.draw(_local4, _local17, _local48, _local49, _local23, true);
_local4.clear();
_local4.beginFill(16777215, 25);
_local4.lineStyle(1, 16711808, 255);
_local4.moveTo(0, 0);
_local4.lineTo(100, 0);
_local4.lineTo(100, 100);
_local4.lineTo(0, 100);
_local4.lineTo(0, 0);
_local4.endFill(16777215, 25);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
} else {
var _local46 = _parent.controller.enemyGetID() - 1;
if (!newGui.drawMap.hasOwnProperty(_local46)) {
newGui.drawMap[_local46] = 1;
}
if (newGui.drawMap[_local46] != 3) {
newGui.drawMap[_local46] = newGui.drawMap[_local46] + 1;
} else {
newGui.drawMap[_local46] = newGui.drawMap[_local46] + 1;
var _local43 = Math.floor(_local12 / newGui.cellSize);
var _local62 = Math.floor(_local13 / newGui.cellSize);
var _local58 = Math.floor(_local46 % _local43);
var _local56 = Math.floor(_local46 / _local43);
var _local35 = _local58 * newGui.cellSize;
var _local34 = _local56 * newGui.cellSize;
var _local20 = newGui.cellSize / 64;
var _local18 = _parent.controller.GLOBAL_ENEMY;
var _local33 = _local18;
if (_local18.enemy.enemy.head != undefined) {
_local33 = _local18.enemy.enemy.head;
} else if (_local18.enemy.head != undefined) {
_local33 = _local18.enemy.head;
}
var _local17 = _local18.transform.matrix.clone();
var _local19 = 1;
var _local21 = _local33.getBounds(_root);
var _local40 = _local21.xMax - _local21.xMin;
var _local41 = _local21.yMax - _local21.yMin;
var _local53 = _local18._x - _local21.xMin;
var _local54 = _local18._y - _local21.yMin;
if (_local40 > 0) {
_local19 = 64 / _local40;
}
if (_local41 > 0) {
var _local39 = 64 / _local41;
if (_local39 < _local19) {
_local19 = _local39;
}
}
_local17.scale(_local19, _local19);
_local17.translate((-_local17.tx) + (_local19 * _local53), (-_local17.ty) + (_local19 * _local54));
_local17.scale(_local20, _local20);
_local17.translate(_local35, _local34);
var _local44 = _local24.transform.matrix.clone();
_local44.invert();
_local17.concat(_local44);
var _local23 = new flash.geom.Rectangle(newGui.bitmapScale * _local35, newGui.bitmapScale * _local34, (newGui.bitmapScale * 64) * _local20, (newGui.bitmapScale * 64) * _local20);
var _local37 = new flash.geom.Rectangle((newGui.bitmapScale * _local35) + 1, (newGui.bitmapScale * _local34) + 1, ((newGui.bitmapScale * 64) * _local20) - 2, ((newGui.bitmapScale * 64) * _local20) - 2);
var _local25 = _parent.controller.enemyGetHashData(_parent.controller.enemyGetID());
if (_local25 != undefined) {
var _local22 = 0;
_local22 = _local22 | -16777216;
_local22 = _local22 | ((int(_local25.red * 255) & 255) << 16);
_local22 = _local22 | ((int(_local25.green * 255) & 255) << 8);
_local22 = _local22 | (int(_local25.blue * 255) & 255);
newGui.bitmapChars.fillRect(_local37, _local22);
} else {
newGui.bitmapChars.fillRect(_local37, 0);
}
var _local38 = _parent.controller.enemyGetIconBitmap(_parent.controller.enemyGetID());
if (_local38 == undefined) {
var _local55 = _parent.controller.GLOBAL_ENEMY._quality;
_parent.controller.GLOBAL_ENEMY._quality = "LOW";
newGui.bitmapChars.draw(_parent.controller.GLOBAL_ENEMY, _local17, undefined, undefined, _local23, false);
_parent.controller.GLOBAL_ENEMY._quality = _local55;
_parent.controller.enemySetIconBitmap(_parent.controller.enemyGetID(), newGui.bitmapChars, _local23);
} else {
var _local36 = new flash.geom.Matrix();
_local36.translate(_local23.x, _local23.y);
newGui.bitmapChars.draw(_local38, _local36, undefined, "normal", _local23, true);
}
}
}
if (newGui.activeEnemySelection) {
_local31 = 1;
var _local43 = Math.floor(_local12 / newGui.cellSize);
var _local62 = Math.floor(_local13 / newGui.cellSize);
var _local30 = Math.floor((selectdown._xmouse - 0) / newGui.cellSize);
var _local29 = Math.floor((selectdown._ymouse - 0) / newGui.cellSize);
var _local16 = _local30 + (_local29 * _local43);
if ((_local16 > 0) && (_local16 < newGui.maxCount)) {
} else {
_local16 = 0;
}
_local4._visible = false;
if ((_local30 >= 0) && (_local30 < _local43)) {
if ((_local29 >= 0) && (_local29 < _local62)) {
if ((_local16 > 0) && (_local16 < newGui.maxCount)) {
_local4._x = 0 + (_local30 * newGui.cellSize);
_local4._y = 0 + (_local29 * newGui.cellSize);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
_local4._visible = true;
}
}
}
if (!_local4._visible) {
var _local46 = _parent.controller.enemyGetID() - 1;
_local43 = Math.floor(_local12 / newGui.cellSize);
_local62 = Math.floor(_local13 / newGui.cellSize);
var _local58 = Math.floor(_local46 % _local43);
var _local56 = Math.floor(_local46 / _local43);
_local4._x = 0 + (_local58 * newGui.cellSize);
_local4._y = 0 + (_local56 * newGui.cellSize);
_local4._xscale = newGui.cellSize;
_local4._yscale = newGui.cellSize;
_local4._visible = true;
var _local47 = new flash.geom.ColorTransform();
_local47.blueMultiplier = 0.5;
_local47.greenMultiplier = 0.5;
_local47.redMultiplier = 0.5;
var _local51 = new flash.geom.Transform(_local4);
_local51.colorTransform = _local47;
} else {
var _local47 = new flash.geom.ColorTransform();
var _local51 = new flash.geom.Transform(_local4);
_local51.colorTransform = _local47;
var _local50 = _parent.controller.getEnemyURLName(_local16 + 1);
_local10.mytext.text = _local50;
_local10._y = 0;
if (selectdown._ymouse < 24) {
_local10._y = 24;
}
}
if (selectdown.guiButtonRelease) {
newGui.activeEnemySelection = 0;
if (_local16 > 0) {
_parent.controller.pickEnemy(_local16 + 1);
_parent.controller.resetPlayer();
}
} else {
_local45 = _local28;
}
} else {
_local31 = 0;
var _local42 = false;
if ((_xmouse < _local26.xMax) && (_xmouse > _local26.xMin)) {
if ((_ymouse < _local26.yMax) && (_ymouse > _local26.yMin)) {
if (selectorDown) {
_local42 = true;
}
}
}
if (_local42) {
newGui.activeEnemySelection = 1;
}
}
selectdown._x = _local57;
selectdown._y = _local45;
selectdown._visible = _local31;
selectdown.guiButtonRelease = 0;
selectorDown = 0;
}
var blockX = 16;
var blockY = 0;
var blockWidth = 128;
var blockHeight = 36;
var blockColumns = 5;
char8segmap = new Object();
char8segmap["0"] = 91;
char8segmap["1"] = 72;
char8segmap["2"] = 61;
char8segmap["3"] = 109;
char8segmap["4"] = 78;
char8segmap["5"] = 103;
char8segmap["6"] = 119;
char8segmap["7"] = 73;
char8segmap["8"] = 127;
char8segmap["9"] = 79;
char8segmap.A = 95;
char8segmap.B = 118;
char8segmap.C = 52;
char8segmap.D = 124;
char8segmap.E = 55;
char8segmap.F = 23;
char8segmap.G = 115;
char8segmap.H = 94;
char8segmap.I = 64;
char8segmap.J = 120;
char8segmap.K = 30;
char8segmap.L = 50;
char8segmap.M = 92;
char8segmap.N = 84;
char8segmap.O = 116;
char8segmap.P = 31;
char8segmap.Q = 27;
char8segmap.R = 20;
char8segmap.S = 103;
char8segmap.T = 19;
char8segmap.U = 122;
char8segmap.V = 112;
char8segmap.W = 14;
char8segmap.X = 94;
char8segmap.Y = 78;
char8segmap.Z = 28;
var newGui = undefined;
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 8
removeMovieClip(this);
_parent.removeMovieClip(this);
Instance of Symbol 270 MovieClip "entertainor" in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
function FireOrange(x, y) {
if (gActiveOranges < 16) {
var newname = ("ong_" + gGarbageClipCurr);
gGarbageClip.duplicateMovieClip(newname, gGarbageClipCurr + 1024);
var clip = eval ("_parent." + newname);
clip._x = x;
clip._y = y;
clip._xvel = (Math.random() * 32) - 16;
clip._yvel = (Math.random() * 32) - 16;
clip._xscale = 12 + (Math.random() * 12);
clip._yscale = clip._xscale;
delmc._rotation = 0;
clip.destroy = false;
clip.gotoAndStop(1);
gGarbageClipCurr++;
if (gGarbageClipCurr > 256) {
gGarbageClipCurr = 0;
}
gGarbageClips.push(clip);
gActiveOranges++;
}
}
var gGarbageClip = _parent.dup_orange;
var gGarbageClipCurr = 0;
var gGarbageClips = [];
var gMouseState = 0;
var gMouseXPrev = 0;
var gMouseYPrev = 0;
var gTimer = 5;
var gFieldWidth = 1000;
var gFieldHeight = 700;
var gActiveOranges = 0;
var gGameScore = 0;
}
onClipEvent (enterFrame) {
gTimer = gTimer + 1;
if (gTimer > 5) {
FireOrange(Math.random() * gFieldWidth, Math.random() * gFieldHeight);
gTimer = 0;
}
var remarray = [];
var hitany = 0;
var clickany = 0;
var i = 0;
var imax = gGarbageClips.length;
while (i < imax) {
var mc = gGarbageClips[i];
if (gMouseState) {
var dx = (_parent._xmouse - mc._x);
var dy = (_parent._ymouse - mc._y);
var dm = ((dx * dx) + (dy * dy));
if (dm < (mc._xscale * mc._xscale)) {
remarray.push(i);
hitany = hitany + 1;
}
clickany = clickany + 1;
}
mc._yvel = mc._yvel + 0.327;
mc._y = mc._y + mc._yvel;
mc._x = mc._x + mc._xvel;
if (mc._x < 0) {
mc._x = -mc._x;
mc._xvel = -mc._xvel;
} else if (mc._x > gFieldWidth) {
mc._x = gFieldWidth + (gFieldWidth - mc._x);
mc._xvel = -mc._xvel;
}
if (mc._y < 0) {
mc._y = -mc._y;
mc._yvel = -mc._yvel;
} else if (mc._y > gFieldHeight) {
mc._y = gFieldHeight + (gFieldHeight - mc._y);
mc._yvel = -mc._yvel;
}
i++;
}
if (clickany) {
if (hitany == 0) {
gGameScore = gGameScore - 1;
if (gGameScore < 0) {
gGameScore = 0;
}
}
}
var r = 0;
var rcount = 0;
var rmax = remarray.length;
while (r < rmax) {
var delmc = gGarbageClips[remarray[r] - rcount];
gGameScore = gGameScore + (Math.floor(delmc._xscale) - 11);
delmc.play();
delmc._rotation = Math.random() * 360;
gGarbageClips.splice(remarray[r] - rcount, 1);
gActiveOranges--;
rcount++;
r++;
}
gMouseXPrev = _parent._xmouse;
gMouseYPrev = _parent._ymouse;
}
onClipEvent (mouseDown) {
gMouseState = gMouseState + 1;
}
onClipEvent (mouseUp) {
gMouseState = 0;
}
Symbol 279 Button
on (press) {
gotoAndPlay ("Eat");
}
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 11
stop();
Symbol 301 MovieClip Frame 21
stop();
Symbol 301 MovieClip Frame 31
stop();
Symbol 301 MovieClip Frame 41
stop();
Symbol 301 MovieClip Frame 51
stop();
Symbol 301 MovieClip Frame 61
stop();
Symbol 301 MovieClip Frame 71
stop();
Symbol 301 MovieClip Frame 81
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 11
stop();
Symbol 313 MovieClip Frame 21
stop();
Symbol 313 MovieClip Frame 31
stop();
Symbol 313 MovieClip Frame 41
stop();
Symbol 313 MovieClip Frame 51
stop();
Symbol 313 MovieClip Frame 61
stop();
Symbol 313 MovieClip Frame 71
stop();
Symbol 313 MovieClip Frame 81
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 11
stop();
Symbol 325 MovieClip Frame 21
stop();
Symbol 325 MovieClip Frame 31
stop();
Symbol 325 MovieClip Frame 41
stop();
Symbol 325 MovieClip Frame 51
stop();
Symbol 325 MovieClip Frame 61
stop();
Symbol 325 MovieClip Frame 71
stop();
Symbol 325 MovieClip Frame 81
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 11
stop();
Symbol 342 MovieClip Frame 21
stop();
Symbol 342 MovieClip Frame 31
stop();
Symbol 342 MovieClip Frame 41
stop();
Symbol 342 MovieClip Frame 51
stop();
Symbol 342 MovieClip Frame 61
stop();
Symbol 342 MovieClip Frame 71
stop();
Symbol 342 MovieClip Frame 81
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 11
stop();
Symbol 356 MovieClip Frame 21
stop();
Symbol 356 MovieClip Frame 31
stop();
Symbol 356 MovieClip Frame 41
stop();
Symbol 356 MovieClip Frame 51
stop();
Symbol 356 MovieClip Frame 61
stop();
Symbol 356 MovieClip Frame 71
stop();
Symbol 356 MovieClip Frame 81
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 11
stop();
Symbol 367 MovieClip Frame 21
stop();
Symbol 367 MovieClip Frame 31
stop();
Symbol 367 MovieClip Frame 41
stop();
Symbol 367 MovieClip Frame 51
stop();
Symbol 367 MovieClip Frame 61
stop();
Symbol 367 MovieClip Frame 71
stop();
Symbol 367 MovieClip Frame 81
stop();
Symbol 381 MovieClip Frame 1
stop();
gotoAndStop(_parent.G.getValue("color"));
Symbol 381 MovieClip Frame 11
stop();
Symbol 381 MovieClip Frame 21
stop();
Symbol 381 MovieClip Frame 31
stop();
Symbol 381 MovieClip Frame 41
stop();
Symbol 381 MovieClip Frame 51
stop();
Symbol 381 MovieClip Frame 61
stop();
Symbol 381 MovieClip Frame 71
stop();
Symbol 381 MovieClip Frame 81
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 11
stop();
Symbol 391 MovieClip Frame 21
stop();
Symbol 391 MovieClip Frame 31
stop();
Symbol 391 MovieClip Frame 41
stop();
Symbol 391 MovieClip Frame 51
stop();
Symbol 391 MovieClip Frame 61
stop();
Symbol 391 MovieClip Frame 71
stop();
Symbol 391 MovieClip Frame 81
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 11
stop();
Symbol 414 MovieClip Frame 21
stop();
Symbol 414 MovieClip Frame 31
stop();
Symbol 414 MovieClip Frame 41
stop();
Symbol 414 MovieClip Frame 51
stop();
Symbol 414 MovieClip Frame 61
stop();
Symbol 414 MovieClip Frame 71
stop();
Symbol 414 MovieClip Frame 81
stop();
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 11
stop();
Symbol 424 MovieClip Frame 21
stop();
Symbol 424 MovieClip Frame 31
stop();
Symbol 424 MovieClip Frame 41
stop();
Symbol 424 MovieClip Frame 51
stop();
Symbol 424 MovieClip Frame 61
stop();
Symbol 424 MovieClip Frame 71
stop();
Symbol 424 MovieClip Frame 81
stop();
Symbol 438 Button
on (press) {
gotoAndPlay ("Burp");
}
Symbol 444 MovieClip Frame 1
G.setValue("eatten", "0");
Symbol 444 MovieClip Frame 59
gotoAndPlay ("Idle");
Symbol 444 MovieClip Frame 60
G.setValue("eatten", "1");
Symbol 444 MovieClip Frame 207
G.setValue("eatten", "2");
Symbol 444 MovieClip Frame 265
gotoAndPlay ("Idle2");
Symbol 444 MovieClip Frame 266
G.setValue("eatten", "0");
Symbol 444 MovieClip Frame 271
if ((Math.random() * 3) < 1) {
RS.gotoAndPlay("S1");
} else if ((Math.random() * 3) < 1) {
RS.gotoAndPlay("S2");
} else if ((Math.random() * 3) < 1) {
RS.gotoAndPlay("S3");
} else {
RS.gotoAndPlay("S4");
}
Symbol 444 MovieClip Frame 294
gotoAndPlay ("Idle2");
Symbol 447 MovieClip Frame 1
if (_global.Player_Gender == "female") {
if (_global.Player_ShowDirtyBits == "true") {
_parent.mc.FemalePart._visible = true;
_parent.mc.MalePart._visible = false;
_parent.mc.FemalePart.nippleR._visible = true;
_parent.mc.FemalePart.nippleL._visible = true;
_parent.mc.Slit._visible = true;
_parent.mc.SlitBack._visible = true;
_parent.mc.SlitCover._visible = true;
} else {
_parent.mc.FemalePart._visible = true;
_parent.mc.MalePart._visible = false;
_parent.mc.FemalePart.nippleR._visible = false;
_parent.mc.FemalePart.nippleL._visible = false;
_parent.mc.Slit._visible = false;
_parent.mc.SlitBack._visible = false;
_parent.mc.SlitCover._visible = false;
}
}
if (_global.Player_Gender == "male") {
if (_global.Player_ShowDirtyBits == "true") {
_parent.mc.FemalePart._visible = false;
_parent.mc.MalePart._visible = true;
_parent.mc.Slit._visible = false;
_parent.mc.SlitBack._visible = false;
_parent.mc.SlitCover._visible = false;
} else {
_parent.mc.FemalePart._visible = false;
_parent.mc.MalePart._visible = false;
_parent.mc.FemalePart.nippleR._visible = false;
_parent.mc.FemalePart.nippleL._visible = false;
_parent.mc.Slit._visible = false;
_parent.mc.SlitBack._visible = false;
_parent.mc.SlitCover._visible = false;
}
}
if (_global.Player_Gender == "herm") {
if (_global.Player_ShowDirtyBits == "true") {
_parent.mc.FemalePart._visible = true;
_parent.mc.MalePart._visible = true;
_parent.mc.FemalePart.nippleR._visible = true;
_parent.mc.FemalePart.nippleL._visible = true;
_parent.mc.Slit._visible = false;
_parent.mc.SlitBack._visible = false;
_parent.mc.SlitCover._visible = false;
} else {
_parent.mc.FemalePart._visible = true;
_parent.mc.MalePart._visible = false;
_parent.mc.FemalePart.nippleR._visible = false;
_parent.mc.FemalePart.nippleL._visible = false;
_parent.mc.Slit._visible = false;
_parent.mc.SlitBack._visible = false;
_parent.mc.SlitCover._visible = false;
}
}
_parent.mc.Head.gotoAndPlay(_global.Player_SKIN);
_parent.mc.Body.gotoAndPlay(_global.Player_SKIN);
_parent.mc.Belly.gotoAndPlay(_global.Player_SKIN);
_parent.mc.Tail.gotoAndPlay(_global.Player_SKIN);
_parent.mc.FemalePart.gotoAndPlay(_global.Player_SKIN);
_parent.mc.FemalePart.nippleR.gotoAndPlay(_global.Player_SKIN);
_parent.mc.FemalePart.nippleL.gotoAndPlay(_global.Player_SKIN);
_parent.mc.EarR.gotoAndPlay(_global.Player_SKIN);
_parent.mc.EarL.gotoAndPlay(_global.Player_SKIN);
_parent.mc.Head.TopTeeth.gotoAndPlay(_global.Player_SKIN);
_parent.mc.UpperArmR.gotoAndPlay(_global.Player_SKIN);
_parent.mc.UpperArmL.gotoAndPlay(_global.Player_SKIN);
_parent.mc.LowerArmR.gotoAndPlay(_global.Player_SKIN);
_parent.mc.LowerArmL.gotoAndPlay(_global.Player_SKIN);
_parent.mc.PawR.gotoAndPlay(_global.Player_SKIN);
_parent.mc.PawL.gotoAndPlay(_global.Player_SKIN);
_parent.mc.LegR.gotoAndPlay(_global.Player_SKIN);
_parent.mc.LegL.gotoAndPlay(_global.Player_SKIN);
_parent.mc.FootR.gotoAndPlay(_global.Player_SKIN);
_parent.mc.FootL.gotoAndPlay(_global.Player_SKIN);
_parent.mc.TailFluff.gotoAndPlay(_global.Player_SKIN);
_parent.mc.Head.Head_Clothes.gotoAndPlay(_global.Player_HAT);
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 11
stop();
Symbol 451 MovieClip Frame 21
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 11
stop();
Symbol 455 MovieClip Frame 21
stop();
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 11
stop();
Symbol 459 MovieClip Frame 21
stop();
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 11
stop();
Symbol 463 MovieClip Frame 21
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 11
stop();
Symbol 468 MovieClip Frame 21
stop();
Symbol 468 MovieClip Frame 31
stop();
Symbol 468 MovieClip Frame 41
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 11
stop();
Symbol 478 MovieClip Frame 21
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 11
stop();
Symbol 483 MovieClip Frame 21
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 11
stop();
Symbol 486 MovieClip Frame 21
stop();
Symbol 497 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 11
stop();
Symbol 497 MovieClip Frame 21
stop();
Symbol 497 MovieClip Frame 31
stop();
Symbol 497 MovieClip Frame 41
stop();
Symbol 497 MovieClip Frame 51
stop();
Symbol 497 MovieClip Frame 61
stop();
Symbol 497 MovieClip Frame 71
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 11
stop();
Symbol 501 MovieClip Frame 21
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 11
stop();
Symbol 505 MovieClip Frame 21
stop();
Symbol 522 MovieClip Frame 14
this.gotoAndStop("Closed");
Symbol 522 MovieClip Frame 52
this.gotoAndStop("Open");
Symbol 522 MovieClip Frame 77
this.gotoAndStop("Closed");
Symbol 526 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 11
stop();
Symbol 526 MovieClip Frame 21
stop();
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 11
stop();
Symbol 534 MovieClip Frame 21
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 11
stop();
Symbol 536 MovieClip Frame 21
stop();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 11
stop();
Symbol 540 MovieClip Frame 21
stop();
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 11
stop();
Symbol 552 MovieClip Frame 21
stop();
Symbol 554 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 11
stop();
Symbol 554 MovieClip Frame 21
stop();
Symbol 555 MovieClip Frame 1
function manachargeidle() {
if (_global.Player_mana < Number(128)) {
_global.Player_mana = Number(_global.Player_mana) + Number(0.3);
}
}
Symbol 555 MovieClip Frame 3
manachargeidle();
Symbol 555 MovieClip Frame 4
manachargeidle();
Symbol 555 MovieClip Frame 5
manachargeidle();
Symbol 555 MovieClip Frame 6
manachargeidle();
Symbol 555 MovieClip Frame 7
manachargeidle();
Symbol 555 MovieClip Frame 8
manachargeidle();
Symbol 555 MovieClip Frame 9
manachargeidle();
Symbol 555 MovieClip Frame 10
manachargeidle();
Symbol 555 MovieClip Frame 11
manachargeidle();
Symbol 555 MovieClip Frame 12
manachargeidle();
Symbol 555 MovieClip Frame 13
manachargeidle();
Symbol 555 MovieClip Frame 14
manachargeidle();
Symbol 555 MovieClip Frame 15
manachargeidle();
Symbol 555 MovieClip Frame 16
manachargeidle();
Symbol 555 MovieClip Frame 17
manachargeidle();
Symbol 555 MovieClip Frame 18
manachargeidle();
Symbol 555 MovieClip Frame 19
manachargeidle();
Symbol 555 MovieClip Frame 20
manachargeidle();
Symbol 555 MovieClip Frame 21
manachargeidle();
Symbol 555 MovieClip Frame 22
manachargeidle();
Symbol 555 MovieClip Frame 23
manachargeidle();
Symbol 555 MovieClip Frame 24
manachargeidle();
Symbol 555 MovieClip Frame 25
manachargeidle();
Symbol 555 MovieClip Frame 26
manachargeidle();
Symbol 555 MovieClip Frame 27
manachargeidle();
Symbol 555 MovieClip Frame 28
manachargeidle();
Symbol 555 MovieClip Frame 29
manachargeidle();
Symbol 555 MovieClip Frame 30
manachargeidle();
Symbol 555 MovieClip Frame 31
manachargeidle();
Symbol 555 MovieClip Frame 32
manachargeidle();
Symbol 555 MovieClip Frame 33
manachargeidle();
Symbol 555 MovieClip Frame 34
manachargeidle();
Symbol 555 MovieClip Frame 35
manachargeidle();
Symbol 555 MovieClip Frame 36
manachargeidle();
Symbol 555 MovieClip Frame 37
manachargeidle();
Symbol 555 MovieClip Frame 38
manachargeidle();
Symbol 555 MovieClip Frame 39
manachargeidle();
Symbol 555 MovieClip Frame 40
manachargeidle();
Symbol 556 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
Symbol 571 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
head2._visible = false;
}
};
Instance of Symbol 562 MovieClip "head" in Symbol 571 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Instance of Symbol 564 MovieClip "head2" in Symbol 571 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Symbol 584 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 621 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 15
Symbol 666 MovieClip Frame 1
stop();
Symbol 670 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 670 MovieClip Frame 9
Symbol 671 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 671 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 677 Button
on (press) {
gotoAndPlay ("mainmenu");
}
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 2
gotoAndStop (1);
Symbol 720 MovieClip Frame 3
gotoAndStop (1);
Symbol 720 MovieClip Frame 12
gotoAndStop (1);
Symbol 720 MovieClip Frame 23
gotoAndStop (1);
Symbol 720 MovieClip Frame 42
gotoAndStop (1);
Symbol 720 MovieClip Frame 51
gotoAndStop (1);
Symbol 720 MovieClip Frame 58
gotoAndStop (1);
Symbol 720 MovieClip Frame 65
gotoAndStop (1);
Symbol 720 MovieClip Frame 95
gotoAndStop (1);
Symbol 720 MovieClip Frame 102
gotoAndStop (1);
Symbol 720 MovieClip Frame 109
gotoAndStop (1);
Symbol 720 MovieClip Frame 120
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 150
gotoAndStop (1);
Symbol 720 MovieClip Frame 151
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 179
gotoAndStop (1);
Symbol 720 MovieClip Frame 180
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 210
gotoAndStop (1);
Symbol 720 MovieClip Frame 211
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 239
gotoAndStop (1);
Symbol 720 MovieClip Frame 240
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 270
gotoAndStop (1);
Symbol 720 MovieClip Frame 271
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 300
gotoAndStop (1);
Symbol 720 MovieClip Frame 302
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 307
gotoAndStop (1);
Symbol 720 MovieClip Frame 310
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 315
gotoAndStop (1);
Symbol 720 MovieClip Frame 318
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 321
gotoAndStop (1);
Symbol 720 MovieClip Frame 327
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 330
gotoAndStop (1);
Symbol 720 MovieClip Frame 337
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 340
gotoAndStop (1);
Symbol 720 MovieClip Frame 348
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 351
gotoAndStop (1);
Symbol 720 MovieClip Frame 358
_xscale = Math.abs(_xscale);
_yscale = Math.abs(_xscale);
_rotation = 0;
Symbol 720 MovieClip Frame 361
gotoAndStop (1);
Symbol 720 MovieClip Frame 371
gotoAndStop (1);
Symbol 720 MovieClip Frame 381
gotoAndStop (1);
Symbol 720 MovieClip Frame 391
gotoAndStop (1);
Symbol 721 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 3
gotoAndStop (1);
Symbol 722 MovieClip Frame 1
stop();
Symbol 722 MovieClip Frame 2
this.m_scale = 100;
this.m_name = "EXTERNAL";
this.m_status = "SxS*NOTLOADED";
this.m_credit = "";
this.maxhp = 100;
this.hp = this.maxhp;
this.enemy.in_movex = 0;
this.enemy.in_movey = 0;
this.enemy.in_action = 0;
this.hatk = 0;
this.matk = 0;
this.latk = 0;
this.hdef = 0;
this.mdef = 0;
this.ldef = 0;
enemy.s_atktype = 0;
enemy.s_animbusy = 0;
enemy.s_idle = 1;
enemy.s_moving = 0;
enemy.s_attacking = 0;
enemy.s_hit = 0;
enemy.s_vx = 0;
m_cameraoffset = 0;
stop();
Symbol 727 MovieClip Frame 1
stop();
Symbol 729 MovieClip Frame 1
function manachargewalk() {
if (_global.Player_mana < Number(128)) {
_global.Player_mana = Number(_global.Player_mana) + Number(0.08);
}
}
manachargewalk();
Symbol 729 MovieClip Frame 2
manachargewalk();
Symbol 729 MovieClip Frame 3
manachargewalk();
Symbol 729 MovieClip Frame 4
manachargewalk();
Symbol 729 MovieClip Frame 5
manachargewalk();
Symbol 729 MovieClip Frame 6
manachargewalk();
Symbol 729 MovieClip Frame 7
manachargewalk();
Symbol 729 MovieClip Frame 8
manachargewalk();
Symbol 729 MovieClip Frame 9
manachargewalk();
Symbol 729 MovieClip Frame 10
manachargewalk();
Symbol 729 MovieClip Frame 11
manachargewalk();
Symbol 729 MovieClip Frame 12
manachargewalk();
Symbol 729 MovieClip Frame 13
manachargewalk();
Symbol 729 MovieClip Frame 14
manachargewalk();
Symbol 729 MovieClip Frame 15
manachargewalk();
Symbol 729 MovieClip Frame 16
manachargewalk();
Symbol 729 MovieClip Frame 17
manachargewalk();
Symbol 729 MovieClip Frame 18
manachargewalk();
Symbol 729 MovieClip Frame 19
manachargewalk();
Symbol 729 MovieClip Frame 20
manachargewalk();
Symbol 729 MovieClip Frame 21
manachargewalk();
Symbol 729 MovieClip Frame 22
manachargewalk();
Symbol 729 MovieClip Frame 23
manachargewalk();
Symbol 729 MovieClip Frame 24
manachargewalk();
Symbol 729 MovieClip Frame 25
manachargewalk();
Symbol 729 MovieClip Frame 26
manachargewalk();
Symbol 729 MovieClip Frame 27
manachargewalk();
Symbol 729 MovieClip Frame 28
manachargewalk();
Symbol 729 MovieClip Frame 29
manachargewalk();
Symbol 730 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
Symbol 735 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
head2._visible = false;
}
};
Instance of Symbol 562 MovieClip "head" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Instance of Symbol 564 MovieClip "head2" in Symbol 735 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Symbol 745 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 769 MovieClip Frame 25
Symbol 776 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 776 MovieClip Frame 12
Symbol 777 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 777 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 781 MovieClip Frame 1
function manadrainhigh() {
_global.Player_mana = Number(_global.Player_mana) - Number(0.36);
}
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
manadrainhigh();
Symbol 781 MovieClip Frame 2
manadrainhigh();
Symbol 781 MovieClip Frame 3
manadrainhigh();
Symbol 781 MovieClip Frame 4
manadrainhigh();
Symbol 781 MovieClip Frame 5
manadrainhigh();
Symbol 781 MovieClip Frame 6
manadrainhigh();
Symbol 781 MovieClip Frame 7
manadrainhigh();
Symbol 781 MovieClip Frame 8
manadrainhigh();
Symbol 781 MovieClip Frame 9
manadrainhigh();
Symbol 781 MovieClip Frame 10
manadrainhigh();
Symbol 781 MovieClip Frame 11
manadrainhigh();
Symbol 781 MovieClip Frame 12
manadrainhigh();
Symbol 781 MovieClip Frame 13
manadrainhigh();
Symbol 781 MovieClip Frame 14
manadrainhigh();
Symbol 781 MovieClip Frame 15
manadrainhigh();
Symbol 781 MovieClip Frame 16
manadrainhigh();
Symbol 781 MovieClip Frame 17
manadrainhigh();
Symbol 781 MovieClip Frame 18
manadrainhigh();
Symbol 781 MovieClip Frame 19
manadrainhigh();
Symbol 781 MovieClip Frame 20
manadrainhigh();
Symbol 781 MovieClip Frame 21
manadrainhigh();
Symbol 781 MovieClip Frame 22
manadrainhigh();
Symbol 781 MovieClip Frame 23
manadrainhigh();
Symbol 781 MovieClip Frame 24
manadrainhigh();
Symbol 781 MovieClip Frame 25
manadrainhigh();
Symbol 781 MovieClip Frame 26
manadrainhigh();
Symbol 781 MovieClip Frame 27
manadrainhigh();
Symbol 781 MovieClip Frame 28
manadrainhigh();
Symbol 781 MovieClip Frame 29
manadrainhigh();
Symbol 781 MovieClip Frame 30
manadrainhigh();
Symbol 781 MovieClip Frame 31
manadrainhigh();
Symbol 781 MovieClip Frame 32
manadrainhigh();
Symbol 781 MovieClip Frame 33
manadrainhigh();
Symbol 781 MovieClip Frame 34
manadrainhigh();
Symbol 781 MovieClip Frame 35
manadrainhigh();
Symbol 781 MovieClip Frame 36
manadrainhigh();
Symbol 781 MovieClip Frame 37
manadrainhigh();
Symbol 781 MovieClip Frame 38
manadrainhigh();
Symbol 781 MovieClip Frame 39
manadrainhigh();
Symbol 781 MovieClip Frame 40
manadrainhigh();
Symbol 781 MovieClip Frame 41
manadrainhigh();
Symbol 781 MovieClip Frame 42
manadrainhigh();
Symbol 781 MovieClip Frame 43
manadrainhigh();
Symbol 781 MovieClip Frame 44
manadrainhigh();
Symbol 781 MovieClip Frame 45
manadrainhigh();
Symbol 781 MovieClip Frame 46
manadrainhigh();
Symbol 781 MovieClip Frame 47
manadrainhigh();
Symbol 781 MovieClip Frame 48
manadrainhigh();
Symbol 781 MovieClip Frame 49
manadrainhigh();
Symbol 781 MovieClip Frame 50
manadrainhigh();
Symbol 783 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
head2._visible = false;
}
};
Instance of Symbol 562 MovieClip "head" in Symbol 783 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Instance of Symbol 564 MovieClip "head2" in Symbol 783 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Symbol 783 MovieClip Frame 13
Symbol 792 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 810 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
}
};
Symbol 816 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 816 MovieClip Frame 13
Symbol 817 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 817 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 819 MovieClip Frame 1
function manadrainmid() {
_global.Player_mana = Number(_global.Player_mana) - Number(0.238);
}
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
manadrainmid();
Symbol 819 MovieClip Frame 2
manadrainmid();
Symbol 819 MovieClip Frame 3
manadrainmid();
Symbol 819 MovieClip Frame 4
manadrainmid();
Symbol 819 MovieClip Frame 5
manadrainmid();
Symbol 819 MovieClip Frame 6
manadrainmid();
Symbol 819 MovieClip Frame 7
manadrainmid();
Symbol 819 MovieClip Frame 8
manadrainmid();
Symbol 819 MovieClip Frame 9
manadrainmid();
Symbol 819 MovieClip Frame 10
manadrainmid();
Symbol 819 MovieClip Frame 11
manadrainmid();
Symbol 819 MovieClip Frame 12
manadrainmid();
Symbol 819 MovieClip Frame 13
manadrainmid();
Symbol 819 MovieClip Frame 14
manadrainmid();
Symbol 819 MovieClip Frame 15
manadrainmid();
Symbol 819 MovieClip Frame 16
manadrainmid();
Symbol 819 MovieClip Frame 17
manadrainmid();
Symbol 819 MovieClip Frame 18
manadrainmid();
Symbol 819 MovieClip Frame 19
manadrainmid();
Symbol 819 MovieClip Frame 20
manadrainmid();
Symbol 819 MovieClip Frame 21
manadrainmid();
Symbol 819 MovieClip Frame 22
manadrainmid();
Symbol 819 MovieClip Frame 23
manadrainmid();
Symbol 819 MovieClip Frame 24
manadrainmid();
Symbol 819 MovieClip Frame 25
manadrainmid();
Symbol 819 MovieClip Frame 26
manadrainmid();
Symbol 819 MovieClip Frame 27
manadrainmid();
Symbol 819 MovieClip Frame 28
manadrainmid();
Symbol 819 MovieClip Frame 29
manadrainmid();
Symbol 819 MovieClip Frame 30
manadrainmid();
Symbol 819 MovieClip Frame 31
manadrainmid();
Symbol 819 MovieClip Frame 32
manadrainmid();
Symbol 819 MovieClip Frame 33
manadrainmid();
Symbol 819 MovieClip Frame 34
manadrainmid();
Symbol 819 MovieClip Frame 35
manadrainmid();
Symbol 819 MovieClip Frame 36
manadrainmid();
Symbol 819 MovieClip Frame 37
manadrainmid();
Symbol 819 MovieClip Frame 38
manadrainmid();
Symbol 819 MovieClip Frame 39
manadrainmid();
Symbol 819 MovieClip Frame 40
manadrainmid();
Symbol 819 MovieClip Frame 41
manadrainmid();
Symbol 819 MovieClip Frame 42
manadrainmid();
Symbol 824 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
head2._visible = false;
}
};
Instance of Symbol 562 MovieClip "head" in Symbol 824 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Instance of Symbol 564 MovieClip "head2" in Symbol 824 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Symbol 824 MovieClip Frame 14
Symbol 829 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 846 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 846 MovieClip Frame 14
Symbol 847 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 847 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 849 MovieClip Frame 1
function manadrainlow() {
_global.Player_mana = Number(_global.Player_mana) - Number(0.119);
}
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
manadrainlow();
Symbol 849 MovieClip Frame 2
manadrainlow();
Symbol 849 MovieClip Frame 3
manadrainlow();
Symbol 849 MovieClip Frame 4
manadrainlow();
Symbol 849 MovieClip Frame 5
manadrainlow();
Symbol 849 MovieClip Frame 6
manadrainlow();
Symbol 849 MovieClip Frame 7
manadrainlow();
Symbol 849 MovieClip Frame 8
manadrainlow();
Symbol 849 MovieClip Frame 9
manadrainlow();
Symbol 849 MovieClip Frame 10
manadrainlow();
Symbol 849 MovieClip Frame 11
manadrainlow();
Symbol 849 MovieClip Frame 12
manadrainlow();
Symbol 849 MovieClip Frame 13
manadrainlow();
Symbol 849 MovieClip Frame 14
manadrainlow();
Symbol 849 MovieClip Frame 15
manadrainlow();
Symbol 849 MovieClip Frame 16
manadrainlow();
Symbol 849 MovieClip Frame 17
manadrainlow();
Symbol 849 MovieClip Frame 18
manadrainlow();
Symbol 849 MovieClip Frame 19
manadrainlow();
Symbol 849 MovieClip Frame 20
manadrainlow();
Symbol 849 MovieClip Frame 21
manadrainlow();
Symbol 849 MovieClip Frame 22
manadrainlow();
Symbol 849 MovieClip Frame 23
manadrainlow();
Symbol 849 MovieClip Frame 24
manadrainlow();
Symbol 849 MovieClip Frame 25
manadrainlow();
Symbol 849 MovieClip Frame 26
manadrainlow();
Symbol 849 MovieClip Frame 27
manadrainlow();
Symbol 849 MovieClip Frame 28
manadrainlow();
Symbol 849 MovieClip Frame 29
manadrainlow();
Symbol 849 MovieClip Frame 30
manadrainlow();
Symbol 849 MovieClip Frame 31
manadrainlow();
Symbol 850 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
head2._visible = false;
}
};
Instance of Symbol 562 MovieClip "head" in Symbol 850 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Instance of Symbol 564 MovieClip "head2" in Symbol 850 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Symbol 850 MovieClip Frame 13
Symbol 859 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 883 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 883 MovieClip Frame 13
Symbol 884 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 884 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 886 MovieClip Frame 1
function manadrainattraction() {
_global.Player_mana = Number(_global.Player_mana) - Number(0.28);
}
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
manadrainattraction();
Symbol 886 MovieClip Frame 2
manadrainattraction();
Symbol 886 MovieClip Frame 3
manadrainattraction();
Symbol 886 MovieClip Frame 4
manadrainattraction();
Symbol 886 MovieClip Frame 5
manadrainattraction();
Symbol 886 MovieClip Frame 6
manadrainattraction();
Symbol 886 MovieClip Frame 7
manadrainattraction();
Symbol 886 MovieClip Frame 8
manadrainattraction();
Symbol 886 MovieClip Frame 9
manadrainattraction();
Symbol 886 MovieClip Frame 10
manadrainattraction();
Symbol 886 MovieClip Frame 11
manadrainattraction();
Symbol 886 MovieClip Frame 12
manadrainattraction();
Symbol 886 MovieClip Frame 13
manadrainattraction();
Symbol 886 MovieClip Frame 14
manadrainattraction();
Symbol 886 MovieClip Frame 15
manadrainattraction();
Symbol 886 MovieClip Frame 16
manadrainattraction();
Symbol 886 MovieClip Frame 17
manadrainattraction();
Symbol 886 MovieClip Frame 18
manadrainattraction();
Symbol 886 MovieClip Frame 19
manadrainattraction();
Symbol 886 MovieClip Frame 20
manadrainattraction();
Symbol 886 MovieClip Frame 21
manadrainattraction();
Symbol 886 MovieClip Frame 22
manadrainattraction();
Symbol 886 MovieClip Frame 23
manadrainattraction();
Symbol 886 MovieClip Frame 24
manadrainattraction();
Symbol 886 MovieClip Frame 25
manadrainattraction();
Symbol 886 MovieClip Frame 26
manadrainattraction();
Symbol 886 MovieClip Frame 27
manadrainattraction();
Symbol 886 MovieClip Frame 28
manadrainattraction();
Symbol 886 MovieClip Frame 29
manadrainattraction();
Symbol 886 MovieClip Frame 30
manadrainattraction();
Symbol 886 MovieClip Frame 31
manadrainattraction();
Symbol 886 MovieClip Frame 32
manadrainattraction();
Symbol 886 MovieClip Frame 33
manadrainattraction();
Symbol 886 MovieClip Frame 34
manadrainattraction();
Symbol 886 MovieClip Frame 35
manadrainattraction();
Symbol 886 MovieClip Frame 36
manadrainattraction();
Symbol 886 MovieClip Frame 37
manadrainattraction();
Symbol 886 MovieClip Frame 38
manadrainattraction();
Symbol 886 MovieClip Frame 39
manadrainattraction();
Symbol 886 MovieClip Frame 40
manadrainattraction();
Symbol 886 MovieClip Frame 41
manadrainattraction();
Symbol 886 MovieClip Frame 42
manadrainattraction();
Symbol 887 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
head2._visible = false;
}
};
Instance of Symbol 562 MovieClip "head" in Symbol 887 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Instance of Symbol 564 MovieClip "head2" in Symbol 887 MovieClip Frame 1
onClipEvent (load) {
if (!_root.GLOBAL_PLAYERHEAD) {
_visible = false;
}
}
Symbol 887 MovieClip Frame 15
Symbol 894 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 914 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 914 MovieClip Frame 15
Symbol 915 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 915 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 917 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
Symbol 918 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 918 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 920 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
Symbol 922 MovieClip Frame 1
stop();
Symbol 923 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
head2._visible = false;
}
};
Symbol 925 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 932 MovieClip Frame 5
Symbol 946 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 946 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 946 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 946 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 948 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 948 MovieClip Frame 5
Symbol 949 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 949 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 950 MovieClip Frame 63
this.gotoAndPlay("loop");
Symbol 951 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_SKIN_CLASS);
Symbol 952 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
head2._visible = false;
}
};
Symbol 952 MovieClip Frame 14
stop();
Symbol 958 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 958 MovieClip Frame 15
stop();
Symbol 959 MovieClip Frame 13
stop();
Symbol 960 MovieClip Frame 10
stop();
Symbol 961 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.GLOBAL_PLAYERHEAD) {
head._visible = false;
}
};
Symbol 961 MovieClip Frame 20
stop();
Symbol 962 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 962 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 995 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 998 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 6
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 7
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 8
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 9
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1001 MovieClip Frame 10
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1005 MovieClip Frame 1
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1005 MovieClip Frame 2
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1005 MovieClip Frame 3
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1005 MovieClip Frame 4
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1005 MovieClip Frame 5
gotoAndStop(_root.GLOBAL_PLAYERGRAPHIC);
Symbol 1006 MovieClip [mcPlayer] Frame 1
stop();
nextFrame();
Symbol 1006 MovieClip [mcPlayer] Frame 2
s_idle = 1;
s_moving = 0;
s_attacking = 0;
s_hit = 0;
s_animbusy = 0;
s_vx = 0;
s_decidedanim = "idle";
Symbol 1006 MovieClip [mcPlayer] Frame 8
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 9
s_idle = 0;
s_moving = 3.45;
s_attacking = 0;
s_hit = 0;
s_animbusy = 0;
s_decidedanim = "walk";
Symbol 1006 MovieClip [mcPlayer] Frame 16
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 17
s_idle = 0;
s_moving = 8;
s_attacking = 0;
s_hit = 0;
s_animbusy = 0;
s_decidedanim = "run";
Symbol 1006 MovieClip [mcPlayer] Frame 23
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 24
s_animbusy = 1;
s_decidedanim = "turn";
Symbol 1006 MovieClip [mcPlayer] Frame 30
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 31
if (_global.Player_mana >= Number(16)) {
s_idle = 0;
s_moving = 0;
s_attacking = 1;
s_hit = 0;
s_animbusy = 1;
s_atktype = 2;
s_decidedanim = "atkh";
} else {
gotoAndStop ("weak");
}
Symbol 1006 MovieClip [mcPlayer] Frame 38
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 39
if (_global.Player_mana >= Number(10)) {
s_idle = 0;
s_moving = 0;
s_attacking = 1;
s_hit = 0;
s_animbusy = 1;
s_atktype = 1;
s_decidedanim = "atkm";
} else {
gotoAndStop ("weak");
}
Symbol 1006 MovieClip [mcPlayer] Frame 46
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 47
if (_global.Player_mana >= Number(5)) {
s_idle = 0;
s_moving = 0;
s_attacking = 1;
s_hit = 0;
s_animbusy = 1;
s_atktype = 0;
s_decidedanim = "atkl";
} else {
gotoAndStop ("weak");
}
Symbol 1006 MovieClip [mcPlayer] Frame 53
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 55
if (_global.Player_mana >= Number(12)) {
s_idle = 0;
s_moving = 0;
s_attacking = 1;
s_hit = 0;
s_animbusy = 1;
s_atktype = 4;
s_decidedanim = "atkp";
} else {
gotoAndStop ("weak");
}
Symbol 1006 MovieClip [mcPlayer] Frame 61
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 62
s_idle = 0;
s_moving = 0;
s_attacking = 0;
s_hit = 0;
s_animbusy = 1;
s_decidedanim = "weak";
Symbol 1006 MovieClip [mcPlayer] Frame 68
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 69
s_idle = 0;
s_moving = 0;
s_attacking = 0;
s_hit = 1;
s_animbusy = 1;
s_vx = 6;
s_decidedanim = "hith";
Symbol 1006 MovieClip [mcPlayer] Frame 75
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 76
s_idle = 0;
s_moving = 0;
s_attacking = 0;
s_hit = 1;
s_animbusy = 1;
s_vx = 4;
s_decidedanim = "hitm";
Symbol 1006 MovieClip [mcPlayer] Frame 82
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 83
s_idle = 0;
s_moving = 0;
s_attacking = 0;
s_hit = 1;
s_animbusy = 1;
s_vx = 2;
s_decidedanim = "hitl";
Symbol 1006 MovieClip [mcPlayer] Frame 89
gotoAndStop ("idle");
Symbol 1006 MovieClip [mcPlayer] Frame 90
s_idle = 0;
s_moving = 0;
s_attacking = 0;
s_hit = 1;
s_animbusy = 1;
s_vx = 0;
s_decidedanim = "death";
Symbol 1006 MovieClip [mcPlayer] Frame 103
s_idle = 0;
s_moving = 0;
s_attacking = 0;
s_hit = 1;
s_animbusy = 1;
hp = 0;
s_decidedanim = "dead";
Symbol 1006 MovieClip [mcPlayer] Frame 108
stop();
Symbol 1006 MovieClip [mcPlayer] Frame 110
s_decidedanim = "blank";
Symbol 1006 MovieClip [mcPlayer] Frame 114
gotoAndStop ("blank");
Symbol 1013 Button
on (release) {
gotoAndPlay ("viewupdates");
gamedata.data.NEWS = "0";
}
Symbol 1015 Button
on (release) {
gotoAndPlay ("bestiary");
}
Symbol 1024 Button
on (release) {
gotoAndPlay ("credits");
}
Symbol 1025 Button
on (release) {
gotoAndPlay ("settings");
}
Symbol 1026 Button
on (release) {
gotoAndPlay ("achievements");
}
Symbol 1027 Button
on (press) {
gotoAndPlay ("howtoplay");
}
Symbol 1028 Button
on (release) {
gotoAndPlay ("default");
}
Symbol 1029 Button
on (press) {
gotoAndPlay ("customize");
}
Symbol 1033 Button
on (press) {
if (_global.Player_SKIN_number <= "2") {
_global.Player_SKIN_number = Number(_global.Player_SKIN_number) + Number(1);
}
skinupdate();
}
Symbol 1034 Button
on (press) {
if (_global.Player_SKIN_number >= "2") {
_global.Player_SKIN_number = Number(_global.Player_SKIN_number) - Number(1);
}
skinupdate();
}
Symbol 1036 Button
on (press) {
gotoAndPlay ("mainmenu");
skinupdate();
hatupdate();
gamedata.data.Player_Gender = _global.Player_Gender;
gamedata.data.Player_SKIN = _global.Player_SKIN;
gamedata.data.Player_HAT = _global.Player_HAT;
gamedata.data.Player_SKIN_number = _global.Player_SKIN_number;
gamedata.data.Player_HAT_number = _global.Player_HAT_number;
trace("===Saved Updated===");
trace("PlayerGender: " + gamedata.data.Player_Gender);
trace("PlayerSkin: " + gamedata.data.Player_SKIN);
trace("PlayerHat: " + gamedata.data.Player_HAT);
trace("===End of Changes===");
}
Symbol 1037 Button
on (press) {
_global.Player_Gender = "herm";
}
Symbol 1038 Button
on (press) {
_global.Player_Gender = "male";
}
Symbol 1039 Button
on (press) {
_global.Player_Gender = "female";
}
Symbol 1041 Button
on (press) {
if (_global.Player_HAT_number <= "5") {
_global.Player_HAT_number = Number(_global.Player_HAT_number) + Number(1);
}
hatupdate();
}
Symbol 1042 Button
on (press) {
if (_global.Player_HAT_number >= "2") {
_global.Player_HAT_number = Number(_global.Player_HAT_number) - Number(1);
}
hatupdate();
}
Symbol 1048 Button
on (press) {
gotoAndPlay ("mainmenu");
gamedata.data.Player_ShowDirtyBits = _global.Player_ShowDirtyBits;
gamedata.data.Player_MatingSex = _global.Player_MatingSex;
gamedata.data.Option_CockVore = _global.Option_CockVore;
gamedata.data.Option_UnBirthVore = _global.Option_UnBirthVore;
gamedata.data.Option_AnalVore = _global.Option_AnalVore;
gamedata.data.Option_Gore = _global.Option_Gore;
gamedata.data.Option_Scat = _global.Option_Scat;
gamedata.data.Option_Cheats = _global.Option_Cheats;
trace("===Saved Updated===");
trace("PlayerShowDirtyBits: " + gamedata.data.Player_ShowDirtyBits);
trace("Player Mating & Sex: " + gamedata.data.Player_MatingSex);
trace("Option Cock Vore: " + gamedata.data.Option_CockVore);
trace("Option Unbirth Vore: " + gamedata.data.Option_UnBirthVore);
trace("Option Anal Vore: " + gamedata.data.Option_AnalVore);
trace("Option Gore: " + gamedata.data.Option_Gore);
trace("Option Scat: " + gamedata.data.Option_Scat);
trace("Cheats?: " + gamedata.data.Option_Cheats);
trace("===End of Changes===");
}