Frame 30
if (getBytesLoaded() >= getBytesTotal()) {
play();
} else {
_root.gotoAndPlay(1);
trace("loop");
}
Frame 46
stop();
Frame 127
function retry() {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay(_root._currentframe - 1);
}
function mainmenu() {
_root.gotoAndPlay("menu");
}
function deadClick() {
}
function gotoMySite() {
getURL ("http://www.nobstudio.com", "_blank");
}
stop();
_global.newgame = new player();
var spells = new Array();
var tempsouls = 0;
spells.push("swamp");
spells.push("tree");
spells.push("bee");
spells.push("temptress");
spells.push("ghost");
spells.push("bigfoot");
spells.push("toad");
spells.push("ugly");
spells.push("plague");
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("Witch-Hunt: Nooboo Mary \u00A9 2007 Nob Studio's Production", deadClick);
copyrightNotice.separatorBefore = true;
var mySiteLink = new ContextMenuItem("Visit Nob Studio", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
Instance of Symbol 406 MovieClip in Frame 127
onClipEvent (load) {
this.onPress = function () {
getURL ("http://www.armorgames.com", _blank);
};
}
Instance of Symbol 453 MovieClip in Frame 127
onClipEvent (load) {
this.onPress = function () {
getURL ("http://www.newgrounds.com/collection/halloween2007", _blank);
};
}
Frame 131
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
trace(_root._currentframe - 1);
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 131
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 132
stop();
var worldmap = new world(5, 67, 1);
_root.restartbut.onPress = function () {
_root.retry();
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
trace(_root._currentframe);
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 139
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Frame 140
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 140
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 141
stop();
var worldmap = new world(10, 67, 1);
_root.restartbut.onPress = function () {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay("level2");
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 148
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Frame 149
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 149
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 150
stop();
var worldmap = new world(20, 57, 1);
_root.restartbut.onPress = function () {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay("level3");
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 157
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Frame 158
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 158
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 159
stop();
var worldmap = new world(35, 43, 1);
_root.restartbut.onPress = function () {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay("level4");
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 166
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Frame 167
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 167
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 168
stop();
var worldmap = new world(45, 33, 1);
_root.restartbut.onPress = function () {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay("level5");
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 175
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Frame 176
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 176
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 177
stop();
var worldmap = new world(25, 29, 2);
_root.restartbut.onPress = function () {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay("level6");
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 184
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Frame 185
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 185
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 186
stop();
var worldmap = new world(35, 23, 2);
_root.restartbut.onPress = function () {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay("level7");
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 193
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Frame 194
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 194
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 195
stop();
var worldmap = new world(27, 23, 3);
_root.restartbut.onPress = function () {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay("level8");
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 202
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Frame 203
stop();
_root.gameover = false;
_root.onEnterFrame = function () {
_root.points = _global.newgame.mana;
var _local3 = 0;
while (_local3 < spells.length) {
_root[spells[_local3] + "d_mc"].spell_level = _global.newgame.spells[spells[_local3]].points;
_root[spells[_local3] + "d_mc"].upgrade_cost = _global.newgame.spells[spells[_local3]].upgradecost;
_root[spells[_local3] + "d_mc"].mc.mana_cost = _global.newgame.spells[spells[_local3]].manacost;
if ((_local3 % 3) != 0) {
if (_root[spells[_local3 - 1] + "d_mc"].spell_level == 0) {
_root[spells[_local3] + "d_mc"]._alpha = 60;
} else {
_root[spells[_local3] + "d_mc"]._alpha = 100;
}
}
_local3++;
}
};
_root.temp_but.onPress = function () {
_root.nooboo_mc.removeMovieClip();
_root.play();
};
_root.createEmptyMovieClip("nooboo_mc", 1);
var i = 0;
while (i < spells.length) {
var tempx = 0;
var tempy = 0;
if ((i >= 0) && (i < 3)) {
tempx = 670;
} else if ((i >= 3) && (i < 6)) {
tempx = 170;
} else if ((i >= 6) && (i < 9)) {
tempx = 420;
}
if ((i % 3) == 0) {
tempy = 240;
} else if ((i % 3) == 1) {
tempy = 350;
} else if ((i % 3) == 2) {
tempy = 460;
}
nooboo_mc.attachMovie("levelupbut", ((i + "nb") + spells[i]) + "_mc", nooboo_mc.getNextHighestDepth(), {_x:tempx, _y:tempy, _xscale:80, _yscale:80});
_root.nooboo_mc[((i + "nb") + spells[i]) + "_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
if ((_global.newgame.mana >= _global.newgame.spells[spells[_local4]].upgradecost) && (_root[spells[_local4] + "d_mc"].spell_level < 3)) {
trace(_global.newgame.spells[spells[_local4]].upgradecost);
if ((_local4 % 3) != 0) {
trace(_local4);
var _local5 = _local4 - 1;
if (_root[spells[_local5] + "d_mc"].spell_level != 0) {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
} else {
this.spell_level = this.spell_level + 1;
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[_local4]].upgradecost;
_global.newgame.addpoint(spells[_local4]);
}
}
};
i++;
}
Instance of Symbol 532 MovieClip "temptressd_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_chiobu", "cb_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 536 MovieClip "ghostd_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ghost", "gt_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 540 MovieClip "bigfootd_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_giant", "gi_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 544 MovieClip "toadd_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_toad", "td_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 548 MovieClip "uglyd_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_ugly", "ug_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 552 MovieClip "plagued_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_blackdeath", "bd_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 556 MovieClip "swampd_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_swamp", "sm_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 560 MovieClip "treed_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_tree", "te_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Instance of Symbol 571 MovieClip "beed_mc" in Frame 203
onClipEvent (load) {
this.onPress = function () {
_root.attachMovie("demoMC_insect", "is_mc", _root.getNextHighestDepth(), {_x:370, _y:285});
};
}
Frame 204
stop();
var worldmap = new world(33, 19, 3);
_root.restartbut.onPress = function () {
_root.gameinterface_mc.removeMovieClip();
_root.worldmap.map.removeMovieClip();
delete _root.worldmap;
_root.gotoAndPlay("level9");
};
_root.createEmptyMovieClip("gameinterface_mc", 2);
gameinterface_mc.attachMovie("interface", "bkgrd_mc", gameinterface_mc.getNextHighestDepth(), {_x:0, _y:450});
gameinterface_mc.attachMovie("spell_cursor", "spellc_mc", gameinterface_mc.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
gameinterface_mc.spellc_mc._alpha = 50;
gameinterface_mc.spellc_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
id = this._currentframe - 2;
if (id == 5) {
if (_global.newgame.spells[spells[id]].limit == 1) {
this._xscale = 100;
this._yscale = 100;
} else if (_global.newgame.spells[spells[id]].limit == 2) {
this._xscale = 120;
this._yscale = 120;
} else if (_global.newgame.spells[spells[id]].limit == 3) {
this._xscale = 150;
this._yscale = 150;
}
} else {
this._xscale = 100;
this._yscale = 100;
}
};
gameinterface_mc.spellc_mc.onPress = function () {
id = this._currentframe - 2;
trace(id);
if (id < 6) {
trace("casting");
_root.worldmap.castSpell(_root.spells[id], _global.newgame.spells[spells[id]].limit, _global.newgame.spells[spells[id]].interval, _global.newgame.spells[spells[id]].duration);
this.gotoAndStop(1);
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells[spells[id]].manacost;
}
};
var i = 0;
while (i < spells.length) {
trace("create");
var tempy = 560;
var tempx = ((i * 67) + 40);
trace(_global.newgame.spells[spells[i]].points);
if (_global.newgame.spells[spells[i]].points > 0) {
gameinterface_mc.attachMovie("spell_but" + i, ((i + "nb") + spells[i]) + "spells_mc", gameinterface_mc.getNextHighestDepth(), {_x:tempx, _y:tempy});
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].spell_cost = _global.newgame.spells[spells[i]].manacost;
gameinterface_mc[((i + "nb") + spells[i]) + "spells_mc"].onPress = function () {
var _local4 = substring(this._name, 0, 1);
_local4 = _local4 * 1;
if (_global.newgame.mana >= _global.newgame.spells[spells[_local4]].manacost) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
if (i >= 6) {
_root.gameinterface_mc.spellc_mc.gotoAndStop(_local4 + 2);
_root.worldmap.castCurse(_root.spells[_local4], _global.newgame.spells[spells[_local4]].duration);
}
}
};
}
i++;
}
_root.mapscrolling = "none";
_root.onEnterFrame = function () {
_root.gameinterface_mc.bkgrd_mc.mana = _global.newgame.mana;
if (_root._xmouse < 100) {
worldmap.mapscroll = "right";
_root.mapscrolling = "moving";
} else if (_root._xmouse > 700) {
worldmap.mapscroll = "left";
_root.mapscrolling = "moving";
} else {
_root.mapscrolling = "none";
}
if (_root.mapscrolling == "none") {
worldmap.decreaseSpeed();
} else {
worldmap.increaseSpeed();
}
};
_root.temp_mc.swapDepths(1);
_root.temp_mc.onPress = function () {
worldmap.curse = "plague";
};
Frame 211
_root.gameinterface_mc.removeMovieClip();
worldmap.map.removeMovieClip();
delete worldmap;
Instance of Symbol 43 MovieClip in Symbol 44 MovieClip [demoMC_blackdeath] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Symbol 61 MovieClip Frame 30
stop();
Symbol 64 MovieClip Frame 55
stop();
Instance of Symbol 43 MovieClip in Symbol 67 MovieClip [demoMC_swamp] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Instance of Symbol 43 MovieClip in Symbol 80 MovieClip [demoMC_insect] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Instance of Symbol 43 MovieClip in Symbol 100 MovieClip [demoMC_chiobu] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Instance of Symbol 43 MovieClip in Symbol 118 MovieClip [demoMC_ghost] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Instance of Symbol 43 MovieClip in Symbol 132 MovieClip [demoMC_giant] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Instance of Symbol 43 MovieClip in Symbol 147 MovieClip [demoMC_toad] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Instance of Symbol 43 MovieClip in Symbol 174 MovieClip [demoMC_ugly] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Instance of Symbol 43 MovieClip in Symbol 191 MovieClip [demoMC_tree] Frame 1
onClipEvent (load) {
this.onPress = function () {
this._parent.removeMovieClip();
};
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
_root.worldmap.vildie = _root.worldmap.vildie + 1;
Symbol 257 MovieClip Frame 3
_root.worldmap.vildie = _root.worldmap.vildie + 1;
Symbol 257 MovieClip Frame 4
_root.worldmap.vildie = _root.worldmap.vildie + 1;
Symbol 257 MovieClip Frame 5
_root.worldmap.vildie = _root.worldmap.vildie + 1;
Symbol 257 MovieClip Frame 6
_root.gameover = true;
stop();
Symbol 278 MovieClip Frame 125
_global.newgame.mana = _global.newgame.mana + 1;
_root.worldmap.vildie = _root.worldmap.vildie + 1;
this._parent.removeMovieClip();
Symbol 280 MovieClip Frame 180
if (((_root.worldmap.timer - _root.worldmap.villagers[id].hittime) >= 100) && (_root.worldmap.villagers[id].hittime != "notset")) {
_global.newgame.mana = _global.newgame.mana + 1;
_root.worldmap.vildie = _root.worldmap.vildie + 1;
this._parent.removeMovieClip();
}
Symbol 281 MovieClip Frame 125
stop();
Symbol 281 MovieClip Frame 210
_global.newgame.mana = _global.newgame.mana + 1;
_root.worldmap.vildie = _root.worldmap.vildie + 1;
this._parent.removeMovieClip();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 17
_global.newgame.mana = _global.newgame.mana + 1;
_root.worldmap.vildie = _root.worldmap.vildie + 1;
this._parent.removeMovieClip();
Symbol 296 MovieClip [lem] Frame 1
stop();
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 40
this._parent.removeMovieClip();
Symbol 300 MovieClip [bigfoot] Frame 1
stop();
Symbol 300 MovieClip [bigfoot] Frame 2
stop();
Symbol 319 MovieClip Frame 75
this._parent.removeMovieClip();
Symbol 320 MovieClip [temptress] Frame 1
stop();
Symbol 322 MovieClip [bee] Frame 1
stop();
Symbol 324 MovieClip Frame 135
stop();
Symbol 325 MovieClip [tree] Frame 1
stop();
Symbol 325 MovieClip [tree] Frame 10
stop();
Symbol 334 MovieClip Frame 30
stop();
Symbol 335 MovieClip Frame 55
_root.worldmap.spells[this._parent._name].stats = "active";
_parent.gotoAndStop(1);
Symbol 336 MovieClip [swamp] Frame 1
trace("frame active");
stop();
Symbol 336 MovieClip [swamp] Frame 10
stop();
Symbol 336 MovieClip [swamp] Frame 20
stop();
Symbol 342 MovieClip [spell_cursor] Frame 1
stop();
Symbol 357 Button
on (press) {
_root.play();
}
Symbol 369 Button
on (press) {
_root.retry();
}
Symbol 370 MovieClip [controls] Frame 1
stop();
Symbol 627 MovieClip [__Packages.player] Frame 0
class player
{
var name, mana, points, spells, spellsname;
function player () {
name = "Prince Owen";
mana = 0;
points = 10;
spells = new Object();
spellsname = new Array();
spellsname.push("swamp");
spellsname.push("tree");
spellsname.push("bee");
spellsname.push("temptress");
spellsname.push("ghost");
spellsname.push("bigfoot");
spellsname.push("toad");
spellsname.push("ugly");
spellsname.push("plague");
for (var _local3 in spellsname) {
var _local2 = new Object();
_local2.manacost = 0;
_local2.upgradecost = 1;
_local2.points = 0;
_local2.limit = 0;
_local2.interval = 0;
_local2.duration = 0;
spells[spellsname[_local3]] = _local2;
}
addpoint("toad");
spells.swamp.upgradecost = 5;
spells.tree.upgradecost = 6;
spells.bee.upgradecost = 12;
spells.temptress.upgradecost = 8;
spells.ghost.upgradecost = 6;
spells.bigfoot.upgradecost = 14;
spells.ugly.upgradecost = 9;
spells.plague.upgradecost = 10;
}
function test() {
for (var _local2 in spells) {
trace((_local2 + " manacost: ") + spells[_local2].manacost);
trace((_local2 + " points: ") + spells[_local2].points);
trace((_local2 + " limit: ") + spells[_local2].limit);
trace((_local2 + " interval: ") + spells[_local2].interval);
trace((_local2 + " duration: ") + spells[_local2].duration);
}
}
function addpoint(spelltype) {
if (spelltype == "mana") {
} else if (spelltype == "swamp") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 6;
spells[spelltype].manacost = 2;
spells[spelltype].limit = 5;
spells[spelltype].interval = 0;
spells[spelltype].duration = 0;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 7;
spells[spelltype].manacost = 5;
spells[spelltype].limit = 10;
spells[spelltype].interval = 0;
spells[spelltype].duration = 0;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 8;
spells[spelltype].limit = 18;
spells[spelltype].interval = 0;
spells[spelltype].duration = 0;
}
} else if (spelltype == "tree") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 7;
spells[spelltype].manacost = 4;
spells[spelltype].limit = 0;
spells[spelltype].interval = 180;
spells[spelltype].duration = 0;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 8;
spells[spelltype].manacost = 6;
spells[spelltype].limit = 0;
spells[spelltype].interval = 120;
spells[spelltype].duration = 0;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 8;
spells[spelltype].limit = 0;
spells[spelltype].interval = 60;
spells[spelltype].duration = 0;
}
} else if (spelltype == "bee") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 10;
spells[spelltype].manacost = 14;
spells[spelltype].limit = 0;
spells[spelltype].interval = 0;
spells[spelltype].duration = 160;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 10;
spells[spelltype].manacost = 15;
spells[spelltype].limit = 0;
spells[spelltype].interval = 0;
spells[spelltype].duration = 180;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 16;
spells[spelltype].limit = 0;
spells[spelltype].interval = 0;
spells[spelltype].duration = 220;
}
} else if (spelltype == "temptress") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 5;
spells[spelltype].manacost = 3;
spells[spelltype].limit = 0;
spells[spelltype].interval = 0;
spells[spelltype].duration = 120;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 5;
spells[spelltype].manacost = 5;
spells[spelltype].limit = 0;
spells[spelltype].interval = 0;
spells[spelltype].duration = 140;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 7;
spells[spelltype].limit = 1;
spells[spelltype].interval = 1;
spells[spelltype].duration = 160;
}
} else if (spelltype == "ghost") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 6;
spells[spelltype].manacost = 4;
spells[spelltype].limit = 1;
spells[spelltype].interval = 180;
spells[spelltype].duration = 180;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 7;
spells[spelltype].manacost = 5;
spells[spelltype].limit = 1;
spells[spelltype].interval = 200;
spells[spelltype].duration = 200;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 6;
spells[spelltype].limit = 1;
spells[spelltype].interval = 230;
spells[spelltype].duration = 230;
}
} else if (spelltype == "bigfoot") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 15;
spells[spelltype].manacost = 18;
spells[spelltype].limit = 1;
spells[spelltype].interval = 1;
spells[spelltype].duration = 1;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 16;
spells[spelltype].manacost = 20;
spells[spelltype].limit = 2;
spells[spelltype].interval = 1;
spells[spelltype].duration = 1;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 25;
spells[spelltype].limit = 3;
spells[spelltype].interval = 1;
spells[spelltype].duration = 1;
}
} else if (spelltype == "toad") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 2;
spells[spelltype].manacost = 0;
spells[spelltype].duration = 60;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 2;
spells[spelltype].manacost = 0;
spells[spelltype].duration = 80;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 0;
spells[spelltype].duration = 120;
}
} else if (spelltype == "ugly") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 8;
spells[spelltype].manacost = 4;
spells[spelltype].duration = 100;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 9;
spells[spelltype].manacost = 5;
spells[spelltype].duration = 140;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 6;
spells[spelltype].duration = 180;
}
} else if (spelltype == "plague") {
if (spells[spelltype].points == 0) {
spells[spelltype].points = 1;
spells[spelltype].upgradecost = 5;
spells[spelltype].manacost = 17;
spells[spelltype].duration = 60;
} else if (spells[spelltype].points == 1) {
spells[spelltype].points = 2;
spells[spelltype].upgradecost = 5;
spells[spelltype].manacost = 19;
spells[spelltype].duration = 100;
} else if (spells[spelltype].points == 2) {
spells[spelltype].points = 3;
spells[spelltype].manacost = 22;
spells[spelltype].duration = 120;
}
}
}
}
Symbol 628 MovieClip [__Packages.world] Frame 0
class world
{
var mapscroll, scrollspeed, map, villagers, group, vilno, currentmob, mob, interval, timer, vildie, spells, spellcount, curse, curseduration;
function world (amt, intv, mobno) {
mapscroll = "none";
scrollspeed = 0;
map = _root.createEmptyMovieClip("worldmap2", 0);
map.attachMovie("gameworld", "gameworld_mc", 0, {_x:0, _y:0});
map.attachMovie("land2", "overlap_mc", 301, {_x:0, _y:0});
villagers = new Array();
group = amt;
vilno = amt;
currentmob = 1;
mob = mobno;
interval = intv;
timer = 0;
vildie = 0;
spells = new Object();
spellcount = 0;
map.gameworld_mc.landscape_mc.onEnterFrame = function () {
var _local3 = 0;
while (_local3 < _root.worldmap.villagers.length) {
if (this.hitTest(_root.worldmap.map[_root.worldmap.villagers[_local3].mc_name]._x + _root.worldmap.map._x, _root.worldmap.map[_root.worldmap.villagers[_local3].mc_name]._y - 1, true)) {
_root.worldmap.villagers[_local3].fall = false;
_root.worldmap.villagers[_local3].gravity = 0;
} else {
_root.worldmap.villagers[_local3].fall = true;
}
_local3++;
}
};
map.attachMovie("controls", "cont_mc", 500, {_x:-100, _y:200});
map.cont_mc._alpha = 0;
map.cont_mc.enabled = false;
map.onEnterFrame = function () {
if (_root.worldmap.vildie == _root.worldmap.vilno) {
_root.worldmap.mapscroll = "LOCK";
this._x = 0;
trace(this.cont_mc._alpha);
this.cont_mc._alpha = this.cont_mc._alpha + 1;
this.cont_mc._x = 400;
}
if (_root.gameover) {
_root.worldmap.mapscroll = "LOCK";
this._x = 0;
trace(this.cont_mc._alpha);
this.cont_mc._alpha = this.cont_mc._alpha + 1;
this.cont_mc.gotoAndStop(2);
this.cont_mc._x = 400;
}
var _local3 = -800;
if (_root.worldmap.mapscroll == "left") {
if (this._x >= (_local3 + 10)) {
this._x = this._x - _root.worldmap.scrollspeed;
this.gameworld_mc.moon_mc._x = this.gameworld_mc.moon_mc._x + (_root.worldmap.scrollspeed / 2);
} else {
this._x = _local3;
}
} else if (_root.worldmap.mapscroll == "right") {
if (this._x <= -10) {
this.gameworld_mc.moon_mc._x = this.gameworld_mc.moon_mc._x - (_root.worldmap.scrollspeed / 2);
this._x = this._x + _root.worldmap.scrollspeed;
} else {
this._x = 0;
}
}
_root.worldmap.timer = _root.worldmap.timer + 1;
if ((_root.worldmap.villagers.length < _root.worldmap.vilno) && ((_root.worldmap.timer % _root.worldmap.interval) == 0)) {
_root.worldmap.newLemming(1590, 380, _root.worldmap.villagers.length, 1);
}
if (_root.worldmap.villagers.length >= _root.worldmap.vilno) {
if ((_root.worldmap.currentmob < _root.worldmap.mob) && ((_root.worldmap.timer % (_root.worldmap.interval * 10)) == 0)) {
trace((_root.worldmap.currentmob + " : ") + _root.worldmap.mob);
_root.worldmap.currentmob = _root.worldmap.currentmob + 1;
_root.worldmap.vilno = _root.worldmap.vilno + _root.worldmap.group;
}
}
};
}
function castCurse(spelltype, sduration) {
curse = spelltype;
curseduration = sduration;
}
function castSpell(spelltype, slimit, sinterval, sduration) {
var _local5 = new Object();
_local5.stats = "landing";
_local5.limit = slimit;
_local5.eaten = 0;
_local5.type = spelltype;
_local5.interval = sinterval;
_local5.timer = "notset";
_local5.duration = sduration;
_local5.casttime = "notset";
var _local8 = _xmouse - _root.worldmap.map._x;
var _local7 = _ymouse - 100;
if (spelltype == "swamp") {
map.attachMovie(spelltype, (spelltype + "_mc") + spellcount, 302 + spellcount, {_x:_local8, _y:_local7});
} else {
map.attachMovie(spelltype, (spelltype + "_mc") + spellcount, 201 + spellcount, {_x:_local8, _y:_local7});
}
if (spelltype != "bigfoot") {
map[(spelltype + "_mc") + spellcount]._alpha = 0;
} else {
map[(spelltype + "_mc") + spellcount].gotoAndStop(2);
}
spells[(spelltype + "_mc") + spellcount] = _local5;
map[(spelltype + "_mc") + spellcount].onEnterFrame = function () {
if (((_root.worldmap.timer - _root.worldmap.spells[this._name].timer) >= _root.worldmap.spells[this._name].interval) && (_root.worldmap.spells[this._name].timer != "notset")) {
this.gotoAndStop(1);
_root.worldmap.spells[this._name].stats = "active";
}
if ((_root.worldmap.spells[this._name].type == "bee") && (_root.worldmap.spells[this._name].casttime != "notset")) {
if ((_root.worldmap.timer - _root.worldmap.spells[this._name].casttime) >= _root.worldmap.spells[this._name].duration) {
this.removeMovieClip();
}
}
if ((_root.worldmap.spells[this._name].type == "swamp") && (_root.worldmap.spells[this._name].eaten >= _root.worldmap.spells[this._name].limit)) {
trace("ok go now");
if (this._alpha > 10) {
this._alpha = this._alpha - 1;
} else {
this.removeMovieClip();
}
}
if ((_root.worldmap.spells[this._name].type == "temptress") && (_root.worldmap.spells[this._name].casttime != "notset")) {
if ((_root.worldmap.timer - _root.worldmap.spells[this._name].casttime) >= _root.worldmap.spells[this._name].duration) {
this.gotoAndStop("gone");
}
}
if ((_root.worldmap.spells[this._name].type == "ghost") && (_root.worldmap.spells[this._name].casttime != "notset")) {
if ((_root.worldmap.timer - _root.worldmap.spells[this._name].casttime) >= _root.worldmap.spells[this._name].duration) {
this._alpha = this._alpha - 10;
if (this._alpha < 30) {
this.removeMovieClip();
}
}
}
var _local4 = 0;
while (_local4 < _root.worldmap.villagers.length) {
if (this.hitTest(_root.worldmap.map[_root.worldmap.villagers[_local4].mc_name]._x + _root.worldmap.map._x, _root.worldmap.map[_root.worldmap.villagers[_local4].mc_name]._y, true)) {
if (((_root.worldmap.spells[this._name].type == "swamp") && (_root.worldmap.spells[this._name].stats == "active")) && (_root.worldmap.spells[this._name].eaten < _root.worldmap.spells[this._name].limit)) {
_root.worldmap.spells[this._name].stats = "eating";
this.gotoAndStop(10);
_global.newgame.mana = _global.newgame.mana + 1;
_root.worldmap.vildie = _root.worldmap.vildie + 1;
_root.worldmap.map[_root.worldmap.villagers[_local4].mc_name].removeMovieClip();
_root.worldmap.spells[this._name].eaten = _root.worldmap.spells[this._name].eaten + _root.worldmap.villagers[_local4].health;
}
if ((_root.worldmap.spells[this._name].type == "tree") && (_root.worldmap.spells[this._name].stats == "active")) {
trace("hit liao" + _local4);
_root.worldmap.spells[this._name].stats = "eating";
_root.worldmap.spells[this._name].timer = _root.worldmap.timer;
this.gotoAndPlay(10);
_global.newgame.mana = _global.newgame.mana + 1;
_root.worldmap.vildie = _root.worldmap.vildie + 1;
_root.worldmap.map[_root.worldmap.villagers[_local4].mc_name].removeMovieClip();
_root.worldmap.spells[this._name].eaten = _root.worldmap.spells[this._name].eaten + 1;
}
if ((_root.worldmap.spells[this._name].type == "bee") && (_root.worldmap.spells[this._name].stats == "active")) {
if ((_root.worldmap.timer - _root.worldmap.spells[this._name].casttime) <= _root.worldmap.spells[this._name].duration) {
_root.worldmap.villagers[_local4].stats = "stop";
_root.worldmap.map[_root.worldmap.villagers[_local4].mc_name].gotoAndStop("insectdie");
_root.worldmap.spells[this._name].eaten = _root.worldmap.spells[this._name].eaten + 1;
}
}
if ((_root.worldmap.spells[this._name].type == "temptress") && (_root.worldmap.spells[this._name].stats == "active")) {
_root.worldmap.villagers[_local4].stats = "love";
_root.worldmap.villagers[_local4].temp_mc = this._name;
_root.worldmap.villagers[_local4].hittime = _root.worldmap.timer;
_root.worldmap.map[_root.worldmap.villagers[_local4].mc_name]._x = _root.worldmap.map[_root.worldmap.villagers[_local4].mc_name]._x + ((Math.random() * 50) + 16);
}
if ((_root.worldmap.spells[this._name].type == "ghost") && (_root.worldmap.spells[this._name].stats == "active")) {
_root.worldmap.villagers[_local4].stats = "frighten";
_root.worldmap.villagers[_local4].hittime = _root.worldmap.timer;
_root.worldmap.villagers[_local4].temp = _root.worldmap.spells[this._name].interval;
}
if ((_root.worldmap.spells[this._name].type == "bigfoot") && (_root.worldmap.spells[this._name].stats == "active")) {
_root.worldmap.map[_root.worldmap.villagers[_local4].mc_name].removeMovieClip();
_root.worldmap.vildie = _root.worldmap.vildie + 1;
_global.newgame.mana = _global.newgame.mana + 1;
_root.worldmap.spells[this._name].eaten = _root.worldmap.spells[this._name].eaten + 1;
}
}
_local4++;
}
if (_root.worldmap.spells[this._name].stats == "placing") {
this._x = _root._xmouse - _root.worldmap.map._x;
this._y = _root._ymouse;
this._alpha = 50;
}
if (_root.worldmap.spells[this._name].stats == "landing") {
if (_root.worldmap.spells[this._name].type == "bigfoot") {
_root.worldmap.spells[this._name].stats = "active";
if (_root.worldmap.spells[this._name].limit == 1) {
this._y = -255;
} else if (_root.worldmap.spells[this._name].limit == 2) {
this._y = -380;
this._xscale = 120;
this._yscale = 120;
} else if (_root.worldmap.spells[this._name].limit == 3) {
this._y = -570;
this._xscale = 150;
this._yscale = 150;
}
trace("shock " + _root.worldmap.villagers.length);
this.foot_ani.play();
_local4 = 0;
while (_local4 < _root.worldmap.villagers.length) {
_root.worldmap.villagers[_local4].hittime = _root.worldmap.timer;
_root.worldmap.villagers[_local4].stats = "recover";
_local4++;
}
}
if (_root.worldmap.map.gameworld_mc.landscape_mc.hitTest(this._x + _root.worldmap.map._x, this._y, true)) {
_root.worldmap.spells[this._name].stats = "landing2";
} else {
this._y = this._y + 10;
}
}
if (_root.worldmap.spells[this._name].stats == "landing2") {
if (_root.worldmap.map.gameworld_mc.landscape_mc.hitTest(this._x + _root.worldmap.map._x, this._y, true)) {
this._alpha = this._alpha + 20;
this._y = this._y - 1;
} else {
trace("active liao");
_root.worldmap.spells[this._name].stats = "active";
_root.worldmap.spells[this._name].casttime = _root.worldmap.timer;
this._y = this._y + 5;
this._alpha = 100;
}
}
};
spellcount = spellcount + 1;
}
function newLemming(xpos, ypos, counter, vtype) {
var _local6 = new Object();
map.attachMovie("lem", "lem_mc" + counter, 1 + counter, {_x:xpos, _y:ypos});
_local6.mc_name = "lem_mc" + counter;
_local6.health = vtype;
if (mob == 2) {
vtype = vtype + 1;
} else if (mob == 3) {
vtype = vtype + 2;
}
_local6.speed = vtype;
_local6.gravity = 0;
_local6.stats = "left";
_local6.fall = true;
_local6.temp_mc = "";
_local6.temp = 0;
_local6.hittime = "notset";
villagers.push(_local6);
map["lem_mc" + counter].onPress = function () {
var _local4 = substring(this._name, 7, 9);
if ((_root.worldmap.curse == "toad") && (_root.worldmap.villagers[_local4].stats != "toad")) {
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells.toad.manacost;
_root.worldmap.villagers[_local4].stats = "toad";
_root.worldmap.villagers[_local4].hittime = _root.worldmap.timer;
} else if ((_root.worldmap.curse == "toad") && (_root.worldmap.villagers[_local4].stats == "toad")) {
if (_root.worldmap.villagers[_local4].stats == "toad") {
_root.worldmap.villagers[_local4].temp = _root.worldmap.villagers[_local4].temp + 1;
if ((_root.worldmap.villagers[_local4].temp % 2) == 0) {
this.toad_ani.nextFrame();
}
if ((_root.worldmap.villagers[_local4].temp >= 10) || (this.toad_ani._currentframe > 6)) {
this.toad_ani.play();
}
}
}
if ((_root.worldmap.curse == "ugly") && (_root.worldmap.villagers[_local4].stats != "ugly")) {
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells.ugly.manacost;
_root.worldmap.villagers[_local4].stats = "ugly";
_root.worldmap.villagers[_local4].hittime = _root.worldmap.timer;
}
if ((_root.worldmap.curse == "plague") && (_root.worldmap.villagers[_local4].stats != "plague")) {
_global.newgame.mana = _global.newgame.mana - _global.newgame.spells.plague.manacost;
_root.worldmap.villagers[_local4].stats = "plague";
_root.worldmap.villagers[_local4].hittime = _root.worldmap.timer;
}
};
map["lem_mc" + counter].onEnterFrame = function () {
var _local4 = substring(this._name, 7, 9);
if (this.hitTest(_root.worldmap.map.gameworld_mc.house_mc)) {
_root.worldmap.map.gameworld_mc.house_mc.nextFrame();
this.removeMovieClip();
}
if (_root.worldmap.villagers[_local4].fall) {
if (_root.worldmap.villagers[_local4].gravity < 10) {
_root.worldmap.villagers[_local4].gravity = _root.worldmap.villagers[_local4].gravity + 1;
}
this._y = this._y + _root.worldmap.villagers[_local4].gravity;
} else {
_root.worldmap.villagers[_local4].gravity = 0;
}
if (_root.worldmap.villagers[_local4].stats == "left") {
this.gotoAndStop("walk");
this._x = this._x - _root.worldmap.villagers[_local4].speed;
} else if (_root.worldmap.villagers[_local4].stats == "right") {
this._x = this._x + _root.worldmap.villagers[_local4].speed;
this._xscale = this._xscale * -1;
} else if (_root.worldmap.villagers[_local4].stats == "stop") {
} else if (_root.worldmap.villagers[_local4].stats == "love") {
if (_root.worldmap.map[_root.worldmap.villagers[_local4].temp_mc]._x) {
this.gotoAndStop("love");
} else {
_root.worldmap.villagers[_local4].stats = "recover";
}
} else if (_root.worldmap.villagers[_local4].stats == "frighten") {
this._x = this._x + (_root.worldmap.villagers[_local4].speed + 1);
this.gotoAndStop("frighten");
if ((_root.worldmap.timer - _root.worldmap.villagers[_local4].hittime) >= _root.worldmap.villagers[_local4].temp) {
_root.worldmap.villagers[_local4].stats = "left";
this._xscale = 100;
}
} else if (_root.worldmap.villagers[_local4].stats == "recover") {
this.gotoAndStop("recover");
var _local6 = Math.floor(Math.random() * 500) + 80;
trace(_local6);
if ((_root.worldmap.timer - _root.worldmap.villagers[_local4].hittime) >= _local6) {
_root.worldmap.villagers[_local4].stats = "left";
}
} else if (_root.worldmap.villagers[_local4].stats == "toad") {
this.gotoAndStop("toad");
if ((((_root.worldmap.timer - _root.worldmap.villagers[_local4].hittime) >= _root.worldmap.curseduration) && (_root.worldmap.villagers[_local4].hittime != "notset")) && (this.toad_ani._currentframe <= 6)) {
_root.worldmap.villagers[_local4].stats = "recover";
_root.worldmap.villagers[_local4].temp = 0;
}
} else if (_root.worldmap.villagers[_local4].stats == "ugly") {
this.gotoAndStop("ugly");
var _local3 = 0;
while (_local3 < _root.worldmap.villagers.length) {
if ((this.hitTest(_root.worldmap.map[_root.worldmap.villagers[_local3].mc_name]) && (_local4 != _local3)) && (_root.worldmap.villagers[_local3].stats != "beat")) {
trace("hit ugly");
_root.worldmap.map[_root.worldmap.villagers[_local3].mc_name]._x = _root.worldmap.map[_root.worldmap.villagers[_local3].mc_name]._x + Math.floor((Math.random() * 30) + 30);
_root.worldmap.villagers[_local3].stats = "beat";
_root.worldmap.map[_root.worldmap.villagers[_local3].mc_name].gotoAndStop("beat");
_root.worldmap.villagers[_local3].temp_mc = this._name;
}
_local3++;
}
if (((_root.worldmap.timer - _root.worldmap.villagers[_local4].hittime) >= _root.worldmap.curseduration) && (_root.worldmap.villagers[_local4].hittime != "notset")) {
this.ugly_ani.play();
}
} else if (_root.worldmap.villagers[_local4].stats == "beat") {
_root.worldmap.villagers[_local4].hittime = _root.worldmap.timer;
if (!_root.worldmap.map[_root.worldmap.villagers[_local4].temp_mc]._x) {
_root.worldmap.villagers[_local4].stats = "recover";
}
} else if (_root.worldmap.villagers[_local4].stats == "plague") {
this.gotoAndStop("plague");
var _local3 = 0;
while (_local3 < _root.worldmap.villagers.length) {
if ((this.hitTest(_root.worldmap.map[_root.worldmap.villagers[_local3].mc_name]) && (_local4 != _local3)) && (_root.worldmap.villagers[_local3].stats != "plague")) {
_root.worldmap.villagers[_local3].stats = "spread";
_root.worldmap.villagers[_local3].temp_mc = this._name;
_root.worldmap.villagers[_local3].hittime = _root.worldmap.timer;
}
_local3++;
}
} else if (_root.worldmap.villagers[_local4].stats == "spread") {
this._x = this._x - _root.worldmap.villagers[_local4].speed;
this.gotoAndStop("poison");
var _local5 = Math.floor(Math.random() * 1000) + 1;
trace(_local5);
if ((_local5 >= 500) && (_local5 <= 550)) {
_root.worldmap.villagers[_local4].stats = "plague";
}
if (((_root.worldmap.timer - _root.worldmap.villagers[_local4].hittime) >= _root.worldmap.curseduration) && (_root.worldmap.villagers[_local4].hittime != "notset")) {
trace("heng ar");
_root.worldmap.villagers[_local4].stats = "left";
this.gotoAndStop("walk");
}
}
};
}
function increaseSpeed() {
if (scrollspeed <= 20) {
scrollspeed = scrollspeed + 1;
}
}
function decreaseSpeed() {
if (scrollspeed > 0) {
scrollspeed = scrollspeed - 1;
}
}
}
Symbol 376 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 383 MovieClip Frame 81
_root.play();
_root.play();
Symbol 386 Button
on (press) {
getURL ("http://www.nobstudio.com", _blank);
}
Symbol 391 Button
on (press) {
gotoAndStop (131);
}
Symbol 394 Button
on (press) {
gotoAndStop (129);
}
Symbol 396 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 455 MovieClip Frame 5
stop();
Symbol 456 Button
on (press) {
_root.gotoAndStop("credits");
}
Symbol 459 Button
on (press) {
gotoAndStop ("tutorial");
}
Symbol 462 Button
on (press) {
gotoAndStop (131);
}
Symbol 502 Button
on (release) {
play();
}
Symbol 519 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 520 MovieClip Frame 1
stop();
house.stop();
Symbol 520 MovieClip Frame 2
stop();
Symbol 520 MovieClip Frame 3
stop();
Symbol 520 MovieClip Frame 196
house.nextFrame();
Symbol 520 MovieClip Frame 213
house.nextFrame();
Symbol 520 MovieClip Frame 229
house.nextFrame();
Symbol 520 MovieClip Frame 248
house.nextFrame();
Symbol 520 MovieClip Frame 266
stop();
Symbol 520 MovieClip Frame 267
house.gotoAndStop(1);
Symbol 520 MovieClip Frame 362
stop();
Symbol 520 MovieClip Frame 390
stop();
Symbol 520 MovieClip Frame 391
stop();
Symbol 520 MovieClip Frame 392
stop();
Symbol 626 Button
on (press) {
_root.gotoAndStop("menu");
}