Frame 1
var MochiAd = {showPreloaderAd:function (options) {
var _local29 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = MochiAd._parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = 11000;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
return(undefined);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = MochiAd._getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}, showTimedAd:function (options) {
var _local15 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = MochiAd._parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = 11000;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
return(undefined);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = MochiAd._getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
MochiAd._allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local1 = MochiAd._loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local1 = MochiAd._loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local7 = options.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = MochiAd._getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = MochiAd._allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}, unload:function (clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}, _:null};
if (((this._url.indexOf("http://www.addictinggames.com") != 0) and (this._url.indexOf("http://agstage.shockwave.com") != 0)) and (this._url.indexOf("http://farm.addictinggames.com") != 0)) {
MochiAd.showPreloaderAd({id:"57d254277e31e307", res:"740x500"});
} else {
stop();
this.createTextField("my_txt", 1, 0, 200, 500, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
var my_fmt = new TextFormat();
my_fmt.color = 16777215 /* 0xFFFFFF */;
my_fmt.align = "center";
my_fmt.bold = true;
my_fmt.font = "Arial";
my_txt.text = "Loading";
my_txt.setTextFormat(my_fmt);
this.onEnterFrame = function () {
if (this.getBytesLoaded() >= this.getBytesTotal()) {
my_txt.removeTextField();
delete onEnterFrame;
gotoAndStop (2);
}
};
}
_root.kongregateServices.connect();
Frame 2
stop();
Frame 3
function SaveGame(Slot, Name) {
var _local1;
Saved.data.Slots[Slot] = {Name:Name};
Saved.data.Slots[Slot].LastSubmitted = LastSubmitted;
Saved.data.Slots[Slot].CurrLevel = CurrLevel;
Saved.data.Slots[Slot].Score = Score;
Saved.data.Slots[Slot].Money = Money;
Saved.data.Slots[Slot].Experience = Experience;
Saved.data.Slots[Slot].YourItems = new Array();
for (_local1 in YourItems) {
Saved.data.Slots[Slot].YourItems[_local1] = YourItems[_local1];
}
Saved.data.Slots[Slot].Character = new Object();
for (_local1 in Characters[1]) {
if (typeof(Characters[1][_local1]) != "object") {
Saved.data.Slots[Slot].Character[_local1] = Characters[1][_local1];
}
}
Saved.flush();
}
function LoadGame(Slot) {
var _local1;
var _local3;
CurrLevel = Saved.data.Slots[Slot].CurrLevel;
Score = Saved.data.Slots[Slot].Score;
Money = Saved.data.Slots[Slot].Money;
Experience = Saved.data.Slots[Slot].Experience;
YourItems = new Array();
for (_local1 in Saved.data.Slots[Slot].YourItems) {
YourItems[_local1] = Saved.data.Slots[Slot].YourItems[_local1];
}
ShopItems = new Array();
_local1 = 1;
while (_local1 <= 13) {
Found = false;
for (_local3 in YourItems) {
if (YourItems[_local3] == _local1) {
Found = true;
break;
}
}
if (!Found) {
ShopItems.push(_local1);
}
_local1++;
}
Characters[1] = new Object();
for (_local1 in Saved.data.Slots[Slot].Character) {
Characters[1][_local1] = Saved.data.Slots[Slot].Character[_local1];
}
}
function GenerateAnim(Char) {
Char.Anim = new Object();
Char.Anim.Head = Char.Head;
Char.Anim.Body = Char.Body;
Char.Anim.UpperArm1 = (Char.Anim.UpperArm2 = Char.UpperArm);
Char.Anim.LowerArm1 = (Char.Anim.LowerArm2 = Char.LowerArm);
Char.Anim.UpperLeg1 = (Char.Anim.UpperLeg2 = Char.UpperLeg);
Char.Anim.LowerLeg1 = (Char.Anim.LowerLeg2 = Char.LowerLeg);
Char.Anim.Foot1 = (Char.Anim.Foot2 = Char.Foot);
Char.Anim.Hand1 = (Char.Anim.Hand2 = Char.Hand);
Char.Anim.Sword = Char.Sword;
Char.Anim.Neck = Char.Neck;
}
Language = 0;
stop();
SoundOn = true;
SoundControl = new Sound(this);
Text = [["Stamina", "Aguante", "\u0421\u0438\u043B\u0430"], ["Magic", "Magia", "\u041C\u0430\u0433\u0438\u044F"], ["Health", "Salud", "\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435"], ["Stamina Recovery", "Recuperaci\u00F3n del Aguante", "\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0438\u043B\u044B"], ["Max Stamina", "M\u00E1ximo Aguante", "\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0441\u0438\u043B\u0430"], ["Hit Damage", "Poder de Golpe", "\u0421\u0438\u043B\u0430 \u0443\u0434\u0430\u0440\u0430"], ["Avoid Hit", "Evitar Golpe", "\u0423\u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043E\u0442 \u0443\u0434\u0430\u0440\u0430"], ["Healing Efficiency", "Efectividad de Curaci\u00F3n", "\u042D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u043B\u0435\u0447\u0435\u043D\u0438\u044F"], ["Auto Self Healing", "Curaci\u00F3n Propia Autom\u00E1tica", "\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u0430\u043C\u043E\u043B\u0435\u0447\u0435\u043D\u0438\u0435"], ["Max HP", "M\u00E1xima Salud", "\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435"], ["Magic Recovery", "Recuperaci\u00F3n de la Magia", "\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u043C\u0430\u0433\u0438\u0438"], ["Max Magic", "M\u00E1xima Magia", "\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u043C\u0430\u0433\u0438\u044F"], ["Magic Attack Damage", "Poder de Ataque M\u00E1gico", "\u0421\u0438\u043B\u0430 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u0442\u0430\u043A\u0438"], ["Spell/Curse Power", "Poder de Hechizo/Maldici\u00F3n", "\u0421\u0438\u043B\u0430 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0439/\u043F\u0440\u043E\u043A\u043B\u044F\u0442\u0438\u0439"], ["Spell/Curse Duration", "Duraci\u00F3n de Hechizo/Maldici\u00F3n", "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0439/\u043F\u0440\u043E\u043A\u043B\u044F\u0442\u0438\u0439"], ["Avoid Magic Attack", "Evitar Ataque M\u00E1gico", "\u0423\u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043E\u0442 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u0442\u0430\u043A\u0438"], ["Avoid Curse", "Evitar Maldici\u00F3n", "\u0423\u0439\u0442\u0438 \u043E\u0442 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u044F"], ["Hit", "Golpe", "\u0423\u0434\u0430\u0440"], ["Magic Attack", "Ataque M\u00E1gico", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0430\u0442\u0430\u043A\u0430"], ["Spell", "Hechizo", "\u0417\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0435"], ["Curse", "Maldici\u00F3n", "\u041F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u0435"], ["Heal", "Curaci\u00F3n", "\u041B\u0435\u0447\u0435\u043D\u0438\u0435"], ["Requires", "Requiere", "\u0422\u0440\u0435\u0431\u0443\u0435\u0442"], ["Physical Damage", "Da\u00F1o F\u00EDsico", "\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0443\u0449\u0435\u0440\u0431"], ["Player", "Jugador", "\u0418\u0433\u0440\u043E\u043A"], ["Enemy", "Enemigo", "\u0412\u0440\u0430\u0433"], ["Duration", "Duraci\u00F3n", "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C"], ["turns", "turnos", "\u0445\u043E\u0434\u043E\u0432"], ["Physical Defense", "Defensa F\u00EDsica", "\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430"], ["Magic Defense", "Defensa M\u00E1gica", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430"], ["More Info", "M\u00E1s Info", "\u0414\u043E\u043F. \u0418\u043D\u0444\u043E."], ["Spells", "Hechizos", "\u0417\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u044F"], ["Curses", "Maldiciones", "\u041F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u044F"], ["per each turn", "por cada turno", "\u0437\u0430 \u043A\u0430\u0436\u0434\u044B\u0439 \u0445\u043E\u0434"], ["Discard", "Descartar", "\u0421\u0431\u0440. \u0444\u0438\u0448\u043A\u0443"], ["Options", "Opciones", "\u041E\u043F\u0446\u0438\u0438"], ["Turns Left", "Turnos Restantes", "\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u0445\u043E\u0434\u043E\u0432"], ["Magic Damage", "Da\u00F1o M\u00E1gico", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0443\u0449\u0435\u0440\u0431"], ["Removes the curse you choose", "Quita la maldici\u00F3n que elijas", "\u0423\u0431\u0435\u0440\u0430\u0435\u0442 \u043E\u0434\u043D\u043E \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u0435 \u043D\u0430 \u0432\u044B\u0431\u043E\u0440"], ["Click on a curse to remove it", "Haz click en una maldici\u00F3n para quitarla", "\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u043C\u044B\u0448\u043A\u043E\u0439 \u043D\u0430 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u0438, \u0447\u0442\u043E\u0431\u044B \u0443\u0431\u0440\u0430\u0442\u044C \u0435\u0433\u043E"], ["Removes the enemy's spell you choose", "Quita el hechizo del enemigo que elijas", "\u0423\u0431\u0438\u0440\u0430\u0435\u0442 \u043E\u0434\u043D\u043E \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u043E\u0435 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0435 \u043D\u0430 \u0432\u044B\u0431\u043E\u0440"], ["Click on an enemy spell to remove it", "Haz click en un hechizo del enemigo para quitarlo", "\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u043C\u044B\u0448\u043A\u043E\u0439 \u043D\u0430 \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u043E\u043C \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0438, \u0447\u0442\u043E\u0431\u044B \u0443\u0431\u0440\u0430\u0442\u044C \u0435\u0433\u043E"], ["Cancel", "Cancelar", "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"], ["Click on a tile to discard it", "Haz click en una ficha para descartarla", "\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u043C\u044B\u0448\u043A\u043E\u0439 \u043D\u0430 \u0444\u0438\u0448\u043A\u0435, \u0447\u0442\u043E\u0431\u044B \u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0435\u0435"], ["Removes all the curses", "Quita todas las maldiciones", "\u0423\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u044F"], ["Removes all enemy spells", "Quita todos los hechizos del enemigo", "\u0423\u0431\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u0438\u0435 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u044F"], ["Victory!", "\u00A1Victoria!", "\u041F\u043E\u0431\u0435\u0434\u0430!"], ["Defeat", "Derrota", "\u041F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435"], ["Improve Skills", "Mejorar Habilidades", "\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438"], ["ExP", "PEx", "\u0415\u041E\u043F"], ["Available ExP", "PEx Disponibles", "\u0415\u041E\u043F \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438"], ["Skill", "Habilidad", "\u0421\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C"], ["Current", "Actual", "\u0414\u0430\u043D\u043D\u0430\u044F"], ["Required", "Se Necesitan", "\u041D\u0443\u0436\u043D\u043E"], ["Increase", "Aumentar", "\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C"], ["To the Shop", "A la Tienda", "\u0412 \u043C\u0430\u0433\u0430\u0437\u0438\u043D"], ["Shop", "Tienda", "\u041C\u0430\u0433\u0430\u0437\u0438\u043D"], ["Money", "Dinero", "\u0414\u0435\u043D\u044C\u0433\u0438"], ["Improve Skills", "Mejorar Habilidades", "\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438"], ["Next Level", "Siguiente Nivel", "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C"], ["Upgrade Helmet", "Mejorar Casco", "\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C \u0448\u043B\u0435\u043C"], ["Upgrade Armor", "Mejorar Armadura", "\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C \u0434\u043E\u0441\u043F\u0435\u0445\u0438"], ["Upgrade Sword", "Mejorar Espada", "\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C \u043C\u0435\u0447"], ["Price", "Precio", "\u0426\u0435\u043D\u0430"], ["Upgrade", "Mejorar", "\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C"], ["No Money", "No Hay Dinero", "\u041D\u0435\u0442 \u0434\u0435\u043D\u0435\u0433"], ["Maximum level", "Nivel M\u00E1ximo", "\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C"], ["Your Items", "Sus Objetos", "\u0412\u0430\u0448\u0438 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B"], ["Buy Items", "Comprar Objetos", "\u041A\u0443\u043F\u0438\u0442\u044C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B"], ["Buy", "Comprar", "\u041A\u0443\u043F\u0438\u0442\u044C"], ["No Items Left", "No Hay Objetos", "\u0411\u043E\u043B\u044C\u0448\u0435 \u043D\u0438\u0447\u0435\u0433\u043E \u043D\u0435\u0442"], ["Score", "Puntuaci\u00F3n", "\u041E\u0447\u043A\u0438"], ["Resume Game", "Volver al Juego", "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u0438\u0433\u0440\u0443"], ["End Game", "Acabar el Juego", "\u0417\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0438\u0433\u0440\u0443"], ["Load Game", "Cargar Juego", "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0433\u0440\u0443"], ["Save Game", "Guardar Juego", "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0438\u0433\u0440\u0443"], ["Instructions", "Instrucciones", "\u0418\u043D\u0441\u0442\u0440\u0443\u043A\u0446\u0438\u0438"], ["Top Score", "Mejores Resultados", "\u0422\u0430\u0431\u043B\u0438\u0446\u0430 \u0440\u0435\u043A\u043E\u0440\u0434\u043E\u0432"], ["More Games", "M\u00E1s Juegos", "\u0415\u0449\u0435 \u0438\u0433\u0440\u044B"], ["Enter New Name", "Escribe un Nombre Nuevo", "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043D\u043E\u0432\u043E\u0435 \u0438\u043C\u044F"], ["Select Slot", "Escoge un Espacio", "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044F\u0447\u0435\u0439\u043A\u0443"], ["Cancel", "Cancelar", "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"], ["Empty Slot", "Espacio Vac\u00EDo", "\u041F\u0443\u0441\u0442\u0430\u044F \u044F\u0447\u0435\u0439\u043A\u0430"], ["Are you sure you want to load a saved game?", "\u00BFEst\u00E1s seguro de que quieres cargar un juego guardado?", "\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u043D\u0443\u044E \u0438\u0433\u0440\u0443?"], ["Yes", "S\u00ED", "\u0414\u0430"], ["No", "No", "\u041D\u0435\u0442"], ["Are you sure you want to abandon the game?", "\u00BFEst\u00E1s seguro de que quieres abandonar el juego?", "\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0432\u044B\u0439\u0442\u0438 \u0438\u0437 \u0438\u0433\u0440\u044B?"], ["Download", "Descargar", "\u0421\u043A\u0430\u0447\u0430\u0442\u044C"], ["New Game", "Empezar de Nuevo", "\u041D\u043E\u0432\u0430\u044F \u0438\u0433\u0440\u0430"], ["Sound", "Sonido", "\u0417\u0432\u0443\u043A"], ["Enter Name", "Escribe el Nombre", "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043C\u044F"], ["Your Character", "Tu Personaje", "\u0412\u0430\u0448 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u0436"], ["Select Profile", "Selecciona el Perfil", "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u041F\u0440\u043E\u0444\u0438\u043B\u044C"], ["Warrior", "Guerrero", "\u0412\u043E\u0438\u043D"], ["Shrewd", "Astuto", "\u041B\u043E\u0432\u043A\u0430\u0447"], ["Wizzard", "Mago", "\u041C\u0430\u0433"], ["Warrior possesses great physical power. Warrior is healthy and can cause serious physical damage. Warrior has little knowledge of magic. His magic attack is weak as well as his spells and curses", "El Guerrero posee gran poder f\u00EDsico. El Guerrero tiene mucha salud y puede causar mucho da\u00F1o f\u00EDsico. El Guerrero tiene pocos conocimientos de Magia. Su ataque m\u00E1gico es d\u00E9bil as\u00ED como sus hechizos y maldiciones", "\u0412\u043E\u0438\u043D \u043E\u0431\u043B\u0430\u0434\u0430\u0435\u0442 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0441\u0438\u043B\u043E\u0439 \u0438 \u043D\u0435\u0434\u044E\u0436\u0438\u043C \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435\u043C. \u0412\u043E\u0438\u043D \u0436\u0438\u0432\u0443\u0447 \u0438 \u043C\u043E\u0436\u0435\u0442 \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0441\u0435\u0440\u044C\u0435\u0437\u043D\u044B\u0439 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0443\u0449\u0435\u0440\u0431. \u0412\u043E\u0438\u043D \u043F\u043B\u043E\u0445\u043E \u0437\u043D\u0430\u043A\u043E\u043C \u0441 \u043C\u0430\u0433\u0438\u0435\u0439. \u0415\u0433\u043E \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0430\u0442\u0430\u043A\u0438, \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u044F \u0438 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u044F \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E\u0442 \u0436\u0435\u043B\u0430\u0442\u044C \u043B\u0443\u0447\u0448\u0435\u0433\u043E"], ["Shrewd is a mediocre warrior and magician, but he's good in medicines and has a good chance to avoid enemy's hits and magic attacks.", "El Astuto es un guerrero y mago mediocre, pero es bueno en medicina y tiene muchas probabilidades de evitar los golpes y los ataques m\u00E1gicos del enemigo.", "\u041B\u043E\u0432\u043A\u0430\u0447 - \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0432\u043E\u0438\u043D \u0438 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043C\u0430\u0433, \u043D\u043E \u043E\u043D \u0445\u043E\u0440\u043E\u0448 \u0432 \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0435 \u0438 \u0438\u043C\u0435\u0435\u0442 \u043D\u0435\u043F\u043B\u043E\u0445\u0438\u0435 \u0448\u0430\u043D\u0441\u044B \u0443\u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u043E\u0433\u043E \u0443\u0434\u0430\u0440\u0430 \u0438\u043B\u0438 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u0442\u0430\u043A\u0438."], ["Wizard is a great magician. His magic attacks, spells and curses are strong and last more. Wizard pays for these abilities with his physical powers. His health is bad and his sword doesn't cause much damage", "El Mago es bueno en magia. Sus ataques m\u00E1gicos, hechizos y maldiciones son fuertes y duran mucho. El Mago paga por estas habilidades con sus poderes f\u00EDsicos. Su salud es mala y su espada no causa mucho da\u00F1o.", "\u041C\u0430\u0433 \u0445\u043E\u0440\u043E\u0448\u043E \u0432\u043B\u0430\u0434\u0435\u0435\u0442 \u043C\u0430\u0433\u0438\u0435\u0439. \u0415\u0433\u043E \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0430\u0442\u0430\u043A\u0438, \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u044F \u0438 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u044F \u0441\u0438\u043B\u044C\u043D\u044B \u0438 \u0434\u0435\u0440\u0436\u0430\u0442\u0441\u044F \u0434\u043E\u043B\u0433\u043E. \u041C\u0430\u0433 \u043F\u043B\u0430\u0442\u0438\u0442 \u0437\u0430 \u044D\u0442\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u0441\u0432\u043E\u0435\u0439 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0441\u0438\u043B\u043E\u0439. \u0423 \u043D\u0435\u0433\u043E \u043F\u043B\u043E\u0445\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0438 \u0435\u0433\u043E \u043C\u0435\u0447\u044C \u043D\u0435 \u043D\u0430\u043D\u043E\u0441\u0438\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u0434\u0430."], ["Play", "Jugar", "\u0418\u0433\u0440\u0430\u0442\u044C"], ["Player", "Jugador", "\u0418\u0433\u0440\u043E\u043A"], ["You're Dead", "Est\u00E1s Muerto", "\u0412\u044B \u043C\u0435\u0440\u0442\u0432\u044B"], ["What would you like to do?", "\u00BFQu\u00E9 deseas hacer?", "\u0427\u0442\u043E \u0436\u0435\u043B\u0430\u0435\u0442\u0435 \u0434\u0435\u043B\u0430\u0442\u044C?"], ["Load Autosave", "Cargar Autosave", "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0441\u0435\u0439\u0432"], ["Submit Score", "Enviar Puntuaci\u00F3n", "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0447\u043A\u0438"], ["Your Score Is", "Tu Puntuaci\u00F3n Es", "\u0412\u0430\u0448\u0438 \u043E\u0447\u043A\u0438"], ["Congratulations! You have defeated Gorka and will be coronated as the new king of Laudruna. Hail to the king!!!", "Felicidades! Has vencido a Gorka y ser\u00E1s coronado como el nuevo rey de Laudruna. \u00A1Viva el rey!", "\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u0431\u0435\u0434\u0438\u043B\u0438 \u0413\u043E\u0440\u043A\u0443 \u0438 \u0431\u0443\u0434\u0435\u0442\u0435 \u043A\u043E\u0440\u043E\u043D\u043E\u0432\u0430\u043D\u044B, \u043A\u0430\u043A \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0440\u043E\u043B\u044C \u041B\u0430\u0443\u0434\u0440\u0443\u043D\u044B. \u0414\u0430 \u0437\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0435\u0442 \u041A\u043E\u0440\u043E\u043B\u044C!!!"], ["To Main Menu", "Al Menu Principal", "\u0412 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E"], ["*Note: You must be connected to the internet and allow pop-ups in order to save your score properly", "*Atenci\u00F3n: Tienes que estar conectado a internet y permetir pop-ups para enviar tu puntuaci\u00F3n correctamente", "*\u0412\u043D\u0438\u043C\u0430\u043D\u0438\u0435: \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u044B \u043A \u0438\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0443 \u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u043F\u043E\u043F-\u0430\u043F\u044B, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043E\u0447\u043A\u0438."], ["The following information has been sent to Sugar-Free-Games.com:", "La siguiente informaci\u00F3n ha sido enviada a Sugar-Free-Games.com:", "\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u0431\u044B\u043B\u0430 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430 \u043D\u0430 Sugar-Free-Games.com:"], ["Name", "Nombre", "\u0418\u043C\u044F"], ["Retry", "Reintentar", "\u0415\u0449\u0435 \u0440\u0430\u0437"], ["Done", "Finalizado", "\u0412\u0441\u0435"], ["If you could not see your name on the game's top score page opened in a new browser window, press \"RETRY\" to try again.", "Si no has visto tu nombre en la p\u00E1gina de los mejores resultados del juego en una ventana nueva del navegador, pulsa \"REINTENTAR\" para intentar de nuevo.", "\u0415\u0441\u043B\u0438 \u0412\u044B \u043D\u0435 \u0432\u0438\u0434\u0435\u0434\u0435\u043B\u0438 \u0412\u0430\u0448\u0435 \u0438\u043C\u044F \u0432 \u0442\u0430\u0431\u043B\u0438\u0446\u0435 \u0440\u0435\u043A\u043E\u0440\u0434\u043E\u0432 \u0438\u0433\u0440\u044B, \u043E\u0442\u043A\u0440\u044B\u0432\u0448\u0435\u0439\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u043C \u043E\u043A\u043D\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \"\u0415\u0429\u0415 \u0420\u0410\u0417\", \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u043E\u043F\u044F\u0442\u044C."], ["Created by Dmitry Zheltobriukhov for Sugar-Free-Games.com", "Creado por Dmitry Zheltobriukhov para Sugar-Free-Games.com", "\u0421\u043E\u0437\u0434\u0430\u043D\u043E \u0414\u043C\u0438\u0442\u0440\u0438\u0435\u043C \u0416\u0435\u043B\u0442\u043E\u0431\u0440\u044E\u0445\u043E\u0432\u044B\u043C \u0434\u043B\u044F Sugar-Free-Games.com"], ["Close", "Cerrar", "\u0417\u0430\u043A\u0440\u044B\u0442\u044C"], ["Is Defeated", "Est\u00E1 Vencido", "\u041F\u043E\u0431\u0435\u0436\u0434\u0435\u043D"], ["Continue", "Continuar", "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"], ["Is Defeated", "Est\u00E1 Vencida", "\u041F\u043E\u0431\u0435\u0436\u0434\u0435\u043D\u0430"], ["Quality", "Calidad", "\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E"], ["High", "Alta", "\u0412\u044B\u0441\u043E\u043A\u043E\u0435"], ["Medium", "Media", "\u0421\u0440\u0435\u0434\u043D\u0435\u0435"], ["Low", "Baja", "\u041D\u0438\u0437\u043A\u043E\u0435"]];
Instructions = ["Laudruna, once prosperous country now suffers under the evil rule of Gorka, the Shadow Lord. Gorka controls everything in Laudruna, but there\u2019s one sacred rule even he can\u2019t change: Any citizen of the country can argue Laudruna\u2019s throne in a death tournament against 13 best guardians of the king and the king himself. You are the one to dare. You have made your decision and it\u2019s too late to change your mind. You can either kill them all or die together with Laudruna\u2019s last hope.\r\rIn each combat of the tournament, the participants can use a number of moves. You will receive 7 move tiles. You can use one of them in each of your turns. Roll your mouse above a tile to see the move\u2019s description. Click on it to use it.\r\rYou will see your health meter in the left side panel next to stamina and magic meters. Stamina and magic are needed to make moves. If you don\u2019t have stamina or magic the move requires you cannot use this move.\r\rStamina and magic grow naturally in each turn and can be increased as a result of certain moves. If you can\u2019t or don\u2019t want to use any of your tiles, you can discard one and skip your turn. To do so, press \"Discard\" button left to your tiles and then click on the tile you want to discard.\r\rSome of your moves are long lasting spells or curses. They not only take affect in the turn when they are used, but remain for several turns. These spells and curses appear as small icons in your and your enemy\u2019s panels. Roll your mouse over them to see their descriptions. If you use a \"Remove Spell\"/\"Remove Curse\" move, you must click on one of these icons after you use the move.\r\rThe effects of each tile as well as your general performance depend on your skills and items. If you win a combat, you earn experience points and money you can use to improve your skills and to shop for items.", "Laudruna, anta\u00F1o un pa\u00EDs pr\u00F3spero, sufre ahora bajo el cruel gobierno de Gorka, el Se\u00F1or de las Sombras. Gorka controla todo en Laudruna, pero existe una regla sagrada que incluso \u00E9l no puede cambiar: cualquier ciudadano del pa\u00EDs puede disputar el trono de Laudruna en un torneo a muerte contra los 13 mejores guardianes del rey y el mismo rey. T\u00FA eres el que va a atreverse a hacerlo. Has tomado la decisi\u00F3n y es demasiado tarde para cambiar de opini\u00F3n. Puedes matarlos a todos o morir juntos con la \u00FAltima esperanza para Laudruna.\r\rEn cada combate del torneo los participantes pueden utilizar un n\u00FAmero de movimientos. Recibir\u00E1s 7 fichas de movimiento. Puedes utilizar una de ellas en cada uno de tus turnos. Mueve tu rat\u00F3n situ\u00E1ndolo encima de una ficha para ver la descripci\u00F3n del movimiento. Clica sobre la ficha para utilizarla.\r\rVer\u00E1s tu medidor de salud en el lado izquierdo del panel, al lado de los medidores de magia y aguante. El aguante y la magia son necesarios para realizar movimientos. Si no tienes el aguante o magia necesarios para el movimiento no podr\u00E1s utilizarlo.\r\rEl aguante y la magia crecen de forma natural en cada turno y pueden incrementarse como resultado de ciertos movimientos. Si no puedes o no quieres utilizar ninguna ficha puedes descartarla y saltar tu turno. Para hacerlo, presiona el bot\u00F3n \"Descartar\", situado a la izquierda de tus fichas y entonces clica en la ficha que quieras descartar.\r\rAlgunos de tus movimientos son hechizos o maldiciones duraderos que no s\u00F3lo tienen efecto en el turno en el que los utilizas sino que permanecen durante varios turnos. Estos hechizos y maldiciones aparecen como peque\u00F1os iconos tanto en tu panel como en los paneles de los enemigos. Mueve tu rat\u00F3n sobre ellos para ver sus descripciones. Si utilizas un movimiento de \"Quitar Hechizo\" o \"Quitar Maldici\u00F3n\", debes clicar en uno de estos iconos despu\u00E9s de utilizar el movimiento.\r\rLos efectos de cada ficha, as\u00ED como tu actuaci\u00F3n en general, dependen de tus habilidades y de los objetos. Si ganas un combate ganas puntos de experiencia y dinero que puedes utilizar para mejorar tus habilidades y comprar objetos.", "\u041D\u0435\u043A\u043E\u0433\u0434\u0430 \u043F\u0440\u043E\u0446\u0432\u0435\u0442\u0430\u0432\u0448\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0430 \u041B\u0430\u0443\u0434\u0440\u0443\u043D\u0430 \u0442\u0435\u043F\u0435\u0440\u044C \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0434 \u0433\u043D\u0451\u0442\u043E\u043C \u0437\u043B\u043E\u0433\u043E \u0412\u043B\u0430\u0441\u0442\u0438\u0442\u0435\u043B\u044F \u0442\u0435\u043D\u0435\u0439 \u0413\u043E\u0440\u043A\u0438. \u0413\u043E\u0440\u043A\u0430 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0451 \u0432 \u041B\u0430\u0443\u0434\u0440\u0443\u043D\u0435, \u043D\u043E \u0435\u0441\u0442\u044C \u043E\u0434\u0438\u043D \u0441\u0432\u044F\u0442\u043E\u0439 \u0437\u0430\u043A\u043E\u043D, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043E\u043D \u043D\u0435 \u0432 \u0441\u0438\u043B\u0430\u0445 \u043F\u043E\u043C\u0435\u043D\u044F\u0442\u044C: \u043A\u0430\u0436\u0434\u044B\u0439 \u0433\u0440\u0430\u0436\u0434\u0430\u043D\u0438\u043D \u041B\u0430\u0443\u0434\u0440\u0443\u043D\u044B \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u0435\u0442\u0435\u043D\u0434\u043E\u0432\u0430\u0442\u044C \u043D\u0430 \u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u043D, \u043F\u0440\u0438\u043D\u044F\u0432 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0422\u0443\u0440\u043D\u0438\u0440\u0435 \u0441\u043C\u0435\u0440\u0442\u0438, \u0433\u0434\u0435 \u043E\u043D \u0434\u043E\u043B\u0436\u0435\u043D \u043F\u043E\u0431\u0435\u0434\u0438\u0442\u044C 13 \u043B\u0443\u0447\u0448\u0438\u0445 \u0441\u0442\u0440\u0430\u0436\u0435\u0439 \u043A\u043E\u0440\u043E\u043B\u044F \u0438 \u0441\u0430\u043C\u043E\u0433\u043E \u043A\u043E\u0440\u043E\u043B\u044F. \u0412\u044B \u0440\u0435\u0448\u0438\u043B\u0438\u0441\u044C \u043D\u0430 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0438 \u043F\u0435\u0440\u0435\u0434\u0443\u043C\u0430\u0442\u044C \u0443\u0436\u0435 \u043D\u0435\u043B\u044C\u0437\u044F. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043B\u0438\u0431\u043E \u0443\u0431\u0438\u0442\u044C \u0438\u0445 \u0432\u0441\u0435\u0445, \u043B\u0438\u0431\u043E \u0443\u043C\u0435\u0440\u0435\u0442\u044C \u0432\u043C\u0435\u0441\u0442\u0435 \u0441 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0439 \u043D\u0430\u0434\u0435\u0436\u0434\u043E\u0439 \u041B\u0430\u0443\u0434\u0440\u0443\u043D\u044B.\r\r\u0412 \u043A\u0430\u0436\u0434\u043E\u043C \u043F\u043E\u0435\u0434\u0438\u043D\u043A\u0435 \u0442\u0443\u0440\u043D\u0438\u0440\u0430 \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u0438 \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043F\u0440\u0438\u0435\u043C\u043E\u0432. \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 7 \u0444\u0438\u0448\u0435\u043A, \u043A\u0430\u0436\u0434\u0430\u044F \u0438\u0437 \u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u043E\u0434\u0438\u043D \u043F\u0440\u0438\u0435\u043C. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043E\u0434\u043D\u0443 \u0444\u0438\u0448\u043A\u0443 \u0432 \u043A\u0430\u0436\u0434\u043E\u043C \u0445\u043E\u0434\u0443. \u041F\u043E\u0434\u0432\u0438\u043D\u044C\u0442\u0435 \u043A\u0443\u0440\u0441\u043E\u0440 \u043C\u044B\u0448\u043A\u0438 \u043D\u0430 \u0444\u0438\u0448\u043A\u0443, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u043F\u0440\u0438\u0435\u043C\u0430. \u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u0444\u0438\u0448\u043A\u0435, \u0447\u0442\u043E\u0431\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0435.\r\r\u0418\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440 \u0412\u0430\u0448\u0435\u0433\u043E \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 \u043B\u0435\u0432\u043E\u0439 \u043F\u0430\u043D\u0435\u043B\u0438 \u0440\u044F\u0434\u043E\u043C \u0441 \u0438\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440\u0430\u043C\u0438 \u0441\u0438\u043B\u044B \u0438 \u043C\u0430\u0433\u0438\u0438. \u0421\u0438\u043B\u0430 \u0438 \u043C\u0430\u0433\u0438\u044F \u043D\u0443\u0436\u043D\u044B, \u0447\u0442\u043E\u0431\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u0438\u0435\u043C\u044B. \u0415\u0441\u043B\u0438 \u043F\u0440\u0438\u0435\u043C \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0431\u043E\u043B\u044C\u0448\u0435 \u0441\u0438\u043B\u044B \u0438\u043B\u0438 \u043C\u0430\u0433\u0438\u0438, \u0447\u0435\u043C \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C, \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0435\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C.\r\r\u0421\u0438\u043B\u0430 \u0438 \u043C\u0430\u0433\u0438\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442\u0441\u044F \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u043C \u043E\u0431\u0440\u0430\u0437\u043E\u043C \u0432 \u043A\u0430\u0436\u0434\u043E\u043C \u0445\u043E\u0434\u0443 \u0438 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0438 \u043F\u043E\u043C\u043E\u0449\u0438 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u043F\u0440\u0438\u0435\u043C\u043E\u0432. \u0415\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043B\u0438 \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u043D\u0438 \u043E\u0434\u043D\u0443 \u0438\u0437 \u0432\u0430\u0448\u0438\u0445 \u0444\u0438\u0448\u0435\u043A, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043E\u0434\u043D\u0443 \u0438\u0437 \u043D\u0438\u0445 \u0438 \u043F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0445\u043E\u0434. \u0427\u0442\u043E\u0431\u044B \u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0444\u0438\u0449\u043A\u0443, \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443 \"\u0421\u0431\u0440. \u0424\u0438\u0448\u043A\u0443\" \u0438 \u043F\u043E\u0442\u043E\u043C \u0449\u0435\u043B\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u043D\u0443\u0436\u043D\u043E\u0439 \u0444\u0438\u0448\u043A\u0435.\r\r\u041D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0438\u0437 \u043F\u0440\u0438\u0435\u043C\u043E\u0432 \u2013 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u044F \u0438\u043B\u0438 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u044F. \u041E\u043D\u0438 \u043F\u0440\u043E\u044F\u0432\u043B\u044F\u044E\u0442 \u0441\u0432\u043E\u0438 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u043D\u0435 \u0442\u043E\u043B\u044C\u043A\u043E \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u0445\u043E\u0434\u0443, \u043D\u043E \u043E\u0441\u0442\u0430\u044E\u0442\u0441\u044F \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0445\u043E\u0434\u043E\u0432. \u042D\u0442\u0438 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u044F \u0438 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u044F \u043F\u043E\u044F\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0439 \u043F\u0430\u043D\u0435\u043B\u0438 \u0438 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u0438 \u0432\u0440\u0430\u0433\u0430, \u043A\u0430\u043A \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0435 \u0438\u043A\u043E\u043D\u043A\u0438. \u041F\u043E\u0434\u0432\u0438\u043D\u044C\u0442\u0435 \u043A\u0443\u0440\u0441\u043E\u0440 \u043C\u044B\u0448\u0438 \u043D\u0430 \u043B\u044E\u0431\u0443\u044E \u0438\u0437 \u043D\u0438\u0445, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u0435\u0435 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435. \u0415\u0441\u043B\u0438 \u0412\u044B \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0435 \u043F\u0440\u0438\u0435\u043C \"\u0423\u0431\u0440\u0430\u0442\u044C \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u0435\"/\"\u0423\u0431\u0440\u0430\u0442\u044C \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0435\", \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0449\u0435\u043B\u043A\u043D\u0443\u0442\u044C \u043D\u0430 \u043E\u0434\u043D\u043E\u0439 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0438\u043A\u043E\u043D\u043E\u043A \u043F\u043E\u0441\u043B\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0444\u0438\u0448\u043A\u0438.\r\r\u042D\u0444\u0444\u0435\u043A\u0442\u044B \u043A\u0430\u0436\u0434\u043E\u0439 \u0444\u0438\u0448\u043A\u0438, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0412\u0430\u0448\u0430 \u043E\u0431\u0449\u0430\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0437\u0430\u0432\u0438\u0441\u044F\u0442 \u043E\u0442 \u0412\u0430\u0448\u0438\u0445 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0435\u0439 \u0438 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432. \u0415\u0441\u043B\u0438 \u0432\u044B \u043F\u043E\u0431\u0435\u0436\u0434\u0430\u0435\u0442\u0435 \u0432 \u043F\u043E\u0435\u0434\u0438\u043D\u043A\u0435, \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0435\u0434\u0435\u043D\u0438\u0446\u044B \u043E\u043F\u044B\u0442\u0430 \u0438 \u0434\u0435\u043D\u044C\u0433\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u044B \u0434\u043B\u044F \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0435\u0439 \u0438 \u043F\u043E\u043A\u0443\u043F\u043A\u0438 \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u0432."];
EnemyNames = [undefined, ["Woodcutter", "Le\u00F1ador", "\u0414\u0440\u043E\u0432\u043E\u0441\u0435\u043A"], ["Aspirant", "Aspirante", "\u0410\u0441\u043F\u0438\u0440\u0430\u043D\u0442"], ["Barbara", "B\u00E1rbara", "\u0412\u0430\u0440\u0432\u0430\u0440\u0430"], ["Gnome", "Gnomo", "\u0413\u043D\u043E\u043C"], ["Troll", "Trol", "\u0422\u0440\u043E\u043B\u043B\u044C"], ["Goldie", "Goldie", "\u0413\u043E\u043B\u0434\u0438"], ["Skeleton", "Esqueleto", "\u0421\u043A\u0435\u043B\u0435\u0442"], ["Furrum", "Ferrum", "\u0424\u0435\u0440\u0440\u0443\u043C"], ["Satyr", "S\u00E1tiro", "\u0421\u0430\u0442\u0438\u0440"], ["Ghost", "Fantasma", "\u041F\u0440\u0438\u0437\u0440\u0430\u043A"], ["Blacky", "Negrita", "\u0411\u043B\u0435\u043A\u0438"], ["Ogre", "Ogro", "\u041E\u0433\u0440"], ["Flames", "Llamas", "\u041F\u043B\u0430\u043C\u044F"], ["Gorka", "Gorka", "\u0413\u043E\u0440\u043A\u0430"]];
ParRef = new Object();
ParRef.MagicDamage = (ParRef.PhysicalDamage = Text[23]);
ParRef.Stamina = Text[0];
ParRef.Mana = Text[1];
ParRef.HP = Text[2];
ParRef.StaminaRecovery = Text[3];
ParRef.MaxStamina = Text[4];
ParRef.HitDamage = Text[5];
ParRef.AvoidHit = Text[6];
ParRef.HealingEfficiency = Text[7];
ParRef.AutoSelfHealing = Text[8];
ParRef.MaxHP = Text[9];
ParRef.ManaRecovery = Text[10];
ParRef.MaxMana = Text[11];
ParRef.MagicAttackDamage = Text[12];
ParRef.SpellCursePower = Text[13];
ParRef.SpellCurseDuration = Text[14];
ParRef.AvoidMagicAttack = Text[15];
ParRef.AvoidCurse = Text[16];
ParRef.PhysicalDefense = Text[28];
ParRef.MagicDefense = Text[29];
ParRef.PhysicalDamage = Text[23];
ParRef.MagicDamage = Text[37];
ParRef.Price = Text[63];
Enemies = [undefined, {Neck:2, Head:7, Body:7, UpperArm:6, LowerArm:6, UpperLeg:5, LowerLeg:5, Foot:4, Hand:4, Sword:7, Scale:102, Name:"Enemy", StaminaRecovery:2, MaxStamina:100, HitDamage:4, AvoidHit:2, HealingEfficiency:4, AutoSelfHealing:0, MaxHP:100, ManaRecovery:1, MaxMana:70, MagicAttackDamage:2, SpellCursePower:1, SpellCurseDuration:2, AvoidMagicAttack:0, AvoidCurse:0, PhysicalDefense:0, MagicDefense:0, Ghost:false}, {Neck:3, Head:8, Body:8, UpperArm:7, LowerArm:7, UpperLeg:6, LowerLeg:6, Foot:5, Hand:5, Sword:1, Scale:100, Name:"Enemy 2", StaminaRecovery:2, MaxStamina:80, HitDamage:3, AvoidHit:10, HealingEfficiency:10, AutoSelfHealing:1, MaxHP:80, ManaRecovery:6, MaxMana:150, MagicAttackDamage:6, SpellCursePower:4, SpellCurseDuration:5, AvoidMagicAttack:10, AvoidCurse:5, PhysicalDefense:0, MagicDefense:5, Ghost:false}, {Neck:4, Head:9, Body:9, UpperArm:8, LowerArm:8, UpperLeg:7, LowerLeg:7, Foot:6, Hand:6, Sword:8, Scale:97, Name:"Enemy 3", StaminaRecovery:5, MaxStamina:100, HitDamage:9, AvoidHit:8, HealingEfficiency:6, AutoSelfHealing:0, MaxHP:110, ManaRecovery:4, MaxMana:120, MagicAttackDamage:5, SpellCursePower:4, SpellCurseDuration:3, AvoidMagicAttack:4, AvoidCurse:2, PhysicalDefense:0, MagicDefense:0, Ghost:false}, {Neck:5, Head:10, Body:10, UpperArm:9, LowerArm:9, UpperLeg:8, LowerLeg:8, Foot:7, Hand:7, Sword:9, Scale:80, Name:"Enemy 4", StaminaRecovery:6, MaxStamina:120, HitDamage:9, AvoidHit:3, HealingEfficiency:5, AutoSelfHealing:0, MaxHP:130, ManaRecovery:5, MaxMana:160, MagicAttackDamage:7, SpellCursePower:7, SpellCurseDuration:5, AvoidMagicAttack:10, AvoidCurse:3, PhysicalDefense:1, MagicDefense:0, Ghost:false}, {Neck:6, Head:11, Body:11, UpperArm:10, LowerArm:10, UpperLeg:9, LowerLeg:9, Foot:8, Hand:8, Sword:10, Scale:115, Name:"Enemy 5", StaminaRecovery:5, MaxStamina:200, HitDamage:17, AvoidHit:0, HealingEfficiency:1, AutoSelfHealing:0, MaxHP:300, ManaRecovery:1, MaxMana:80, MagicAttackDamage:5, SpellCursePower:4, SpellCurseDuration:3, AvoidMagicAttack:2, AvoidCurse:0, PhysicalDefense:0, MagicDefense:0, Ghost:false}, {Neck:7, Head:12, Body:12, UpperArm:11, LowerArm:11, UpperLeg:10, LowerLeg:10, Foot:9, Hand:9, Sword:11, Scale:100, Name:"Enemy 6", StaminaRecovery:4, MaxStamina:150, HitDamage:8, AvoidHit:20, HealingEfficiency:7, AutoSelfHealing:2, MaxHP:120, ManaRecovery:5, MaxMana:300, MagicAttackDamage:10, SpellCursePower:7, SpellCurseDuration:6, AvoidMagicAttack:15, AvoidCurse:5, PhysicalDefense:5, MagicDefense:8, Ghost:false}, {Neck:8, Head:13, Body:13, UpperArm:12, LowerArm:12, UpperLeg:11, LowerLeg:11, Foot:10, Hand:10, Sword:1, Scale:100, Name:"Enemy 7", StaminaRecovery:5, MaxStamina:100, HitDamage:7, AvoidHit:10, HealingEfficiency:2, AutoSelfHealing:0, MaxHP:150, ManaRecovery:10, MaxMana:500, MagicAttackDamage:17, SpellCursePower:8, SpellCurseDuration:10, AvoidMagicAttack:10, AvoidCurse:8, PhysicalDefense:0, MagicDefense:10, Ghost:false}, {Neck:9, Head:14, Body:14, UpperArm:13, LowerArm:13, UpperLeg:12, LowerLeg:12, Foot:11, Hand:11, Sword:2, Scale:100, Name:"Enemy 8", StaminaRecovery:5, MaxStamina:150, HitDamage:12, AvoidHit:3, HealingEfficiency:5, AutoSelfHealing:0, MaxHP:170, ManaRecovery:3, MaxMana:120, MagicAttackDamage:12, SpellCursePower:6, SpellCurseDuration:5, AvoidMagicAttack:2, AvoidCurse:1, PhysicalDefense:15, MagicDefense:0, Ghost:false}, {Neck:12, Head:17, Body:17, UpperArm:16, LowerArm:16, UpperLeg:15, LowerLeg:15, Foot:14, Hand:14, Sword:3, Scale:100, Name:"Enemy 9", StaminaRecovery:7, MaxStamina:200, HitDamage:15, AvoidHit:20, HealingEfficiency:7, AutoSelfHealing:0, MaxHP:180, ManaRecovery:3, MaxMana:100, MagicAttackDamage:6, SpellCursePower:7, SpellCurseDuration:4, AvoidMagicAttack:7, AvoidCurse:4, PhysicalDefense:0, MagicDefense:0, Ghost:false}, {Neck:10, Head:15, Body:15, UpperArm:14, LowerArm:14, UpperLeg:13, LowerLeg:13, Foot:12, Hand:12, Sword:12, Scale:100, Name:"Enemy 10", StaminaRecovery:0, MaxStamina:0, HitDamage:0, AvoidHit:0, HealingEfficiency:0, AutoSelfHealing:0, MaxHP:180, ManaRecovery:7, MaxMana:200, MagicAttackDamage:20, SpellCursePower:20, SpellCurseDuration:20, AvoidMagicAttack:10, AvoidCurse:5, PhysicalDefense:0, MagicDefense:10, Ghost:true}, {Neck:13, Head:18, Body:18, UpperArm:17, LowerArm:17, UpperLeg:16, LowerLeg:16, Foot:15, Hand:15, Sword:13, Scale:100, Name:"Enemy 11", StaminaRecovery:5, MaxStamina:200, HitDamage:20, AvoidHit:40, HealingEfficiency:10, AutoSelfHealing:2, MaxHP:170, ManaRecovery:3, MaxMana:120, MagicAttackDamage:7, SpellCursePower:8, SpellCurseDuration:10, AvoidMagicAttack:15, AvoidCurse:10, PhysicalDefense:10, MagicDefense:5, Ghost:false}, {Neck:11, Head:16, Body:16, UpperArm:15, LowerArm:15, UpperLeg:14, LowerLeg:14, Foot:13, Hand:13, Sword:10, Scale:120, Name:"Enemy 12", StaminaRecovery:10, MaxStamina:500, HitDamage:40, AvoidHit:0, HealingEfficiency:5, AutoSelfHealing:0, MaxHP:600, ManaRecovery:3, MaxMana:100, MagicAttackDamage:6, SpellCursePower:7, SpellCurseDuration:8, AvoidMagicAttack:5, AvoidCurse:0, PhysicalDefense:5, MagicDefense:0, Ghost:false}, {Neck:14, Head:19, Body:19, UpperArm:18, LowerArm:18, UpperLeg:17, LowerLeg:17, Foot:16, Hand:16, Sword:14, Scale:100, Name:"Enemy 13", StaminaRecovery:10, MaxStamina:400, HitDamage:40, AvoidHit:10, HealingEfficiency:10, AutoSelfHealing:2, MaxHP:400, ManaRecovery:10, MaxMana:400, MagicAttackDamage:30, SpellCursePower:10, SpellCurseDuration:15, AvoidMagicAttack:10, AvoidCurse:10, PhysicalDefense:10, MagicDefense:10, Ghost:false}, {Neck:15, Head:20, Body:20, UpperArm:19, LowerArm:19, UpperLeg:18, LowerLeg:18, Foot:17, Hand:17, Sword:15, Scale:100, Name:"The King", StaminaRecovery:20, MaxStamina:200, HitDamage:30, AvoidHit:10, HealingEfficiency:10, AutoSelfHealing:5, MaxHP:150, ManaRecovery:20, MaxMana:500, MagicAttackDamage:50, SpellCursePower:30, SpellCurseDuration:30, AvoidMagicAttack:10, AvoidCurse:10, PhysicalDefense:10, MagicDefense:20, Ghost:false}];
Tiles = [undefined, {Names:["Hit Level 1", "Golpe Nivel 1", "\u0423\u0434\u0430\u0440 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[5, 0], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage"]}], Type:1}, {Names:["Magic Attack Level 1", "Ataque M\u00E1gico Nivel 1", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0430\u0442\u0430\u043A\u0430 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 5], You:[], Enemy:[{par:"MagicDamage", formula:["+", "MagicAttackDamage"]}], Type:2}, {Names:["Healing Level 1", "Curaci\u00F3n Nivel 1", "\u041B\u0435\u0447\u0435\u043D\u0438\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 0], You:[{par:"HP", formula:["+", "HealingEfficiency"]}], Enemy:[], Type:5}, {Names:["Healing Spell Level 1", "Hechizo Curativo Nivel 1", "\u041B\u0435\u0447\u0435\u0431\u043D\u044B\u0439 \u0437\u0430\u0433\u043E\u0432\u043E\u0440 1-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 5], You:[{par:"HP", formula:["+", "SpellCursePower"]}], Enemy:[], Type:3}, {Names:["Hit Level 2", "Golpe Nivel 2", "\u0423\u0434\u0430\u0440 2-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[7, 0], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 1.5]}], Type:1}, {Names:["Weakening Curse", "Maldici\u00F3n Debilitante", "\u041E\u0441\u043B\u0430\u0431\u043B\u044F\u044E\u0449\u0435\u0435 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u0435"], Requirements:[0, 10], You:[], Enemy:[{par:"HitDamage", formula:["-", "SpellCursePower", "/", 5, "-", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Type:4}, {Names:["Healing Level 2", "Curaci\u00F3n Nivel 2", "\u041B\u0435\u0447\u0435\u043D\u0438\u0435 2-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 0], You:[{par:"HP", formula:["+", "HealingEfficiency", "*", 1.5]}], Enemy:[], Type:5}, {Names:["Healing Spell Level 2", "Hechizo Curativo Nivel 2", "\u041B\u0435\u0447\u0435\u0431\u043D\u044B\u0439 \u0437\u0430\u0433\u043E\u0432\u043E\u0440 2-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 7], You:[{par:"HP", formula:["+", "SpellCursePower", "*", 1.5]}], Enemy:[], Type:3}, {Names:["Hit with Magic", "Golpe con Magia", "\u0423\u0434\u0430\u0440 \u0441 \u043C\u0430\u0433\u0438\u0435\u0439"], Requirements:[7, 7], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 1.5]}, {par:"MagicDamage", formula:["+", "MagicAttackDamage", "*", 1.5]}], Type:1}, {Names:["Magic Attack Level 2", "Ataque M\u00E1gico Nivel 2", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0430\u0442\u0430\u043A\u0430 2-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 7], You:[], Enemy:[{par:"MagicDamage", formula:["+", "MagicAttackDamage", "*", 1.5]}], Type:2}, {Names:["Hit Level 3", "Golpe Nivel 3", "\u0423\u0434\u0430\u0440 3-\u0435\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[10, 0], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 2]}], Type:1}, {Names:["Gain Hit Damage", "Agregar Poder de Golpe", "\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u0438\u043B\u0443 \u0443\u0434\u0430\u0440\u0430"], Requirements:[0, 20], You:[{par:"HitDamage", formula:["+", "SpellCursePower", "/", 2, "+", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Enemy:[], Type:3}, {Names:["Tricky Hit", "Golpe Astuto", "\u0425\u0438\u0442\u0440\u044B\u0439 \u0443\u0434\u0430\u0440"], Requirements:[7, 0], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 1.5, "+", "AvoidHit"]}], Type:1}, {Names:["Health Drip", "Goteo de Salud", "\u0423\u0442\u0435\u0447\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F"], Requirements:[0, 30], You:[], Enemy:[{par:"HP", formula:["-", "SpellCursePower", "*", 1.5]}, {par:"Duration", formula:["+", "SpellCurseDuration", "*", 1.5]}], Type:4, Repeat:[{}, {HP:true}]}, {Names:["Remove a Curse", "Quitar una Maldici\u00F3n", "\u0423\u0431\u0440\u0430\u0442\u044C \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u0435"], Requirements:[0, 20], You:[], Enemy:[], Type:3, Special:1, Description:Text[38]}, {Names:["Hit Level 4", "Golpe Nivel 4", "\u0423\u0434\u0430\u0440 4-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[12, 0], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 2.5]}], Type:1}, {Names:["Magic Attack Level 3", "Ataque M\u00E1gico Nivel 3", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0430\u0442\u0430\u043A\u0430 3-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 10], You:[], Enemy:[{par:"MagicDamage", formula:["+", "MagicAttackDamage", "*", 2]}], Type:2}, {Names:["Gain Magic Attack Damage", "Agregar Poder de Ataque M\u00E1gico", "\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u0438\u043B\u0443 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u0442\u0430\u043A\u0438"], Requirements:[0, 20], You:[{par:"MagicAttackDamage", formula:["+", "SpellCursePower", "/", 2, "+", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Enemy:[], Type:3}, {Names:["Remove an Enemy Spell", "Quitar un Hechizo del Enemigo", "\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u043E\u0435 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0435"], Requirements:[0, 20], You:[], Enemy:[], Type:3, Special:2, Description:Text[40]}, {Names:["Exhausting Hit", "Golpe Agotador", "\u0418\u0441\u0442\u043E\u0449\u0430\u044E\u0449\u0438\u0439 \u0423\u0434\u0430\u0440"], Requirements:[10, 15], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 2]}, {par:"Stamina", formula:["-", "SpellCursePower", "*", 8]}], Type:1}, {Names:["Recharge Stamina", "Recargar Aguante", "\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u0438\u0442\u044C \u0421\u0438\u043B\u0443"], Requirements:[0, 15], You:[{par:"Stamina", formula:["+", "SpellCursePower", "*", 4]}], Enemy:[], Type:3}, {Names:["Stamina Drip", "Goteo de Aguante", "\u0423\u0442\u0435\u0447\u043A\u0430 \u0441\u0438\u043B\u044B"], Requirements:[0, 20], You:[], Enemy:[{par:"Stamina", formula:["-", "SpellCursePower", "*", 2]}, {par:"Duration", formula:["+", "SpellCurseDuration", "*", 1.5]}], Type:4, Repeat:[{}, {Stamina:true}]}, {Names:["Healing Level 3", "Curaci\u00F3n Nivel 3", "\u041B\u0435\u0447\u0435\u043D\u0438\u0435 3-\u0435\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 0], You:[{par:"HP", formula:["+", "HealingEfficiency", "*", 2]}], Enemy:[], Type:5}, {Names:["Hit Level 5", "Golpe Nivel 5", "\u0423\u0434\u0430\u0440 5-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[15, 0], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 3]}], Type:1}, {Names:["Reduce Enemy's Magic Attack Damage", "Reducir Poder de Ataque M\u00E1gico del Enemigo", "\u0423\u043C\u0435\u043D\u044C\u0449\u0438\u0442\u044C \u0441\u0438\u043B\u0443 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u0442\u0430\u043A\u0438 \u0432\u0440\u0430\u0433\u0430"], Requirements:[0, 20], You:[], Enemy:[{par:"MagicAttackDamage", formula:["-", "SpellCursePower", "/", 2, "-", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Type:4}, {Names:["Magic Attack Level 4", "Ataque M\u00E1gico Nivel 4", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0430\u0442\u0430\u043A\u0430 4-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 12], You:[], Enemy:[{par:"MagicDamage", formula:["+", "MagicAttackDamage", "*", 2.5]}], Type:2}, {Names:["Avoiding Spell", "Hechizo para Evitar", "\u0423\u0432\u043E\u0440\u043E\u0442\u043B\u0438\u0432\u043E\u0435 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0435"], Requirements:[0, 30], You:[{par:"AvoidHit", formula:["+", "SpellCursePower", "*", 2]}, {par:"AvoidMagicAttack", formula:["+", "SpellCursePower", "*", 2]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Enemy:[], Type:3}, {Names:["Healing Spell Level 3", "Hechizo Curativo Nivel 3", "\u041B\u0435\u0447\u0435\u0431\u043D\u044B\u0439 \u0437\u0430\u0433\u043E\u0432\u043E\u0440 3-\u0435\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 10], You:[{par:"HP", formula:["+", "SpellCursePower", "*", 2]}], Enemy:[], Type:3}, {Names:["Long Hit Damage Spell", "Hechizo de Poder de Golpe Duradero", "\u0414\u043E\u043B\u0433\u043E\u0435 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0435 \u0441\u0438\u043B\u044B \u0443\u0434\u0430\u0440\u0430"], Requirements:[0, 40], You:[{par:"HitDamage", formula:["+", "SpellCursePower", "/", 2, "+", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration", "*", 2]}], Enemy:[], Type:3}, {Names:["Long Weakening Curse", "Maldici\u00F3n Debilitante Duradera", "\u0414\u043E\u043B\u0433\u043E\u0435 \u043E\u0441\u043B\u0430\u0431\u043B\u044F\u044E\u0449\u0435\u0435 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u0435"], Requirements:[0, 40], You:[], Enemy:[{par:"HitDamage", formula:["-", "SpellCursePower", "/", 5, "-", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration", "*", 2]}], Type:4}, {Names:["Strong Hit with Magic", "Fuerte Golpe con Magia", "\u0421\u0438\u043B\u044C\u043D\u044B\u0439 \u0443\u0434\u0430\u0440 \u0441 \u043C\u0430\u0433\u0438\u0435\u0439"], Requirements:[10, 10], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 2]}, {par:"MagicDamage", formula:["+", "MagicAttackDamage", "*", 2]}], Type:1}, {Names:["Reduce Enemy's Stamina", "Reducir Aguante del Enemigo", "\u041F\u043E\u043D\u0438\u0437\u0438\u0442\u044C \u0441\u0438\u043B\u0443 \u0432\u0440\u0430\u0433\u0430"], Requirements:[0, 30], You:[], Enemy:[{par:"Stamina", formula:["-", "SpellCursePower", "*", 5]}], Type:4}, {Names:["Reduce Enemy's Magic", "Reducir Magia del Enemigo", "\u041F\u043E\u043D\u0438\u0437\u0438\u0442\u044C \u043C\u0430\u0433\u0438\u044E \u0432\u0440\u0430\u0433\u0430"], Requirements:[0, 30], You:[], Enemy:[{par:"Mana", formula:["-", "SpellCursePower", "*", 5]}], Type:4}, {Names:["Healing Level 4", "Curaci\u00F3n Nivel 4", "\u041B\u0435\u0447\u0435\u043D\u0438\u0435 4-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 0], You:[{par:"HP", formula:["+", "HealingEfficiency", "*", 2.5]}], Enemy:[], Type:5}, {Names:["Reduce Enemy's Physical Defense", "Reducir Defensa F\u00EDsica del Enemigo", "\u041F\u043E\u043D\u0438\u0437\u0438\u0442\u044C \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0437\u0430\u0449\u0438\u0442\u0443 \u0432\u0440\u0430\u0433\u0430"], Requirements:[0, 30], You:[], Enemy:[{par:"PhysicalDefense", formula:["-", "SpellCursePower", "/", 2, "-", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Type:4}, {Names:["Reduce Enemy's Magic Defense", "Reducir Defensa M\u00E1gica del Enemigo", "\u041F\u043E\u043D\u0438\u0437\u0438\u0442\u044C \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0437\u0430\u0449\u0438\u0442\u0443 \u0432\u0440\u0430\u0433\u0430"], Requirements:[0, 30], You:[], Enemy:[{par:"MagicDefense", formula:["-", "SpellCursePower", "/", 2, "-", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Type:4}, {Names:["Healing Spell Level 4", "Hechizo Curativo Nivel 4", "\u041B\u0435\u0447\u0435\u0431\u043D\u044B\u0439 \u0437\u0430\u0433\u043E\u0432\u043E\u0440 4-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 12], You:[{par:"HP", formula:["+", "SpellCursePower", "*", 2.5]}], Enemy:[], Type:3}, {Names:["Remove all Curses", "Quitar todas las maldiciones", "\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u044F"], Requirements:[0, 60], You:[], Enemy:[], Type:3, Special:3, Description:Text[44]}, {Names:["Remove all Enemy's Spells", "Quitar todos los Hechizos del Enemigo", "\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u0438\u0435 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u044F"], Requirements:[0, 60], You:[], Enemy:[], Type:3, Special:4, Description:Text[45]}, {Names:["Magic Attack Level 5", "Ataque M\u00E1gico Nivel 5", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0430\u0442\u0430\u043A\u0430 5-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 15], You:[], Enemy:[{par:"MagicDamage", formula:["+", "MagicAttackDamage", "*", 3]}], Type:2}, {Names:["Clumsy Enemy", "Enemigo Torpe", "\u041D\u0435\u0443\u043A\u043B\u044E\u0436\u0438\u0439 \u0432\u0440\u0430\u0433"], Requirements:[0, 30], You:[], Enemy:[{par:"AvoidHit", formula:["-", "SpellCursePower"]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Type:4}, {Names:["Strong Hit Damage Spell", "Hechizo de Poder de Golpe Fuerte", "\u0421\u0438\u043B\u044C\u043D\u043E\u0435 \u0437\u0430\u043A\u043B\u0438\u043D\u0430\u043D\u0438\u0435 \u0441\u0438\u043B\u044B \u0443\u0434\u0430\u0440\u0430"], Requirements:[0, 40], You:[{par:"HitDamage", formula:["+", "SpellCursePower", "+", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Enemy:[], Type:3}, {Names:["Strong Weakening Curse", "Maldici\u00F3n Debilizante Fuerte", "\u0421\u0438\u043B\u044C\u043D\u043E\u0435 \u043E\u0441\u043B\u0430\u0431\u043B\u044F\u044E\u0449\u0435\u0435 \u043F\u0440\u043E\u043A\u043B\u044F\u0442\u044C\u0435"], Requirements:[0, 40], You:[], Enemy:[{par:"HitDamage", formula:["-", "SpellCursePower", "/", 2, "-", 1]}, {par:"Duration", formula:["+", "SpellCurseDuration"]}], Type:4}, {Names:["Hit Level 6", "Golpe Nivel 6", "\u0423\u0434\u0430\u0440 6-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[17, 0], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 3.5]}], Type:1}, {Names:["Stamina Drain", "Drenaje de Aguante", "\u0412\u044B\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0441\u0438\u043B\u044B"], Requirements:[0, 20], You:[], Enemy:[{par:"Stamina", formula:["-", "SpellCursePower", "*", 2]}], Type:3, Drain:true}, {Names:["Magic Drain", "Drenaje de Magia", "\u0412\u044B\u043A\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u043C\u0430\u0433\u0438\u0438"], Requirements:[0, 10], You:[], Enemy:[{par:"Mana", formula:["-", "SpellCursePower", "*", 2]}], Type:3, Drain:true}, {Names:["Healing Spell Level 5", "Hechizo Curativo Nivel 5", "\u041B\u0435\u0447\u0435\u0431\u043D\u044B\u0439 \u0437\u0430\u0433\u043E\u0432\u043E\u0440 5-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 15], You:[{par:"HP", formula:["+", "SpellCursePower", "*", 3]}], Enemy:[], Type:3}, {Names:["Magic Attack Level 6", "Ataque M\u00E1gico Nivel 6", "\u041C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0430\u0442\u0430\u043A\u0430 6-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 17], You:[], Enemy:[{par:"MagicDamage", formula:["+", "MagicAttackDamage", "*", 3.5]}], Type:2}, {Names:["Bust Enemy's Stamina", "Agotar Aguante del Enemigo", "\u0418\u0441\u0442\u043E\u0449\u0438\u0442\u044C \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u0443\u044E \u0441\u0438\u043B\u0443"], Requirements:[0, 50], You:[], Enemy:[{par:"Stamina", formula:["-", Infinity]}], Type:4}, {Names:["Bust Enemy's Magic", "Agotar Magia del Enemigo", "\u0418\u0441\u0442\u043E\u0449\u0438\u0442\u044C \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u0443\u044E \u043C\u0430\u0433\u0438\u044E"], Requirements:[0, 50], You:[], Enemy:[{par:"Mana", formula:["-", Infinity]}], Type:4}, {Names:["Healing Level 5", "Curaci\u00F3n Nivel 5", "\u041B\u0435\u0447\u0435\u043D\u0438\u0435 5-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[0, 0], You:[{par:"HP", formula:["+", "HealingEfficiency", "*", 3]}], Enemy:[], Type:5}, {Names:["Hit Level 7", "Golpe Nivel 7", "\u0423\u0434\u0430\u0440 7-\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F"], Requirements:[20, 0], You:[], Enemy:[{par:"PhysicalDamage", formula:["+", "HitDamage", "*", 4]}], Type:1}];
Items = [undefined, {Name:["Small Defense Amulet", "Peque\u00F1o Amuleto de Defensa", "\u041C\u0430\u043B\u044B\u0439 \u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0439 \u0430\u043C\u0443\u043B\u0435\u0442"], Price:1100, MagicDefense:1}, {Name:["Ring of Protection", "Anillo de Protecci\u00F3n", "\u041A\u043E\u043B\u044C\u0446\u043E \u0437\u0430\u0449\u0438\u0442\u044B"], Price:1210, MagicDefense:1}, {Name:["Protective Bracelet", "Brazalete de Protecci\u00F3n", "\u0417\u0430\u0449\u0438\u0442\u043D\u044B\u0439 \u0431\u0440\u0430\u0441\u043B\u0435\u0442"], Price:2350, MagicDefense:2}, {Name:["Fire Amulet", "Amuleto de Fuego", "\u0410\u043C\u0443\u043B\u0435\u0442 \u041E\u0433\u043D\u044F"], Price:2420, MagicDefense:2}, {Name:["Water Amulet", "Amuleto de Agua", "\u0410\u043C\u0443\u043B\u0435\u0442 \u0412\u043E\u0434\u044B"], Price:3700, MagicDefense:3}, {Name:["Earth Amulet", "Amuleto de Tierra", "\u0410\u043C\u0443\u043B\u0435\u0442 \u0417\u0435\u043C\u043B\u0438"], Price:3730, MagicDefense:3}, {Name:["Air Amulet", "Amuleto de Aire", "\u0410\u043C\u0443\u043B\u0435\u0442 \u0412\u043E\u0437\u0434\u0443\u0445\u0430"], Price:5100, MagicDefense:4}, {Name:["Moonstone Amulet", "Amuleto de Piedra Lunar", "\u0410\u043C\u0443\u043B\u0435\u0442 \u043B\u0443\u043D\u043D\u043E\u0433\u043E \u043A\u0430\u043C\u043D\u044F"], Price:4780, MagicDefense:4}, {Name:["Armor Stone", "Piedra de Armadura", "\u041A\u0430\u043C\u0435\u043D\u044C \u0411\u0440\u043E\u043D\u0438"], Price:6250, MagicDefense:5}, {Name:["Medium Defense Amulet", "Amuleto de Defensa Media", "\u0421\u0440\u0435\u0434\u043D\u0438\u0439 \u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0439 \u0430\u043C\u0443\u043B\u0435\u0442"], Price:6100, MagicDefense:5}, {Name:["Rune of Lost Souls", "Runa de Almas Perdidas", "\u0420\u0443\u043D\u0430 \u043F\u043E\u0442\u0435\u0440\u044F\u043D\u043D\u044B\u0445 \u0434\u0443\u0448"], Price:7480, MagicDefense:6}, {Name:["Grand Defense Amulet", "El Gran Amuleto de Defensa", "\u0412\u0435\u043B\u0438\u043A\u0438\u0439 \u0437\u0430\u0449\u0438\u0442\u043D\u044B\u0439 \u0430\u043C\u0443\u043B\u0435\u0442"], Price:7535, MagicDefense:6}, {Name:["Crown of Darkness", "Corona de la Oscuridad", "\u041A\u043E\u0440\u043E\u043D\u0430 \u0442\u044C\u043C\u044B"], Price:9300, MagicDefense:7}];
StartWith = 13;
Profiles = [undefined, {StaminaRecovery:4, MaxStamina:150, HitDamage:10, AvoidHit:0, HealingEfficiency:5, AutoSelfHealing:0, MaxHP:150, ManaRecovery:2, MaxMana:80, MagicAttackDamage:4, SpellCursePower:2, SpellCurseDuration:3, AvoidMagicAttack:0, AvoidCurse:0}, {StaminaRecovery:3, MaxStamina:100, HitDamage:6, AvoidHit:8, HealingEfficiency:12, AutoSelfHealing:1, MaxHP:110, ManaRecovery:4, MaxMana:130, MagicAttackDamage:6, SpellCursePower:5, SpellCurseDuration:5, AvoidMagicAttack:8, AvoidCurse:3}, {StaminaRecovery:1, MaxStamina:80, HitDamage:3, AvoidHit:5, HealingEfficiency:4, AutoSelfHealing:0, MaxHP:90, ManaRecovery:6, MaxMana:170, MagicAttackDamage:12, SpellCursePower:10, SpellCurseDuration:7, AvoidMagicAttack:10, AvoidCurse:2}];
BasicPrices = {StaminaRecovery:5, MaxStamina:0.02, HitDamage:2, AvoidHit:2, HealingEfficiency:2, AutoSelfHealing:20, MaxHP:0.06, ManaRecovery:5, MaxMana:0.02, MagicAttackDamage:2, SpellCursePower:3, SpellCurseDuration:3, AvoidMagicAttack:2, AvoidCurse:4};
HelmetUpgrades = [undefined, {Price:900, Head:1, PhysicalDefense:1}, {Price:1330, Head:1, PhysicalDefense:1}, {Price:2520, Head:1, PhysicalDefense:2}, {Price:3500, Head:1, PhysicalDefense:2}, {Price:5650, Head:1, PhysicalDefense:4, MagicDefense:2}];
ArmorUpgrades = [undefined, {Price:1750, Body:1, UpperArm:1, LowerArm:1, PhysicalDefense:2}, {Price:2610, Body:1, PhysicalDefense:2}, {Price:5535, Body:1, UpperArm:1, LowerArm:1, UpperLeg:1, LowerLeg:1, PhysicalDefense:4}, {Price:9550, Body:1, UpperArm:1, LowerArm:1, UpperLeg:1, LowerLeg:1, Foot:1, Hand:1, PhysicalDefense:4}, {Price:12300, Body:1, UpperArm:1, LowerArm:1, UpperLeg:1, LowerLeg:1, Foot:1, Hand:1, PhysicalDefense:8, MagicDefense:3}];
SwordUpgrades = [undefined, undefined, {Price:1000, Sword:1, HitDamage:1}, {Price:2300, Sword:1, HitDamage:2}, {Price:4650, Sword:1, HitDamage:3}, {Price:9320, Sword:1, HitDamage:4}, {Price:12100, Sword:1, HitDamage:5, MagicAttackDamage:3}];
RedText = new TextFormat();
RedText.color = 16711680 /* 0xFF0000 */;
WhiteText = new TextFormat();
WhiteText.color = 16777215 /* 0xFFFFFF */;
GreenText = new TextFormat();
GreenText.color = 65280;
var Saved = SharedObject.getLocal("SavedGames");
if ((!Saved.data.Slots.length) > 0) {
Saved.data.Slots = new Array();
}
HEAL = new Sound(this);
HEAL.attachSound("HEAL");
MAGICATTACK = new Sound(this);
MAGICATTACK.attachSound("MAGICATTACK");
SPELLCURSE = new Sound(this);
SPELLCURSE.attachSound("SPELLCURSE");
SWORDHIT = new Sound(this);
SWORDHIT.attachSound("SWORDHIT");
SWORDSWING = new Sound(this);
SWORDSWING.attachSound("SWORDSWING");
Frame 4
function OpenOptions(Frame) {
var _local2;
Options._visible = true;
Options.gotoAndStop(Frame);
for (_local2 in this) {
if (_local2 != "Options") {
if (this[_local2] instanceof MovieClip) {
StatusBeforeOptions[_local2] = this[_local2]._visible;
this[_local2]._visible = false;
}
if (this[_local2] instanceof Button) {
StatusBeforeOptions[_local2] = this.enabled;
this[_local2].enabled = false;
}
}
}
Paused = true;
}
function CloseOptions() {
var _local2;
Options._visible = false;
Options.gotoAndStop(6);
for (_local2 in this) {
if (_local2 != "Options") {
if (this[_local2] instanceof MovieClip) {
this[_local2]._visible = StatusBeforeOptions[_local2];
}
if (this[_local2] instanceof Button) {
this[_local2].enabled = StatusBeforeOptions[_local2];
}
}
}
Paused = false;
}
MT.gotoAndStop(Language + 1);
stop();
Characters = [undefined, {Head:1, Body:1, UpperArm:1, LowerArm:1, UpperLeg:1, LowerLeg:1, Foot:1, Hand:1, Sword:1, Neck:1, PhysicalDefense:0, MagicDefense:0, Armor:0, Helmet:0}, {}];
CreatedByTxt = Text[114][Language];
FromMain = true;
CurrLevel = 1;
Experience = 0;
Money = 0;
ShopItems = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
YourItems = new Array();
Score = 0;
PrevBG = (BackG = 0);
LastSubmitted = 0;
Options._visible = false;
StatusBeforeOptions = new Object();
Pause = false;
Options.TitleText = Text[35][Language].toUpperCase();
Options.SoundTxt = Text[89][Language].toUpperCase();
Options.Button1Txt = Text[72][Language].toUpperCase();
Options.Button2Txt = Text[73][Language].toUpperCase();
Options.Button3Txt = Text[74][Language].toUpperCase();
Options.Button4Txt = Text[76][Language].toUpperCase();
Options.Button5Txt = Text[77][Language].toUpperCase();
Options.Button6Txt = Text[87][Language].toUpperCase();
Options.Button7Txt = Text[78][Language].toUpperCase();
Options.QualityTxt = Text[119][Language].toUpperCase() + ":";
Options.LowTxt = Text[122][Language].toUpperCase();
Options.MediumTxt = Text[121][Language].toUpperCase();
Options.HighTxt = Text[120][Language].toUpperCase();
Button1Txt = Text[88][Language].toUpperCase();
Button3Txt = Text[74][Language].toUpperCase();
Button4Txt = Text[76][Language].toUpperCase();
Button5Txt = Text[77][Language].toUpperCase();
Button6Txt = Text[87][Language].toUpperCase();
Button7Txt = Text[78][Language].toUpperCase();
Frame 5
function SelectProfile(Ind) {
var _local2;
SelectedProfile = Ind;
_local2 = 1;
while (_local2 <= 3) {
if (_local2 == SelectedProfile) {
this["CB" + _local2].gotoAndStop(1);
} else {
this["CB" + _local2].gotoAndStop(2);
}
_local2++;
}
}
EnterNameTxt = Text[90][Language];
Title = Text[91][Language].toUpperCase();
SelectProfileTxt = Text[92][Language];
Profile1Name = Text[93][Language].toUpperCase();
Profile2Name = Text[94][Language].toUpperCase();
Profile3Name = Text[95][Language].toUpperCase();
WarriorDescription = Text[96][Language];
TricksterDescription = Text[97][Language];
WizardDescription = Text[98][Language];
PlayTxt = Text[99][Language].toUpperCase();
PlayerName.text = Text[100][Language];
Selection.setFocus(PlayerName);
SelectProfile(2);
i = 1;
while (i <= 3) {
this["CB" + i].Index = i;
this["CB" + i].onPress = function () {
SelectProfile(this.Index);
};
i++;
}
Frame 7
function GetTileEffects(Char, Ind) {
var _local13 = Characters[Char].Tiles[Ind].Value;
var _local1;
var _local3;
var _local8;
var _local6;
var _local2;
var _local5;
var _local16;
var _local17;
var _local14;
var _local15;
var _local9;
var _local4;
var _local7;
_local16 = new Array();
_local17 = new Array();
_local14 = new Object();
_local15 = new Object();
_local8 = 1;
while (_local8 <= 2) {
if (_local8 == 1) {
Now = Tiles[_local13].You;
AffectedNow = _local16;
_local9 = _local14;
} else {
Now = Tiles[_local13].Enemy;
AffectedNow = _local17;
_local9 = _local15;
}
for (_local5 in Now) {
_local4 = 0;
_local1 = 0;
while (_local1 < Now[_local5].formula.length) {
_local6 = Now[_local5].formula[_local1];
_local2 = Now[_local5].formula[_local1 + 1];
if (typeof(_local2) == "string") {
_local2 = Characters[Char][_local2];
if (_local2 < 0) {
_local2 = 0;
}
}
switch (_local6) {
case "+" :
_local4 = _local4 + _local2;
break;
case "-" :
_local4 = _local4 - _local2;
break;
case "*" :
_local4 = _local4 * _local2;
break;
case "/" :
_local4 = _local4 / _local2;
}
_local1 = _local1 + 2;
}
AffectedNow.push({par:Now[_local5].par, val:_local4});
}
_local1 = 0;
while (_local1 < AffectedNow.length) {
if (!AffectedNow.Del) {
_local3 = _local1 + 1;
while (_local3 < AffectedNow.length) {
if (AffectedNow[_local1].par == AffectedNow[_local3].par) {
AffectedNow[_local1].val = AffectedNow[_local1].val + AffectedNow[_local3].val;
AffectedNow[_local3].Del = true;
}
_local3++;
}
}
_local1++;
}
for (_local1 in AffectedNow) {
if (AffectedNow[_local1].Del) {
AffectedNow.splice(_local1, 1);
}
}
for (_local1 in AffectedNow) {
_local9[AffectedNow[_local1].par] = Math.round(AffectedNow[_local1].val);
}
_local8++;
}
_local7 = [_local14, _local15];
if (Tiles[_local13].Drain) {
for (_local1 in _local7[1]) {
if (Characters[NowTurning].Enemy[_local1] < (-_local7[1][_local1])) {
_local7[1][_local1] = -Characters[NowTurning].Enemy[_local1];
}
_local7[0][_local1] = -_local7[1][_local1];
}
}
return(_local7);
}
function UpdatePlayersTiles(Enable) {
var _local1;
_local1 = 1;
while (_local1 <= 7) {
if ((Characters[1].Stamina >= Tiles[Characters[1].Tiles[_local1].Value].Requirements[0]) and (Characters[1].Mana >= Tiles[Characters[1].Tiles[_local1].Value].Requirements[1])) {
Characters[1].Tiles[_local1].Symbol.enabled = Enable;
Characters[1].Tiles[_local1].Symbol._alpha = 100;
} else {
Characters[1].Tiles[_local1].Symbol.enabled = false;
Characters[1].Tiles[_local1].Symbol._alpha = 30;
}
_local1++;
}
}
function SetInfoTo(Char, Tile) {
TileInfo.gotoAndStop(1);
var _local1;
var _local2;
var _local4;
var _local6 = Tiles[Characters[Char].Tiles[Tile].Value];
TileInfo.TileName = _local6.Names[Language];
TileInfo.Tile.Value.gotoAndStop(Characters[Char].Tiles[Tile].Value);
TileInfo.TypeName = Text[16 + _local6.Type][Language];
TileInfo.RequiresTxt = Text[22][Language] + ":";
TileInfo.ReqStamina = (Text[0][Language] + ": ") + _local6.Requirements[0];
TileInfo.ReqMagic = (Text[1][Language] + ": ") + _local6.Requirements[1];
if (_local6.Requirements[0] > Characters[Char].Stamina) {
TileInfo.SText.setTextFormat(RedText);
} else {
TileInfo.SText.setTextFormat(WhiteText);
}
if (_local6.Requirements[1] > Characters[Char].Mana) {
TileInfo.MText.setTextFormat(RedText);
} else {
TileInfo.MText.setTextFormat(WhiteText);
}
if (_local6.Special > 0) {
TileInfo.Description = _local6.Description[Language];
} else {
var _local3 = GetTileEffects(Char, Tile);
TileInfo.Description = "";
if ((_local6.Type == 1) or (_local6.Type == 2)) {
for (_local1 in _local3[1]) {
TileInfo.Description = TileInfo.Description + (((ParRef[_local1][Language] + ": ") + _local3[1][_local1]) + "\r");
}
}
if (_local6.Type > 2) {
var _local5 = ["", ""];
var _local7 = 0;
_local1 = 0;
while (_local1 <= 1) {
for (_local2 in _local3[_local1]) {
if (_local2 != "Duration") {
if (_local3[_local1][_local2] == (-Infinity)) {
_local5[_local1] = _local5[_local1] + ((ParRef[_local2][Language] + " = 0") + "\r");
} else {
if (_local3[_local1][_local2] < 0) {
_local4 = _local3[_local1][_local2];
} else {
_local4 = "+" + _local3[_local1][_local2];
}
if (_local6.Repeat[_local1][_local2]) {
RIET = (" (" + Text[33][Language]) + ")";
} else {
RIET = "";
}
_local5[_local1] = _local5[_local1] + ((((ParRef[_local2][Language] + ": ") + _local4) + RIET) + "\r");
}
} else {
_local7 = _local3[_local1][_local2];
}
}
_local1++;
}
if (_local5[0].length > 0) {
if (_local6.Type != 5) {
TileInfo.Description = TileInfo.Description + ((Text[24][Language].toUpperCase() + ":") + "\r");
}
TileInfo.Description = TileInfo.Description + (_local5[0] + "\r");
}
if (_local5[1].length > 0) {
if (_local6.Type != 5) {
if (_local5[0].length > 0) {
TileInfo.Descripton = TileInfo.Descripton + "\r";
}
TileInfo.Description = TileInfo.Description + ((Text[25][Language].toUpperCase() + ":") + "\r");
}
TileInfo.Description = TileInfo.Description + _local5[1];
}
if (_local7 > 0) {
TileInfo.Description = TileInfo.Description + ((((("\r" + Text[26][Language]) + ": ") + _local7) + " ") + Text[27][Language]);
}
}
}
}
function UseTile(Ind) {
var _local1;
if (NowTurning == 1) {
Experience = Experience + ExpIncrease;
ExpIncrease = ExpIncrease * 0.95;
}
_local1 = 1;
while (_local1 <= 7) {
Characters[1].Tiles[_local1].Symbol.enabled = false;
_local1++;
}
Phase = 2;
SelectedTile = Ind;
Counter = 0;
if (NowTurning == 2) {
Characters[2].Tiles[Ind].Symbol.Value._visible = true;
}
if (!Tiles[Characters[NowTurning].Tiles[SelectedTile].Value].Special) {
Characters[NowTurning].Stamina = Characters[NowTurning].Stamina - Tiles[Characters[NowTurning].Tiles[Ind].Value].Requirements[0];
Characters[NowTurning].Mana = Characters[NowTurning].Mana - Tiles[Characters[NowTurning].Tiles[Ind].Value].Requirements[1];
UpdatePlayerInfo();
}
SkipButton.enabled = false;
}
function UpdatePlayerInfo() {
var _local2;
var _local3;
_local2 = 1;
while (_local2 <= 2) {
this["PI" + _local2].Name = Characters[_local2].Name;
this["PI" + _local2].Health = (((ParRef.HP[Language] + ": ") + Characters[_local2].HP) + "/") + Characters[_local2].MaxHP;
this["PI" + _local2].Stamina = (((ParRef.Stamina[Language] + ": ") + Characters[_local2].Stamina) + "/") + Characters[_local2].MaxStamina;
this["PI" + _local2].Magic = (((ParRef.Mana[Language] + ": ") + Characters[_local2].Mana) + "/") + Characters[_local2].MaxMana;
this["PI" + _local2].MoreInfo = Text[30][Language].toUpperCase();
this["PI" + _local2].HealthMeter.gotoAndStop((HealthPercent = Math.round((Characters[_local2].HP / Characters[_local2].MaxHP) * 100) + 1));
this["PI" + _local2].StaminaMeter.gotoAndStop(Math.round((Characters[_local2].Stamina / Characters[_local2].MaxStamina) * 100) + 1);
this["PI" + _local2].MagicMeter.gotoAndStop(Math.round((Characters[_local2].Mana / Characters[_local2].MaxMana) * 100) + 1);
if (HealthPercent > 50) {
R = 50 + (100 - HealthPercent);
G = 100;
} else {
R = 100;
G = 50 + HealthPercent;
}
this["PI" + _local2].HealthColor.setTransform({ra:R, rb:0, ga:G, gb:0, ba:50, bb:0, aa:100, ab:0});
this["PI" + _local2].StaminaColor.setTransform({ra:70, rb:0, ga:85, gb:0, ba:100, bb:0, aa:100, ab:0});
this["PI" + _local2].MagicColor.setTransform({ra:70, rb:0, ga:85, gb:0, ba:100, bb:0, aa:100, ab:0});
this["PI" + _local2].Spells = Text[31][Language].toUpperCase() + ":";
this["PI" + _local2].Curses = Text[32][Language].toUpperCase() + ":";
_local3 = 0;
while (_local3 <= 29) {
if (_local3 < Characters[_local2].Spells.length) {
this["PI" + _local2]["S" + _local3]._visible = true;
this["PI" + _local2]["S" + _local3].Value.gotoAndStop(Characters[_local2].Spells[_local3].Type);
this["PI" + _local2]["S" + _local3].enabled = false;
} else {
this["PI" + _local2]["S" + _local3]._visible = false;
}
if (_local3 < Characters[_local2].Curses.length) {
this["PI" + _local2]["C" + _local3]._visible = true;
this["PI" + _local2]["C" + _local3].Value.gotoAndStop(Characters[_local2].Curses[_local3].Type);
this["PI" + _local2]["C" + _local3].enabled = false;
} else {
this["PI" + _local2]["C" + _local3]._visible = false;
}
_local3++;
}
_local2++;
}
OldOverInfo = 0;
}
function MoreCharInfo(Char) {
var _local3 = ["HitDamage", "MagicAttackDamage", "PhysicalDefense", "MagicDefense", "AvoidHit", "AvoidMagicAttack", "AvoidCurse", "SpellCursePower", "SpellCurseDuration", "StaminaRecovery", "ManaRecovery", "HealingEfficiency", "AutoSelfHealing"];
var _local1;
var _local2;
TileInfo.gotoAndStop(2);
TileInfo.CharName = Characters[Char].Name;
_local1 = 0;
while (_local1 < _local3.length) {
TileInfo["ParamName" + _local1] = ParRef[_local3[_local1]][Language] + ":";
_local2 = Characters[Char][_local3[_local1]];
if (_local2 < 0) {
_local2 = 0;
}
TileInfo["ParamVal" + _local1] = _local2;
_local1++;
}
}
function ImplementTileEffects(Effects, TileVal) {
var _local1;
var _local2;
var _local8 = 0;
var _local10;
var _local11;
var _local6 = 0;
var _local7 = 0;
var _local9;
var _local4;
for (_local1 in Effects) {
for (_local2 in Effects[_local1]) {
if (_local2 == "Duration") {
_local8 = Effects[_local1][_local2];
_local9 = _local1;
}
}
}
if (_local8 == 0) {
_local10 = Effects[1].PhysicalDamage;
_local11 = Effects[1].MagicDamage;
if ((_local10 > 0) and (!Characters[NowTurning].Enemy.Ghost)) {
_local10 = _local10 - Characters[NowTurning].Enemy.PhysicalDefense;
if (_local10 < 0) {
_local10 = 0;
}
_local6 = _local6 - _local10;
}
if (_local11 > 0) {
_local11 = _local11 - Characters[NowTurning].Enemy.MagicDefense;
if (_local11 < 0) {
_local11 = 0;
}
_local6 = _local6 - _local11;
}
for (_local1 in Effects) {
for (_local2 in Effects[_local1]) {
if ((_local1 == 1) and (_local2 == "HP")) {
_local6 = _local6 + Effects[_local1][_local2];
} else if (_local2 != "Duration") {
if (_local1 == 0) {
if (_local2 == "HP") {
_local7 = _local7 + Effects[_local1][_local2];
} else {
Characters[NowTurning][_local2] = Characters[NowTurning][_local2] + Effects[_local1][_local2];
}
if (Characters[NowTurning][_local2] < 0) {
Characters[NowTurning][_local2] = 0;
}
} else {
Characters[NowTurning].Enemy[_local2] = Characters[NowTurning].Enemy[_local2] + Effects[_local1][_local2];
if (Characters[NowTurning].Enemy[_local2] < 0) {
Characters[NowTurning].Enemy[_local2] = 0;
}
}
}
}
}
if ((Characters[NowTurning].Enemy.HP + _local6) < 0) {
_local6 = -Characters[NowTurning].Enemy.HP;
}
Characters[NowTurning].Enemy.HP = Characters[NowTurning].Enemy.HP + _local6;
if (_local6 != 0) {
if (NowTurning == 1) {
RunHPHit(2, _local6);
} else {
RunHPHit(1, _local6);
}
}
if ((Characters[NowTurning].HP + _local7) > Characters[NowTurning].MaxHP) {
_local7 = Characters[NowTurning].MaxHP - Characters[NowTurning].HP;
}
if (_local7 > 0) {
Characters[NowTurning].HP = Characters[NowTurning].HP + _local7;
RunHPHit(NowTurning, _local7);
}
_local1 = 1;
while (_local1 <= 2) {
if (Characters[_local1].HP > Characters[_local1].MaxHP) {
Characters[_local1].HP = Characters[_local1].MaxHP;
}
if (Characters[_local1].Stamina > Characters[_local1].MaxStamina) {
Characters[_local1].Stamina = Characters[_local1].MaxStamina;
}
if (Characters[_local1].Mana > Characters[_local1].MaxMana) {
Characters[_local1].Mana = Characters[_local1].MaxMana;
}
for (_local2 in Characters[_local1]) {
if (Characters[_local1][_local2] < 0) {
Characters[_local1][_local2] = 0;
}
}
_local1++;
}
} else {
if (_local9 == 0) {
_local4 = Characters[NowTurning].Spells.push({Type:TileVal});
_local4--;
for (_local1 in Effects[0]) {
Characters[NowTurning].Spells[_local4][_local1] = Effects[0][_local1];
}
Characters[NowTurning].Spells[_local4].FirstTime = true;
Characters[NowTurning].Spells[_local4].Repeat = new Array();
for (_local1 in Tiles[TileVal].Repeat[0]) {
Characters[NowTurning].Spells[_local4].Repeat[_local1] = Tiles[TileVal].Repeat[0][_local1];
}
for (_local1 in Characters[NowTurning].Spells[_local4]) {
if (((((!Characters[NowTurning].Spells[_local4].Repeat[_local1]) and (_local1 != "Repeat")) and (_local1 != "Duration")) and (_local1 != "Type")) and (_local1 != "FirstTime")) {
Characters[NowTurning][_local1] = Characters[NowTurning][_local1] + Characters[NowTurning].Spells[_local4][_local1];
}
}
}
if (_local9 == 1) {
_local4 = Characters[NowTurning].Enemy.Curses.push({Type:TileVal});
_local4--;
for (_local1 in Effects[1]) {
Characters[NowTurning].Enemy.Curses[_local4][_local1] = Effects[1][_local1];
}
Characters[NowTurning].Enemy.Curses[_local4].Repeat = new Array();
for (_local1 in Tiles[TileVal].Repeat[1]) {
Characters[NowTurning].Enemy.Curses[_local4].Repeat[_local1] = Tiles[TileVal].Repeat[1][_local1];
}
for (_local1 in Characters[NowTurning].Enemy.Curses[_local4]) {
if ((((!Characters[NowTurning].Enemy.Curses[_local4].Repeat[_local1]) and (_local1 != "Repeat")) and (_local1 != "Duration")) and (_local1 != "Type")) {
Characters[NowTurning].Enemy[_local1] = Characters[NowTurning].Enemy[_local1] + Characters[NowTurning].Enemy.Curses[_local4][_local1];
}
}
}
}
UpdatePlayerInfo();
}
function RunHPHit(Char, Val) {
var _local4;
if (Val > 0) {
_local4 = "+" + Val;
} else {
_local4 = Val;
}
this["HPHit" + Char].Inside.Value = _local4;
this["HPHit" + Char].gotoAndPlay(2);
if (Val < 0) {
this["HPHit" + Char].Inside.ValText.setTextFormat(RedText);
} else {
this["HPHit" + Char].Inside.ValText.setTextFormat(GreenText);
}
if ((Char == 2) and (Val < 0)) {
Score = Score + (-Val);
}
}
function DisplaySpellCurse(ItsASpell, Char, Ind) {
var _local2;
var _local1;
var _local4;
var _local3;
if (ItsASpell) {
_local2 = Characters[Char].Spells[Ind];
} else {
_local2 = Characters[Char].Curses[Ind];
}
TileInfo.gotoAndStop(3);
TileInfo.TileName = Tiles[_local2.Type].Names[Language];
TileInfo.Tile.Value.gotoAndStop(_local2.Type);
TileInfo.TypeName = Text[16 + Tiles[_local2.Type].Type][Language];
TileInfo.Description = "";
for (_local1 in _local2) {
if ((((_local1 != "Duration") and (_local1 != "Type")) and (_local1 != "Repeat")) and (_local1 != "FirstTime")) {
if (_local2[_local1] < 0) {
_local4 = _local2[_local1];
} else {
_local4 = "+" + _local2[_local1];
}
if (_local2.Repeat[_local1]) {
_local3 = (" (" + Text[33][Language]) + ")";
} else {
_local3 = "";
}
TileInfo.Description = TileInfo.Description + ((((ParRef[_local1][Language] + ": ") + _local4) + _local3) + "\r");
}
}
TileInfo.Description = TileInfo.Description + ((("\r" + Text[36][Language]) + ": ") + _local2.Duration);
}
function RemoveSpellCurse(Char, Spell, Ind) {
var _local1;
if (Spell) {
for (_local1 in Characters[Char].Spells[Ind]) {
if (((((!Characters[Char].Spells[Ind].Repeat[_local1]) and (_local1 != "Type")) and (_local1 != "Repeat")) and (_local1 != "Duration")) and (_local1 != "FirstTime")) {
Characters[Char][_local1] = Characters[Char][_local1] - Characters[Char].Spells[Ind][_local1];
}
}
Characters[Char].Spells.splice(Ind, 1);
} else {
for (_local1 in Characters[Char].Curses[Ind]) {
if (((((!Characters[Char].Curses[Ind].Repeat[_local1]) and (_local1 != "Type")) and (_local1 != "Repeat")) and (_local1 != "Duration")) and (_local1 != "FirstTime")) {
Characters[Char][_local1] = Characters[Char][_local1] - Characters[Char].Curses[Ind][_local1];
}
}
Characters[Char].Curses.splice(Ind, 1);
}
UpdatePlayerInfo();
Phase = 4;
MessageText = "";
CancelButt._visible = false;
Characters[NowTurning].Stamina = Characters[NowTurning].Stamina - Tiles[Characters[NowTurning].Tiles[SelectedTile].Value].Requirements[0];
Characters[NowTurning].Mana = Characters[NowTurning].Mana - Tiles[Characters[NowTurning].Tiles[SelectedTile].Value].Requirements[1];
UpdatePlayerInfo();
}
function ValueTiles() {
var _local4;
var _local1;
var _local2;
var _local13;
var _local14;
var _local6 = new Array();
var _local15;
var _local22;
var _local16;
var _local7;
var _local11 = new Array();
var _local8;
var _local9;
var _local12;
var _local10;
var _local21 = 0;
var _local20 = 0;
var _local3;
var _local5;
for (_local4 in Characters[NowTurning].Spells) {
if (Characters[NowTurning].Spells[_local4].HitDamage > 0) {
_local21 = _local21 + Characters[NowTurning].Spells[_local4].HitDamage;
}
}
for (_local4 in Characters[NowTurning].Spells) {
if (Characters[NowTurning].Spells[_local4].MagicAttackDamage > 0) {
_local20 = _local20 + Characters[NowTurning].Spells[_local4].MagicAttackDamage;
}
}
for (_local4 in Characters[NowTurning].Curses) {
if (Characters[NowTurning].Curses[_local4].HitDamage < 0) {
_local21 = _local21 + Characters[NowTurning].Curses[_local4].HitDamage;
}
}
for (_local4 in Characters[NowTurning].Curses) {
if (Characters[NowTurning].Curses[_local4].MagicAttackDamage < 0) {
_local20 = _local20 + Characters[NowTurning].Curses[_local4].MagickAttackDamage;
}
}
_local4 = 1;
while (_local4 <= 7) {
_local11[_local4] = GetTileEffects(NowTurning, _local4);
_local4++;
}
_local4 = 1;
while (_local4 <= 7) {
_local7 = _local11[_local4];
_local6[_local4] = {Value:Characters[NowTurning].Tiles[_local4].Value, Index:_local4, Score:0};
if ((Tiles[_local6[_local4].Value].Type == 1) or (Tiles[_local6[_local4].Value].Type == 2)) {
_local13 = (_local7[1].PhysicalDamage - Characters[NowTurning].Enemy.PhysicalDefense) * (1 - (Characters[NowTurning].Enemy.AvoidHit / 100));
_local14 = (_local7[1].MagicDamage - Characters[NowTurning].Enemy.MagicDefense) * (1 - (Characters[NowTurning].Enemy.AvoidMagicAttack / 100));
if (_local13 > 0) {
_local13 = _local13 + _local21;
} else {
_local13 = 0;
}
if (_local14 > 0) {
_local14 = _local14 + _local20;
} else {
_local14 = 0;
}
_local16 = ((Characters[NowTurning].HitDamage - Characters[NowTurning].Enemy.PhysicalDefense) * 2) + ((Characters[NowTurning].MagicAttackDamage - Characters[NowTurning].Enemy.MagicDefense) * 2);
if ((_local13 + _local14) >= Characters[NowTurning].Enemy.HP) {
_local6[_local4].Score = 10000;
} else if (Characters[NowTurning].Enemy.HP <= _local16) {
_local6[_local4].Score = _local6[_local4].Score + ((_local13 + _local14) * Math.pow(_local16 / Characters[NowTurning].Enemy.HP, 2));
} else {
_local6[_local4].Score = _local6[_local4].Score + (_local13 + _local14);
}
}
if (_local7[0].HP > 0) {
_local15 = _local7[0].HP;
_local22 = 0;
if ((Characters[NowTurning].HP + _local15) > Characters[NowTurning].MaxHP) {
_local22 = (Characters[NowTurning].HP + _local15) - Characters[NowTurning].MaxHP;
_local15 = Characters[NowTurning].MaxHP - Characters[NowTurning].HP;
}
_local16 = ((Characters[NowTurning].Enemy.HitDamage - Characters[NowTurning].PhysicalDefense) * 2) + ((Characters[NowTurning].Enemy.MagicAttackDamage - Characters[NowTurning].MagicDefense) * 2);
if (Characters[NowTurning].HP < _local16) {
_local15 = _local15 * Math.pow(_local16 / Characters[NowTurning].HP, 2);
}
_local6[_local4].Score = _local6[_local4].Score + (_local15 - (_local22 / 10));
}
if (_local7[0].HitDamage > 0) {
_local9 = new Array();
_local1 = 1;
while (_local1 <= 7) {
if ((_local11[_local1][1].PhysicalDamage + _local7[0].HitDamage) > 0) {
_local9.push({Damage:_local11[_local1][1].PhysicalDamage, Stamina:Tiles[Characters[NowTurning].Tiles[_local1].Value].Requirements[0]});
}
_local1++;
}
_local9.sortOn("Damage", 18);
_local12 = Characters[NowTurning].Stamina;
_local8 = 0;
_local10 = 1;
while (_local10 <= _local7[0].Duration) {
_local12 = _local12 + Characters[NowTurning].StaminaRecovery;
_local1 = 0;
while (_local1 < _local9.length) {
if (_local9[_local1].Stamina <= _local12) {
_local12 = _local12 - _local9[_local1].Stamina;
_local8 = _local8 + (_local7[0].HitDamage * (_local9[_local1].Damage / Characters[NowTurning].HitDamage));
_local9.splice(_local1, 1);
break;
}
_local1++;
}
_local10++;
}
_local6[_local4].Score = _local6[_local4].Score + _local8;
}
if (_local7[0].MagicAttackDamage > 0) {
_local9 = new Array();
_local1 = 1;
while (_local1 <= 7) {
if ((_local11[_local1][1].MagicDamage + _local7[0].MagicAttackDamage) > 0) {
_local9.push({Damage:_local11[_local1][1].MagicDamage, Mana:Tiles[Characters[NowTurning].Tiles[_local1].Value].Requirements[1]});
}
_local1++;
}
_local9.sortOn("Damage", 18);
CurrMana = Characters[NowTurning].Mana;
_local8 = 0;
_local10 = 1;
while (_local10 <= _local7[0].Duration) {
CurrMana = CurrMana + Characters[NowTurning].ManaRecovery;
_local1 = 0;
while (_local1 < _local9.length) {
if (_local9[_local1].Mana <= CurrMana) {
CurrMana = CurrMana - _local9[_local1].Mana;
_local8 = _local8 + (_local7[0].MagicAttackDamage * (_local9[_local1].Damage / Characters[NowTurning].MagicAttackDamage));
_local9.splice(_local1, 1);
break;
}
_local1++;
}
_local10++;
}
_local6[_local4].Score = _local6[_local4].Score + _local8;
}
if (_local7[1].HitDamage < 0) {
_local8 = -_local7[1].HitDamage;
if (_local8 >= Characters[NowTurning].Enemy.HitDamage) {
_local8 = Characters[NowTurning].Enemy.HitDamage;
}
if (_local7[1].Duration > 0) {
_local6[_local4].Score = _local6[_local4].Score + ((_local8 * _local7[1].Duration) / 3);
}
}
if (_local7[1].MagicAttackDamage < 0) {
_local8 = -_local7[1].MagicAttackDamage;
if (_local8 >= Characters[NowTurning].Enemy.MagicAttackDamage) {
_local8 = Characters[NowTurning].Enemy.MagicAttackDamage;
}
if (_local7[1].Duration > 0) {
_local6[_local4].Score = _local6[_local4].Score + ((_local8 * _local7[1].Duration) / 3);
}
}
if (Tiles[Characters[NowTurning].Tiles[_local4].Value].Special == 1) {
_local8 = 0;
for (_local1 in Characters[NowTurning].Curses) {
_local3 = 0;
for (_local2 in Characters[NowTurning].Curses[_local1]) {
if ((((_local2 != "FirstTime") and (_local2 != "Duration")) and (_local2 != "Repeat")) and (_local2 != "Type")) {
_local5 = 1;
if (_local2 == "Stamina") {
_local5 = Characters[NowTurning].StaminaRecovery * 3;
}
if (_local2 == "Mana") {
_local5 = Characters[NowTurning].ManaRecovery * 3;
}
if (_local2 == "AvoidHit") {
_local5 = 100 / (Characters[NowTurning].HitDamage * 2);
}
if (_local2 == "AvoidMagicAttack") {
_local5 = 100 / (Characters[NowTurning].MagicAttackDamage * 2);
}
_local3 = _local3 - (Characters[NowTurning].Curses[_local1][_local2] / _local5);
if (isNaN(_local3)) {
_local3 = 0;
}
}
}
if (Characters[NowTurning].Curses[_local1].Duration > 0) {
_local3 = _local3 * Characters[NowTurning].Curses[_local1].Duration;
}
if (_local3 > _local8) {
_local8 = _local3;
}
}
_local6[_local4].Score = _local6[_local4].Score + _local8;
}
if (Tiles[Characters[NowTurning].Tiles[_local4].Value].Special == 2) {
_local8 = 0;
for (_local1 in Characters[NowTurning].Enemy.Spells) {
_local3 = 0;
for (_local2 in Characters[NowTurning].Enemy.Spells[_local1]) {
if ((((_local2 != "FirstTime") and (_local2 != "Duration")) and (_local2 != "Repeat")) and (_local2 != "Type")) {
_local5 = 1;
if (_local2 == "Stamina") {
_local5 = Characters[NowTurning].Enemy.StaminaRecovery * 3;
}
if (_local2 == "Mana") {
_local5 = Characters[NowTurning].Enemy.ManaRecovery * 3;
}
if (_local2 == "AvoidHit") {
_local5 = 100 / (Characters[NowTurning].HitDamage * 2);
}
if (_local2 == "AvoidMagicAttack") {
_local5 = 100 / (Characters[NowTurning].MagicAttackDamage * 2);
}
_local3 = _local3 + (Characters[NowTurning].Enemy.Spells[_local1][_local2] / _local5);
if (isNaN(_local3)) {
_local3 = 0;
}
}
}
if (Characters[NowTurning].Enemy.Spells[_local1].Duration > 0) {
_local3 = _local3 * Characters[NowTurning].Enemy.Spells[_local1].Duration;
}
if (_local3 > _local8) {
_local8 = _local3;
}
}
_local6[_local4].Score = _local6[_local4].Score + _local8;
}
if (Tiles[Characters[NowTurning].Tiles[_local4].Value].Special == 3) {
_local8 = 0;
for (_local1 in Characters[NowTurning].Curses) {
_local3 = 0;
for (_local2 in Characters[NowTurning].Curses[_local1]) {
if ((((_local2 != "FirstTime") and (_local2 != "Duration")) and (_local2 != "Repeat")) and (_local2 != "Type")) {
_local5 = 1;
if (_local2 == "Stamina") {
_local5 = Characters[NowTurning].StaminaRecovery * 3;
}
if (_local2 == "Mana") {
_local5 = Characters[NowTurning].ManaRecovery * 3;
}
if (_local2 == "AvoidHit") {
_local5 = 100 / (Characters[NowTurning].Enemy.HitDamage * 2);
}
if (_local2 == "AvoidMagicAttack") {
_local5 = 100 / (Characters[NowTurning].Enemy.MagicAttackDamage * 2);
}
_local3 = _local3 - (Characters[NowTurning].Curses[_local1][_local2] / _local5);
if (isNaN(_local3)) {
_local3 = 0;
}
}
}
if (Characters[NowTurning].Curses[_local1].Duration > 0) {
_local3 = _local3 * Characters[NowTurning].Curses[_local1].Duration;
}
_local8 = _local8 + _local3;
}
_local6[_local4].Score = _local6[_local4].Score + _local8;
}
if (Tiles[Characters[NowTurning].Tiles[_local4].Value].Special == 4) {
_local8 = 0;
for (_local1 in Characters[NowTurning].Enemy.Spells) {
_local3 = 0;
for (_local2 in Characters[NowTurning].Enemy.Spells[_local1]) {
if ((((_local2 != "FirstTime") and (_local2 != "Duration")) and (_local2 != "Repeat")) and (_local2 != "Type")) {
_local5 = 1;
if (_local2 == "Stamina") {
_local5 = Characters[NowTurning].Enemy.StaminaRecovery * 3;
}
if (_local2 == "Mana") {
_local5 = Characters[NowTurning].Enemy.ManaRecovery * 3;
}
if (_local2 == "AvoidHit") {
_local5 = 100 / (Characters[NowTurning].HitDamage * 2);
}
if (_local2 == "AvoidMagicAttack") {
_local5 = 100 / (Characters[NowTurning].MagicAttackDamage * 2);
}
_local3 = _local3 + (Characters[NowTurning].Enemy.Spells[_local1][_local2] / _local5);
if (isNaN(_local3)) {
_local3 = 0;
}
}
}
if (Characters[NowTurning].Enemy.Spells[_local1].Duration > 0) {
_local3 = _local3 * Characters[NowTurning].Enemy.Spells[_local1].Duration;
}
_local8 = _local8 + _local3;
}
_local6[_local4].Score = _local6[_local4].Score + _local8;
}
if (_local7[1].HP < 0) {
if (Tiles[Characters[NowTurning].Tiles[_local4].Value].Repeat[1].HP and (_local7[1].Duration > 0)) {
_local8 = -(_local7[1].HP * _local7[1].Duration);
} else {
_local8 = _local7[1].HP;
}
_local6[_local4].Score = _local6[_local4].Score + _local8;
}
_local8 = 0;
for (_local1 in _local7[0]) {
_local3 = 0;
if ((((((_local1 != "Duration") and (_local1 != "HP")) and (_local1 != "PhysicalDamage")) and (_local1 != "MagicDamage")) and (_local1 != "HitDamage")) and (_local1 != "MagickAttackDamage")) {
RealEff = _local7[0][_local1];
if ((_local1 == "Stamina") and (Characters[NowTurning].StaminaRecovery > 0)) {
if ((!Tiles[_local6[_local4].Value].Repeat[0].Stamina) and ((Characters[NowTurning].Stamina + RealEff) > Characters[NowTurning].MaxStamina)) {
RealEff = Characters[NowTurning].MaxStamina - Characters[NowTurning].Stamina;
}
if (Characters[NowTurning].StaminaRecovery != 0) {
_local3 = _local3 + ((RealEff / Characters[NowTurning].StaminaRecovery) / 3);
}
}
if ((_local1 == "Mana") and (Characters[NowTurning].ManaRecovery > 0)) {
if ((!Tiles[_local6[_local4].Value].Repeat[0].Mana) and ((Characters[NowTurning].Mana + RealEff) > Characters[NowTurning].MaxMana)) {
RealEff = Characters[NowTurning].MaxMana - Characters[NowTurning].Mana;
}
if (Characters[NowTurning].ManaRecovery != 0) {
_local3 = _local3 + ((RealEff / Characters[NowTurning].ManaRecovery) / 3);
}
}
if (_local1 == "AvoidHit") {
_local3 = _local3 + ((_local7[0][_local1] * (Characters[NowTurning].Enemy.HitDamage * 2)) / 100);
}
if (_local1 == "AvoidMagicAttack") {
_local3 = _local3 + ((_local7[0][_local1] * (Characters[NowTurning].Enemy.MagicAttackDamage * 2)) / 100);
}
if (isNaN(_local3)) {
_local3 = 0;
}
}
if (_local7[0].Duration > 0) {
_local3 = _local3 * _local7[0].Duration;
}
_local8 = _local8 + _local3;
}
for (_local1 in _local7[1]) {
_local3 = 0;
if (((((((_local1 != "Duration") and (_local1 != "HP")) and (_local1 != "PhysicalDamage")) and (_local1 != "MagicDamage")) and (_local1 != "HitDamage")) and (_local1 != "MagickAttackDamage")) and (_local7[1][_local1] != (-Infinity))) {
RealEff = _local7[1][_local1];
if ((!Tiles[_local6[_local4].Value].Repeat[1][_local1]) and (Characters[NowTurning].Enemy[_local1] < RealEff)) {
RealEff = Characters[NowTurning].Enemy[_local1];
}
if ((_local1 == "Stamina") and (Characters[NowTurning].Enemy.StaminaRecovery != 0)) {
if (Characters[NowTurning].Enemy.StaminaRecovery != 0) {
_local3 = _local3 - ((RealEff / Characters[NowTurning].Enemy.StaminaRecovery) / 3);
}
}
if ((_local1 == "Mana") and (Characters[NowTurning].Enemy.ManaRecovery != 0)) {
if (Characters[NowTurning].Enemy.ManaRecovery != 0) {
_local3 = _local3 - ((RealEff / Characters[NowTurning].Enemy.ManaRecovery) / 3);
}
}
if (_local1 == "AvoidHit") {
_local3 = _local3 - ((RealEff * (Characters[NowTurning].HitDamage * 2)) / 100);
}
if (_local1 == "AvoidMagicAttack") {
_local3 = _local3 - ((RealEff * (Characters[NowTurning].MagicAttackDamage * 2)) / 100);
}
if (isNaN(_local3)) {
_local3 = 0;
}
}
if (_local7[1].Duration > 0) {
_local3 = _local3 * _local7[1].Duration;
}
_local8 = _local8 + _local3;
}
_local6[_local4].Score = _local6[_local4].Score + _local8;
if ((_local7[1].Stamina == (-Infinity)) and (Characters[NowTurning].Enemy.StaminaRecovery != 0)) {
_local6[_local4].Score = _local6[_local4].Score + (Characters[NowTurning].Stamina / Characters[NowTurning].Enemy.StaminaRecovery);
}
if ((_local7[1].Mana == (-Infinity)) and (Characters[NowTurning].Enemy.ManaRecovery != 0)) {
_local6[_local4].Score = _local6[_local4].Score + (Characters[NowTurning].Mana / Characters[NowTurning].Enemy.ManaRecovery);
}
_local4++;
}
_local6.splice(0, 1);
for (_local4 in _local6) {
if ((Characters[NowTurning].StaminaRecovery != 0) and (Characters[NowTurning].ManaRecovery != 0)) {
_local6[_local4].Score = _local6[_local4].Score - (((Tiles[_local6[_local4].Value].Requirements[0] / Characters[NowTurning].StaminaRecovery) / 3) + ((Tiles[_local6[_local4].Value].Requirements[1] / Characters[NowTurning].ManaRecovery) / 3));
}
}
if (Characters[NowTurning].Ghost) {
for (_local4 in _local6) {
if ((((((((((((((((((((((((_local6[_local4].Value == 1) or (_local6[_local4].Value == 5)) or (_local6[_local4].Value == 6)) or (_local6[_local4].Value == 9)) or (_local6[_local4].Value == 11)) or (_local6[_local4].Value == 12)) or (_local6[_local4].Value == 13)) or (_local6[_local4].Value == 16)) or (_local6[_local4].Value == 20)) or (_local6[_local4].Value == 21)) or (_local6[_local4].Value == 22)) or (_local6[_local4].Value == 24)) or (_local6[_local4].Value == 29)) or (_local6[_local4].Value == 30)) or (_local6[_local4].Value == 31)) or (_local6[_local4].Value == 32)) or (_local6[_local4].Value == 35)) or (_local6[_local4].Value == 41)) or (_local6[_local4].Value == 42)) or (_local6[_local4].Value == 43)) or (_local6[_local4].Value == 44)) or (_local6[_local4].Value == 45)) or (_local6[_local4].Value == 49)) or (_local6[_local4].Value == 52)) {
_local6[_local4].Score = -Infinity;
}
}
}
_local6.sortOn("Score", 18);
for (_local4 in _local6) {
_local6[_local4].CanUse = (Tiles[_local6[_local4].Value].Requirements[0] <= Characters[NowTurning].Stamina) and (Tiles[_local6[_local4].Value].Requirements[1] <= Characters[NowTurning].Mana);
}
if (!_local6[0].CanUse) {
if (Tiles[_local6[0].Value].Requirements[0] > Characters[NowTurning].Stamina) {
_local4 = 1;
while (_local4 < _local6.length) {
if (Characters[NowTurning].StaminaRecovery != 0) {
_local6[_local4].Score = _local6[_local4].Score - (Tiles[_local6[_local4].Value].Requirements[0] / Characters[NowTurning].StaminaRecovery);
}
_local4++;
}
}
if (Tiles[_local6[0].Value].Requirements[1] > Characters[NowTurning].Mana) {
_local4 = 1;
while (_local4 < _local6.length) {
if (Characters[NowTurning].ManaRecovery != 0) {
_local6[_local4].Score = _local6[_local4].Score - (Tiles[_local6[_local4].Value].Requirements[1] / Characters[NowTurning].ManaRecovery);
}
_local4++;
}
}
_local6.sortOn("Score", 18);
}
return(_local6);
}
ExpIncrease = CurrLevel * 3;
Options._visible = false;
if (CurrLevel == 1) {
Saved.data.Slots[0] = undefined;
}
if (CurrLevel == 14) {
BackG = 5;
} else {
while (BackG == PrevBG) {
BackG = random(4) + 1;
}
}
BG.gotoAndStop(BackG);
PrevBG = BackG;
OriginalParams = new Array();
for (i in Characters[1]) {
if (typeof(Characters[1][i]) != "object") {
OriginalParams[i] = Characters[1][i];
}
}
FT._visible = CurrLevel == 13;
if (CurrLevel == 13) {
FT.setMask(Char2);
}
MessageText = "";
MT._visible = false;
PermitedTiles = (StartWith + (CurrLevel * 3)) - 3;
CancelButt.ButtText = Text[42][Language].toUpperCase();
CancelButt._visible = false;
CancelButt.onPress = function () {
var _local3;
var _local2;
this._visible = false;
MessageText = "";
MT._visible = false;
if (Phase == 13) {
Phase = 1;
SkipButton.enabled = true;
} else {
_local3 = 1;
while (_local3 <= 2) {
_local2 = 0;
while (_local2 <= 29) {
this._parent["PI" + _local3]["S" + _local2].enabled = false;
this._parent["PI" + _local3]["C" + _local2].enabled = false;
_local2++;
}
_local3++;
}
Phase = 1;
UpdatePlayersTiles();
SkipButton.enabled = true;
}
};
SkipTurnBText = Text[34][Language].toUpperCase();
OptionsBText = Text[35][Language].toUpperCase();
i = 1;
while (i <= 2) {
this["PI" + i].HealthColor = new Color(this["PI" + i].HealthMeter.MI);
this["PI" + i].StaminaColor = new Color(this["PI" + i].StaminaMeter.MI);
this["PI" + i].MagicColor = new Color(this["PI" + i].MagicMeter.MI);
ii = 0;
while (ii <= 29) {
this["PI" + i]["S" + ii].Char = i;
this["PI" + i]["S" + ii].Spell = true;
this["PI" + i]["S" + ii].Ind = ii;
this["PI" + i]["S" + ii].onPress = function () {
RemoveSpellCurse(this.Char, this.Spell, this.Ind);
};
ii++;
}
ii = 0;
while (ii <= 29) {
this["PI" + i]["C" + ii].Char = i;
this["PI" + i]["C" + ii].Spell = false;
this["PI" + i]["C" + ii].Ind = ii;
this["PI" + i]["C" + ii].onPress = function () {
RemoveSpellCurse(this.Char, this.Spell, this.Ind);
};
ii++;
}
i++;
}
for (prm in Enemies[CurrLevel]) {
Characters[2][prm] = Enemies[CurrLevel][prm];
}
Characters[2].Name = EnemyNames[CurrLevel][Language];
ch = 1;
while (ch <= 2) {
GenerateAnim(Characters[ch]);
for (prm in Characters[ch].Anim) {
this["Char" + ch][prm].gotoAndStop(Characters[ch].Anim[prm]);
this[("Char" + ch) + "Shadow"][prm].gotoAndStop(Characters[ch].Anim[prm]);
this["SampleChar" + ch][prm].gotoAndStop(Characters[ch].Anim[prm]);
}
this["SampleChar" + ch].gotoAndStop(1);
Characters[ch].Char = this["Char" + ch];
this[("Char" + ch) + "Shadow"].Ind = ch;
this[("Char" + ch) + "Shadow"].onEnterFrame = function () {
this.gotoAndStop(this._parent["Char" + this.Ind]._currentframe);
};
if (Characters[ch].Ghost) {
this[("Char" + ch) + "Shadow"]._visible = false;
}
Characters[ch].Char.gotoAndStop(1);
Characters[ch].Tiles = new Array();
i = 1;
while (i <= 7) {
Characters[ch].Tiles[i] = new Object();
Characters[ch].Tiles[i].Symbol = this[(("P" + ch) + "T") + i];
Characters[ch].Tiles[i].Col = new Color(Characters[ch].Tiles[i].Symbol);
Characters[ch].Tiles[i].Value = random(PermitedTiles) + 1;
Characters[ch].Tiles[i].OriginalX = Characters[ch].Tiles[i].Symbol._x;
if (ch == 1) {
Characters[ch].Tiles[i].Symbol.Char = ch;
Characters[ch].Tiles[i].Symbol.Ind = i;
Characters[ch].Tiles[i].Symbol.onPress = function () {
if (Phase == 13) {
SelectedTile = this.Ind;
MessageText = "";
MT._visible = false;
CancelButt._visible = false;
Phase = 4;
UpdatePlayersTiles(false);
} else {
UseTile(this.Ind);
}
};
}
Characters[ch].Tiles[i].Symbol.Value.gotoAndStop(Characters[ch].Tiles[i].Value);
if (ch == 2) {
Characters[ch].Tiles[i].Symbol.Value._visible = false;
}
i++;
}
Characters[ch].HP = Characters[ch].MaxHP;
Characters[ch].Stamina = Math.round(Characters[ch].MaxStamina / 2);
Characters[ch].Mana = Math.round(Characters[ch].MaxMana / 2);
Characters[ch].Curses = new Array();
Characters[ch].Spells = new Array();
ch++;
}
Characters[1].Enemy = Characters[2];
Characters[2].Enemy = Characters[1];
Char2._xscale = (Char2Shadow._xscale = (Char2._yscale = Characters[2].Scale));
Char2Shadow._yscale = Char2Shadow._yscale * (Characters[2].Scale / 100);
Char2._y = 340 - (0.95 * Characters[2].Scale);
Char2Shadow._y = 340 - (0.16 * Char2Shadow._yscale);
Char2Shadow._x = 441 + (0.8 * Char2Shadow._yscale);
NowTurning = random(2) + 1;
UpdatePlayersTiles(NowTurning == 1);
Phase = 1;
TileInfo._alpha = 0;
UpdatePlayerInfo();
UCBG1.gotoAndStop(2);
UCBG2.gotoAndStop(2);
Instance of Symbol 502 MovieClip "Char1Shadow" in Frame 7
onClipEvent (enterFrame) {
if ((_currentframe > 1) and (_currentframe != 91)) {
play();
}
}
Instance of Symbol 502 MovieClip "Char2Shadow" in Frame 7
onClipEvent (enterFrame) {
if ((_currentframe > 1) and (_currentframe != 91)) {
play();
}
}
Frame 8
if (!Paused) {
if (CurrLevel == 13) {
FT.filters = [new flash.filters.GlowFilter(16737792, 50, 30, 30, 1.5, 3, false, false), new flash.filters.BlurFilter(4, 4, 3)];
Char2Shadow.filters = [new flash.filters.BlurFilter(10, 10, 3)];
}
if ((Phase == 1) and (Characters[NowTurning].Char.getDepth() > Characters[NowTurning].Enemy.Char.getDepth())) {
Characters[NowTurning].Char.swapDepths(Characters[NowTurning].Enemy.Char);
}
if (Phase == 1) {
if (NowTurning == 1) {
UCBG1.gotoAndStop(1);
UCBG2.gotoAndStop(2);
}
if (NowTurning == 2) {
UCBG1.gotoAndStop(2);
UCBG2.gotoAndStop(1);
}
}
OverTile = 0;
if ((NowTurning == 1) and ((Phase == 1) or (Phase == 13))) {
i = 1;
while (i <= 7) {
if ((((_xmouse >= Characters[1].Tiles[i].Symbol._x) and (_xmouse <= (Characters[1].Tiles[i].Symbol._x + 50))) and (_ymouse >= Characters[1].Tiles[i].Symbol._y)) and (_ymouse <= (Characters[1].Tiles[i].Symbol._y + 50))) {
OverTile = i;
}
i++;
}
}
if (OverTile > 0) {
if (OldOverTile != OverTile) {
SetInfoTo(1, OverTile);
}
Characters[1].Tiles[OverTile].Col.setTransform({ra:120, rb:0, ga:120, gb:0, ba:120, bb:0});
AnyOn = true;
}
i = 1;
while (i <= 7) {
if (i != OverTile) {
Characters[1].Tiles[i].Col.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
}
i++;
}
if (OverTile == 0) {
AnyOn = false;
}
OldOverTile = OverTile;
OverInfo = 0;
i = 1;
while (i <= 2) {
if ((((_xmouse >= (this["PI" + i]._x - 45)) and (_xmouse <= (this["PI" + i]._x + 45))) and (_ymouse >= (this["PI" + i]._y + 110))) and (_ymouse <= (this["PI" + i]._y + 130))) {
OverInfo = i;
}
i++;
}
if (OverInfo > 0) {
if (OverInfo != OldOverInfo) {
MoreCharInfo(OverInfo);
}
}
OldOverInfo = OverInfo;
OverSpell = false;
i = 1;
while (i <= 2) {
if ((((_xmouse >= (this["PI" + i]._x - 44)) and (_xmouse <= (this["PI" + i]._x + 46))) and (_ymouse >= (this["PI" + i]._y + 161))) and (_ymouse <= (this["PI" + i]._y + 236))) {
SpellX = _xmouse - (this["PI" + i]._x - 44);
SpellY = _ymouse - (this["PI" + i]._y + 161);
SpellNum = (Math.floor(SpellY / 15) * 6) + Math.floor(SpellX / 15);
if (Characters[i].Spells.length > SpellNum) {
OverSpell = true;
DisplaySpellCurse(true, i, SpellNum);
}
}
i++;
}
OverCurse = false;
i = 1;
while (i <= 2) {
if ((((_xmouse >= (this["PI" + i]._x - 44)) and (_xmouse <= (this["PI" + i]._x + 46))) and (_ymouse >= (this["PI" + i]._y + 262))) and (_ymouse <= (this["PI" + i]._y + 337))) {
SpellX = _xmouse - (this["PI" + i]._x - 44);
SpellY = _ymouse - (this["PI" + i]._y + 262);
SpellNum = (Math.floor(SpellY / 15) * 6) + Math.floor(SpellX / 15);
if (Characters[i].Curses.length > SpellNum) {
OverCurse = true;
DisplaySpellCurse(false, i, SpellNum);
}
}
i++;
}
if (((OverSpell or OverCurse) or (OverInfo > 0)) or (OverTile > 0)) {
if (TileInfo._alpha < 100) {
TileInfo._alpha = TileInfo._alpha + 10;
}
} else if (TileInfo._alpha > 0) {
TileInfo._alpha = TileInfo._alpha - 10;
}
if ((Phase == 1) and (NowTurning == 2)) {
ValuedTiles = ValueTiles();
Selected = undefined;
i = 0;
while (i < ValuedTiles.length) {
if (ValuedTiles[i].CanUse and (ValuedTiles[i].Score > 0)) {
Selected = i;
break;
}
i++;
}
if (Selected != undefined) {
UseTile(ValuedTiles[Selected].Index);
} else {
for (i in ValuedTiles) {
Effects = GetTileEffects(NowTurning, ValuedTiles[i].Index);
if ((Effects[0].HP > 0) and ((Effects[0].HP + Characters[NowTurning].HP) > Characters[NowTurning].MaxHP)) {
ValuedTiles[i].Score = ValuedTiles[i].Score + (((Effects[0].HP + Characters[NowTurning].HP) - Characters[NowTurning].MaxHP) * 1.1);
}
}
ValuedTiles.sortOn("Score", 18);
SelectedTile = ValuedTiles[ValuedTiles.length - 1].Index;
Phase = 4;
}
}
if (Phase == 2) {
Counter = Counter + 3;
if (Counter == 30) {
SelectedTileType = Tiles[Characters[NowTurning].Tiles[SelectedTile].Value].Type;
if (Tiles[Characters[NowTurning].Tiles[SelectedTile].Value].Special > 0) {
switch (Tiles[Characters[NowTurning].Tiles[SelectedTile].Value].Special) {
case 1 :
if (NowTurning == 1) {
i = 0;
while (i < Characters[NowTurning].Curses.length) {
this["PI" + NowTurning]["C" + i].enabled = true;
i++;
}
Phase = 12;
MessageText = Text[39][Language];
MT._visible = true;
CancelButt._visible = true;
} else {
TheBest = 0;
Selected = undefined;
for (i in Characters[NowTurning].Curses) {
Curr = 0;
for (ii in Characters[NowTurning].Curses[i]) {
if ((((ii != "FirstTime") and (ii != "Repeat")) and (ii != "Type")) and (ii != "Duration")) {
Div = 1;
if (ii == "Stamina") {
Div = Characters[NowTurning].StaminaRecovery * 3;
}
if (ii == "Mana") {
Div = Characters[NowTurning].ManaRecovery * 3;
}
if (ii == "AvoidHit") {
Div = 100 / (Characters[NowTurning].Enemy.HitDamage * 2);
}
if (ii == "AvoidMagicAttack") {
Div = 100 / (Characters[NowTurning].Enemy.MagicAttackDamage * 2);
}
Curr = Curr - (Characters[NowTurning].Curses[i][ii] / Div);
}
}
if (Characters[NowTurning].Curses[i].Duration > 0) {
Curr = Curr * Characters[NowTurning].Curses[i].Duration;
}
if (Curr > TheBest) {
TheBest = Curr;
Selected = i;
}
}
if (Selected != undefined) {
RemoveSpellCurse(2, false, Selected);
} else {
Phase = 4;
}
}
break;
case 2 :
if (NowTurning == 1) {
if (NowTurning == 1) {
Opposite = 2;
} else {
Opposite = 1;
}
i = 0;
while (i < Characters[NowTurning].Enemy.Spells.length) {
this["PI" + Opposite]["S" + i].enabled = true;
i++;
}
Phase = 12;
MessageText = Text[41][Language];
MT._visible = true;
CancelButt._visible = true;
} else {
TheBest = 0;
Selected = undefined;
for (i in Characters[NowTurning].Enemy.Spells) {
Curr = 0;
for (ii in Characters[NowTurning].Enemy.Spells[i]) {
if ((((ii != "FirstTime") and (ii != "Repeat")) and (ii != "Type")) and (ii != "Duration")) {
Div = 1;
if (ii == "Stamina") {
Div = Characters[NowTurning].Enemy.StaminaRecovery * 3;
}
if (ii == "Mana") {
Div = Characters[NowTurning].Enemy.ManaRecovery * 3;
}
if (ii == "AvoidHit") {
Div = 100 / (Characters[NowTurning].HitDamage * 2);
}
if (ii == "AvoidMagicAttack") {
Div = 100 / (Characters[NowTurning].MagicAttackDamage * 2);
}
Curr = Curr + (Characters[NowTurning].Enemy.Spells[i][ii] / Div);
}
}
if (Characters[NowTurning].Enemy.Spells[i].Duration > 0) {
Curr = Curr * Characters[NowTurning].Enemy.Spells[i].Duration;
}
if (Curr > TheBest) {
TheBest = Curr;
Selected = i;
}
}
if (Selected != undefined) {
RemoveSpellCurse(1, true, Selected);
} else {
Phase = 4;
}
}
break;
case 3 :
for (i in Characters[NowTurning].Curses) {
RemoveSpellCurse(NowTurning, false, i);
}
UpdatePlayerInfo();
Phase = 4;
break;
case 4 :
if (NowTurning == 1) {
Opposite = 2;
}
if (NowTurning == 2) {
Opposite = 1;
}
for (i in Characters[NowTurning].Enemy.Spells) {
RemoveSpellCurse(Opposite, true, i);
}
UpdatePlayerInfo();
Phase = 4;
}
} else {
TileEffects = GetTileEffects(NowTurning, SelectedTile);
if (SelectedTileType == 5) {
Phase = 4;
ImplementTileEffects(TileEffects, Characters[NowTurning].Tiles[SelectedTile].Value);
HEAL.start();
} else {
Phase = 3;
AnimCounter = 0;
EnemyBehavior = 0;
AffectEnemyHP = 0;
Avoid = false;
if (TileEffects[1].HP != undefined) {
AffectEnemyHP = AffectEnemyHP + TileEffects[1].HP;
}
if (TileEffects[1].PhysicalDamage != undefined) {
AffectEnemyHP = AffectEnemyHP - (TileEffects[1].PhysicalDamage - Characters[NowTurning].Enemy.PhysicalDefense);
}
if (TileEffects[1].MagicDamage != undefined) {
AffectEnemyHP = AffectEnemyHP - (TileEffects[1].MagicDamage - Characters[NowTurning].Enemy.MagicDefense);
}
if ((SelectedTileType == 1) and (!Characters[NowTurning].Enemy.Ghost)) {
Avoid = Math.random() < (Characters[NowTurning].Enemy.AvoidHit / 100);
if (Avoid) {
EnemyBehavior = 2;
} else if ((Characters[NowTurning].Enemy.HP + AffectEnemyHP) <= 0) {
EnemyBehavior = 5;
} else {
EnemyBehavior = 1;
}
}
if (SelectedTileType == 2) {
Avoid = Math.random() < (Characters[NowTurning].Enemy.AvoidMagicAttack / 100);
if (Avoid) {
EnemyBehavior = 4;
} else if ((Characters[NowTurning].Enemy.HP + AffectEnemyHP) <= 0) {
if (!Characters[NowTurning].Enemy.Ghost) {
EnemyBehavior = 6;
} else {
EnemyBehavior = 7;
}
} else if (!Characters[NowTurning].Enemy.Ghost) {
EnemyBehavior = 3;
}
}
if (SelecetedTileType == 4) {
Avoid = Math.random() < (Characters[NowTurning].Enemy.AvoidCurse / 100);
if (Avoid) {
EnemyBehavior = 4;
}
}
}
}
}
}
if (((Phase >= 2) and (Phase <= 5)) or (Phase == 12)) {
Characters[NowTurning].Tiles[SelectedTile].Symbol.filters = [new flash.filters.GlowFilter(14544639, Counter / 50, Counter, Counter, Counter / 10, 3, false, false)];
}
if (Phase == 3) {
switch (SelectedTileType) {
case 1 :
Characters[NowTurning].Char.gotoAndStop(2 + AnimCounter);
if ((AnimCounter == 15) and (!Avoid)) {
SWORDHIT.start();
}
if ((AnimCounter == 15) and Avoid) {
SWORDSWING.start();
}
if ((AnimCounter == 17) and (!Avoid)) {
ImplementTileEffects(TileEffects, Characters[NowTurning].Tiles[SelectedTile].Value);
}
if (AnimCounter >= 38) {
if (((EnemyBehavior != 5) and (EnemyBehavior != 6)) and (EnemyBehavior != 7)) {
Phase = 4;
} else {
Characters[NowTurning].Char.gotoAndStop(1);
}
}
break;
case 2 :
case 3 :
case 4 :
if (AnimCounter == 1) {
if (SelectedTileType == 2) {
MAGICATTACK.start();
} else {
SPELLCURSE.start();
}
}
if (AnimCounter <= 19) {
Characters[NowTurning].Char.gotoAndStop(79 + AnimCounter);
Characters[NowTurning].Char.filters = [new flash.filters.GlowFilter(14544639, AnimCounter / 30, AnimCounter * 2, AnimCounter * 2, AnimCounter / 5, 3, false, false)];
}
if ((AnimCounter > 19) and (AnimCounter <= 29)) {
Characters[NowTurning].Char.gotoAndStop(98);
Characters[NowTurning].Char.filters = [new flash.filters.GlowFilter(14544639, 0.633333333333333, 38, 38, 3.8, 3, false, false)];
}
if ((AnimCounter == 25) and (!Avoid)) {
ImplementTileEffects(TileEffects, Characters[NowTurning].Tiles[SelectedTile].Value);
}
if (AnimCounter >= 30) {
Characters[NowTurning].Char.gotoAndStop(98 - (AnimCounter - 30));
Characters[NowTurning].Char.filters = [new flash.filters.GlowFilter(14544639, (19 - (AnimCounter - 30)) / 30, (19 - (AnimCounter - 30)) * 2, (19 - (AnimCounter - 30)) * 2, (19 - (AnimCounter - 30)) / 5, 3, false, false)];
}
if (AnimCounter < 50) {
break;
}
if (((EnemyBehavior != 5) and (EnemyBehavior != 6)) and (EnemyBehavior != 7)) {
Phase = 4;
} else {
Characters[NowTurning].Char.gotoAndStop(1);
}
}
switch (EnemyBehavior) {
case 1 :
if (AnimCounter >= 17) {
Characters[NowTurning].Enemy.Char.gotoAndStop(41 + (AnimCounter - 17));
}
if (AnimCounter > 34) {
Characters[NowTurning].Enemy.Char.gotoAndStop(1);
}
break;
case 2 :
if (AnimCounter <= 17) {
Characters[NowTurning].Enemy.Char.gotoAndStop(60 + AnimCounter);
}
if ((AnimCounter > 17) and (AnimCounter <= 34)) {
Characters[NowTurning].Enemy.Char.gotoAndStop(77 - (AnimCounter - 17));
}
if (AnimCounter > 34) {
Characters[NowTurning].Enemy.Char.gotoAndStop(1);
}
break;
case 3 :
if (AnimCounter >= 24) {
Characters[NowTurning].Enemy.Char.gotoAndStop(41 + (AnimCounter - 24));
}
if (AnimCounter > 41) {
Characters[NowTurning].Enemy.Char.gotoAndStop(1);
}
break;
case 4 :
if (AnimCounter < 25) {
Characters[NowTurning].Enemy.Char.filters = [new flash.filters.GlowFilter(16755268, AnimCounter / 30, AnimCounter * 3, AnimCounter * 3, AnimCounter / 10, 3, false, false)];
} else {
Characters[NowTurning].Enemy.Char.filters = [new flash.filters.GlowFilter(16755268, (50 - AnimCounter) / 30, (50 - AnimCounter) * 3, (50 - AnimCounter) * 3, (50 - AnimCounter) / 10, 3, false, false)];
}
break;
case 5 :
if ((AnimCounter >= 17) and (AnimCounter <= 48)) {
Characters[NowTurning].Enemy.Char.gotoAndStop(102 + (AnimCounter - 17));
}
if (AnimCounter >= 48) {
Phase = 9;
}
break;
case 6 :
if ((AnimCounter >= 25) and (AnimCounter <= 56)) {
Characters[NowTurning].Enemy.Char.gotoAndStop(102 + (AnimCounter - 25));
}
if (AnimCounter >= 56) {
Phase = 9;
}
break;
case 7 :
if ((AnimCounter >= 25) and (AnimCounter <= 50)) {
Characters[NowTurning].Enemy.Char._alpha = 100 - ((AnimCounter - 25) * 4);
}
if (AnimCounter < 50) {
break;
}
Phase = 9;
}
AnimCounter++;
}
if (Phase == 4) {
Characters[1].Char.gotoAndStop(1);
Characters[2].Char.gotoAndStop(1);
FadeCounter = 0;
Phase = 5;
}
if (Phase == 5) {
FadeCounter++;
Characters[NowTurning].Tiles[SelectedTile].Symbol.filters = [new flash.filters.BlurFilter(FadeCounter, FadeCounter, 3)];
Characters[NowTurning].Tiles[SelectedTile].Symbol._alpha = 100 - (FadeCounter * 5);
if (FadeCounter >= 20) {
Counter = 0;
if (SelectedTile < 7) {
Phase = 6;
} else {
Phase = 7;
}
}
}
if (Phase == 6) {
Counter++;
i = SelectedTile;
while (i <= 7) {
Characters[NowTurning].Tiles[i].Symbol._x = Characters[NowTurning].Tiles[i].OriginalX - (Counter * 5.7);
i++;
}
if (Counter >= 10) {
Phase = 7;
}
}
if (Phase == 7) {
i = SelectedTile;
while (i <= 7) {
Characters[NowTurning].Tiles[i].Symbol._x = Characters[NowTurning].Tiles[i].OriginalX;
i++;
}
Characters[NowTurning].Tiles[SelectedTile].Symbol._alpha = 100;
if (NowTurning == 2) {
Characters[NowTurning].Tiles[SelectedTile].Symbol.Value._visible = false;
}
i = SelectedTile;
while (i <= 6) {
Characters[NowTurning].Tiles[i].Value = Characters[NowTurning].Tiles[i + 1].Value;
i++;
}
Characters[NowTurning].Tiles[7].Value = random(PermitedTiles) + 1;
i = 1;
while (i <= 7) {
Characters[NowTurning].Tiles[i].Symbol.Value.gotoAndStop(Characters[NowTurning].Tiles[i].Value);
i++;
}
UpdatePlayersTiles(false);
GetAlphaTo = Characters[NowTurning].Tiles[7].Symbol._alpha;
Characters[NowTurning].Tiles[7].Symbol._alpha = 0;
Phase = 8;
Counter = 0;
}
if (Phase == 8) {
Counter = Counter + 10;
Characters[NowTurning].Tiles[7].Symbol._alpha = Counter;
if (Counter >= GetAlphaTo) {
Phase = 1;
AffectHP = 0;
for (i in Characters[NowTurning].Spells) {
if (Characters[NowTurning].Spells[i].FirstTime) {
Characters[NowTurning].Spells[i].FirstTime = false;
} else {
for (ii in Characters[NowTurning].Spells[i]) {
if ((((Characters[NowTurning].Spells[i].Repeat[ii] and (ii != "Type")) and (ii != "Repeat")) and (ii != "Duration")) and (ii != "FirstTime")) {
Characters[NowTurning][ii] = Characters[NowTurning][ii] + Characters[NowTurning].Spells[i][ii];
if (ii == "HP") {
AffectHP = AffectHP + Characters[NowTurning].Spells[i][ii];
}
}
}
Characters[NowTurning].Spells[i].Duration--;
if (Characters[NowTurning].Spells[i].Duration <= 0) {
for (ii in Characters[NowTurning].Spells[i]) {
if (((((!Characters[NowTurning].Spells[i].Repeat[ii]) and (ii != "Type")) and (ii != "Repeat")) and (ii != "Duration")) and (ii != "FirstTime")) {
Characters[NowTurning][ii] = Characters[NowTurning][ii] - Characters[NowTurning].Spells[i][ii];
}
}
Characters[NowTurning].Spells.splice(i, 1);
}
}
}
for (i in Characters[NowTurning].Curses) {
for (ii in Characters[NowTurning].Curses[i]) {
if (((Characters[NowTurning].Curses[i].Repeat[ii] and (ii != "Type")) and (ii != "Repeat")) and (ii != "Duration")) {
Characters[NowTurning][ii] = Characters[NowTurning][ii] + Characters[NowTurning].Curses[i][ii];
if (ii == "HP") {
AffectHP = AffectHP + Characters[NowTurning].Curses[i][ii];
}
}
}
Characters[NowTurning].Curses[i].Duration--;
if (Characters[NowTurning].Curses[i].Duration <= 0) {
for (ii in Characters[NowTurning].Curses[i]) {
if ((((!Characters[NowTurning].Curses[i].Repeat[ii]) and (ii != "Type")) and (ii != "Repeat")) and (ii != "Duration")) {
Characters[NowTurning][ii] = Characters[NowTurning][ii] - Characters[NowTurning].Curses[i][ii];
}
}
Characters[NowTurning].Curses.splice(i, 1);
}
}
if (Characters[NowTurning].AutoSelfHealing > 0) {
Characters[NowTurning].HP = Characters[NowTurning].HP + Characters[NowTurning].AutoSelfHealing;
AffectHP = AffectHP + Characters[NowTurning].AutoSelfHealing;
}
if (Characters[NowTurning].HP <= 0) {
AffectHP = AffectHP + Characters[NowTurning].HP;
Characters[NowTurning].HP = 0;
Phase = 11;
AnimCounter = 0;
}
if (Characters[NowTurning].HP > Characters[NowTurning].MaxHP) {
AffectHP = AffectHP - (Characters[NowTurning].HP - Characters[NowTurning].MaxHP);
Characters[NowTurning].HP = Characters[NowTurning].MaxHP;
}
if (Characters[NowTurning].Stamina > Characters[NowTurning].MaxStamina) {
Characters[NowTurning].Stamina = Characters[NowTurning].MaxStamina;
}
if (Characters[NowTurning].Mana > Characters[NowTurning].MaxMana) {
Characters[NowTurning].Mana = Characters[NowTurning].MaxMana;
}
for (i in Characters[NowTurning]) {
if (Characters[NowTurning][i] < 0) {
Characters[NowTurning][i] = 0;
}
}
if (AffectHP != 0) {
RunHPHit(NowTurning, AffectHP);
}
if (Phase != 11) {
if (NowTurning == 1) {
NowTurning = 2;
} else {
NowTurning = 1;
}
Characters[NowTurning].Stamina = Characters[NowTurning].Stamina + Characters[NowTurning].StaminaRecovery;
Characters[NowTurning].Mana = Characters[NowTurning].Mana + Characters[NowTurning].ManaRecovery;
if (Characters[NowTurning].Stamina > Characters[NowTurning].MaxStamina) {
Characters[NowTurning].Stamina = Characters[NowTurning].MaxStamina;
}
if (Characters[NowTurning].Mana > Characters[NowTurning].MaxMana) {
Characters[NowTurning].Mana = Characters[NowTurning].MaxMana;
}
if (NowTurning == 1) {
SkipButton.enabled = true;
}
}
UpdatePlayerInfo();
UpdatePlayersTiles(NowTurning == 1);
}
}
if (Phase == 9) {
if (NowTurning == 1) {
VicDef.Inside.TheText = Text[46][Language].toUpperCase();
VicDef.Inside.Txt.setTextFormat(GreenText);
}
if (NowTurning == 2) {
VicDef.Inside.TheText = Text[47][Language].toUpperCase();
VicDef.Inside.Txt.setTextFormat(RedText);
}
Counter = 0;
Phase = 10;
}
if (Phase == 10) {
Counter++;
VicDef.gotoAndStop(Counter);
if (Counter == 30) {
for (i in OriginalParams) {
Characters[1][i] = OriginalParams[i];
}
if (NowTurning == 1) {
Earn = (CurrLevel * 500) + (CurrLevel * Characters[1].HP);
if (Characters[1].HP == Characters[1].MaxHP) {
Earn = Earn * 2;
}
if (CurrLevel < 14) {
Money = Money + Earn;
Score = Score + Math.round(Earn / 2);
SaveGame(0, ((("autosave \"" + Characters[1].Name) + " l.") + (CurrLevel + 1)) + "\"");
gotoAndStop ("Between");
} else {
Score = Score + (Math.round(Earn / 2) + 5000);
gotoAndStop ("Game Passed");
}
}
if (NowTurning == 2) {
gotoAndStop ("Dead");
}
}
}
if (Phase == 11) {
Characters[NowTurning].Char.gotoAndStop(102 + AnimCounter);
if (AnimCounter >= 31) {
if (NowTurning == 1) {
NowTurning = 2;
} else {
NowTurning = 1;
}
Phase = 9;
}
AnimCounter++;
}
}
Frame 9
gotoAndPlay ("Cycle");
Frame 10
gotoAndStop ("Level End");
Frame 12
gotoAndStop ("Level End");
Frame 13
gotoAndStop ("Dead");
Frame 14
YoureDeadTxt = Text[101][Language].toUpperCase();
WhatToDoTxt = Text[102][Language];
AutosaveButton.LoadSavedTxt = Text[103][Language].toUpperCase();
SSButt.SubmitScoreTxt = Text[104][Language].toUpperCase();
TMMTxt = Text[107][Language].toUpperCase();
ScoreTxt = (Text[105][Language].toUpperCase() + " ") + Score;
if (Score <= LastSubmitted) {
SSButt._alpha = 30;
SSButt.TheButton.enabled = false;
}
if (!(Saved.data.Slots[0] instanceof Object)) {
AutosaveButton._alpha = 30;
AutosaveButton.TheButton.enabled = false;
}
_root.kongregateStats.submit("Score", Score);
Frame 15
gotoAndStop ("Dead");
Frame 16
gotoAndStop ("Between");
Frame 17
if ((CurrLevel == 3) or (CurrLevel == 10)) {
LevelPassedTxt = (Characters[2].Name.toUpperCase() + " ") + Text[118][Language].toUpperCase();
} else {
LevelPassedTxt = (Characters[2].Name.toUpperCase() + " ") + Text[116][Language].toUpperCase();
}
WhatToDoTxt = Text[102][Language];
ContinueTxt = Text[117][Language].toUpperCase();
ScoreTxt = (Text[105][Language].toUpperCase() + " ") + Score;
_root.kongregateStats.submit("Score", Score);
_root.kongregateStats.submit("LevelPassed", CurrLevel);
Frame 18
gotoAndStop ("Between");
Frame 19
gotoAndStop ("Game Passed");
Frame 20
ScoreTxt = (Text[105][Language].toUpperCase() + " ") + Score;
CongratulationsTxt = Text[106][Language];
SubmitScoreTxt = Text[104][Language].toUpperCase();
_root.kongregateStats.submit("Score", Score);
_root.kongregateStats.submit("LevelPassed", CurrLevel);
Frame 21
gotoAndStop ("Game Passed");
Frame 22
gotoAndStop ("Submit Score");
Symbol 13 Button
on (press) {
getURL ("http://www.sugar-free-games.com", "_SELF");
}
Symbol 21 MovieClip Frame 100
_parent.gotoAndPlay("Language Select");
Symbol 38 Button
on (release) {
Language = 0;
gotoAndStop ("Main Menu");
}
Symbol 39 Button
on (release) {
Language = 1;
gotoAndStop ("Main Menu");
}
Symbol 40 Button
on (release) {
Language = 2;
gotoAndStop ("Main Menu");
}
Symbol 63 Button
on (release) {
gotoAndStop ("Char Setup");
}
Symbol 64 Button
on (release) {
OpenOptions(4);
}
Symbol 65 Button
on (release) {
OpenOptions(5);
}
Symbol 66 Button
on (press) {
getURL ("http://www.sugar-free-games.com/13guardians.php", "_blank");
}
Symbol 67 Button
on (press) {
getURL ("http://www.sugar-free-games.com/showgame.php?game=1313", "_blank");
}
Symbol 68 Button
on (press) {
getURL ("http://www.sugar-free-games.com", "_blank");
}
Symbol 79 Button
on (release) {
_parent.CloseOptions();
}
Symbol 80 Button
on (release) {
gotoAndStop (3);
}
Symbol 81 Button
on (release) {
gotoAndStop (2);
}
Symbol 82 Button
on (release) {
gotoAndStop (5);
}
Symbol 101 Button
on (release) {
gotoAndStop (4);
}
Symbol 102 Button
on (release) {
gotoAndStop (1);
}
Symbol 103 Button
on (release) {
_parent.gotoAndStop("Dead");
_parent.CloseOptions();
}
Symbol 110 Button
on (press) {
_parent.SelectSlot(Index);
}
Symbol 115 Button
on (release) {
_parent._parent.LoadGame(_parent.SelectedSlot);
_parent._parent.gotoAndStop("Level End");
_parent._parent.CloseOptions();
}
Symbol 119 Button
on (release) {
if (_parent.FromMain) {
_parent.CloseOptions();
} else {
gotoAndStop (1);
}
}
Symbol 122 MovieClip Frame 1
function SetCheckBox() {
if (_parent.SoundOn) {
SoundCB.gotoAndStop(1);
_parent.SoundControl.setVolume(100);
} else {
SoundCB.gotoAndStop(2);
_parent.SoundControl.setVolume(0);
}
}
function SetQualityCB() {
HighCB.gotoAndStop(2);
MediumCB.gotoAndStop(2);
LowCB.gotoAndStop(2);
if (_parent._quality == "HIGH") {
HighCB.gotoAndStop(1);
}
if (_parent._quality == "MEDIUM") {
MediumCB.gotoAndStop(1);
}
if (_parent._quality == "LOW") {
LowCB.gotoAndStop(1);
}
}
SetCheckBox();
SoundCB.onPress = function () {
_parent.SoundOn = !_parent.SoundOn;
SetCheckBox();
};
SetQualityCB();
HighCB.onPress = function () {
_parent._quality = "HIGH";
SetQualityCB();
};
MediumCB.onPress = function () {
_parent._quality = "MEDIUM";
SetQualityCB();
};
LowCB.onPress = function () {
_parent._quality = "LOW";
SetQualityCB();
};
Symbol 122 MovieClip Frame 2
AreYouSureTxt = _parent.Text[83][_parent.Language];
YesTxt = _parent.Text[84][_parent.Language].toUpperCase();
NoTxt = _parent.Text[85][_parent.Language].toUpperCase();
Symbol 122 MovieClip Frame 3
AreYouSureTxt = _parent.Text[86][_parent.Language];
YesTxt = _parent.Text[84][_parent.Language].toUpperCase();
NoTxt = _parent.Text[85][_parent.Language].toUpperCase();
Symbol 122 MovieClip Frame 4
function SelectSlot(Ind) {
var _local2;
SelectedSlot = Ind;
_local2 = 0;
while (_local2 <= 7) {
if (_local2 == SelectedSlot) {
this["Slot" + _local2].gotoAndStop(1);
} else {
this["Slot" + _local2].gotoAndStop(2);
}
_local2++;
}
LoadButton._alpha = 100;
LoadButton.TheButton.enabled = true;
}
SelectSlotTxt = _parent.Text[80][_parent.Language];
LoadTitle = _parent.Text[74][_parent.Language].toUpperCase();
SelectedSlot = 0;
LoadButton._alpha = 30;
LoadButton.TheButton.enabled = false;
LoadButton.TheText = _parent.Text[74][_parent.Language].toUpperCase();
CancelButtonTxt = _parent.Text[81][_parent.Language].toUpperCase();
i = 0;
while (i <= 7) {
this["Slot" + i].gotoAndStop(2);
this["Slot" + i].Index = i;
if (_parent.Saved.data.Slots[i] instanceof Object) {
SName = _parent.Saved.data.Slots[i].Name;
this["Slot" + i].TheButton.enabled = true;
this["Slot" + i]._alpha = 100;
} else {
SName = _parent.Text[82][_parent.Language];
this["Slot" + i].TheButton.enabled = false;
this["Slot" + i]._alpha = 50;
}
this["Slot" + i].TheText = (i + ". ") + SName;
i++;
}
Symbol 122 MovieClip Frame 5
CancelButtonTxt = _parent.Text[115][_parent.Language].toUpperCase();
InstructionsTxt = _parent.Instructions[_parent.Language];
Symbol 136 Button
on (release) {
for (prm in Profiles[SelectedProfile]) {
Characters[1][prm] = Profiles[SelectedProfile][prm];
}
Characters[1].Name = PlayerName.text;
gotoAndPlay ("Init");
}
Symbol 511 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 1
stop();
Symbol 621 Button
on (press) {
MessageText = Text[43][Language];
MT._visible = true;
CancelButt._visible = true;
Phase = 13;
var i;
i = 1;
while (i <= 7) {
Characters[1].Tiles[i].Symbol.enabled = true;
i++;
}
SkipButton.enabled = false;
}
Symbol 622 Button
on (release) {
OpenOptions(1);
FromMain = false;
}
Symbol 625 MovieClip Frame 1
stop();
Symbol 726 Button
on (press) {
MessageText = Text[43][Language];
CancelButt._visible = true;
Phase = 13;
var i;
i = 1;
while (i <= 7) {
Characters[1].Tiles[i].Symbol.enabled = true;
i++;
}
SkipButton.enabled = false;
}
Symbol 729 Button
on (release) {
gotoAndStop (2);
}
Symbol 731 Button
on (release) {
gotoAndStop (3);
}
Symbol 744 Button
on (release) {
for (i in _parent._parent._parent[Reference + "Upgrades"][Level]) {
if (i != "Price") {
_parent._parent._parent.Characters[1][i] = _parent._parent._parent.Characters[1][i] + _parent._parent._parent[Reference + "Upgrades"][Level][i];
}
}
_parent._parent._parent.Characters[1][Reference]++;
_parent._parent._parent.Money = _parent._parent._parent.Money - Price;
_parent._parent.UpdateShop();
}
Symbol 793 Button
on (release) {
gotoAndStop (1);
}
Symbol 794 Button
on (release) {
_parent.CurrLevel++;
_parent.gotoAndPlay("Init");
}
Symbol 795 Button
on (press) {
SelectedItem++;
UpdateShop();
}
Symbol 796 Button
on (press) {
SelectedItem--;
UpdateShop();
}
Symbol 797 Button
on (release) {
_parent.Characters[1].MagicDefense = _parent.Characters[1].MagicDefense + _parent.Items[_parent.ShopItems[SelectedItem]].MagicDefense;
_parent.Money = _parent.Money - _parent.Items[_parent.ShopItems[SelectedItem]].Price;
_parent.YourItems.push(_parent.ShopItems[SelectedItem]);
_parent.ShopItems.splice(SelectedItem, 1);
UpdateShop();
}
Symbol 800 Button
on (release) {
_parent._parent.SaveGame(_parent.SelectedSlot, _parent.SlotNameInput);
_parent.gotoAndStop(1);
}
Symbol 809 MovieClip Frame 1
function UpdateSkills() {
ExPAmount = _parent.Experience;
i = 0;
while (i <= 13) {
this[("S" + i) + "Name"] = _parent.ParRef[SkillsOrder[i]][_parent.Language];
CurrVal = _parent.Characters[1][SkillsOrder[i]];
NextPrice = Math.round(_parent.BasicPrices[SkillsOrder[i]] * (CurrVal + 1));
this[("S" + i) + "Value"] = CurrVal;
this[("S" + i) + "Price"] = (NextPrice + " ") + _parent.Text[49][_parent.Language];
if (NextPrice <= _parent.Experience) {
this["IncrButt" + i]._alpha = 100;
this["IncrButt" + i].enabled = true;
this["IncrButt" + i].TheButton.enabled = true;
this["IncrButt" + i].Param = SkillsOrder[i];
this["IncrButt" + i].Price = NextPrice;
this["IncrButt" + i].onPress = function () {
_parent.Characters[1][this.Param]++;
_parent.Experience = _parent.Experience - this.Price;
UpdateSkills();
};
} else {
this["IncrButt" + i]._alpha = 30;
this["IncrButt" + i].enabled = false;
this["IncrButt" + i].TheButton.enabled = false;
}
i++;
}
}
stop();
Title = _parent.Text[48][_parent.Language].toUpperCase();
AvailableExP = _parent.Text[50][_parent.Language] + ":";
_parent.Experience = Math.round(_parent.Experience);
SkillNameTxt = _parent.Text[51][_parent.Language];
CurrentValueTxt = _parent.Text[52][_parent.Language];
IncreasementPriceTxt = _parent.Text[53][_parent.Language];
IncreaseTxt = _parent.Text[54][_parent.Language];
ShopButtonTxt = _parent.Text[55][_parent.Language].toUpperCase();
SaveButtonTxt = _parent.Text[75][_parent.Language].toUpperCase();
SkillsOrder = ["MaxHP", "MaxStamina", "StaminaRecovery", "HitDamage", "AvoidHit", "HealingEfficiency", "AutoSelfHealing", "MaxMana", "ManaRecovery", "MagicAttackDamage", "SpellCursePower", "SpellCurseDuration", "AvoidMagicAttack", "AvoidCurse"];
UpdateSkills();
Symbol 809 MovieClip Frame 2
function UpdateShop() {
var _local3;
var _local5;
var _local4;
MoneyAmount = _parent.Money;
PhysicalDefenseTxt = (_parent.ParRef.PhysicalDefense[_parent.Language] + ": ") + _parent.Characters[1].PhysicalDefense;
MagicDefenseTxt = (_parent.ParRef.MagicDefense[_parent.Language] + ": ") + _parent.Characters[1].MagicDefense;
_parent.GenerateAnim(_parent.Characters[1]);
for (_local3 in _parent.Characters[1].Anim) {
CharSample[_local3].gotoAndStop(_parent.Characters[1].Anim[_local3]);
}
_local3 = 1;
while (_local3 <= 3) {
if (_local3 == 1) {
Reference = "Helmet";
}
if (_local3 == 2) {
Reference = "Armor";
}
if (_local3 == 3) {
Reference = "Sword";
}
this["Upgrade" + _local3].NameText = _parent.Text[59 + _local3][_parent.Language].toUpperCase();
_local5 = _parent.Characters[1][Reference] + 1;
if (_local5 < _parent[Reference + "Upgrades"].length) {
this["Upgrade" + _local3].ParamsText = "";
for (_local4 in _parent[Reference + "Upgrades"][_local5]) {
if ((((_local4 == "PhysicalDefense") or (_local4 == "MagicDefense")) or (_local4 == "HitDamage")) or (_local4 == "MagicAttackDamage")) {
this["Upgrade" + _local3].ParamsText = this["Upgrade" + _local3].ParamsText + (((_parent.ParRef[_local4][_parent.Language] + " +") + _parent[Reference + "Upgrades"][_local5][_local4]) + "\r");
}
}
this["Upgrade" + _local3].PriceText = (_parent.Text[63][_parent.Language] + ": ") + _parent[Reference + "Upgrades"][_local5].Price;
this["Upgrade" + _local3].UpgradeButton.TheText = _parent.Text[64][_parent.Language].toUpperCase();
this["Upgrade" + _local3].UpgradeButton.NEM = _parent.Text[65][_parent.Language];
if (_parent[Reference + "Upgrades"][_local5].Price <= _parent.Money) {
this["Upgrade" + _local3].UpgradeButton.gotoAndStop(1);
} else {
this["Upgrade" + _local3].UpgradeButton.gotoAndStop(2);
}
this["Upgrade" + _local3].UpgradeButton.Reference = Reference;
this["Upgrade" + _local3].UpgradeButton.Price = _parent[Reference + "Upgrades"][_local5].Price;
this["Upgrade" + _local3].UpgradeButton.Level = _local5;
} else {
this["Upgrade" + _local3].PriceText = "";
this["Upgrade" + _local3].UpgradeButton._visible = false;
this["Upgrade" + _local3].ParamsText = _parent.Text[66][_parent.Language];
}
_local3++;
}
if (SelectedItem >= _parent.ShopItems.length) {
SelectedItem = 0;
}
if (SelectedItem < 0) {
SelectedItem = _parent.ShopItems.length - 1;
}
if (_parent.ShopItems.length == 0) {
ItemToBuy._visible = false;
ItemDefense = _parent.Text[70][_parent.Language];
ItemName = "";
ItemPrice = "";
PressNext.enabled = false;
PressPrev.enabled = false;
PressBuy.enabled = false;
BuyButton._alpha = 30;
} else {
ItemToBuy.gotoAndStop(_parent.ShopItems[SelectedItem]);
ItemName = _parent.Items[_parent.ShopItems[SelectedItem]].Name[_parent.Language];
ItemDefense = (_parent.ParRef.MagicDefense[_parent.Language] + " +") + _parent.Items[_parent.ShopItems[SelectedItem]].MagicDefense;
ItemPrice = (_parent.ParRef.Price[_parent.Language] + ": ") + _parent.Items[_parent.ShopItems[SelectedItem]].Price;
if (_parent.Items[_parent.ShopItems[SelectedItem]].Price <= _parent.Money) {
BuyButton._alpha = 100;
PressBuy.enabled = true;
} else {
BuyButton._alpha = 30;
PressBuy.enabled = false;
}
}
_local3 = 0;
while (_local3 <= 13) {
if (_local3 >= _parent.YourItems.length) {
this["YourItem" + _local3]._visible = false;
} else {
this["YourItem" + _local3]._visible = true;
this["YourItem" + _local3].gotoAndStop(_parent.YourItems[_local3]);
}
_local3++;
}
}
Title = _parent.Text[56][_parent.Language].toUpperCase();
AvailableMoney = _parent.Text[57][_parent.Language] + ":";
CharSample.gotoAndStop(1);
BackToSkillsTxt = _parent.Text[58][_parent.Language].toUpperCase();
NextLevelTxt = _parent.Text[59][_parent.Language].toUpperCase();
YourItemsTxt = _parent.Text[67][_parent.Language].toUpperCase();
BuyItemsTxt = _parent.Text[68][_parent.Language].toUpperCase();
BuyButton.Txt = _parent.Text[69][_parent.Language].toUpperCase();
SelectedItem = 0;
UpdateShop();
Symbol 809 MovieClip Frame 3
function SelectSlot(Ind) {
var _local2;
SelectedSlot = Ind;
_local2 = 1;
while (_local2 <= 7) {
if (_local2 == SelectedSlot) {
this["Slot" + _local2].gotoAndStop(1);
} else {
this["Slot" + _local2].gotoAndStop(2);
}
_local2++;
}
SlotName.onChanged();
}
Title = _parent.Text[75][_parent.Language].toUpperCase();
SaveButton.TheText = _parent.Text[75][_parent.Language].toUpperCase();
CancelTxt = _parent.Text[81][_parent.Language].toUpperCase();
EnterNameTxt = _parent.Text[79][_parent.Language];
SelectSlotTxt = _parent.Text[80][_parent.Language];
SlotNameInput = "";
SelectedSlot = 0;
SlotName.onChanged = function () {
if ((SlotNameInput.length > 0) and (SelectedSlot > 0)) {
SaveButton._alpha = 100;
SaveButton.TheButton.enabled = true;
} else {
SaveButton._alpha = 30;
SaveButton.TheButton.enabled = false;
}
};
i = 1;
while (i <= 7) {
this["Slot" + i].gotoAndStop(2);
this["Slot" + i].Index = i;
if (_parent.Saved.data.Slots[i] instanceof Object) {
SaveName = _parent.Saved.data.Slots[i].Name;
} else {
SaveName = _parent.Text[82][_parent.Language];
}
this["Slot" + i].TheText = (i + ". ") + SaveName;
i++;
}
SaveButton._alpha = 30;
SaveButton.TheButton.enabled = false;
Symbol 815 Button
on (release) {
_parent.LoadGame(0);
_parent.gotoAndStop("Level End");
}
Symbol 818 Button
on (release) {
_parent.gotoAndStop("Submit Score");
}
Symbol 821 Button
on (release) {
gotoAndStop ("Main Menu");
}
Symbol 825 Button
on (release) {
gotoAndStop ("Level End");
}
Symbol 829 Button
on (release) {
gotoAndStop ("Submit Score");
}
Symbol 833 Button
on (press) {
if (UserName.length > 0) {
_parent.LastSubmitted = _parent.TotalScore;
_parent.SaveGame();
Masks = new Array("lkjsdfKSDFJiasdfr9egtrt456", "LKJorijforei9940358safLKlkjri95690864", "SDJKireg985435'68sdfkjgjnuren`\u00F1vmnz.,", "DSKLFjireg54098948'63oipgjoipjj45gjoasdn\u00F1sd", "sdfakj95904567odgh98Uuhg950=hogiuhtriunvperuy", "Fjir9j540jnsdnbioUHC98re40g50gjba90g65jg", "SDAig5490'43yhsdhuvihtr5498uicfahrieuhUHDFiur");
Data = new Array();
Data[0] = random(Masks.length);
Data[1] = random(Masks[Data[0]].length);
Data[2] = UserName.length;
ScoreSt = UserScore.toString();
Data[3] = ScoreSt.length;
i = 0;
while (i < Data[2]) {
Data[5 + i] = ord(UserName.charAt(i));
i++;
}
i = 0;
while (i < Data[3]) {
Data[(5 + Data[2]) + i] = ord(ScoreSt.charAt(i));
i++;
}
CheckSum = 0;
i = 5;
while (i < Data.length) {
CheckSum = CheckSum + Data[i];
i++;
}
Data[4] = CheckSum % 100;
COS = Data[1];
i = 2;
while (i < Data.length) {
MaskCo = ord(Masks[Data[0]].charAt(COS)) % 40;
if (MaskCo == 0) {
MaskCo = 40;
}
Data[i] = Data[i] + ord(Masks[Data[0]].charAt(COS));
Data[i] = Data[i] * MaskCo;
COS++;
if (COS >= Masks[Data[0]].length) {
COS = 0;
}
i++;
}
Output = Data.join("x");
Dt.res = Output;
SendData = true;
RName = UserName;
RScore = UserScore;
gotoAndStop (4);
} else {
Nm.gotoAndPlay(2);
}
}
Symbol 834 Button
on (press) {
_parent.gotoAndStop("Main Menu");
}
Symbol 844 Button
on (press) {
getURL ("http://www.sugar-free-games.com", "_blank");
}
Symbol 848 Button
on (press) {
SendData = true;
}
Symbol 854 MovieClip Frame 1
Ind = ScoreInd;
Par = _parent.Score;
YourScoreIsTxt = _parent.Text[105][_parent.Language].toUpperCase();
EnterNameTxt = _parent.Text[90][_parent.Language];
UName.text = _parent.Characters[1].Name;
SubmitTxt = _parent.Text[104][_parent.Language].toUpperCase();
CancelTxt = _parent.Text[81][_parent.Language].toUpperCase();
NoteTxt = _parent.Text[108][_parent.Language];
ScoreText = _parent.Score;
UserScore = _parent.Score;
Selection.setFocus(UName);
_parent.Score = 0;
stop();
Instance of Symbol 845 MovieClip "Dt" in Symbol 854 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.SendData) {
getURL ("http://www.sugar-free-games.com/13guardians.php", "_blank", "POST");
_parent.SendData = false;
}
}
Symbol 854 MovieClip Frame 2
gotoAndStop (1);
Symbol 854 MovieClip Frame 3
gotoAndStop (4);
Symbol 854 MovieClip Frame 4
RName = (_parent.Text[110][_parent.Language] + ": ") + RName;
RScore = (_parent.Text[71][_parent.Language] + ": ") + RScore;
InfoSentTxt = _parent.Text[109][_parent.Language];
RetryTxt = _parent.Text[111][_parent.Language].toUpperCase();
DoneTxt = _parent.Text[112][_parent.Language].toUpperCase();
CouldNotSeeTxt = _parent.Text[113][_parent.Language];
stop();
Symbol 854 MovieClip Frame 5
gotoAndStop (4);