Combined Code
frame 1 {
function itemHandlerNONE(obj, item) {}
function itemHandler0(obj, item) {
getURL('http://www.newgrounds.com/game/', 'blank');
}
function itemHandler1(obj, item) {
getURL('http://www.theswain.com', 'blank');
}
function itemHandlerNONE(obj, item) {}
function itemHandler3(obj, item) {
_quality = 'HIGH';
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
function itemHandler4(obj, item) {
_quality = 'MEDIUM';
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
function itemHandler5(obj, item) {
_quality = 'LOW';
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem('More Games:', itemHandlerNONE));
myMenu.customItems.push(new ContextMenuItem('--> Newgrounds.com', itemHandler0));
myMenu.customItems.push(new ContextMenuItem('--> TheSwain.com', itemHandler1));
myMenu.customItems.push(new ContextMenuItem('Quality:', itemHandlerNONE));
myMenu.customItems.push(new ContextMenuItem('--> High', itemHandler3));
myMenu.customItems.push(new ContextMenuItem('--> Med', itemHandler4));
myMenu.customItems.push(new ContextMenuItem('--> Low', itemHandler5));
myMenu.customItems[3].separatorBefore = true;
_root.menu = myMenu;
NewgroundsAPI.connectMovie(1887);
NewgroundsAPI.addCustomLink(3, 'MastermindShirt');
NewgroundsAPI.addCustomEvent(1, 'Victory');
NewgroundsAPI.addCustomEvent(2, 'Defeat');
NewgroundsAPI.setMovieVersion('1');
}
movieClip 48 {
}
movieClip 52 {
}
movieClip 62 {
frame 40 {
stop();
}
}
movieClip 75 {
}
button 76 {
on (press) {
gotoAndStop('end');
_root.play();
}
}
movieClip 77 {
instance of movieClip 52 {
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop('lastframe');
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay('loaded');
}
}
}
frame 101 {
play();
}
frame 165 {
stop();
}
}
button 83 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
button 88 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
movieClip 89 {
}
movieClip 90 {
frame 1 {
function startAd(ngad_url) {
trace('opening ' + ngad_url);
System.security.allowDomain('70.87.128.99');
System.security.allowInsecureDomain('70.87.128.99');
System.security.allowDomain('ads.shizmoo.com');
System.security.allowInsecureDomain('ads.shizmoo.com');
System.security.allowDomain('www.cpmstar.com');
System.security.allowInsecureDomain('www.cpmstar.com');
System.security.allowDomain('server.cpmstar.com');
System.security.allowInsecureDomain('server.cpmstar.com');
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!');
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), 'GET');
} else {}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
movieClip 6656 __Packages.NewgroundsAPI {
#initclip
if (!_global.NewgroundsAPI) {
var v1 = function () {};
_global.NewgroundsAPI = v1;
var v2 = v1.prototype;
v1.connectMovie = function (id) {
if (!id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)');
} else {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendMessage('Connecting to API gateway...');
NewgroundsAPI.tracker_id = id;
NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase();
if (NewgroundsAPI.host.length < 1) {
NewgroundsAPI.host = 'localhost';
}
var v2 = new Object();
NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS);
}
}
};
v1.setMovieVersion = function (movie_version) {
if (!movie_version) {
NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)');
} else {
NewgroundsAPI.version = movie_version;
}
};
v1.debugMode = function () {
NewgroundsAPI.debug = true;
};
v1.addCustomEvent = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom event: ' + stat_name);
}
}
};
v1.addCustomLink = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name);
}
}
};
v1.loadMySite = function () {
NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE);
};
v1.loadNewgrounds = function (special) {
if (special) {
var v1 = {'page': special};
}
NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1);
};
v1.logCustomEvent = function (event_name) {
if (!event_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)');
} else {
if (!NewgroundsAPI.custom_events[event_name]) {
NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name);
} else {
NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]);
}
}
};
v1.loadCustomLink = function (link_name) {
if (!link_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)');
} else {
if (!NewgroundsAPI.custom_links[link_name]) {
NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name);
} else {
NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]);
}
}
};
v1.getAdURL = function () {
return NewgroundsAPI.movie_options.ad_url;
};
v1.getMovieURL = function () {
if (NewgroundsAPI.movie_options.movie_url) {
return NewgroundsAPI.movie_options.movie_url;
} else {
return 'Newgrounds.com';
}
};
v1.getNewVersionURL = function () {
return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION;
};
v1.SendEvent = function (id) {
NewgroundsAPI.SendStat(id, false);
};
v1.SendLink = function (id, extra) {
NewgroundsAPI.SendStat(id, true, extra);
};
v1.ReadGatewayData = function (params) {
for (var v2 in params) {
params[v2] = unescape(params[v2]);
NewgroundsAPI.movie_options[v2] = params[v2];
}
if (params.settings_loaded) {
NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!');
NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\'');
if (NewgroundsAPI.movie_options.message) {
NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message);
}
if (NewgroundsAPI.movie_options.ad_url) {
NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads');
NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url);
}
if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) {
NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!');
NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.deny_host) {
NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.');
NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.');
NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.request_portal_url == 1) {
var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url);
var v3 = new XML();
v3.ignoreWhite = true;
v3.load(v4);
}
} else {
if (!NewgroundsAPI.movie_options.settings_loaded) {
NewgroundsAPI.SendError('Could not establish connection to the API gateway.');
}
}
};
v1.SendStat = function (stat_id, open_in_browser, extra) {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.');
NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?');
} else {
var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id + '&movie_version=' + escape(NewgroundsAPI.version);
for (var v9 in extra) {
v7 += '&' + escape(v9) + '=' + escape(extra[v9]);
}
trace(v7);
if (NewgroundsAPI.debug) {
v7 += '&debug=1';
}
if (open_in_browser) {
getURL(v7, '_blank');
} else {
var v10 = new XML();
v10.ignoreWhite = true;
v10.onLoad = function (success) {
var v6 = new Object();
var v3 = 0;
while (v3 < this.firstChild.childNodes.length) {
var v4 = this.firstChild.childNodes[v3];
var v5 = v4.nodeName;
var v2 = v4.attributes.value;
if (v2 == Number(v2)) {
v2 = Number(v2);
}
v6[v5] = v2;
++v3;
}
NewgroundsAPI.ReadGatewayData(v6);
};
v10.load(v7);
}
}
};
v1.SendError = function (msg) {
trace('[NEWGROUNDS API ERROR] :: ' + msg);
};
v1.SendMessage = function (msg) {
trace('[NEWGROUNDS API] :: ' + msg);
};
v1.InitTextFormats = function () {
if (!NewgroundsAPI.error_format) {
NewgroundsAPI.error_format = new TextFormat();
NewgroundsAPI.error_format.font = 'Arial Black';
NewgroundsAPI.error_format.size = 48;
NewgroundsAPI.error_format.color = 16711680;
}
if (!NewgroundsAPI.header_format) {
NewgroundsAPI.header_format = new TextFormat();
NewgroundsAPI.header_format.font = 'Arial Black';
NewgroundsAPI.header_format.size = 24;
NewgroundsAPI.header_format.color = 16777215;
}
if (!NewgroundsAPI.normal_format) {
NewgroundsAPI.normal_format = new TextFormat();
NewgroundsAPI.normal_format.font = 'Arial';
NewgroundsAPI.normal_format.bold = true;
NewgroundsAPI.normal_format.size = 12;
NewgroundsAPI.normal_format.color = 16777215;
}
if (!NewgroundsAPI.link_format) {
NewgroundsAPI.link_format = new TextFormat();
NewgroundsAPI.link_format.color = 16776960;
NewgroundsAPI.link_format.underline = true;
}
};
v1.onNewVersionAvailable = function (version, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
var v2 = new Object();
v2.x = Stage.width / 2;
v2.y = Stage.height / 2;
_root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var v3 = 'Version ' + version + ' is now available at:' + '\n';
var v5 = v3.length;
v3 += movie_url;
var v4 = v3.length;
_root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!';
_root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format);
_root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = v3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format);
};
v1.onDenyHost = function (hostname, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
_root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var v2 = 'This movie has not been approved for use on ' + hostname + '.';
v2 += '\r\rFor an aproved copy, please visit:\r';
var v4 = v2.length;
v2 += movie_url;
var v3 = v2.length;
_root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = 'ERROR!';
_root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format);
_root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = v2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format);
};
v1.isInstalled = function () {
return true;
};
v1.onAdsApproved = function (ad_url) {};
v1.movie_options = new Object();
v1.custom_events = new Object();
v1.custom_links = new Object();
v1.MOVIE_VIEWS = 1;
v1.AUTHOR_SITE = 2;
v1.NEWGROUNDS = 3;
v1.NEW_VERSION = 4;
v1.CUSTOM_STATS = 50;
v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php';
ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1);
}
#endinitclip
}
// unknown tag 88 length 216
movieClip 114 {
frame 1 {
stop();
}
}
movieClip 183 {
frame 1 {
stop();
}
}
movieClip 486 {
frame 1 {
stop();
}
}
movieClip 489 {
}
movieClip 491 {
}
movieClip 494 {
}
movieClip 508 {
}
movieClip 510 {
frame 1 {
_root.stop();
}
frame 3 {
if ((SharedObject.getLocal('MWC')).data.intro_status == true) {
gotoAndPlay('start2');
} else {
(SharedObject.getLocal('MWC')).data.intro_status = true;
gotoAndPlay('start');
}
}
frame 218 {
_root.nextFrame();
}
frame 346 {
_root.nextFrame();
}
}
frame 4 {
function test_load() {
_root.savepath = SharedObject.getLocal('MWC');
return _root.savepath.data.have_saved;
}
function load_game() {
_root.savepath = SharedObject.getLocal('MWC');
_root.player_income = _root.savepath.data.player_income;
_root.player_cash = _root.savepath.data.player_cash;
_root.player_cashdisplay = _root.savepath.data.player_cashdisplay;
_root.player_minpool = _root.savepath.data.player_minpool + _root.savepath.data.player_minlimbo;
_root.player_minmax = _root.savepath.data.player_minmax;
_root.player_mintotal = _root.savepath.data.player_mintotal;
_root.player_recruitmin = _root.savepath.data.player_recruitmin;
_root.player_recruitmax = _root.savepath.data.player_recruitmax;
_root.player_mincontrol = _root.savepath.data.player_mincontrol;
_root.player_minfinancial = _root.savepath.data.player_minfinancial;
_root.player_mindefense = _root.savepath.data.player_mindefense;
_root.player_mindefensemax = _root.savepath.data.player_mindefensemax;
_root.player_minlimbo = 0;
_root.player_xp = _root.savepath.data.player_xp;
_root.player_level = _root.savepath.data.player_level;
_root.player_notoriety = _root.savepath.data.player_notoriety;
_root.player_science0 = _root.savepath.data.player_science0.concat();
_root.player_science1 = _root.savepath.data.player_science1.concat();
_root.player_science2 = _root.savepath.data.player_science2.concat();
_root.player_science3 = _root.savepath.data.player_science3.concat();
_root.player_science4 = _root.savepath.data.player_science4.concat();
_root.player_science5 = _root.savepath.data.player_science5.concat();
_root.player_science6 = _root.savepath.data.player_science6.concat();
_root.player_weapon = _root.savepath.data.player_weapon.concat();
_root.player_power = _root.savepath.data.player_power.concat();
_root.player_base = _root.savepath.data.player_base.concat();
_root.player_currentbasetag = _root.savepath.data.player_currentbasetag;
_root.player_currentbase = _root.savepath.data.player_currentbase;
_root.player_basedestroyed = (_root.savepath.data.player_basedestroyed.concat()).concat();
_root.player_turret = _root.savepath.data.player_turret.concat();
_root.player_tutorial = _root.savepath.data.player_tutorial;
_root.enemy_waves = 0;
_root.gamepaused = false;
_root.messages = _root.savepath.data.messages.concat();
_root.tooltips = _root.savepath.data.tooltips.concat();
_root.plot_type = _root.savepath.data.plot_type.concat();
_root.plot_territory = _root.savepath.data.plot_territory.concat();
_root.plot_target = _root.savepath.data.plot_target.concat();
_root.plot_notoriety = _root.savepath.data.plot_notoriety.concat();
_root.plot_order = _root.savepath.data.plot_order.concat();
_root.plot_cost = _root.savepath.data.plot_cost.concat();
_root.plot_minions = _root.savepath.data.plot_minions.concat();
_root.plot_success = _root.savepath.data.plot_success.concat();
_root.plot_timeexecute = _root.savepath.data.plot_timeexecute.concat();
_root.plot_timeplot = _root.savepath.data.plot_timeplot;
_root.plot_control = _root.savepath.data.plot_control.concat();
_root.plot_patsy = _root.savepath.data.plot_patsy.concat();
_root.plot_timeplotdisplay = _root.savepath.data.plot_timeplotdisplay;
_root.plot_controldisplay = _root.savepath.data.plot_controldisplay;
_root.exec_missiontime = _root.savepath.data.exec_missiontime;
_root.plot_missiontime = _root.savepath.data.plot_missiontime;
_root.timeron = _root.savepath.data.timeron;
_root.plot_status = _root.savepath.data.plot_status.concat();
_root.plot_currentexecuted = _root.savepath.data.plot_currentexecuted;
_root.patsy_roster = _root.savepath.data.patsy_roster.concat();
_root.patsy_effective = _root.savepath.data.patsy_effective.concat();
_root.patsy_modcost = _root.savepath.data.patsy_modcost;
_root.patsy_modminion = _root.savepath.data.patsy_modminion;
_root.patsy_modtime = _root.savepath.data.patsy_modtime;
_root.patsy_modsuccess = _root.savepath.data.patsy_modsuccess;
_root.patsy_dead = _root.savepath.data.patsy_dead.concat();
_root.patsy_selected = _root.savepath.data.patsy_selected;
_root.patsy_executed = _root.savepath.data.patsy_executed;
_root.plot_patsysuccess = _root.savepath.data.pressplot_patsysuccesses;
_root.plot_patsytime = _root.savepath.data.plot_patsytime;
_root.plot_patsycost = _root.savepath.data.plot_patsycost;
_root.plot_patsymin = _root.savepath.data.plot_patsymin;
_root.hench_roster = _root.savepath.data.hench_roster;
_root.hench_dead = _root.savepath.data.hench_dead;
_root.hench_kills = _root.savepath.data.hench_kills;
_root.hench_id = _root.savepath.data.hench_id;
_root.event1 = _root.savepath.data.event1.concat();
_root.event2 = _root.savepath.data.event2.concat();
_root.worldmod_na = _root.savepath.data.worldmod_na.concat();
_root.worldmod_e = _root.savepath.data.worldmod_e.concat();
_root.worldmod_a = _root.savepath.data.worldmod_a.concat();
_root.worldmod_sa = _root.savepath.data.worldmod_sa.concat();
_root.territory_suspicion = _root.savepath.data.territory_suspicion;
_root.shoppinglist_enemies = _root.savepath.data.shoppinglist_enemies.concat();
_root.hench_id = _root.savepath.data.hench_id;
_root.display_defensemin = 0;
_root.gamestart_defensemin = _root.savepath.data.display_defensemin;
_root.enemy_wavetimer = _root.savepath.data.enemy_wavetimer;
_root.hench_healthbackup = _root.savepath.data.hench_healthbackup;
_root.power_active = _root.savepath.data.power_active.concat();
_root.power_recharging = _root.savepath.data.power_recharging;
_root.power_timer = _root.savepath.data.power_timer.concat();
_root.player_currentweapon = _root.savepath.data.player_currentweapon;
_root.player_turrets = _root.savepath.data.player_turrets.concat();
_root.player_turrettype = _root.savepath.data.player_turrettype.concat();
_root.backup_turret1 = _root.savepath.data.backup_turret1.concat();
_root.backup_turret2 = _root.savepath.data.backup_turret2.concat();
_root.backup_turret3 = _root.savepath.data.backup_turret3.concat();
_root.backup_turret4 = _root.savepath.data.backup_turret4.concat();
_root.backup_turret5 = _root.savepath.data.backup_turret5.concat();
_root.backup_turret6 = _root.savepath.data.backup_turret6.concat();
_root.backup_turret7 = _root.savepath.data.backup_turret7.concat();
_root.backup_turret8 = _root.savepath.data.backup_turret8.concat();
_root.player_turrets1 = _root.savepath.data.player_turrets1.concat();
_root.player_turrets2 = _root.savepath.data.player_turrets2.concat();
_root.player_turrets3 = _root.savepath.data.player_turrets3.concat();
_root.player_turrets4 = _root.savepath.data.player_turrets4.concat();
_root.player_turrets5 = _root.savepath.data.player_turrets5.concat();
_root.player_turrets6 = _root.savepath.data.player_turrets6.concat();
_root.player_turrets7 = _root.savepath.data.player_turrets7.concat();
_root.player_turrets8 = _root.savepath.data.player_turrets8.concat();
_root.cash_invested = _root.savepath.data.cash_invested;
_root.cash_returns = _root.savepath.data.cash_returns;
_root.business_coffee = _root.savepath.data.business_coffee;
_root.business_book = _root.savepath.data.business_book;
_root.business_invest = _root.savepath.data.business_invest;
_root.business_law = _root.savepath.data.business_law;
_root.business_hq = _root.savepath.data.business_hq;
_root.business_research = _root.savepath.data.business_research;
_root.business_investig = _root.savepath.data.business_investig;
_root.business_factory = _root.savepath.data.business_factory;
_root.player_tooltips = _root.savepath.data.player_tooltips;
if (_root.player_turrets[0] > -1 or _root.player_turrets[1] > -1 or _root.player_turrets[2] > -1 or _root.player_turrets[3] > -1 or _root.player_turrets[4] > -1 or _root.player_turrets[5] > -1) {
trace('Verified turrets, turning on gamestart_turrets');
_root.gamestart_turrets = true;
}
if (_root.player_notoriety >= 25) {
_root.last_checkpoint = 1;
}
if (_root.player_notoriety >= 50) {
_root.last_checkpoint = 2;
}
if (_root.player_notoriety >= 75) {
_root.last_checkpoint = 3;
}
i = 0;
while (i < 7) {
_root.power_active[i] = false;
_root.power_recharging[i] = false;
++i;
}
}
stop();
_quality = (SharedObject.getLocal('MWC')).data.player_quality;
_root.music_status = (SharedObject.getLocal('MWC')).data.music_status;
if (_root.music_status !== true and _root.music_status !== false) {
_root.music_status = true;
}
}
frame 4 {
var player_income = 100;
var player_cash = 14320;
var player_cashdisplay = '$14,320';
var player_minpool = 37;
var player_minmax = 30;
var player_mintotal = 30;
var player_recruitmin = 100;
var player_recruitmax = 150;
var player_mincontrol = 0;
var player_minfinancial = 0;
var player_mindefense = 0;
var player_mindefensemax = 30;
var player_minlimbo = 0;
var player_xp = 300;
var player_level = 4;
var player_notoriety = 55;
var player_science0 = new Array(false);
var player_science1 = new Array(false, false);
var player_science2 = new Array(false, false, false);
var player_science3 = new Array(false, false, false, false);
var player_science4 = new Array(false, false, false, false, false);
var player_science5 = new Array(false, false, false);
var player_science6 = new Array(false);
var player_weapon = new Array(true, false, false, false, false, false, false);
var player_power = new Array(false, false, false, false, false, false);
var player_base = new Array(true, false, false, false, false, false, false, true, false);
var player_currentbasetag = 'Glenside';
var player_currentbase = 7;
var player_basedestroyed = new Array(true, false, false, false, false, false, false, false, false);
var player_turret = new Array(0, 0, 0, 0);
var player_tutorial = -1;
var enemy_waves = 0;
var gamepaused = false;
var messages = new Array(false, false, false, false, false);
var tooltips = new Array(false, false, false, false, false);
var plot_type = new Array('', '', '', '', '', '');
var plot_territory = new Array('', '', '', '', '', '');
var plot_target = new Array('', '', '', '', '', '');
var plot_notoriety = new Array(0, 0, 0, 0, 0, 0);
var plot_order = new Array(9999, 9999, 9999, 9999, 9999, 9999);
var plot_cost = new Array(0, 0, 0, 0, 0, 0);
var plot_minions = new Array(0, 0, 0, 0, 0, 0);
var plot_success = new Array(0, 0, 0, 0, 0, 0);
var plot_timeexecute = new Array(0, 0, 0, 0, 0, 0);
var plot_timeplot = 0;
var plot_control = new Array(0, 0, 0, 0, 0, 0);
var plot_patsy = new Array(-1, -1, -1, -1, -1, -1);
var plot_timeplotdisplay = new String();
var plot_controldisplay = new String();
var exec_missiontime = 0;
var plot_missiontime = 0;
var timeron = false;
var plot_status = new Array('done', 'done', 'done', 'done', '', 'done');
var plot_currentexecuted;
var patsy_roster = new Array('', '', '');
var patsy_effective = new Array(100, 100, 100);
var patsy_modcost = 0;
var patsy_modminion = 0;
var patsy_modtime = 0;
var patsy_modsuccess = 0;
var patsy_dead = new Array(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
var patsy_selected;
var patsy_executed;
var plot_patsysuccess = 0;
var plot_patsytime = 0;
var plot_patsycost = 0;
var plot_patsymin = 0;
var hench_roster = '';
var hench_dead = new Array(false, false, false, false, false, false, false, false, false, false, false, false);
var hench_kills = 0;
var hench_id = -1;
var event1 = new Array('badbill', 'na', 'politician', 'killkid', 300);
var event2 = new Array('', '', '', '', 200);
var worldmod_na = new Array(0, 0, 0, 0);
var worldmod_e = new Array(0, 0, 0, 0);
var worldmod_a = new Array(0, 0, 0, 0);
var worldmod_sa = new Array(0, 0, 0, 0);
var territory_suspicion = new Array(0, 0, 0, 0);
var last_checkpoint = 0;
var event_voucher = false;
var henchman_talkclear = true;
var shoppinglist_enemies = new Array();
var hench_id = -1;
var display_defensemin = 0;
var enemy_wavetimer = 0;
var hench_healthbackup = -1;
var power_active = [false, false, false, false, false, false];
var power_recharging = [false, false, false, false, false, false];
var power_timer = [0, 0, 0, 0, 0, 0];
var player_currentweapon = 0;
var player_turrets = [-1, -1, -1, -1, -1, -1];
var player_turrettype = ['', '', '', '', '', ''];
var player_turretplacement = [-1, -1, -1, -1, -1, -1];
var backup_turret1 = ['', '', '', '', '', ''];
var backup_turret2 = ['', '', '', '', '', ''];
var backup_turret3 = ['', '', '', '', '', ''];
var backup_turret4 = ['', '', '', '', '', ''];
var backup_turret5 = ['', '', '', '', '', ''];
var backup_turret6 = ['', '', '', '', '', ''];
var backup_turret7 = ['', '', '', '', '', ''];
var backup_turret8 = ['', '', '', '', '', ''];
var player_turrets1 = [-1, -1, -1, -1, -1, -1];
var player_turrets2 = [-1, -1, -1, -1, -1, -1];
var player_turrets3 = [-1, -1, -1, -1, -1, -1];
var player_turrets4 = [-1, -1, -1, -1, -1, -1];
var player_turrets5 = [-1, -1, -1, -1, -1, -1];
var player_turrets6 = [-1, -1, -1, -1, -1, -1];
var player_turrets7 = [-1, -1, -1, -1, -1, -1];
var player_turrets8 = [-1, -1, -1, -1, -1, -1];
var cash_invested = 0;
var cash_returns = 0;
var business_coffee = 0;
var business_book = 0;
var business_invest = 0;
var business_law = 0;
var business_hq = 0;
var business_research = 0;
var business_investig = 0;
var business_factory = 0;
}
movieClip 517 {
}
movieClip 518 {
}
movieClip 522 {
}
movieClip 524 {
}
movieClip 528 {
}
movieClip 532 {
}
movieClip 533 {
}
movieClip 534 {
}
movieClip 535 {
}
movieClip 536 {
}
movieClip 537 {
}
movieClip 538 {
}
movieClip 541 {
frame 56 {
stop();
}
}
movieClip 542 {
}
movieClip 549 {
}
movieClip 551 {
}
movieClip 560 {
}
button 566 {
on (press) {
_root.player_tutorial = 0;
_root.player_notoriety = 0;
_root.player_cash = 300;
_root.player_cashdisplay = '$300';
_root.player_minpool = 0;
_root.player_level = 1;
_root.player_xp = 0;
_root.voicebox.introbox.stop();
gotoAndStop('gameintro');
}
}
button 567 {
on (press) {
if (_root.test_load() == true) {
_root.load_game();
_root.voicebox.introbox.stop();
gotoAndStop('maingame');
} else {
_root.player_tutorial = 0;
_root.player_notoriety = 0;
_root.player_cash = 300;
_root.player_cashdisplay = '$300';
_root.player_minpool = 0;
_root.player_level = 1;
_root.player_xp = 0;
_root.voicebox.introbox.stop();
gotoAndStop('gameintro');
}
}
}
button 568 {
on (press) {
this.gameoptions.gotoAndStop(2);
}
}
button 569 {
on (press) {
getURL('http://www.newgrounds.com/games', 'blank');
}
}
button 570 {
on (press) {
_root.player_tutorial = -1;
_root.player_notoriety = 0;
_root.player_cash = 300000;
_root.player_cashdisplay = '$300,000';
_root.player_minpool = 0;
_root.player_level = 1;
_root.player_xp = 0;
_root.voicebox.introbox.stop();
gotoAndStop('gameintro');
}
}
button 572 {
on (press) {
getURL('http://www.theswain.com', 'blank');
}
}
button 573 {
on (press) {
getURL('http://www.newgrounds.com', 'blank');
}
}
movieClip 576 {
}
movieClip 582 {
}
instance voicebox of movieClip 582 {
onClipEvent (load) {
function play_music() {
introbox.attachSound('MWC_Mainmenu');
introbox.start();
introbox.setVolume(60);
this.currentlyplaying = true;
}
var introbox = new Sound(_root.soundtest1);
var introvoicebox = new Sound(_root.soundtest2);
introbox.setVolume(60);
introvoicebox.setVolume(90);
if (_root.intro_playmusic != false) {
introvoicebox.attachSound('MM_Intro2');
introvoicebox.start();
_root.intro_playmusic = false;
}
if ((SharedObject.getLocal('MWC')).data.music_status != false) {
this.play_music();
}
introbox.onSoundComplete = function () {
_root.voicebox.play_music();
};
}
}
movieClip 584 {
}
button 599 {
on (press) {
this.prevFrame();
}
}
button 605 {
on (press) {
_quality = 'HIGH';
this.quality1._visible = true;
this.quality2._visible = false;
this.quality3._visible = false;
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
}
button 606 {
on (press) {
_quality = 'MEDIUM';
this.quality1._visible = false;
this.quality2._visible = true;
this.quality3._visible = false;
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
}
button 607 {
on (press) {
_quality = 'LOW';
this.quality1._visible = false;
this.quality2._visible = false;
this.quality3._visible = true;
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
}
button 611 {
on (press) {
this.music1._visible = true;
this.music2._visible = false;
_root.music_status = true;
(SharedObject.getLocal('MWC')).data.music_status = _root.music_status;
if (_root.voicebox.currentlyplaying !== true) {
_root.voicebox.play_music();
}
}
}
button 612 {
on (press) {
this.music1._visible = false;
this.music2._visible = true;
_root.music_status = false;
(SharedObject.getLocal('MWC')).data.music_status = _root.music_status;
if (_root.voicebox.currentlyplaying == true) {
_root.voicebox.introbox.stop('MWC_Mainmenu');
_root.voicebox.currentlyplaying = false;
}
}
}
button 614 {
on (press) {
_root.player_tooltips = true;
(SharedObject.getLocal('MWC')).data.player_tooltips = true;
this.tooltips1._visible = true;
this.tooltips2._visible = false;
}
}
button 615 {
on (press) {
_root.player_tooltips = false;
(SharedObject.getLocal('MWC')).data.player_tooltips = false;
this.tooltips1._visible = false;
this.tooltips2._visible = true;
}
}
movieClip 616 {
frame 1 {
stop();
}
instance quality1 of movieClip 551 {
onClipEvent (load) {
if (_quality != 'HIGH') {
this._visible = false;
}
}
}
instance quality2 of movieClip 551 {
onClipEvent (load) {
if (_quality != 'MEDIUM') {
this._visible = false;
}
}
}
instance quality3 of movieClip 551 {
onClipEvent (load) {
if (_quality != 'LOW') {
this._visible = false;
}
}
}
instance music1 of movieClip 551 {
onClipEvent (load) {
if (_root.music_status == true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance music2 of movieClip 551 {
onClipEvent (load) {
if (_root.music_status !== true) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance tooltips1 of movieClip 551 {
onClipEvent (load) {
_root.player_tooltips = (SharedObject.getLocal('MWC')).data.player_tooltips;
if (_root.player_tooltips !== false) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance tooltips2 of movieClip 551 {
onClipEvent (load) {
_root.player_tooltips = (SharedObject.getLocal('MWC')).data.player_tooltips;
if (_root.player_tooltips == false) {
this._visible = true;
} else {
this._visible = false;
}
}
}
}
movieClip 618 {
frame 26 {
stop();
}
}
movieClip 620 {
frame 2 {
stop();
}
}
frame 5 {
stop();
}
movieClip 624 {
}
movieClip 626 {
}
movieClip 628 {
}
movieClip 630 {
}
movieClip 631 {
}
button 639 {
on (press) {
_root.gotoAndStop('maingame');
}
}
movieClip 642 {
frame 1 {
_root.stop();
}
frame 378 {
_root.nextFrame();
}
}
frame 6 {
function moneymaker() {
if (moneytimer < 10) {
++moneytimer;
} else {
if (_root.player_tutorial == -1) {
this.income_calculator();
moneytimer = 0;
_root.player_cash += cash_income;
_root.cash_returns += cash_income;
this.moneydisplayer();
}
}
}
function income_calculator() {
player_income = 50 + business_coffee * 30 + business_book * 60 + business_invest * 90 + business_law * 150;
var v3 = 0;
if (business_research == 1) {
i = 1;
while (i < 6) {
k = 0;
while (k < 6) {
if (_root['player_science' + i][k] == true) {
++v3;
}
++k;
}
++i;
}
trace(v3);
}
player_income += Math.floor(player_income * (0.05 * v3) + 0.2 * business_hq + 0.05 * business_factory);
if (_root.player_currentbase == 6) {
player_income += Math.floor(player_income * 0.33);
}
cash_income = player_income + Math.floor(player_income * 0.025 * player_minfinancial) + Math.floor(player_income * 0.006 * (_root.worldmod_na[3] + _root.worldmod_e[3] + _root.worldmod_a[3] + _root.worldmod_sa[3]));
if (_root.player_science5[0] == true) {
cash_income = player_income + Math.floor(player_income * 0.025 * 15) + Math.floor(player_income * 0.006 * (_root.worldmod_na[3] + _root.worldmod_e[3] + _root.worldmod_a[3] + _root.worldmod_sa[3]));
}
if (this.event_influence('businessisgood', 'any', 'any') == true) {
cash_income -= Math.floor(player_income * 0.5);
}
cash_incomestring = this.moneyformat(cash_income);
cash_returnsstring = this.moneyformat(cash_returns);
cash_investedstring = this.moneyformat(cash_invested);
}
function moneydisplayer() {
player_cashdisplay = moneyformat(player_cash);
this.cashdisplay.cashbackground.play();
}
function moneyformat(incash) {
var v1 = String(incash);
var v2 = Math.floor((v1.length - 1) / 3);
i = 1;
while (i <= v2) {
v1 = v1.slice(0, v1.length - (i * 3 + (i - 1))) + ',' + v1.slice(v1.length - (i * 3 + (i - 1)), v1.length);
++i;
}
return '$' + v1;
}
function recruitbuttonavailable() {
player_mintotal = player_mincontrol + player_minfinancial + display_defensemin + player_minpool + player_minlimbo;
recruitbuttonspread.minmaxbar._yscale = (player_mintotal / player_minmax) * 100;
if (player_mintotal == player_minmax and recruitbuttonspread._currentframe < 3) {
recruitbuttonspread.gotoAndStop(3);
recruitbuttonspread.minmaxbar._tint = (player_mintotal / player_minmax) * 100;
}
if (player_cash < player_recruitmax and recruitbuttonspread._currentframe == 1) {
recruitbuttonspread.gotoAndStop(2);
}
if (player_mintotal !== player_minmax and player_cash >= player_recruitmax and recruitbuttonspread._currentframe !== 1) {
recruitbuttonspread.gotoAndStop(1);
}
if (player_mintotal !== player_minmax and player_cash < player_recruitmax) {
recruitbuttonspread.gotoAndStop(2);
}
if (player_mintotal == player_minmax and minionpooldisplay._currentframe == 1) {
minionpooldisplay.gotoAndStop(2);
}
if (player_mintotal !== player_minmax and minionpooldisplay._currentframe == 2) {
minionpooldisplay.gotoAndStop(1);
}
}
function controlroomdetails(inString) {
roommenu.defaultdisplay.plotdetailcontrol.gotoAndStop(2);
var v3 = getorderunsorted(inString);
_root.latest_viewedmission = v3;
roommenu.defaultdisplay.plotdetailcontrol.detailtype.gotoAndStop(plot_type[v3]);
roommenu.defaultdisplay.plotdetailcontrol.detailtarget.gotoAndStop(plot_target[v3]);
roommenu.defaultdisplay.plotdetailcontrol.detailpatsy.gotoAndStop(plot_patsy[v3]);
roommenu.menu_execute.detailtype.gotoAndStop(plot_type[v3]);
roommenu.menu_execute.detailtarget.gotoAndStop(plot_target[v3]);
roommenu.menu_execute.detailpatsy.gotoAndStop(plot_patsy[v3]);
roommenu.menu_execute.executeterritory.gotoAndStop(plot_territory[v3]);
roommenu.menu_meeting.plotdetailpatsy.detailtype.gotoAndStop(plot_type[v3]);
roommenu.menu_meeting.plotdetailpatsy.detailtarget.gotoAndStop(plot_target[v3]);
roommenu.menu_meeting.plotdetailpatsy.detailpatsy.gotoAndStop(plot_patsy[v3]);
if (plot_patsy[v3] > -1 and v3 !== plot_currentexecuted) {
patsy_missionbonuses(v3, true);
if (plot_cost[v3] < 0) {
var v6 = plot_cost[v3] + Math.floor(plot_cost[v3] * plot_patsycost * 0.01);
} else {
var v6 = plot_cost[v3];
}
var v7 = plot_minions[v3] + Math.floor(plot_minions[v3] * plot_patsymin * 0.01);
var v5 = plot_timeexecute[v3] + Math.floor(plot_timeexecute[v3] * plot_patsytime * 0.01);
var v4 = plot_success[v3] + plot_patsysuccess;
} else {
var v4 = plot_success[v3];
var v5 = plot_timeexecute[v3];
var v6 = plot_cost[v3];
var v7 = plot_minions[v3];
}
if (v3 !== plot_currentexecuted) {
if (this.event_influence('datascramble', 'any', 'any') == true) {
} else {
v4 += Math.floor(plot_success[v3] * player_mincontrol * 0.005);
if (_root.player_science5[0] == true) {
v4 += Math.floor(plot_success[v3] * 15 * 0.005);
}
v5 -= player_mincontrol;
if (_root.player_science5[0] == true) {
v5 -= 15;
}
}
}
if (_root.business_investig > 0) {
v4 += 10;
}
if (v4 <= 60) {
roommenu.defaultdisplay.plotdetailcontrol.detailsuccess.gotoAndStop(3);
roommenu.menu_execute.detailsuccess.gotoAndStop(3);
roommenu.menu_meeting.plotdetailpatsy.detailsuccess.gotoAndStop(3);
}
if (v4 <= 80 and v4 > 60) {
roommenu.defaultdisplay.plotdetailcontrol.detailsuccess.gotoAndStop(2);
roommenu.menu_execute.detailsuccess.gotoAndStop(2);
roommenu.menu_meeting.plotdetailpatsy.detailsuccess.gotoAndStop(2);
}
if (v4 > 80) {
roommenu.defaultdisplay.plotdetailcontrol.detailsuccess.gotoAndStop(1);
roommenu.menu_execute.detailsuccess.gotoAndStop(1);
roommenu.menu_meeting.plotdetailpatsy.detailsuccess.gotoAndStop(1);
}
if (v6 <= 0) {
plot_displaycost = '- ' + moneyformat(-1 * v6);
roommenu.defaultdisplay.plotdetailcontrol.detailcost.gotoAndStop(1);
roommenu.menu_execute.detailcost.gotoAndStop(1);
roommenu.menu_meeting.plotdetailpatsy.detailcost.gotoAndStop(1);
}
if (v6 > 0) {
plot_displaycost = '+ ' + moneyformat(v6);
roommenu.defaultdisplay.plotdetailcontrol.detailcost.gotoAndStop(2);
roommenu.menu_execute.detailcost.gotoAndStop(2);
roommenu.menu_meeting.plotdetailpatsy.detailcost.gotoAndStop(2);
}
if (plot_patsy[v3] > -1) {
roommenu.menu_execute.missionpatsy.gotoAndStop(2);
roommenu.defaultdisplay.plotdetailcontrol.missionpatsyicon.gotoAndStop(patsy_roster[plot_patsy[v3]]);
roommenu.menu_execute.missionpatsy.missionpatsyicon.gotoAndStop(patsy_roster[plot_patsy[v3]]);
} else {
roommenu.defaultdisplay.plotdetailcontrol.missionpatsyicon.gotoAndStop(1);
roommenu.menu_execute.missionpatsy.gotoAndStop(1);
}
if (v4 > 99) {
v4 = 99;
}
if (plot_type[v3] == 'world' or _root.player_tutorial !== -1) {
v4 = 100;
}
if (v4 < 1) {
v4 = 1;
}
if (v7 < 0) {
v7 = 0;
}
if (v5 < 10) {
v5 = 10;
}
plot_displayminions = v7;
plot_displaysuccess = v4 + '%';
plot_displaytime = v5 + ' sec';
plot_displaynumber = v3;
plot_actualnumber = inString;
}
function sortplotexecute(inNumber) {
i = getorderunsorted(String(inNumber));
if (exec_missiontime > 0 and plot_status[i] == 'executing') {
return 'executingclosed';
}
if (plot_missiontime > 0 and plot_status[i] == 'plotting') {
return 'plottingclosed';
}
if (plot_type[i] == '') {
return 'closed';
} else {
if (current_menu == 'meeting') {
if (plot_patsy[i] > -1 or plot_type[i] == 'world') {
return plot_type[i] + 'closed';
} else {
return plot_type[i];
}
} else {
return plot_type[i];
}
}
}
function sortmeetingexecute(inNumber) {
i = getorderunsorted(String(inNumber));
if (exec_missiontime > 0 and plot_status[i] == 'executing') {
return 'executingclosed';
}
if (plot_missiontime > 0 and plot_status[i] == 'plotting') {
return 'plottingclosed';
}
if (plot_type[i] == '' or plot_type[i] == 'world') {
return 'closed';
} else {
if (current_menu == 'meeting') {
if (plot_patsy[i] > -1 or plot_type[i] == 'world') {
return plot_type[i] + 'closed';
} else {
return plot_type[i];
}
} else {
return plot_type[i];
}
}
}
function sortdefaultplot(inNumber) {
i = getorderunsorted(String(inNumber));
if (exec_missiontime > 0 and plot_status[i] == 'executing') {
return 'executing';
}
if (plot_missiontime > 0 and plot_status[i] == 'plotting') {
return 'plotting';
}
if (plot_type[i] !== '') {
return plot_type[i];
} else {
return 'closed';
}
}
function sortnewplot(inNumber) {
i = getorderunsorted(String(inNumber));
if (exec_missiontime > 0 and plot_status[i] == 'executing') {
return 'executingclosed';
}
if (plot_type[i] !== '') {
return plot_type[i] + 'closed';
} else {
i = getorderunsorted(String(inNumber - 1));
if (plot_type[i] !== '') {
return 'add';
} else {
return 'closed';
}
}
}
function sortcreatetype(inNumber) {
if (player_tutorial == -1) {
if (inNumber == 1) {
return 'cash';
}
if (inNumber == 2) {
return 'science';
}
if (inNumber == 3) {
if (player_science2[0] == false and player_science2[1] == false and player_science2[2] == false) {
return 'kidnaplocked';
} else {
return 'kidnap';
}
}
if (inNumber == 4) {
if (player_science4[0] == false and player_science4[1] == false and player_science4[2] == false and player_science4[3] == false and player_science4[4] == false) {
return 'killlocked';
} else {
return 'kill';
}
}
if (inNumber == 5) {
if (player_science4[1] !== true) {
if (player_science3[0] == false and player_science3[1] == false and player_science3[2] == false and player_science3[3] == false) {
return 'propagandalocked';
} else {
return 'propaganda';
}
} else {
return 'brainwash';
}
}
if (inNumber == 6) {
if (player_science6[0] !== true) {
if (player_science5[1] !== true) {
if (player_science3[2] !== true) {
return 'sabotagelocked';
} else {
return 'sabotage';
}
} else {
return 'blowup';
}
} else {
return 'world';
}
}
} else {
if (inNumber == 2) {
return 'science';
} else {
return 'closed';
}
}
}
function sortcreateterritory(inNumber) {
if (plot_type[6] !== 'science' && plot_type[6] !== 'world') {
if (inNumber == 1) {
if (territory_suspicion[0] < 25) {
return 'territorynorthamerica';
}
if (territory_suspicion[0] >= 25 and territory_suspicion[0] < 50) {
return 'territorynorthamerica2';
}
if (territory_suspicion[0] >= 50) {
return 'territorynorthamerica3';
}
}
if (inNumber == 2) {
if (territory_suspicion[1] < 25) {
return 'territoryeurope';
}
if (territory_suspicion[1] >= 25 and territory_suspicion[1] < 50) {
return 'territoryeurope2';
}
if (territory_suspicion[1] >= 50) {
return 'territoryeurope3';
}
}
if (inNumber == 3) {
if (territory_suspicion[2] < 25) {
return 'territoryasia';
}
if (territory_suspicion[2] >= 25 and territory_suspicion[2] < 50) {
return 'territoryasia2';
}
if (territory_suspicion[2] >= 50) {
return 'territoryasia3';
}
}
if (inNumber == 4) {
if (territory_suspicion[3] < 25) {
return 'territorysouthamerica';
}
if (territory_suspicion[3] >= 25 and territory_suspicion[3] < 50) {
return 'territorysouthamerica2';
}
if (territory_suspicion[3] >= 50) {
return 'territorysouthamerica3';
}
}
if (inNumber >= 5) {
return 'closed';
}
}
if (plot_type[6] == 'science') {
if (_root.player_tutorial == -1) {
var v3 = 0;
k = 0;
while (k < inNumber) {
if (_root['player_science' + (inNumber - 1)][k] == true) {
v3 += 1;
}
++k;
}
if (inNumber == 1) {
return 'science1';
}
if (inNumber == 2 and v3 >= 1 and _root.player_level >= 2) {
return 'science2';
} else {
if (inNumber == 2) {
return 'science2locked';
}
}
if (inNumber == 3 and v3 >= 2 and _root.player_level >= 3) {
return 'science3';
} else {
if (inNumber == 3) {
return 'science3locked';
}
}
if (inNumber == 4 and v3 >= 2 and _root.player_level >= 4) {
return 'science4';
} else {
if (inNumber == 4) {
return 'science4locked';
}
}
if (inNumber == 5 and v3 >= 3 and _root.player_level >= 5) {
return 'science5';
} else {
if (inNumber == 5) {
return 'science5locked';
}
}
if (inNumber == 6 and v3 >= 2 and _root.player_level >= 7) {
return 'science6';
} else {
if (inNumber == 6) {
return 'science6locked';
}
}
} else {
if (inNumber == 1) {
return 'science0';
} else {
return 'closed';
}
}
}
if (plot_type[6] == 'world') {
if (inNumber == 1) {
return 'worldterritory';
}
if (inNumber == 2) {
return 'closed';
}
if (inNumber == 3) {
return 'closed';
}
if (inNumber == 4) {
return 'closed';
}
if (inNumber == 5) {
return 'closed';
}
if (inNumber == 6) {
return 'closed';
}
}
}
function sortcreatetarget(inNumber) {
if (plot_type[6] == 'cash') {
if (inNumber == 1) {
return 'steal1';
}
if (inNumber == 2 and player_level >= 2) {
return 'steal2';
} else {
if (inNumber == 2) {
return 'stealtargetclosed';
}
}
if (inNumber == 3 and player_level >= 4) {
return 'steal3';
} else {
if (inNumber == 3) {
return 'stealtargetclosed';
}
}
if (inNumber == 4 and player_level >= 6) {
return 'steal4';
} else {
if (inNumber == 4) {
return 'stealtargetclosed';
}
}
if (inNumber >= 5) {
return 'closed';
}
}
if (plot_type[6] == 'kidnap' or plot_type[6] == 'kill') {
if (inNumber == 1) {
return 'leader';
}
if (inNumber == 2) {
return 'politician';
}
if (inNumber == 3) {
return 'criminal';
}
if (inNumber == 4) {
return 'journalist';
}
if (inNumber >= 5) {
return 'closed';
}
}
if (plot_type[6] == 'sabotage' or plot_type[6] == 'blowup' or plot_type[6] == 'propaganda' or plot_type[6] == 'brainwash') {
if (inNumber == 1) {
return plot_type[6] + 'target';
}
if (inNumber == 2) {
return 'closed';
}
if (inNumber == 3) {
return 'closed';
}
if (inNumber == 4) {
return 'closed';
}
if (inNumber == 5) {
return 'closed';
}
if (inNumber == 6) {
return 'closed';
}
}
if (plot_type[6] == 'world') {
if (inNumber == 1) {
return 'worldtarget';
}
if (inNumber == 2) {
return 'closed';
}
if (inNumber == 3) {
return 'closed';
}
if (inNumber == 4) {
return 'closed';
}
if (inNumber == 5) {
return 'closed';
}
if (inNumber == 6) {
return 'closed';
}
}
if (plot_territory[6] == 'science0') {
if (inNumber == 1) {
return 'science0a';
}
if (inNumber >= 2) {
return 'closed';
}
}
if (plot_territory[6] == 'science1') {
if (inNumber == 1 and player_science1[0] !== true) {
return 'science1a';
} else {
if (inNumber == 1) {
return 'sciencetargetclosed';
}
}
if (inNumber == 2 and player_science1[1] !== true) {
return 'science1b';
} else {
if (inNumber == 2) {
return 'sciencetargetclosed';
}
}
if (inNumber >= 3) {
return 'closed';
}
}
if (plot_territory[6] == 'science2') {
if (inNumber == 1 and player_science2[0] !== true) {
return 'science2a';
} else {
if (inNumber == 1) {
return 'sciencetargetclosed';
}
}
if (inNumber == 2 and player_science2[1] !== true) {
return 'science2b';
} else {
if (inNumber == 2) {
return 'sciencetargetclosed';
}
}
if (inNumber == 3 and player_science2[2] !== true) {
return 'science2c';
} else {
if (inNumber == 3) {
return 'sciencetargetclosed';
}
}
if (inNumber >= 4) {
return 'closed';
}
}
if (plot_territory[6] == 'science3') {
if (inNumber == 1 and player_science3[0] !== true) {
return 'science3a';
} else {
if (inNumber == 1) {
return 'sciencetargetclosed';
}
}
if (inNumber == 2 and player_science3[1] !== true) {
return 'science3b';
} else {
if (inNumber == 2) {
return 'sciencetargetclosed';
}
}
if (inNumber == 3 and player_science3[2] !== true) {
return 'science3c';
} else {
if (inNumber == 3) {
return 'sciencetargetclosed';
}
}
if (inNumber == 4 and player_science3[3] !== true) {
return 'science3d';
} else {
if (inNumber == 4) {
return 'sciencetargetclosed';
}
}
if (inNumber >= 5) {
return 'closed';
}
}
if (plot_territory[6] == 'science4') {
if (inNumber == 1 and player_science4[0] !== true) {
return 'science4a';
} else {
if (inNumber == 1) {
return 'sciencetargetclosed';
}
}
if (inNumber == 2 and player_science4[1] !== true) {
return 'science4b';
} else {
if (inNumber == 2) {
return 'sciencetargetclosed';
}
}
if (inNumber == 3 and player_science4[2] !== true) {
return 'science4c';
} else {
if (inNumber == 3) {
return 'sciencetargetclosed';
}
}
if (inNumber == 4 and player_science4[3] !== true) {
return 'science4d';
} else {
if (inNumber == 4) {
return 'sciencetargetclosed';
}
}
if (inNumber == 5 and player_science4[4] !== true) {
return 'science4e';
} else {
if (inNumber == 5) {
return 'sciencetargetclosed';
}
}
if (inNumber == 6 and player_science4[5] !== true) {
return 'closed';
}
}
if (plot_territory[6] == 'science5') {
if (inNumber == 1 and player_science5[0] !== true) {
return 'science5a';
} else {
if (inNumber == 1) {
return 'sciencetargetclosed';
}
}
if (inNumber == 2 and player_science5[1] !== true) {
return 'science5b';
} else {
if (inNumber == 2) {
return 'sciencetargetclosed';
}
}
if (inNumber == 3 and player_science5[2] !== true) {
return 'science5c';
} else {
if (inNumber == 3) {
return 'sciencetargetclosed';
}
}
if (inNumber >= 4) {
return 'closed';
}
}
if (plot_territory[6] == 'science6') {
if (inNumber == 1 and player_science6[0] !== true) {
return 'science6a';
} else {
if (inNumber == 1) {
return 'sciencetargetclosed';
}
}
if (inNumber >= 2) {
return 'closed';
}
}
}
function sort_bases(inNumber) {
var v2 = inNumber;
if (v2 == 1) {
return true;
}
if (v2 == 2 and _root.player_science4[2] == true) {
return true;
}
if (v2 == 3 and _root.player_science3[2] == true) {
return true;
}
if (v2 == 4 and _root.player_science4[4] == true) {
return true;
}
if (v2 == 5) {
return true;
}
if (v2 == 6 and _root.player_science1[0] == true) {
return true;
}
if (v2 == 7) {
return true;
}
if (v2 == 8) {
return true;
}
return false;
}
function sort_businesses(inNumber) {
var v2 = inNumber;
if (v2 == 1) {
return true;
}
if (v2 == 2) {
if (_root.player_science2[0] == true or _root.player_science2[1] == true or _root.player_science2[2] == true) {
return true;
}
}
if (v2 == 3) {
if (_root.player_science3[0] == true or _root.player_science3[1] == true or _root.player_science3[2] == true or _root.player_science3[3] == true) {
return true;
}
}
if (v2 == 4) {
if (_root.player_science4[0] == true or _root.player_science4[1] == true or _root.player_science4[2] == true or _root.player_science4[3] == true or _root.player_science4[4] == true) {
return true;
}
}
if (v2 == 5) {
if (_root.player_science4[0] == true or _root.player_science4[1] == true or _root.player_science4[2] == true or _root.player_science4[3] == true or _root.player_science4[4] == true) {
return true;
}
}
if (v2 == 6 and _root.player_science3[1] == true) {
return true;
}
if (v2 == 7) {
if (_root.player_science3[0] == true or _root.player_science3[1] == true or _root.player_science3[2] == true or _root.player_science3[3] == true) {
return true;
}
}
if (v2 == 8 and _root.player_science4[0] == true) {
return true;
}
return false;
}
function sort_power(inNumber) {
var v2 = inNumber;
if (v2 == 0) {
return true;
}
if (v2 == 1 and _root.player_science2[2] == true) {
return true;
}
if (v2 == 2 and _root.player_science3[3] == true) {
return true;
}
if (v2 == 3 and _root.player_science4[1] == true) {
return true;
}
if (v2 == 4 and _root.player_science5[2] == true) {
return true;
}
if (v2 == 5 and _root.player_science4[4] == true) {
return true;
}
return false;
}
function sort_weapon(inNumber) {
var v2 = inNumber;
if (v2 == 1) {
return true;
}
if (v2 == 2 and _root.player_science1[1] == true) {
return true;
}
if (v2 == 3 and _root.player_science2[0] == true) {
return true;
}
if (v2 == 4 and _root.player_science4[3] == true) {
return true;
}
if (v2 == 5 and _root.player_science2[1] == true) {
return true;
}
if (v2 == 6 and _root.player_science3[0] == true) {
return true;
}
return false;
}
function sort_turret(inNumber) {
var v2 = inNumber;
if (v2 == 0 and _root.player_science1[0] == true) {
return true;
}
if (v2 == 1 and _root.player_science1[1] == true) {
return true;
}
if (v2 == 2 and _root.player_science4[3] == true) {
return true;
}
if (v2 == 3 and _root.player_science3[0] == true) {
return true;
}
return false;
}
function calculatemissionstats() {
plot_cost[6] = 0;
plot_minions[6] = 0;
plot_success[6] = 0;
plot_timeexecute[6] = 0;
plot_timeplot = 0;
plot_control[6] = 0;
if (plot_target[6] == 'steal1') {
plot_cost[6] = 1000;
plot_success[6] = 95;
plot_timeexecute[6] = 10;
plot_minions[6] = 5;
plot_notoriety[6] = 3;
}
if (plot_target[6] == 'steal2') {
plot_cost[6] = 6000;
plot_success[6] = 80;
plot_timeexecute[6] = 15;
plot_minions[6] = 10;
plot_notoriety[6] = 8;
}
if (plot_target[6] == 'steal3') {
plot_cost[6] = 15000;
plot_success[6] = 75;
plot_timeexecute[6] = 20;
plot_minions[6] = 15;
plot_notoriety[6] = 10;
}
if (plot_target[6] == 'steal4') {
plot_cost[6] = 30000;
plot_success[6] = 60;
plot_timeexecute[6] = 35;
plot_minions[6] = 20;
plot_notoriety[6] = 20;
}
if (plot_territory[6] == 'science0') {
plot_cost[6] = 0;
plot_success[6] = 100;
plot_timeexecute[6] = 10;
plot_minions[6] = 3;
plot_notoriety[6] = 5;
}
if (plot_territory[6] == 'science1') {
plot_cost[6] = -1200;
plot_success[6] = 90;
plot_timeexecute[6] = 15;
plot_minions[6] = 5;
plot_notoriety[6] = 5;
}
if (plot_territory[6] == 'science2') {
plot_cost[6] = -2000;
plot_success[6] = 80;
plot_timeexecute[6] = 20;
plot_minions[6] = 8;
plot_notoriety[6] = 10;
}
if (plot_territory[6] == 'science3') {
plot_cost[6] = -3000;
plot_success[6] = 70;
plot_timeexecute[6] = 25;
plot_minions[6] = 15;
plot_notoriety[6] = 15;
}
if (plot_territory[6] == 'science4') {
plot_cost[6] = -4000;
plot_success[6] = 60;
plot_timeexecute[6] = 30;
plot_minions[6] = 15;
plot_notoriety[6] = 20;
}
if (plot_territory[6] == 'science5') {
plot_cost[6] = -8000;
plot_success[6] = 55;
plot_timeexecute[6] = 35;
plot_minions[6] = 20;
plot_notoriety[6] = 20;
}
if (plot_territory[6] == 'science6') {
plot_cost[6] = -15000;
plot_success[6] = 50;
plot_timeexecute[6] = 40;
plot_minions[6] = 25;
plot_notoriety[6] = 25;
}
if (plot_type[6] == 'kidnap') {
plot_cost[6] = 1000;
plot_success[6] = 70;
plot_timeexecute[6] = 10;
plot_minions[6] = 10;
plot_notoriety[6] = 5;
}
if (plot_type[6] == 'kill') {
plot_cost[6] = -2000;
plot_success[6] = 80;
plot_timeexecute[6] = 15;
plot_minions[6] = 15;
plot_notoriety[6] = 10;
}
if (plot_type[6] == 'propaganda') {
plot_cost[6] = -800;
plot_success[6] = 90;
plot_timeexecute[6] = 20;
plot_minions[6] = 5;
plot_notoriety[6] = 15;
}
if (plot_type[6] == 'brainwash') {
plot_cost[6] = -1200;
plot_success[6] = 95;
plot_timeexecute[6] = 20;
plot_minions[6] = 8;
plot_notoriety[6] = 30;
}
if (plot_type[6] == 'sabotage') {
plot_cost[6] = -2000;
plot_success[6] = 70;
plot_timeexecute[6] = 20;
plot_minions[6] = 10;
plot_notoriety[6] = 15;
}
if (plot_type[6] == 'blowup') {
plot_cost[6] = -4000;
plot_success[6] = 60;
plot_timeexecute[6] = 35;
plot_minions[6] = 15;
plot_notoriety[6] = 25;
}
if (plot_type[6] == 'world') {
plot_cost[6] = -50000;
plot_success[6] = 99;
plot_timeexecute[6] = 180;
plot_minions[6] = 20;
plot_notoriety[6] = 0;
}
if (plot_territory[6] == 'na') {
plot_success[6] -= 10;
plot_success[6] -= Math.floor(territory_suspicion[0] * 0.5);
plot_cost[6] += Math.floor(plot_cost[6] * 0.15);
if (plot_type[6] == 'kidnap') {
plot_cost[6] += 3000;
}
plot_timeexecute[6] += 5;
plot_minions[6] += 0;
plot_notoriety[6] += 3;
}
if (plot_territory[6] == 'e') {
plot_success[6] -= 5;
plot_success[6] -= Math.floor(territory_suspicion[1] * 0.5);
plot_cost[6] += Math.floor(plot_cost[6] * 0.1);
if (plot_type[6] == 'kidnap') {
plot_cost[6] += 2000;
}
plot_timeexecute[6] += 3;
plot_minions[6] += 0;
plot_notoriety[6] += 2;
}
if (plot_territory[6] == 'a') {
plot_success[6] -= 2;
plot_success[6] -= Math.floor(territory_suspicion[2] * 0.5);
plot_cost[6] += Math.floor(plot_cost[6] * 0.5);
if (plot_type[6] == 'kidnap') {
plot_cost[6] += 1000;
}
plot_timeexecute[6] += 1;
plot_minions[6] += 0;
plot_notoriety[6] += 1;
}
if (plot_territory[6] == 'sa') {
plot_success[6] -= 0;
plot_success[6] -= Math.floor(territory_suspicion[3] * 0.5);
plot_cost[6] += Math.floor(plot_cost[6] * 0);
if (plot_type[6] == 'kidnap') {
plot_cost[6] += 0;
}
plot_timeexecute[6] += 0;
plot_minions[6] += 0;
plot_notoriety[6] += 0;
}
if (plot_target[6] == 'leader') {
plot_success[6] -= 30;
plot_cost[6] += Math.floor(plot_cost[6] * 0.3);
if (plot_type[6] == 'kidnap') {
plot_cost[6] += 3000;
}
plot_timeexecute[6] += 5;
plot_minions[6] += 0;
plot_notoriety[6] += 3;
}
if (plot_target[6] == 'politician') {
plot_success[6] -= 20;
plot_cost[6] += Math.floor(plot_cost[6] * 0.2);
if (plot_type[6] == 'kidnap') {
plot_cost[6] += 2000;
}
plot_timeexecute[6] += 4;
plot_minions[6] += 0;
plot_notoriety[6] += 2;
}
if (plot_target[6] == 'criminal') {
plot_success[6] -= 10;
plot_cost[6] += Math.floor(plot_cost[6] * 0.15);
if (plot_type[6] == 'kidnap') {
plot_cost[6] += 1000;
}
plot_timeexecute[6] += 2;
plot_minions[6] += 0;
plot_notoriety[6] += 1;
}
if (plot_target[6] == 'journalist') {
plot_success[6] -= 0;
plot_cost[6] += Math.floor(plot_cost[6] * 0.1);
if (plot_type[6] == 'kidnap') {
plot_cost[6] += 0;
}
plot_timeexecute[6] += 0;
plot_minions[6] += 0;
plot_notoriety[6] += 0;
}
if (plot_type[6] !== 'science' and plot_type[6] !== 'world') {
plot_success[6] += Math.floor((_root['worldmod_' + plot_territory[6]][2] + worldmod_sa[0]) / 4);
}
if (player_level == 1) {
plot_cost[6] += 0;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 0;
}
if (player_level == 2) {
plot_cost[6] += 100;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 2;
}
if (player_level == 3) {
plot_cost[6] += 300;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 4;
}
if (player_level == 4) {
plot_cost[6] += 800;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 6;
}
if (player_level == 5) {
plot_cost[6] += 1000;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 8;
}
if (player_level == 6) {
plot_cost[6] += 1200;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 10;
}
if (player_level == 7) {
plot_cost[6] += 1500;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 10;
}
if (player_level == 8) {
plot_cost[6] += 1700;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 10;
}
if (player_level == 9) {
plot_cost[6] += 2000;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 10;
}
if (player_level == 10) {
plot_cost[6] += 3000;
plot_success[6] += player_level * 2;
plot_timeexecute[6] -= 10;
}
plot_timeplot = Math.floor(plot_timeexecute[6] * 0.3);
plot_control[6] = Math.floor(plot_minions[6] * 0.3);
if (plot_type[6] == 'world') {
plot_timeplot = Math.floor(plot_timeexecute[6] * 0.1);
}
if (plot_control[6] < 1) {
plot_control[6] = 1;
}
if (plot_timeplot < 5) {
plot_timeplot = 5;
}
plot_controldisplay = String(plot_control[6]);
plot_timeplotdisplay = String(plot_timeplot) + ' sec';
if (this.event_influence('worthyfoe', 'any', 'any') == true) {
plot_minions[6] = 0;
}
if (this.event_influence('steamroller', 'any', 'any') == true) {
plot_timeexecute[6] = Math.floor(plot_timeexecute[6] * 0.8);
}
if (this.event_influence('sourceofpower', 'any', plot_territory[6]) == true) {
plot_timeexecute[6] = Math.floor(plot_timeexecute[6] * 1.2);
}
if (this.event_influence('crippled', 'any', plot_territory[6]) == true) {
plot_success[6] += 15;
}
if (this.event_influence('usurper', 'any', plot_territory[6]) == true) {
plot_success[6] -= 15;
}
if (this.event_influence('nationalunity', 'any', plot_territory[6]) == true) {
plot_success[6] -= 10;
}
if (this.event_influence('soundcurrency', 'any', plot_territory[6]) == true and plot_type[6] == 'cash') {
plot_success[6] -= 10;
}
if (this.event_influence('fortified', 'any', plot_territory[6]) == true and plot_type[6] == 'cash') {
plot_success[6] -= 15;
}
if (this.event_influence('crackpottheorist', 'any', plot_territory[6]) == true) {
plot_success[6] -= 10;
}
if (_root.player_tutorial !== -1) {
plot_control[6] = 0;
plot_cost[6] = 0;
plot_success[6] = 100;
plot_timeexecute[6] = 15;
plot_minions[6] = 3;
plot_notoriety[6] = 5;
}
}
function createplot() {
var v1 = 0;
i = 0;
while (i < 6) {
if (v1 < plot_order[i] && plot_order[i] !== 9999) {
v1 = plot_order[i];
}
++i;
}
i = 0;
while (i < 6) {
if (plot_type[i] == '') {
plot_status[i] = 'plotting';
plot_missiontime = plot_timeplot;
timeron = true;
plot_order[i] = v1 + 1;
plot_cost[i] = plot_cost[6];
plot_cost[6] = 0;
plot_minions[i] = plot_minions[6];
plot_minions[6] = 0;
plot_success[i] = plot_success[6];
plot_success[6] = 0;
plot_timeexecute[i] = plot_timeexecute[6];
plot_timeexecute[6] = 0;
plot_control[i] = plot_control[6];
plot_control[6] = 0;
plot_type[i] = plot_type[6];
plot_type[6] = '';
plot_territory[i] = plot_territory[6];
plot_territory[6] = '';
plot_target[i] = plot_target[6];
plot_target[6] = '';
plot_notoriety[i] = plot_notoriety[6];
plot_notoriety[6] = 0;
plot_control[6] = 0;
plot_order[6] = 9999;
plot_status[i] = 'plotting';
break;
}
++i;
}
}
function timermanagement() {
if (timeron == true) {
if (plot_missiontime > 0) {
plot_missiontime -= 1;
}
if (exec_missiontime > 0) {
exec_missiontime -= 1;
}
i = 0;
while (i < 6) {
if (plot_status[i] == 'plotting' and plot_missiontime == 0) {
plot_status[i] = 'done';
messages[0] = true;
_root.messagecenter.play();
}
if (plot_status[i] == 'executing' and exec_missiontime == 0) {
if (plot_type[i] == 'world') {
_root.voicebox.mbox.stop();
_root.voicebox.vbox.stop();
_root.voicebox.hbox.stop();
_root.tutorialbox.tutbox.stop();
_root.player_currentroom = 0;
_root.gotoAndStop('victory');
}
plot_status[i] = 'completed';
_root.cutscenemenu.play();
_root.cutscenemenu.mission_number = i;
}
++i;
}
if (plot_missiontime == 0 and exec_missiontime == 0) {
timeron = false;
}
}
}
function notorietymanagement() {
if (player_notoriety >= 25 and _root.last_checkpoint == 0 and _root.checkpoint1.played == false) {
_root.checkpoint1.play();
_root.last_checkpoint = 1;
_root.underattack.gotoAndPlay('start');
enemy_waves += 1;
messages[1] = true;
_root.messagecenter.play();
if (this.event_influence('crackdown', 'any', 'any') == true) {
enemy_waves += 1;
}
}
if (player_notoriety >= 50 and _root.last_checkpoint == 1 and _root.checkpoint2.played == false) {
_root.underattack.gotoAndPlay('start');
_root.checkpoint2.play();
_root.last_checkpoint = 2;
enemy_waves += 2;
messages[1] = true;
_root.messagecenter.play();
if (this.event_influence('crackdown', 'any', 'any') == true) {
enemy_waves += 1;
}
}
if (player_notoriety >= 75 and last_checkpoint == 2 and _root.checkpoint3.played == false) {
_root.underattack.gotoAndPlay('start');
_root.checkpoint3.play();
last_checkpoint = 3;
enemy_waves += 3;
messages[1] = true;
_root.messagecenter.play();
if (this.event_influence('crackdown', 'any', 'any') == true) {
enemy_waves += 1;
}
}
if (player_notoriety >= 100 and last_checkpoint == 3) {
_root.checkpoint4.play();
_root.underattack.gotoAndPlay('start');
_root.checkpoint1.played = false;
_root.checkpoint2.played = false;
_root.checkpoint3.played = false;
last_checkpoint = 0;
enemy_waves += 5;
player_notoriety = 0;
messages[2] = true;
_root.messagecenter.play();
if (this.event_influence('crackdown', 'any', 'any') == true) {
enemy_waves += 1;
}
}
if (this.event_influence('bountyhunters', 'any', 'any') == true) {
if (Math.floor(Math.random() * 100) + 1 == 1 and enemy_waves == 0) {
enemy_waves += 1;
_root.underattack.gotoAndPlay('start');
}
}
if (this.event_influence('misleadingpresence', 'any', 'any') == true) {
enemy_waves = 0;
}
if (_root.endgame == true) {
enemy_waves += 1;
if (_root.endgamewarning !== true) {
_root.underattack.gotoAndPlay('start');
trace('ENDGAME!');
_root.endgamewarning = true;
}
}
if (suspiciontimer < 20) {
++suspiciontimer;
} else {
if (_root.player_tutorial == -1) {
suspiciontimer = 0;
if (this.event_influence('transportrevolution', 'any', 'any') == true) {
player_notoriety += 1;
}
if (this.event_influence('crackpottheorist', 'any', 'any') == true) {
player_notoriety += 1;
}
player_notoriety += 1;
_root.obj_notorietybar.notorietybar.gotoAndPlay('hitlittle');
i = 0;
while (i < 4) {
territory_suspicion[i] -= 2;
if (territory_suspicion[i] < 0) {
territory_suspicion[i] = 0;
}
++i;
}
i = 0;
while (i < 4) {
worldmod_na[i] -= 1;
worldmod_e[i] -= 1;
worldmod_a[i] -= 1;
worldmod_sa[i] -= 1;
if (worldmod_na[i] > 50) {
worldmod_na[i] -= 1;
}
if (worldmod_e[i] > 50) {
worldmod_e[i] -= 1;
}
if (worldmod_a[i] > 50) {
worldmod_a[i] -= 1;
}
if (worldmod_sa[i] > 50) {
worldmod_sa[i] -= 1;
}
if (worldmod_na[i] < 0) {
worldmod_na[i] = 0;
}
if (worldmod_e[i] < 0) {
worldmod_e[i] = 0;
}
if (worldmod_a[i] < 0) {
worldmod_a[i] = 0;
}
if (worldmod_sa[i] < 0) {
worldmod_sa[i] = 0;
}
++i;
}
}
}
}
function minioncost_management() {
player_mintotal = player_mincontrol + player_minfinancial + display_defensemin + player_minpool + player_minlimbo;
player_recruitmin = Math.floor(player_mintotal * 10 / 1.5);
if (_root.player_currentbase == 5 or player_tutorial !== -1) {
_root.player_recruitmax = 100;
} else {
if (player_recruitmax > player_recruitmin * 2) {
player_recruitmax -= 20;
}
if (player_recruitmax > player_recruitmin) {
player_recruitmax -= 20;
}
if (player_recruitmax < player_recruitmin) {
player_recruitmax = player_recruitmin;
}
}
}
function getordersorted(inNumber) {
var v1 = plot_order.concat();
v1.sort(Array.NUMERIC);
i = inNumber;
j = 0;
while (j < 6) {
if (v1[j] == plot_order[i]) {
return j + 1;
break;
}
++j;
}
}
function getorderunsorted(inString) {
var v1 = plot_order.concat();
v1.sort(Array.NUMERIC);
i = Number(inString) - 1;
j = 0;
while (j < 6) {
if (v1[i] == plot_order[j]) {
return j;
break;
}
++j;
}
}
function gethighestorderslot() {
j = 0;
thisordertest = 0;
var v1 = plot_order.concat();
v1.sort(Array.NUMERIC);
i = 0;
while (i < 6) {
if (thisordertest < v1[i] and v1[i] !== 9999) {
j = i;
thisordertest = v1[i];
}
++i;
}
return j + 1;
}
function executemission() {
plot_currentexecuted = plot_displaynumber;
var v2 = plot_currentexecuted;
if (plot_type[v2] == 'world') {
_root.endgame = true;
}
plot_status[v2] = 'executing';
exec_missiontime = plot_timeexecute[v2];
timeron = true;
player_minpool -= plot_minions[v2];
if (plot_cost[v2] < 0) {
player_cash += plot_cost[v2];
moneydisplayer();
}
}
function calculatesuccess(k) {
j = Math.floor(Math.random() * 100) + 1;
if (j <= k or _root.player_tutorial !== -1) {
return true;
} else {
return false;
}
}
function missioncomplete(inNumber) {
var v3 = plot_currentexecuted;
if (_root.cut_success == true) {
if (plot_cost[v3] > 0) {
player_cash += plot_cost[v3];
moneydisplayer();
}
if (this.event_influence('fearedpatsy', 'any', 'any') == true or Math.floor(Math.random() * 2) + 1 == 1 or _root.player_tutorial !== -1) {
player_minpool += plot_minions[v3];
var v4 = 1;
} else {
var v4 = (Math.floor(Math.random() * (plot_success[v3] - plot_success[v3] * 0.75 + 1)) + plot_success[v3] * 0.75) * 0.01;
player_minpool += Math.floor(plot_minions[v3] * v4);
}
if (player_mincontrol + player_minfinancial + display_defensemin + player_minpool + player_minlimbo > player_minmax) {
player_minpool = player_minmax - player_mincontrol - player_minfinancial - display_defensemin - player_minlimbo;
}
if (player_minpool < 0) {
player_minpool = 0;
}
if (plot_target[v3] !== 'journalist' and plot_type[v3] !== 'propaganda' and plot_type[v3] !== 'brainwash') {
if (plot_territory[v3] == 'na') {
territory_suspicion[0] += plot_notoriety[v3] * 2;
}
if (plot_territory[v3] == 'e') {
territory_suspicion[1] += plot_notoriety[v3] * 2;
}
if (plot_territory[v3] == 'a') {
territory_suspicion[2] += plot_notoriety[v3] * 2;
}
if (plot_territory[v3] == 'sa') {
territory_suspicion[3] += plot_notoriety[v3] * 2;
}
if (this.event_influence('shiningexample', 'any', plot_territory[v3]) == true) {
if (plot_territory[v3] == 'na') {
territory_suspicion[0] += plot_notoriety[v3];
}
if (plot_territory[v3] == 'e') {
territory_suspicion[1] += plot_notoriety[v3];
}
if (plot_territory[v3] == 'a') {
territory_suspicion[2] += plot_notoriety[v3];
}
if (plot_territory[v3] == 'sa') {
territory_suspicion[3] += plot_notoriety[v3];
}
}
} else {
if (plot_territory[v3] == 'na') {
territory_suspicion[0] -= plot_notoriety[v3] + 10;
}
if (plot_territory[v3] == 'e') {
territory_suspicion[1] -= plot_notoriety[v3] + 10;
}
if (plot_territory[v3] == 'a') {
territory_suspicion[2] -= plot_notoriety[v3] + 10;
}
if (plot_territory[v3] == 'sa') {
territory_suspicion[3] -= plot_notoriety[v3] + 10;
}
f = 0;
while (f < 4) {
if (territory_suspicion[f] < 0) {
territory_suspicion[f] = 0;
}
++f;
}
}
if (plot_target[v3] == 'leader') {
_root['worldmod_' + plot_territory[v3]][1] += 20 + player_level;
if (plot_type[v3] == 'kill') {
_root['worldmod_' + plot_territory[v3]][1] += 10;
}
} else {
if (plot_target[v3] == 'politician') {
_root['worldmod_' + plot_territory[v3]][2] += 20 + player_level + Math.floor(_root['worldmod_' + plot_territory[v3]][1] / 3);
if (plot_type[v3] == 'kill') {
_root['worldmod_' + plot_territory[v3]][2] += 10;
}
} else {
if (plot_target[v3] == 'criminal') {
_root['worldmod_' + plot_territory[v3]][3] += 20 + player_level + Math.floor(_root['worldmod_' + plot_territory[v3]][1] / 3);
if (plot_type[v3] == 'kill') {
_root['worldmod_' + plot_territory[v3]][3] += 10;
}
}
}
}
_root['worldmod_' + plot_territory[v3]][0] += Math.floor(plot_notoriety[v3] * 0.55) + player_level + Math.floor(_root['worldmod_' + plot_territory[v3]][0] / 3);
if (plot_type[v3] == 'sabotage') {
_root['worldmod_' + plot_territory[v3]][0] += 10;
}
if (plot_type[v3] == 'blowup') {
_root['worldmod_' + plot_territory[v3]][0] += 30;
}
m = 0;
while (m < 5) {
if (_root.worldmod_na[m] > 100) {
_root.worldmod_na[m] = 100;
}
if (_root.worldmod_e[m] > 100) {
_root.worldmod_e[m] = 100;
}
if (_root.worldmod_a[m] > 100) {
_root.worldmod_a[m] = 100;
}
if (_root.worldmod_sa[m] > 100) {
_root.worldmod_sa[m] = 100;
}
++m;
}
if (this.event_influence('illwill', 'any', 'any') == true) {
plot_notoriety[v3] = Math.floor(plot_notoriety[v3] * 2);
}
if (this.event_influence('fearfulmedia', 'any', 'any') == true) {
plot_notoriety[v3] = Math.floor(plot_notoriety[v3] * 0.7);
}
if (this.event_influence('territoryinterror', 'any', plot_territory[v3]) == true) {
plot_notoriety[v3] = Math.floor(plot_notoriety[v3] * 0.5);
}
if (_root.business_law > 0) {
plot_notoriety[v3] -= Math.floor(plot_notoriety[v3] * 0.05 * _root.business_law);
}
if (plot_type[v3] == 'propaganda' or plot_type[v3] == 'brainwash') {
player_notoriety += Math.floor(plot_notoriety[v3] * 0.3);
} else {
player_notoriety += plot_notoriety[v3];
}
if (plot_notoriety[v3] > 5) {
_root.obj_notorietybar.notorietybar.gotoAndPlay('hitbig');
} else {
_root.obj_notorietybar.notorietybar.gotoAndPlay('hitlittle');
}
if (plot_target[v3] == 'science5a') {
_root.player_minpool += _root.player_mincontrol + _root.player_minfinancial;
_root.player_mincontrol = 0;
_root.player_minfinancial = 0;
if (player_mincontrol + player_minfinancial + display_defensemin + player_minpool + player_minlimbo > player_minmax) {
player_minpool = player_minmax - player_mincontrol - player_minfinancial - display_defensemin - player_minlimbo;
}
}
m = 0;
while (m < _root.unit_actions.m_roster.length) {
if (plot_target[v3] == 'science2c' and _root.map_units['m_' + m].unit_type == 'type0') {
_root.map_units['m_' + m].unit_HP += _root.unit_spawner.minion_modifiers('hp', 'Minion', '2c');
_root.map_units['m_' + m].unit_maxHP += _root.unit_spawner.minion_modifiers('hp', 'Minion', '2c');
}
if (plot_target[v3] == 'science3d' and _root.map_units['m_' + m].unit_type == 'type0') {
_root.map_units['m_' + m].unit_HP += _root.unit_spawner.minion_modifiers('hp', 'Minion', '3d');
_root.map_units['m_' + m].unit_maxHP += _root.unit_spawner.minion_modifiers('hp', 'Minion', '3d');
}
if (plot_target[v3] == 'science2a' and _root.map_units['m_' + m].unit_type == 'type6') {
_root.map_units['m_' + m].unit_HP += _root.unit_spawner.minion_modifiers('hp', 'turret', '2a');
_root.map_units['m_' + m].unit_maxHP += _root.unit_spawner.minion_modifiers('hp', 'turret', '2a');
}
if (plot_target[v3] == 'science4a' and _root.map_units['m_' + m].unit_type == 'type6') {
_root.map_units['m_' + m].unit_HP += _root.unit_spawner.minion_modifiers('hp', 'turret', '4a');
_root.map_units['m_' + m].unit_maxHP += _root.unit_spawner.minion_modifiers('hp', 'turret', '4a');
}
if (plot_target[v3] == 'science2b' and _root.map_units['m_' + m].unit_type == 'type0') {
_root.map_units['m_' + m].unit_attack += _root.unit_spawner.minion_modifiers('dmg', 'Minion', '2b');
}
if (plot_target[v3] == 'science3b' and _root.map_units['m_' + m].unit_type == 'type0') {
_root.map_units['m_' + m].unit_attack += _root.unit_spawner.minion_modifiers('dmg', 'Minion', '3b');
}
if (plot_target[v3] == 'science4c' and _root.map_units['m_' + m].unit_type == 'type0') {
_root.map_units['m_' + m].unit_speed += _root.unit_spawner.minion_modifiers('speed', 'Minion', '4c');
}
++m;
}
patsy_effective[plot_patsy[v3]] -= 2;
if (patsy_effective[plot_patsy[v3]] < 0) {
patsy_effective[plot_patsy[v3]] = 0;
}
_root.cutscenemenu.mission_success = true;
_root.cutscenemenu.mission_cash = plot_cost[v3];
_root.cutscenemenu.mission_minions = Math.floor(plot_minions[v3] * v4);
_root.cutscenemenu.mission_notoriety = plot_notoriety[v3];
_root.cutscenemenu.mission_xp = xp_generator(v3);
if (this.event_influence('badbill', 'any', plot_territory[v3]) == true) {
_root.cutscenemenu.mission_xp = Math.floor(_root.cutscenemenu.mission_xp * 0.5);
}
if (this.event_influence('territoryinterror', 'any', plot_territory[v3]) == true) {
_root.cutscenemenu.mission_xp = Math.floor(_root.cutscenemenu.mission_xp * 2);
}
_root.player_xp += _root.cutscenemenu.mission_xp;
if (plot_type[v3].substr(0, 7) == 'science') {
if (plot_target[v3].substr(8, 1) == 'a') {
var v5 = 0;
}
if (plot_target[v3].substr(8, 1) == 'b') {
v5 = 1;
}
if (plot_target[v3].substr(8, 1) == 'c') {
v5 = 2;
}
if (plot_target[v3].substr(8, 1) == 'd') {
v5 = 3;
}
if (plot_target[v3].substr(8, 1) == 'e') {
v5 = 4;
}
_root['player_' + plot_target[v3].substr(0, 8)][v5] = true;
}
var v6 = plot_target[v3];
if (plot_type[v3] == 'propaganda' or plot_type[v3] == 'sabotage' or plot_type[v3] == 'kill' or plot_type[v3] == 'cash') {
var v7 = plot_type[v3];
}
if (plot_type[v3] == 'blowup') {
v7 = 'any';
v6 = 'any';
}
if (plot_type[v3] == 'kidnap') {
v7 = 'killkid';
}
if (plot_type[v3] == 'brainwash') {
v7 = 'propaganda';
}
this.event_checkclear(plot_territory[v3], v6, v7, true);
} else {
if (this.event_influence('fearedpatsy', 'any', 'any') == true) {
player_minpool += plot_minions[v3];
} else {
var v4 = (Math.floor(Math.random() * (plot_success[v3] * 0.5 - 0 + 1)) + 0) * 0.01;
player_minpool += Math.floor(plot_minions[v3] * v4);
}
if (player_mincontrol + player_minfinancial + display_defensemin + player_minpool + player_minlimbo > player_minmax) {
player_minpool = player_minmax - player_mincontrol - player_minfinancial - display_defensemin - player_minlimbo;
}
if (player_minpool < 0) {
player_minpool = 0;
}
player_notoriety += 1;
if (plot_territory[v3] == 'na') {
territory_suspicion[0] += 4;
}
if (plot_territory[v3] == 'e') {
territory_suspicion[1] += 4;
}
if (plot_territory[v3] == 'a') {
territory_suspicion[2] += 4;
}
if (plot_territory[v3] == 'sa') {
territory_suspicion[3] += 4;
}
patsy_effective[plot_patsy[v3]] -= 10;
if (patsy_effective[plot_patsy[v3]] < 0) {
patsy_effective[plot_patsy[v3]] = 0;
}
_root.cutscenemenu.mission_success = false;
_root.cutscenemenu.mission_cash = Math.floor(Math.random() * (plot_cost[v3] - 0 + 1)) + 0;
_root.cutscenemenu.mission_minions = Math.floor(plot_minions[v3] * v4);
_root.cutscenemenu.mission_notoriety = 1;
_root.cutscenemenu.mission_xp = 21;
}
v3 = inNumber;
plot_type[v3] = '';
plot_territory[v3] = '';
plot_target[v3] = '';
plot_order[v3] = 9999;
plot_cost[v3] = 0;
plot_minions[v3] = 0;
plot_success[v3] = 0;
plot_timeexecute[v3] = 0;
plot_timeplot[v3] = 0;
plot_control[v3] = 0;
plot_patsy[v3] = -1;
plot_status[v3] = '';
plot_currentexecuted = -1;
k = 1;
while (k < 7) {
roommenu.defaultdisplay['defaultplot' + k].gotoAndStop(_root.sortdefaultplot(k));
roommenu.menu_create['create' + k].gotoAndStop(_root.sortplotexecute(k));
roommenu.menu_execute['execute' + k].gotoAndStop(_root.sortnewplot(k));
++k;
}
}
function buypatsysort(inString) {
var v2 = '';
if (inString == 'y1') {
v2 = 'Lieutennant';
this_number = 0;
}
if (inString == 'y2') {
v2 = 'Baroness';
this_number = 1;
}
if (inString == 'y3') {
v2 = 'Don';
this_number = 2;
}
if (inString == 'y4') {
v2 = 'Vampyre';
this_number = 3;
}
if (inString == 'y5') {
v2 = 'Betty';
this_number = 4;
}
if (inString == 'y6') {
v2 = 'Tudor';
this_number = 5;
}
if (inString == 'y7') {
v2 = 'Snobgoblin';
this_number = 6;
}
if (inString == 'y8') {
v2 = 'Mocha';
this_number = 7;
}
if (inString == 'y9') {
v2 = 'Scientist';
this_number = 8;
}
if (inString == '10') {
v2 = 'Alexander';
this_number = 9;
}
if (inString == '11') {
v2 = 'Radiel';
this_number = 10;
}
if (inString == '12') {
v2 = 'Baron';
this_number = 11;
}
if (inString == '13') {
v2 = 'Garth';
this_number = 12;
}
if (inString == '14') {
v2 = 'Lez';
this_number = 13;
}
if (inString == '15') {
v2 = 'Convict';
this_number = 14;
}
if (inString == '16') {
v2 = 'Wadolf';
this_number = 15;
}
if (this_number / 3 > _root.player_level / 2) {
return v2 + 'locked';
} else {
if (patsy_roster[0] !== v2 and patsy_roster[1] !== v2 and patsy_roster[2] !== v2) {
if (patsy_dead[this_number] == true) {
return v2 + 'dead';
} else {
return v2;
}
} else {
return v2 + 'closed';
}
}
}
function patsysortdisplay(inNumber) {
return patsy_roster[inNumber - 1];
}
function patsysortexecuted(inNumber) {
i = 0;
while (i < 3) {
if (plot_patsy[plot_currentexecuted] == inNumber - 1) {
return patsy_roster[inNumber - 1] + 'locked';
}
++i;
}
if (inNumber - 1 !== patsy_selected) {
return patsy_roster[inNumber - 1];
} else {
return patsy_roster[inNumber - 1] + 'locked';
}
}
function patsycleardead(inNumber) {
var v2 = patsy_roster[inNumber];
if (v2 == 'Lieutennant') {
patsy_dead[0] = false;
}
if (v2 == 'Baroness') {
patsy_dead[1] = false;
}
if (v2 == 'Don') {
patsy_dead[2] = true;
}
if (v2 == 'Vampyre') {
patsy_dead[3] = true;
}
if (v2 == 'Betty') {
patsy_dead[4] = true;
}
if (v2 == 'Tudor') {
patsy_dead[5] = true;
}
if (v2 == 'Snobgoblin') {
patsy_dead[6] = true;
}
if (v2 == 'Mocha') {
patsy_dead[7] = true;
}
if (v2 == 'Scientist') {
patsy_dead[8] = true;
}
if (v2 == 'Alexander') {
patsy_dead[9] = true;
}
if (v2 == 'Radiel') {
patsy_dead[10] = true;
}
if (v2 == 'Baron') {
patsy_dead[11] = true;
}
if (v2 == 'Garth') {
patsy_dead[12] = true;
}
if (v2 == 'Lez') {
patsy_dead[13] = true;
}
if (v2 == 'Convict') {
patsy_dead[14] = true;
}
if (v2 == 'Wadolf') {
patsy_dead[15] = true;
}
patsy_roster[inNumber] = '';
var v4 = (100 - patsy_effective[inNumber]) * 2;
if (inNumber == 0) {
patsy_effective[1] += v4;
patsy_effective[2] += v4;
}
if (inNumber == 1) {
patsy_effective[0] += v4;
patsy_effective[2] += v4;
}
if (inNumber == 2) {
patsy_effective[0] += v4;
patsy_effective[1] += v4;
}
i = 0;
while (i < 3) {
if (patsy_effective[i] > 100) {
patsy_effective[i] = 100;
}
++i;
}
i = 0;
while (i < 6) {
if (plot_patsy[i] == inNumber) {
plot_patsy[i] = -1;
}
++i;
}
this.event_checkclear('patsy', String(inNumber), 'execute', true);
}
function patsy_missionbonuses(inNumber, inBool) {
var v3 = inNumber;
if (inBool == true) {
var v5 = plot_patsy[v3];
var v2 = patsy_roster[plot_patsy[v3]];
} else {
var v2 = patsy_roster[patsy_selected];
var v5 = patsy_selected;
}
if (v2 == 'Lieutennant') {
plot_patsysuccess = 8;
plot_patsytime = 5;
plot_patsymin = 0;
plot_patsycost = -2;
}
if (v2 == 'Baroness') {
plot_patsysuccess = 5;
plot_patsytime = 5;
plot_patsymin = 0;
plot_patsycost = -5;
}
if (v2 == 'Don') {
plot_patsysuccess = 10;
plot_patsytime = 10;
plot_patsymin = -10;
plot_patsycost = -9;
if (plot_type[v3] == 'kidnap' or plot_type[v3] == 'propaganda') {
plot_patsysuccess = 20;
}
}
if (v2 == 'Vampyre') {
plot_patsysuccess = 10;
plot_patsytime = 10;
plot_patsymin = -10;
plot_patsycost = -8;
if (plot_type[v3] == 'cash') {
plot_patsysuccess = 15;
}
}
if (v2 == 'Betty') {
plot_patsysuccess = 10;
plot_patsytime = -20;
plot_patsymin = 20;
plot_patsycost = -20;
if (plot_type[v3] == 'kidnap') {
plot_patsysuccess = 18;
}
}
if (v2 == 'Tudor') {
plot_patsysuccess = 13;
plot_patsytime = -12;
plot_patsymin = -16;
plot_patsycost = -5;
}
if (v2 == 'Snobgoblin') {
plot_patsysuccess = 15;
plot_patsytime = -10;
plot_patsymin = -8;
plot_patsycost = -50;
if (plot_type[v3] == 'cash') {
plot_patsysuccess = 25;
}
}
if (v2 == 'Mocha') {
plot_patsysuccess = 12;
plot_patsytime = 0;
plot_patsymin = 0;
plot_patsycost = -20;
if (plot_type[v3] == 'sabotage' or plot_type[v3] == 'blowup') {
plot_patsysuccess = 20;
}
}
if (v2 == 'Scientist') {
plot_patsysuccess = 17;
plot_patsytime = -60;
plot_patsymin = 20;
plot_patsycost = 10;
if (plot_type[v3] == 'cash') {
plot_patsysuccess = 30;
plot_patsycost = -50;
}
}
if (v2 == 'Alexander') {
plot_patsysuccess = 18;
plot_patsytime = -10;
plot_patsymin = 0;
plot_patsycost = -10;
if (plot_type[v3] == 'propaganda') {
plot_patsysuccess = 30;
}
}
if (v2 == 'Radiel') {
plot_patsysuccess = 20;
plot_patsytime = -20;
plot_patsymin = -50;
plot_patsycost = 20;
if (plot_type[v3] == 'kill') {
plot_patsysuccess = 30;
}
}
if (v2 == 'Baron') {
plot_patsysuccess = 25;
plot_patsytime = -50;
plot_patsymin = -10;
plot_patsycost = -10;
}
if (v2 == 'Garth') {
plot_patsysuccess = 25;
plot_patsytime = -35;
plot_patsymin = 20;
plot_patsycost = -50;
}
if (v2 == 'Lez') {
plot_patsysuccess = 35;
plot_patsytime = 10;
plot_patsymin = 0;
plot_patsycost = -60;
}
if (v2 == 'Convict') {
plot_patsysuccess = 25;
plot_patsytime = -25;
plot_patsymin = -50;
plot_patsycost = 0;
if (plot_type[v3] == 'kill' or plot_type[v3] == 'kidnap' or plot_type[v3] == 'cash' or plot_type[v3] == 'science') {
plot_patsysuccess = 40;
}
}
if (v2 == 'Wadolf') {
plot_patsysuccess = 40;
plot_patsytime = -50;
plot_patsymin = 10;
plot_patsycost = 0;
}
var v4 = patsy_effective[v5] * 0.01;
if (this.event_influence('patsyinperil', String(v5), 'any') == true) {
v4 -= 0.4;
}
if (this.event_influence('patsyisinsolent', 'any', 'any') == true) {
v4 -= 0.4;
}
if (v4 < 0) {
v4 = 0;
}
if (plot_patsytime > 0) {
plot_patsytime += Math.floor(plot_patsytime * (1 - v4));
}
if (plot_patsytime <= 0) {
plot_patsytime = Math.floor(plot_patsytime * v4);
}
if (plot_patsycost > 0) {
plot_patsycost += Math.floor(plot_patsycost * (1 - v4));
}
if (plot_patsycost <= 0) {
plot_patsycost = Math.floor(plot_patsycost * v4);
}
if (plot_patsymin > 0) {
plot_patsymin += Math.floor(plot_patsymin * (1 - v4));
}
if (plot_patsymin <= 0) {
plot_patsymin = Math.floor(plot_patsymin * v4);
}
plot_patsysuccess -= Math.floor(plot_patsysuccess * (1 - v4));
}
function checkemptypatsyslot() {
i = 0;
while (i < 3) {
if (patsy_roster[i] == '') {
return true;
}
++i;
}
return false;
}
function getemptypatsyslot() {
i = 0;
while (i < 3) {
if (patsy_roster[i] == '') {
return i;
}
++i;
}
}
function patsybuy(inString, inPath) {
var v2 = inString;
var v3 = 0;
if (checkemptypatsyslot() == true) {
if (v2 == 'Lieutennant') {
v3 = 800;
}
if (v2 == 'Baroness') {
v3 = 900;
}
if (v2 == 'Don') {
v3 = 2000;
}
if (v2 == 'Vampyre') {
v3 = 2400;
}
if (v2 == 'Betty') {
v3 = 3000;
}
if (v2 == 'Tudor') {
v3 = 3600;
}
if (v2 == 'Snobgoblin') {
v3 = 4000;
}
if (v2 == 'Mocha') {
v3 = 4800;
}
if (v2 == 'Scientist') {
v3 = 5300;
}
if (v2 == 'Alexander') {
v3 = 5900;
}
if (v2 == 'Radiel') {
v3 = 6500;
}
if (v2 == 'Baron') {
v3 = 7200;
}
if (v2 == 'Garth') {
v3 = 8000;
}
if (v2 == 'Lez') {
v3 = 9000;
}
if (v2 == 'Convict') {
v3 = 9600;
}
if (v2 == 'Wadolf') {
v3 = 10000;
}
if (player_cash >= v3) {
player_cash -= v3;
moneydisplayer();
var v4 = getemptypatsyslot();
patsy_roster[v4] = v2;
patsy_effective[v4] = 100;
_root.roommenu.menu_patsy[inPath].gotoAndStop(v2 + 'closed');
_root.soundplayer.gotoAndPlay('buy');
_root.voicebox.play_patsy(v2, 'Hired');
} else {
_root.soundplayer.gotoAndPlay('error');
_root.cashpointer.play();
}
} else {
_root.soundplayer.gotoAndPlay('error');
trace('no slots!');
}
}
function meetingroomdetails(inString) {
_root.meetingroom_mission = getorderunsorted(inString);
}
function buyhenchsort(inString) {
if (inString == 'h1') {
thishench = 'Bodyguard';
this_number = 0;
}
if (inString == 'h2') {
thishench = 'Brutus';
this_number = 1;
}
if (inString == 'h3') {
thishench = 'Tom';
this_number = 2;
}
if (inString == 'h4') {
thishench = 'Femme';
this_number = 3;
}
if (inString == 'h5') {
thishench = 'Muerto';
this_number = 4;
}
if (inString == 'h6') {
thishench = 'Ophelia';
this_number = 5;
}
if (inString == 'h7') {
thishench = 'IV';
this_number = 6;
}
if (inString == 'h8') {
thishench = 'Weeman';
this_number = 7;
}
if (inString == 'h9') {
thishench = 'Agent';
this_number = 8;
}
if (inString == '10') {
thishench = 'Mandible';
this_number = 9;
}
if (inString == '11') {
thishench = 'Afro';
this_number = 10;
}
if (inString == '12') {
thishench = 'Valentine';
this_number = 11;
}
if (this_number / 3 > _root.player_level / 2) {
return thishench + 'locked';
} else {
if (hench_roster !== thishench) {
if (hench_dead[this_number] == true) {
return thishench + 'dead';
} else {
return thishench;
}
} else {
return thishench + 'closed';
}
}
}
function henchbuy(inString, inPath) {
var v3 = inString;
var v2 = 0;
if (hench_roster == '') {
if (v3 == 'Bodyguard') {
v2 = 1000;
}
if (v3 == 'Brutus') {
v2 = 2000;
}
if (v3 == 'Tom') {
v2 = 3000;
}
if (v3 == 'Femme') {
v2 = 4000;
}
if (v3 == 'Muerto') {
v2 = 5000;
}
if (v3 == 'Ophelia') {
v2 = 6000;
}
if (v3 == 'IV') {
v2 = 7000;
}
if (v3 == 'Weeman') {
v2 = 8000;
}
if (v3 == 'Agent') {
v2 = 9000;
}
if (v3 == 'Mandible') {
v2 = 10000;
}
if (v3 == 'Afro') {
v2 = 11000;
}
if (v3 == 'Valentine') {
v2 = 12000;
}
if (player_cash >= v2) {
player_cash -= v2;
moneydisplayer();
hench_roster = v3;
hench_kills = 0;
_root.roommenu.menu_henchman[inPath].gotoAndStop(v3 + 'closed');
_root.soundplayer.gotoAndPlay('buy');
_root.voicebox.play_henchman('Hired');
} else {
_root.cashpointer.play();
_root.soundplayer.gotoAndPlay('error');
}
} else {
_root.soundplayer.gotoAndPlay('error');
trace('Already have a #2!');
}
}
function killhench() {
var v3 = hench_roster;
if (v3 == 'Bodyguard') {
this_number = 0;
}
if (v3 == 'Brutus') {
this_number = 1;
}
if (v3 == 'Tom') {
this_number = 2;
}
if (v3 == 'Femme') {
this_number = 3;
}
if (v3 == 'Muerto') {
this_number = 4;
}
if (v3 == 'Ophelia') {
this_number = 5;
}
if (v3 == 'IV') {
this_number = 6;
}
if (v3 == 'Weeman') {
this_number = 7;
}
if (v3 == 'Agent') {
this_number = 8;
}
if (v3 == 'Mandible') {
this_number = 9;
}
if (v3 == 'Afro') {
this_number = 10;
}
if (v3 == 'Valentine') {
this_number = 11;
}
hench_dead[this_number] = true;
if (this_number == 0) {
hench_dead[this_number] = false;
}
_root.roommenu.menu_henchman[inPath].gotoAndStop(v3 + 'dead');
_root.roommenu.defaultdisplay.henchman.gotoAndStop('closed');
_root.hench_kills = 0;
_root.hench_id = -1;
this.event_checkclear('hench', '0', 'execute', true);
}
function event_generator() {
_root.display_eventtimer = _root['event' + String(display_eventnumber)][4];
if (event1[4] == 0) {
this.event_checkclear('any', 'any', 'any', false);
}
if (event2[4] == 0) {
this.event_checkclear('any', 'any', 'any', false);
}
if (event1[4] > 0) {
event1[4] -= 1;
}
if (event2[4] > 0) {
event2[4] -= 1;
}
if (_root.event_voucher != true and territory_suspicion[0] + territory_suspicion[1] + territory_suspicion[2] + territory_suspicion[3] > 0) {
if (event1[0] == '' or event2[0] == '') {
var v9 = 400 - 2 * (territory_suspicion[0] + territory_suspicion[1] + territory_suspicion[2] + territory_suspicion[3] + player_notoriety);
if (v9 < 5) {
v9 = 5;
}
trace(v9 + ' is the random event number ceiling');
if (Math.floor(Math.random() * (v9 - 1 + 1)) + 1 == 1) {
_root.event_voucher = true;
trace('EVENT LAUNCHED');
messages[4] = true;
_root.messagecenter.play();
}
}
}
if (_root.event_voucher == true and territory_suspicion[0] + territory_suspicion[1] + territory_suspicion[2] + territory_suspicion[3] > 0) {
var v3 = '';
var v5 = '';
var v7 = '';
var v12 = '';
var v11 = '';
if (event1[0] == '') {
this_eventnumber = 1;
} else {
this_eventnumber = 2;
}
var v10 = Math.floor(Math.random() * (territory_suspicion[0] + territory_suspicion[1] + territory_suspicion[2] + territory_suspicion[3] - 1 + 1)) + 1;
if (v10 <= territory_suspicion[0]) {
v5 = 'na';
} else {
if (v10 <= territory_suspicion[0] + territory_suspicion[1]) {
v5 = 'e';
} else {
if (v10 <= territory_suspicion[0] + territory_suspicion[1] + territory_suspicion[2]) {
v5 = 'a';
} else {
v5 = 'sa';
}
}
}
var v4 = Math.floor(Math.random() * 19) + 1;
if (sortcreatetype(3) == 'kidnap') {
if (v4 == 1) {
v3 = 'crackdown';
_root.event_voucher = false;
}
if (v4 == 2) {
v3 = 'badbill';
_root.event_voucher = false;
}
if (v4 == 3) {
v3 = 'crackpottheorist';
_root.event_voucher = false;
}
if (v4 == 4) {
v3 = 'businessisgood';
_root.event_voucher = false;
}
if (v4 == 5) {
v3 = 'nationalunity';
_root.event_voucher = false;
}
if (v4 == 6) {
v3 = 'bountyhunters';
_root.event_voucher = false;
}
if (hench_roster !== '') {
if (v4 == 7) {
v3 = 'arch-henchman';
_root.event_voucher = false;
}
if (_root.hench_id !== -1) {
_root.unit_actions.recall_minion('henchman');
}
}
}
if (sortcreatetype(6) == 'sabotage' or sortcreatetype(6) == 'blowup' or sortcreatetype(6) == 'world') {
if (v4 == 8) {
v3 = 'transportrevolution';
_root.event_voucher = false;
}
if (v4 == 9) {
v3 = 'prototypearmor';
_root.event_voucher = false;
}
if (v4 == 10) {
v3 = 'datascramble';
_root.event_voucher = false;
}
if (v4 == 11) {
v3 = 'shiningexample';
_root.event_voucher = false;
}
if (v4 == 12) {
v3 = 'fortified';
_root.event_voucher = false;
}
}
if (patsy_roster[0] !== '' or patsy_roster[1] !== '' or patsy_roster[2] !== '') {
if (v4 == 13) {
v3 = 'patsyisinsolent';
_root.event_voucher = false;
}
}
if (v4 == 14) {
v3 = 'soundcurrency';
_root.event_voucher = false;
}
if (sortcreatetype(4) == 'kill') {
if (v4 == 15) {
v3 = 'sourceofpower';
_root.event_voucher = false;
}
if (v4 == 16) {
v3 = 'usurper';
_root.event_voucher = false;
}
}
if (sortcreatetype(5) == 'propaganda' or sortcreatetype(5) == 'brainwash') {
if (v4 == 17) {
v3 = 'armsembargo';
_root.event_voucher = false;
}
if (v4 == 18) {
v3 = 'illwill';
_root.event_voucher = false;
}
if (patsy_roster[0] !== '' or patsy_roster[1] !== '' or patsy_roster[2] !== '') {
if (v4 == 19) {
v3 = 'patsyinperil';
_root.event_voucher = false;
}
}
}
if (v4 == 20) {
v3 = 'territoryinterror';
_root.event_voucher = false;
}
if (hench_roster !== '') {
if (v4 == 21) {
v3 = 'infamoushenchman';
_root.event_voucher = false;
}
}
if (v4 == 22) {
v3 = 'crippled';
_root.event_voucher = false;
}
if (v4 == 23) {
v3 = 'fearfulmedia';
_root.event_voucher = false;
}
if (patsy_roster[0] !== '' or patsy_roster[1] !== '' or patsy_roster[2] !== '') {
if (v4 == 24) {
v3 = 'fearedpatsy';
_root.event_voucher = false;
}
}
if (v4 == 25) {
v3 = 'steamroller';
_root.event_voucher = false;
}
if (v4 == 26) {
v3 = 'proudlegions';
_root.event_voucher = false;
}
if (v4 == 27) {
v3 = 'misleadingpresence';
_root.event_voucher = false;
}
if (v4 == 28) {
v3 = 'worthyfoe';
_root.event_voucher = false;
}
var v8 = Math.floor(Math.random() * 4) + 1;
if (v8 == 1) {
v7 = 'leader';
} else {
if (v8 == 2) {
v7 = 'politician';
} else {
if (v8 == 3) {
v7 = 'criminal';
} else {
if (v8 == 4) {
v7 = 'journalist';
}
}
}
}
if (v3 == 'fearedpatsy' or v3 == 'patsyisinsolent' or v3 == 'patsyinperil') {
if (patsy_roster[0] !== '' or patsy_roster[1] !== '' or patsy_roster[2] !== '') {
var v6 = Math.floor(Math.random() * 3) + 1;
while (patsy_roster[v6 - 1] == '') {
v6 = Math.floor(Math.random() * 3) + 1;
}
v7 = String(v6 - 1);
}
}
if (v3 == '') {
trace('Random Event not valid, trying again.');
} else {
trace(v3 + ' was selected');
}
if (v3 == 'crackdown') {
_root['event' + this_eventnumber] = ['crackdown', v5, 'leader', 'killkid', 500];
}
if (v3 == 'badbill') {
_root['event' + this_eventnumber] = ['badbill', v5, 'politician', 'killkid', 500];
}
if (v3 == 'crackpottheorist') {
_root['event' + this_eventnumber] = ['crackpottheorist', v5, 'journalist', 'killkid', 500];
}
if (v3 == 'businessisgood') {
_root['event' + this_eventnumber] = ['businessisgood', v5, 'criminal', 'killkid', 500];
}
if (v3 == 'nationalunity') {
_root['event' + this_eventnumber] = ['nationalunity', v5, 'leader', 'killkid', 500];
}
if (v3 == 'arch-henchman') {
_root['event' + this_eventnumber] = ['arch-henchman', v5, 'criminal', 'killkid', 500];
}
if (v3 == 'bountyhunters') {
_root['event' + this_eventnumber] = ['bountyhunters', v5, 'criminal', 'killkid', 500];
}
if (v3 == 'transportrevolution') {
_root['event' + this_eventnumber] = ['transportrevolution', v5, 'sabotage', 'sabotage', 500];
}
if (v3 == 'prototypearmor') {
_root['event' + this_eventnumber] = ['prototypearmor', v5, 'sabotage', 'sabotage', 500];
}
if (v3 == 'datascramble') {
_root['event' + this_eventnumber] = ['datascramble', v5, 'sabotage', 'sabotage', 500];
}
if (v3 == 'shiningexample') {
_root['event' + this_eventnumber] = ['shiningexample', v5, 'sabotage', 'sabotage', 500];
}
if (v3 == 'fortified') {
_root['event' + this_eventnumber] = ['fortified', v5, 'sabotage', 'sabotage', 500];
}
if (v3 == 'patsyisinsolent') {
_root['event' + this_eventnumber] = ['patsyisinsolent', 'patsy', v7, 'execute', 500];
}
if (v3 == 'soundcurrency') {
_root['event' + this_eventnumber] = ['soundcurrency', v5, 'cash', 'cash', 500];
}
if (v3 == 'sourceofpower') {
_root['event' + this_eventnumber] = ['sourceofpower', v5, v7, 'kill', 500];
}
if (v3 == 'usurper') {
_root['event' + this_eventnumber] = ['usurper', v5, 'criminal', 'kill', 500];
}
if (v3 == 'armsembargo') {
_root['event' + this_eventnumber] = ['armsembargo', v5, 'propaganda', 'propaganda', 500];
}
if (v3 == 'illwill') {
_root['event' + this_eventnumber] = ['illwill', v5, 'propaganda', 'propaganda', 500];
}
if (v3 == 'patsyinperil') {
_root['event' + this_eventnumber] = ['patsyinperil', v5, v7, 'propaganda', 500];
}
if (v3 == 'territoryinterror') {
_root['event' + this_eventnumber] = ['territoryinterror', v5, '', 'timer', 500];
}
if (v3 == 'infamoushenchman') {
_root['event' + this_eventnumber] = ['infamoushenchman', 'hench', '', 'timer', 500];
}
if (v3 == 'crippled') {
_root['event' + this_eventnumber] = ['crippled', v5, '', 'timer', 500];
}
if (v3 == 'fearfulmedia') {
_root['event' + this_eventnumber] = ['fearfulmedia', 'world', '', 'timer', 500];
}
if (v3 == 'fearedpatsy') {
_root['event' + this_eventnumber] = ['fearedpatsy', 'patsy', '', 'timer', 500];
}
if (v3 == 'steamroller') {
_root['event' + this_eventnumber] = ['steamroller', 'world', '', 'timer', 500];
}
if (v3 == 'proudlegions') {
_root['event' + this_eventnumber] = ['proudlegions', 'world', '', 'timer', 500];
}
if (v3 == 'misleadingpresence') {
_root['event' + this_eventnumber] = ['misleadingpresence', 'world', '', 'timer', 500];
}
if (v3 == 'worthyfoe') {
_root['event' + this_eventnumber] = ['worthyfoe', v5, '', 'timer', 500];
}
trace(_root['event' + this_eventnumber] + ' which looks like event' + this_eventnumber);
}
}
function event_sort(inNumber) {
var v3 = _root['event' + String(inNumber)][0];
var v4 = _root['event' + String(inNumber)][1];
var v5 = _root['event' + String(inNumber)][2];
var v6 = _root['event' + String(inNumber)][3];
roommenu.menu_events['event' + String(inNumber)].gotoAndStop(v3);
roommenu.menu_events['event' + String(inNumber)].eventterritory.gotoAndStop(v4);
}
function event_display(inNumber) {
_root.display_eventnumber = inNumber;
_root.display_eventtimer = _root['event' + String(inNumber)][4];
var v6 = _root['event' + String(inNumber)][0];
var v5 = _root['event' + String(inNumber)][1];
var v2 = _root['event' + String(inNumber)][2];
var v3 = _root['event' + String(inNumber)][3];
if (v3 == 'killkid' or v3 == 'kill') {
v3 += v2;
}
if (v5 == 'patsy' or v6.substr(0, 5) == 'patsy') {
v2 = patsy_roster[Number(v2)];
}
if (v5 == 'hench' or v6.substr(_1, 8) == 'henchman') {
v2 = hench_roster;
}
roommenu.menu_events.eventpanel.gotoAndStop(2);
roommenu.menu_events.eventpanel.eventterritory.gotoAndStop(v5);
roommenu.menu_events.eventpanel.eventterritory2.gotoAndStop(v5);
roommenu.menu_events.eventpanel.eventtarget.gotoAndStop(v2);
roommenu.menu_events.eventpanel.eventconditions.gotoAndStop(v3);
roommenu.menu_events.eventpanel.eventtitle.gotoAndStop(v6);
if (_root.display_eventtimer !== -1) {
roommenu.menu_events.eventpanel.eventtimer.gotoAndStop(2);
} else {
roommenu.menu_events.eventpanel.eventtimer.gotoAndStop(1);
}
}
function event_influence(inEvent, inTarget, inTerritory) {
var v4 = inTerritory;
var v3 = inTarget;
if (inTerritory == 'any') {
inTerritory = event1[1];
}
if (inTarget == 'any') {
inTarget = event1[2];
}
if (inTarget == event1[2] and inTerritory == event1[1] and inEvent == event1[0]) {
trace('EVENT 1 (' + event1[0] + ') DETECTED, MODIFICATIONS MADE');
return true;
}
inTerritory = v4;
inTarget = v3;
if (inTerritory == 'any') {
inTerritory = event2[1];
}
if (inTarget == 'any') {
inTarget = event2[2];
}
if (inTarget == event2[2] and inTerritory == event2[1] and inEvent == event2[0]) {
trace('EVENT 2 (' + event2[0] + ') DETECTED, MODIFICATIONS MADE');
return true;
}
return false;
}
function event_checkclear(inTerritory, inTarget, inCondition, RunMessage) {
var v7 = inTerritory;
var v5 = inTarget;
var v6 = inCondition;
if (inCondition == 'any') {
inCondition = event1[3];
}
if (inCondition == 'sabotage' or inCondition == 'blowup' or inCondition == 'cash' or inCondition == 'propaganda') {
inTarget = 'any';
}
if (inTerritory == 'any') {
inTerritory = event1[1];
}
if (inTarget == 'any') {
inTarget = event1[2];
}
if (event1[3] == 'killkid' and inCondition == 'kill') {
inCondition = 'killkid';
}
if (inTerritory == event1[1] and inTarget == event1[2] and inCondition == event1[3]) {
this.event_clear(1, RunMessage);
}
inTerritory = v7;
inTarget = v5;
inCondition = v6;
if (inCondition == 'any') {
inCondition = event2[3];
}
if (inCondition == 'sabotage' or inCondition == 'blowup' or inCondition == 'cash' or inCondition == 'propaganda') {
inTarget = 'any';
}
if (inTerritory == 'any') {
inTerritory = event2[1];
}
if (inTarget == 'any') {
inTarget = event2[2];
}
if (event2[3] == 'killkid' and inCondition == 'kill') {
inCondition = 'killkid';
}
if (inTerritory == event2[1] and inTarget == event2[2] and inCondition == event2[3]) {
this.event_clear(2, RunMessage);
}
}
function event_clear(inNumber, RunMessage) {
var v2 = inNumber;
_root['event' + v2][0] = '';
_root['event' + v2][1] = '';
_root['event' + v2][2] = '';
_root['event' + v2][3] = '';
_root['event' + v2][4] = -1;
roommenu.menu_events.eventpanel.gotoAndStop(1);
roommenu.menu_events['event' + v2].gotoAndStop(1);
if (event1[0] == '' and event2[0] !== '') {
event1 = event2.concat();
event2[0] = '';
event2[1] = '';
event2[2] = '';
event2[3] = '';
event2[4] = -1;
roommenu.menu_events.event1.gotoAndStop(event1[0]);
roommenu.menu_events.event2.gotoAndStop(1);
}
if (RunMessage == true) {
trace('WE HAVE A CONDITION/EVENT MATCH!');
_root.messages[5] = true;
_root.messagecenter.play();
}
}
function save_game() {
_root.savepath = SharedObject.getLocal('MWC');
_root.savepath.data.player_income = _root.player_income;
_root.savepath.data.player_cash = _root.player_cash;
_root.savepath.data.player_cashdisplay = _root.player_cashdisplay;
_root.savepath.data.player_minpool = _root.player_minpool;
_root.savepath.data.player_minmax = _root.player_minmax;
_root.savepath.data.player_mintotal = _root.player_mintotal;
_root.savepath.data.player_recruitmin = _root.player_recruitmin;
_root.savepath.data.player_recruitmax = _root.player_recruitmax;
_root.savepath.data.player_mincontrol = _root.player_mincontrol;
_root.savepath.data.player_minfinancial = _root.player_minfinancial;
_root.savepath.data.player_mindefense = _root.player_mindefense;
_root.savepath.data.player_mindefensemax = _root.player_mindefensemax;
_root.savepath.data.player_minlimbo = _root.player_minlimbo;
_root.savepath.data.player_xp = _root.player_xp;
_root.savepath.data.player_level = _root.player_level;
_root.savepath.data.player_notoriety = _root.player_notoriety;
_root.savepath.data.player_science0 = _root.player_science0.concat();
_root.savepath.data.player_science1 = _root.player_science1.concat();
_root.savepath.data.player_science2 = _root.player_science2.concat();
_root.savepath.data.player_science3 = _root.player_science3.concat();
_root.savepath.data.player_science4 = _root.player_science4.concat();
_root.savepath.data.player_science5 = _root.player_science5.concat();
_root.savepath.data.player_science6 = _root.player_science6.concat();
_root.savepath.data.player_weapon = _root.player_weapon.concat();
_root.savepath.data.player_power = _root.player_power.concat();
_root.savepath.data.player_base = _root.player_base.concat();
_root.savepath.data.player_currentbasetag = _root.player_currentbasetag;
_root.savepath.data.player_currentbase = _root.player_currentbase;
_root.savepath.data.player_basedestroyed = _root.player_basedestroyed.concat();
_root.savepath.data.player_turret = _root.player_turret.concat();
_root.savepath.data.player_tutorial = _root.player_tutorial;
_root.savepath.data.enemy_waves = _root.enemy_waves;
_root.savepath.data.gamepaused = _root.gamepaused;
_root.savepath.data.messages = _root.messages.concat();
_root.savepath.data.tooltips = _root.tooltips.concat();
_root.savepath.data.plot_type = _root.plot_type.concat();
_root.savepath.data.plot_territory = _root.plot_territory.concat();
_root.savepath.data.plot_target = _root.plot_target.concat();
_root.savepath.data.plot_notoriety = _root.plot_notoriety.concat();
_root.savepath.data.plot_order = _root.plot_order.concat();
_root.savepath.data.plot_cost = _root.plot_cost.concat();
_root.savepath.data.plot_minions = _root.plot_minions.concat();
_root.savepath.data.plot_success = _root.plot_success.concat();
_root.savepath.data.plot_timeexecute = _root.plot_timeexecute.concat();
_root.savepath.data.plot_timeplot = _root.plot_timeplot;
_root.savepath.data.plot_control = _root.plot_control.concat();
_root.savepath.data.plot_patsy = _root.plot_patsy.concat();
_root.savepath.data.plot_timeplotdisplay = _root.plot_timeplotdisplay;
_root.savepath.data.plot_controldisplay = _root.plot_controldisplay;
_root.savepath.data.exec_missiontime = _root.exec_missiontime;
_root.savepath.data.plot_missiontime = _root.plot_missiontime;
_root.savepath.data.timeron = _root.timeron;
_root.savepath.data.plot_status = _root.plot_status.concat();
_root.savepath.data.plot_currentexecuted = _root.plot_currentexecuted;
_root.savepath.data.patsy_roster = _root.patsy_roster.concat();
_root.savepath.data.patsy_effective = _root.patsy_effective.concat();
_root.savepath.data.patsy_modcost = _root.patsy_modcost;
_root.savepath.data.patsy_modminion = _root.patsy_modminion;
_root.savepath.data.patsy_modtime = _root.patsy_modtime;
_root.savepath.data.patsy_modsuccess = _root.patsy_modsuccess;
_root.savepath.data.patsy_dead = _root.patsy_dead.concat();
_root.savepath.data.patsy_selected = _root.patsy_selected;
_root.savepath.data.patsy_executed = _root.patsy_executed;
_root.savepath.data.pressplot_patsysuccesses = _root.plot_patsysuccess;
_root.savepath.data.plot_patsytime = _root.plot_patsytime;
_root.savepath.data.plot_patsycost = _root.plot_patsycost;
_root.savepath.data.plot_patsymin = _root.plot_patsymin;
_root.savepath.data.hench_roster = _root.hench_roster;
_root.savepath.data.hench_dead = _root.hench_dead.concat();
_root.savepath.data.hench_kills = _root.hench_kills;
_root.savepath.data.hench_id = _root.hench_id;
_root.savepath.data.event1 = _root.event1.concat();
_root.savepath.data.event2 = _root.event2.concat();
_root.savepath.data.worldmod_na = _root.worldmod_na.concat();
_root.savepath.data.worldmod_e = _root.worldmod_e.concat();
_root.savepath.data.worldmod_a = _root.worldmod_a.concat();
_root.savepath.data.worldmod_sa = _root.worldmod_sa.concat();
_root.savepath.data.territory_suspicion = _root.territory_suspicion.concat();
_root.savepath.data.shoppinglist_enemies = _root.shoppinglist_enemies.concat();
_root.savepath.data.hench_id = -1;
_root.savepath.data.display_defensemin = _root.display_defensemin;
_root.savepath.data.enemy_wavetimer = _root.enemy_wavetimer;
_root.savepath.data.hench_healthbackup = _root.hench_healthbackup;
_root.savepath.data.power_active = _root.power_active.concat();
_root.savepath.data.power_recharging = _root.power_recharging.concat();
_root.savepath.data.power_timer = _root.power_timer.concat();
_root.savepath.data.player_currentweapon = _root.player_currentweapon;
_root.savepath.data.player_turrets = _root.player_turrets.concat();
_root.savepath.data.player_turrettype = _root.player_turrettype.concat();
_root.savepath.data.backup_turret1 = _root.backup_turret1.concat();
_root.savepath.data.backup_turret2 = _root.backup_turret2.concat();
_root.savepath.data.backup_turret3 = _root.backup_turret3.concat();
_root.savepath.data.backup_turret4 = _root.backup_turret4.concat();
_root.savepath.data.backup_turret5 = _root.backup_turret5.concat();
_root.savepath.data.backup_turret6 = _root.backup_turret6.concat();
_root.savepath.data.backup_turret7 = _root.backup_turret7.concat();
_root.savepath.data.backup_turret8 = _root.backup_turret8.concat();
_root.savepath.data.player_turrets1 = _root.player_turrets1.concat();
_root.savepath.data.player_turrets2 = _root.player_turrets2.concat();
_root.savepath.data.player_turrets3 = _root.player_turrets3.concat();
_root.savepath.data.player_turrets4 = _root.player_turrets4.concat();
_root.savepath.data.player_turrets5 = _root.player_turrets5.concat();
_root.savepath.data.player_turrets6 = _root.player_turrets6.concat();
_root.savepath.data.player_turrets7 = _root.player_turrets7.concat();
_root.savepath.data.player_turrets8 = _root.player_turrets8.concat();
_root.savepath.data.cash_invested = _root.cash_invested;
_root.savepath.data.cash_returns = _root.cash_returns;
_root.savepath.data.business_coffee = _root.business_coffee;
_root.savepath.data.business_book = _root.business_book;
_root.savepath.data.business_invest = _root.business_invest;
_root.savepath.data.business_law = _root.business_law;
_root.savepath.data.business_hq = _root.business_hq;
_root.savepath.data.business_research = _root.business_research;
_root.savepath.data.business_investig = _root.business_investig;
_root.savepath.data.business_factory = _root.business_factory;
_root.savepath.data.player_tooltips = _root.player_tooltips;
_root.savepath.data.have_saved = true;
}
function xp_checker() {
if (_root.player_xp >= _root.player_level * 100 and _root.player_level < 10) {
_root.player_xp -= _root.player_level * 100;
_root.player_level += 1;
_root.levelup.play();
messages[3] = true;
_root.messagecenter.play();
}
}
function xp_generator(k) {
var v1 = 0;
if (plot_target[k] == 'steal1') {
v1 = 20;
}
if (plot_target[k] == 'steal2') {
v1 = 45;
}
if (plot_target[k] == 'steal3') {
v1 = 75;
}
if (plot_target[k] == 'steal4') {
v1 = 120;
}
if (plot_territory[k] == 'science0') {
v1 = 10;
}
if (plot_territory[k] == 'science1') {
v1 = 20;
}
if (plot_territory[k] == 'science2') {
v1 = 40;
}
if (plot_territory[k] == 'science3') {
v1 = 60;
}
if (plot_territory[k] == 'science4') {
v1 = 80;
}
if (plot_territory[k] == 'science5') {
v1 = 100;
}
if (plot_territory[k] == 'science6') {
v1 = 200;
}
if (plot_type[k] == 'kidnap') {
v1 = 30;
}
if (plot_type[k] == 'kill') {
v1 = 70;
}
if (plot_type[k] == 'propaganda') {
v1 = 30;
}
if (plot_type[k] == 'brainwash') {
v1 = 40;
}
if (plot_type[k] == 'sabotage') {
v1 = 60;
}
if (plot_type[k] == 'blowup') {
v1 = 150;
}
if (plot_type[k] == 'world') {
v1 = 400;
}
if (plot_territory[k] == 'na') {
v1 += 15;
}
if (plot_territory[k] == 'e') {
v1 += 10;
}
if (plot_territory[k] == 'a') {
v1 += 5;
}
if (plot_territory[k] == 'sa') {
v1 += 0;
}
if (plot_target[k] == 'leader') {
v1 += 15;
}
if (plot_target[k] == 'politician') {
v1 += 10;
}
if (plot_target[k] == 'criminal') {
v1 += 5;
}
if (plot_target[k] == 'journalist') {
v1 += 0;
}
return v1;
}
stop();
_root.enemy_waves = 0;
}
frame 6 {
function spawn_startminions() {
trace('Starting minions to deploy: ' + _root.gamestart_defensemin);
i = 0;
while (i < _root.gamestart_defensemin) {
trace('Made ' + (i + 1));
_root.unit_spawner.spawn_minion('Minion');
++i;
}
_root.gamestart_defensemin = 0;
_root.display_defenseminions();
}
function spawn_startturrets() {
i = 0;
while (i < 6) {
if (_root.player_turrets[i] !== -1) {
trace('Made ' + _root.player_turrettype[i] + ' style turret');
var v2 = _root.player_turrettype[i] + 'turret';
_root.turret_spawnplace = i;
_root.unit_spawner.spawn_minion(v2);
_root.player_turrets[i] = _root.last_ID_spawned;
trace('Bugtest turret fix (new array is now: ' + _root.player_turrets);
}
++i;
}
_root.gamestart_turrets = false;
}
function spawn_evacturrets() {
i = 0;
while (i < 6) {
if (_root['backup_turret' + _root.player_currentbase][i] !== '') {
trace('Made ' + _root['backup_turret' + _root.player_currentbase][i] + ' style turret');
var v2 = _root['backup_turret' + _root.player_currentbase][i] + 'turret';
_root.turret_spawnplace = i;
_root.unit_spawner.spawn_minion(v2);
}
++i;
}
_root.player_turrets = _root['player_turrets' + _root.player_currentbase].concat();
}
function display_defenseminions() {
_root.display_defensemin = 0;
i = 0;
while (i < _root.unit_actions.m_roster.length) {
var v2 = _root.map_units['m_' + _root.unit_actions.m_roster[i]].unit_type;
if (v2 !== 'type6' and v2 !== 'type7' and _root.unit_actions.m_roster[i] !== _root.hench_id) {
_root.display_defensemin += 1;
}
++i;
}
}
function wave_system() {
if (enemy_waves > 0) {
enemy_attacking = true;
if (enemy_wavetimer < 12) {
enemy_wavetimer += 1;
} else {
_root.unit_spawner.spawn_enemywave();
enemy_wavetimer = 0;
enemy_waves -= 1;
}
} else {
if (_root.unit_actions.e_roster.length == 0 and enemy_attacking == true) {
enemy_attacking = false;
hench_healthbackup = -1;
i = 0;
while (i < _root.unit_actions.m_roster.length) {
this_mc = 'm_' + _root.unit_actions.m_roster[i];
if (_root.map_units[this_mc].unit_HP < _root.map_units[this_mc].unit_maxHP) {
_root.unit_actions.minion_messagecenter('m_' + _root.unit_actions.m_roster[i], 'heal');
_root.map_units[this_mc].unit_HP = _root.map_units[this_mc].unit_maxHP;
}
++i;
}
}
}
}
function evacuate_base(inNumber) {
this_mlength = _root.unit_actions.m_roster.length;
i = 0;
while (i < 6) {
if (_root.player_turrets[i] !== -1) {
_root['backup_turret' + _root.player_previousbase][i] = _root.player_turrettype[i];
} else {
_root['backup_turret' + _root.player_previousbase][i] = '';
}
_root['player_turrets' + _root.player_previousbase] = _root.player_turrets.concat();
++i;
}
i = 0;
while (i < this_mlength) {
this_mc = 'm_' + _root.unit_actions.m_roster[i];
if (_root.map_units[this_mc].unit_type !== 'type6' and this_mc !== 'm_0' and _root.map_units[this_mc].unit_ID !== _root.hench_id) {
_root.player_minpool += 1;
}
_root.map_units[this_mc].swapDepths(69);
_root.map_units[this_mc].removeMovieClip();
++i;
}
_root.unit_actions.m_roster.splice(0, _root.unit_actions.m_roster.length);
_root.display_defenseminions();
if (_root.unit_actions.e_roster.length > 0 or enemy_waves > 0) {
var v3 = true;
} else {
var v3 = false;
}
this_elength = _root.unit_actions.e_roster.length;
i = 0;
while (i < this_elength) {
this_mc = 'e_' + _root.unit_actions.e_roster[i];
_root.map_units[this_mc].swapDepths(69);
_root.map_units[this_mc].removeMovieClip();
++i;
}
_root.unit_actions.e_roster.splice(0, _root.unit_actions.e_roster.length);
i = 200;
while (i < 601) {
if (_root.map_units.getInstanceAtDepth(i) !== undefined) {
(_root.map_units.getInstanceAtDepth(i)).removeMovieClip();
}
++i;
}
if (v3 == true) {
trace('FOLLOWED');
_root.player_basedestroyed[_root.player_previousbase] = true;
trace(_root.player_basedestroyed);
} else {
trace('NO ONE FOLLOWED!');
trace(_root['backup_turret' + _root.player_previousbase]);
}
if (inNumber == 1) {
_root.player_currentbasetag = 'Volcano';
_root.player_minmax = 40;
} else {
if (inNumber == 2) {
_root.player_currentbasetag = 'Aquadome';
_root.player_minmax = 45;
} else {
if (inNumber == 3) {
_root.player_currentbasetag = 'Moon';
_root.player_minmax = 50;
} else {
if (inNumber == 4) {
_root.player_currentbasetag = 'Wastes';
_root.player_minmax = 40;
} else {
if (inNumber == 5) {
_root.player_currentbasetag = 'Castle';
_root.player_minmax = 70;
} else {
if (inNumber == 6) {
_root.player_currentbasetag = 'Skyscraper';
_root.player_minmax = 55;
} else {
if (inNumber == 7) {
_root.player_currentbasetag = 'Glenside';
_root.player_minmax = 30;
} else {
if (inNumber == 8) {
_root.player_currentbasetag = 'Jungle';
_root.player_minmax = 50;
}
}
}
}
}
}
}
}
_root.player_minpool += _root.player_minlimbo;
_root.player_minlimbo = 0;
_root.hench_id = -1;
_root.enemy_waves = 0;
_root.enemy_wavetimer = 0;
_root.player_turrets = [-1, -1, -1, -1, -1, -1];
_root.player_turret = [0, 0, 0, 0];
if (player_mincontrol + player_minfinancial + player_minpool > _root.player_minmax) {
player_minpool -= player_mincontrol + player_minfinancial + player_minpool - _root.player_minmax;
}
_root.map_background.gotoAndStop(inNumber);
_root.unit_spawner.spawn_base(inNumber);
_root.underattack.gotoAndStop(1);
_root.spawn_evacturrets();
}
function defense_system() {
i = 0;
while (i < 6) {
if (_root.power_recharging[i] == true) {
++_root.power_timer[i];
if (i == 0) {
var v2 = 10;
var v4 = 30;
var v3 = 1;
} else {
if (i == 1) {
var v2 = 15;
var v4 = 50;
var v3 = 3;
} else {
if (i == 2) {
var v2 = 15;
var v4 = 60;
var v3 = 2;
} else {
if (i == 3) {
var v2 = 15;
var v4 = 40;
var v3 = 0;
} else {
if (i == 4) {
var v2 = 1;
var v4 = 25;
var v3 = 4;
} else {
if (i == 5) {
var v2 = 5;
var v4 = 50;
var v3 = 5;
}
}
}
}
}
}
if (_root.power_timer[i] > v2) {
_root.power_active[i] = false;
}
if (_root.power_timer[i] > v4) {
_root.power_timer[i] = 0;
_root.power_recharging[i] = false;
_root.defenseslider.panel2['weapon' + v3].gotoAndStop(1);
}
}
++i;
}
if (_root.power_active[0] == true) {
i = 0;
while (i < _root.unit_actions.m_roster.length) {
if (_root.map_units['m_' + _root.unit_actions.m_roster[i]].unit_type !== 'type6' and _root.unit_actions.m_roster[i] !== 0) {
if (_root.map_background.map_targethittest.hitTest(_root.map_units['m_' + _root.unit_actions.m_roster[i]]._x + _root.map_background._x, _root.map_units['m_' + _root.unit_actions.m_roster[i]]._y + _root.map_background._y, true) == true) {
_root.map_units['m_' + _root.unit_actions.m_roster[i]].unit_HP -= 15;
_root.unit_actions.cause_hitblood('gas', 'm_' + _root.unit_actions.m_roster[i]);
if (_root.map_units['m_' + _root.unit_actions.m_roster[i]].unit_HP <= 0) {
_root.map_units['m_' + _root.unit_actions.m_roster[i]].unit_status = 'dead';
}
}
}
++i;
}
i = 0;
while (i < _root.unit_actions.e_roster.length) {
if (_root.map_units['e_' + _root.unit_actions.e_roster[i]].unit_category == 'inf') {
if (_root.map_background.map_targethittest.hitTest(_root.map_units['e_' + _root.unit_actions.e_roster[i]]._x + _root.map_background._x, _root.map_units['e_' + _root.unit_actions.e_roster[i]]._y + _root.map_background._y, true) == true) {
_root.map_units['m_' + _root.unit_actions.m_roster[i]].unit_HP -= 15;
_root.map_units['e_' + _root.unit_actions.e_roster[i]].unit_HP -= 20;
_root.unit_actions.cause_hitblood('gas', 'e_' + _root.unit_actions.e_roster[i]);
if (_root.map_units['e_' + _root.unit_actions.e_roster[i]].unit_HP <= 0) {
_root.map_units['e_' + _root.unit_actions.e_roster[i]].unit_status = 'dead';
}
}
}
++i;
}
}
}
function spritebutton(inStatus) {
var v3 = _root.unit_actions.m_roster.length;
i = 0;
while (i < v3) {
this_mc = 'm_' + _root.unit_actions.m_roster[i];
_root.map_units[this_mc].sprite_spread.helper._visible = inStatus;
++i;
}
this_elength = _root.unit_actions.e_roster.length;
i = 0;
while (i < this_elength) {
this_mc = 'e_' + _root.unit_actions.e_roster[i];
_root.map_units[this_mc].sprite_spread.helper._visible = inStatus;
++i;
}
}
}
movieClip 647 {
}
movieClip 649 {
}
movieClip 651 {
}
movieClip 653 {
}
movieClip 655 {
frame 1 {
this._visible = false;
}
}
movieClip 663 {
}
movieClip 666 {
}
movieClip 668 {
}
movieClip 672 {
}
movieClip 675 {
}
movieClip 678 {
}
movieClip 680 {
}
movieClip 681 {
frame 1 {
stop();
gotoAndStop(_root.player_currentbase);
}
}
movieClip 683 {
}
instance unit_actions of movieClip 683 {
onClipEvent (keyPress '<Space>') {
if (_root.screen_locked !== true) {
_root.screen_locked = true;
_root.screen_lockedicon.gotoAndStop(2);
} else {
_root.screen_locked = false;
_root.screen_lockedicon.gotoAndStop(1);
}
}
onClipEvent (load) {
function perform_actions(inNumber, inString) {
var v3 = inString + '_' + inNumber;
var v5 = _root.map_units[v3].unit_type;
var v4 = _root.map_units[v3].unit_status;
var v6 = _root.map_units[v3].unit_target;
if (v5 !== 'type5' and v5 !== 'type0' and v5 !== 'type6' and v3 !== 'm_' + _root.hench_id) {
if (_root.map_units['m_' + _root.hench_id].unit_power == 'frightening' or _root.event_influence('infamoushenchman', 'any', 'any') == true) {
if (this.check_seehenchman(v3, true, 'view') == true) {
v5 = 'type3';
}
}
}
if (v5 == 'type0' and _root.map_units['m_' + _root.hench_id].unit_power == 'leadership') {
if (_root.map_units['m_' + _root.hench_id].unit_status == 'attack') {
if (_root.map_units[v3].unit_status !== 'flee' and _root.map_units[v3].unit_status !== 'retreating') {
_root.map_units[v3].unit_target = _root.map_units['m_' + _root.hench_id].unit_target;
v6 = _root.map_units['m_' + _root.hench_id].unit_target;
}
if (_root.map_units[v3].unit_status == 'move' or _root.map_units[v3].unit_status == 'idle') {
_root.map_units[v3].unit_status = 'attack';
}
}
}
if (v4 !== 'dead' and v4 !== 'retreating') {
this.change_target(v3, v5, v4, v6);
}
if (_root.map_units[v3]._y < -650 or _root.map_units[v3]._y > 650 or _root.map_units[v3]._x < -950 or _root.map_units[v3]._x > 950) {
trace('WARNING: ' + v3 + ' is out of bounds! Its current target is ' + v6 + ' which the game recognizes as ' + _root.map_units[v6] + '. It has been given the base as a target and moved.');
_root.map_units[v3]._y = -180;
_root.map_units[v3]._x = 0;
_root.map_units[v3].unit_target = 'm_0';
if (v5 == 'type0') {
_root.map_units[v3].unit_status = 'move';
} else {
_root.map_units[v3].unit_status = 'attack';
}
}
if (v4 == 'spawn') {
if (v5 !== 'type6') {
_root.map_units[v3].unit_status = 'flee';
this.coordinate_generator('m_' + inNumber, 'move', v6);
_root.unit_actions.minion_messagecenter(v3, 'ready');
} else {
_root.map_units[v3].unit_status = 'idle';
}
}
if (v4 == 'attack') {
if (this.check_range(v3, v6, v4) == true and _root.map_background.map_hittest.hitTest(_root.map_units[v3]._x + _root.map_background._x, _root.map_units[v3]._y + _root.map_background._y, true) == false) {
this.rotate_unit(v6, v3, v4);
if (_root.map_units[v3].unit_drift !== true) {
if (this.check_overlapfriend(v3, false) == true) {
_root.map_units[v3].unit_drift = true;
this.coordinate_generator(v3, 'drift', v6);
}
}
if (_root.map_units[v3].unit_drift == true) {
this.move_unit(v3, v5, 'drift', v6);
if (_root.map_units[v3].sprite_spread.sprite.range_move.hitTest(_root.map_units[v3].unit_coordinate.x + _root.map_background._x, _root.map_units[v3].unit_coordinate.y + _root.map_background._y, true) == true) {
_root.map_units[v3].unit_drift = false;
}
}
if (v5 !== 'type5') {
this.change_animation(v3, 'attack');
if (_root.map_units[v3].unit_forcetarget == true) {
_root.map_units[v3].unit_forcetarget = false;
}
}
if (v5 == 'type5') {
if (this.check_rotationrange(v6, v3, v4) == true) {
this.change_animation(v3, 'attack');
} else {
if (_root.map_units[v3].currently_firing !== true) {
this.change_animation(v3, 'idle');
}
}
}
} else {
if (this.m_roster.length == 0 or this.e_roster.length == 0) {
_root.map_units[v3].unit_status = 'stow';
_root.map_units[v3].unit_drift = false;
}
if (_root.map_units[v3].unit_ready == true) {
_root.map_units[v3].unit_status = 'stow';
_root.map_units[v3].unit_drift = false;
} else {
this.move_unit(v3, v5, v4, v6);
if (_root.map_units[v3].unit_power == 'charge') {
this.change_animation(v3, 'charge');
} else {
this.change_animation(v3, 'run');
}
_root.map_units[v3].unit_drift = false;
}
if (v5 == 'type0' and _root.map_units[v6].unit_status == 'flee') {
if (this.check_enemiesoutnumbered(v3, false) > 3) {
this.find_target(v3, v5, v4, v6);
}
}
if (v5 == 'type6' and _root.map_units[v6].unit_status == 'flee') {
_root.map_units[v3].unit_status = 'stow';
}
}
if (v5 == 'type3' and _root.map_units[v3].unit_brave !== true) {
if (this.check_seehenchman(v3, true, 'view') == true) {
if (_root.map_units['m_' + _root.hench_id].unit_power == 'frightening' or _root.event_influence('infamoushenchman', 'any', 'any') == true) {
_root.unit_actions.minion_messagecenter('m_' + _root.hench_id, 'growl');
_root.map_units[v3].unit_status = 'stow';
}
} else {
if (this.check_enemiesoutnumbered(v3, false) > 2) {
_root.map_units[v3].unit_status = 'stow';
}
}
}
if (_root.map_units[v3].unit_brave == true) {
if (Math.floor(Math.random() * 1000) + 1 == 1) {
_root.map_units[v3].unit_brave = false;
}
}
}
if (v4 == 'move') {
if (this.check_range(v3, v6, v4) == true) {
_root.map_units[v3].unit_status = 'wander';
} else {
this.move_unit(v3, v5, v4, v6);
this.change_animation(v3, 'walk');
}
if (this.check_enemiesleft(v3, v5, false) == true) {
_root.unit_actions.minion_messagecenter(v3, 'contact');
_root.map_units[v3].unit_status = 'idle';
}
}
if (v4 == 'idle') {
if (this.check_enemiesleft(v3, v5, true) == true) {
_root.map_units[v3].unit_status = 'attack';
if (_root.map_units[v3].unit_forcetarget !== true) {
this.find_target(v3, v5, v4, v6);
} else {
_root.map_units[v3].unit_forcetarget = false;
}
} else {
if (_root.map_units[v3].unit_animation == 'stow') {
if (Math.floor(Math.random() * (this.m_roster.length * 0.3 - 1 + 1)) + 1 <= 1) {
_root.unit_actions.minion_messagecenter(v3, 'secure');
}
}
if (this.check_overlapfriend(v3, true) == true) {
_root.map_units[v3].unit_status = 'flee';
_root.map_units[v3].unit_fallback = true;
this.coordinate_generator(v3, 'scatter', v6);
} else {
_root.map_units[v3].unit_status = 'wander';
}
}
this.change_animation(v3, 'idle');
}
if (v4 == 'draw') {
}
if (v4 == 'dodge') {
this.change_animation(v3, 'dodge');
if (_root.map_units[v3].unit_dodge !== true) {
if (_root.map_units[v3].unit_ready !== true) {
if (_root.map_units[v3].unit_fallback !== true) {
_root.map_units[v3].unit_status = 'idle';
} else {
_root.map_units[v3].unit_status = 'flee';
}
} else {
_root.map_units[v3].unit_status = 'attack';
}
}
}
if (v4 == 'salute') {
if (_root.map_units[v3].unit_ready !== true and _root.map_units[v3].unit_animation == 'salute') {
_root.map_units[v3].unit_status = 'idle';
}
this.change_animation(v3, 'salute');
}
if (v4 == 'stow') {
this.change_animation(v3, 'stow');
if (_root.map_units[v3].unit_ready !== true) {
if (v5 == 'type3') {
if (this.check_enemiesoutnumbered(v3, true) > 2 and _root[this_unit].unit_brave !== true) {
_root.map_units[v3].unit_status = 'flee';
this.coordinate_generator(v3, 'flee', v6);
} else {
if (this.check_seehenchman(v3, true, 'view') == true and _root[this_unit].unit_brave !== true) {
_root.map_units[v3].unit_status = 'flee';
this.coordinate_generator(v3, 'flee', v6);
} else {
if (_root.map_units[v3].unit_fallback !== true) {
_root.map_units[v3].unit_status = 'idle';
} else {
_root.map_units[v3].unit_status = 'flee';
}
}
}
}
if (v5 !== 'type3') {
if (_root.map_units[v3].unit_fallback !== true) {
_root.map_units[v3].unit_status = 'idle';
} else {
_root.map_units[v3].unit_status = 'flee';
}
}
}
}
if (v4 == 'flee') {
this.change_animation(v3, 'run');
if (_root.map_units[v3].unit_fallback == true) {
_root.map_units[v3].unit_fallback = false;
}
if (this.check_range(v3, v6, v4) == true) {
_root.map_units[v3].unit_brave = true;
_root.map_units[v3].unit_status = 'idle';
} else {
this.move_unit(v3, v5, v4, v6);
}
}
if (v4 == 'dead') {
this.change_animation(v3, 'death');
}
if (v4 == 'wander') {
if (this.check_random(1, 4) == true) {
_root.map_units[v3].unit_status = 'guard';
if (this.check_random(1, 20 + this.m_roster.length) == true) {
_root.unit_actions.minion_messagecenter(v3, 'yawn');
}
} else {
_root.map_units[v3].unit_status = 'move';
this.coordinate_generator(v3, 'move', v6);
}
}
if (v4 == 'guard') {
this.change_animation(v3, 'idle');
if (this.check_random(1, 250) == true and v5 !== 'type6') {
_root.map_units[v3].unit_status = 'move';
this.coordinate_generator(v3, 'move', v6);
}
if (this.check_enemiesleft(v3, v5, false) == true) {
_root.unit_actions.minion_messagecenter(v3, 'contact');
_root.map_units[v3].unit_status = 'idle';
}
}
if (v4 == 'retreating') {
this.change_animation(v3, 'run');
this.move_unit(v3, v5, v4, 'm_0');
if (this.check_range(v3, 'm_0', v4) == true) {
_root.soundplayer.gotoAndPlay('recall');
if (_root.map_units[v3].unit_ID == _root.hench_id) {
_root.hench_id = -1;
_root.hench_healthbackup = _root.map_units[v3].unit_HP;
_root.defenseslider.panel1.weapon4.gotoAndStop(1);
trace('Henchman just left the battlefield!');
_root.map_units[v3].swapDepths(69);
_root.map_units[v3].removeMovieClip();
} else {
_root.player_minlimbo -= 1;
_root.player_minpool += 1;
trace(v3 + ' just left the battlefield!');
_root.map_units[v3].swapDepths(69);
_root.map_units[v3].removeMovieClip();
}
}
}
}
function find_target(this_mc, this_type, this_status, this_target) {
if (_root.map_units[this_mc]._name.substr(0, 1) == 'm') {
inString = 'e';
}
if (_root.map_units[this_mc]._name.substr(0, 1) == 'e') {
inString = 'm';
}
if (this_type == 'type0' or this_type == 'type2' or this_type == 'type3' or this_type == 'type6' or this_type == 'type5') {
var v3 = 10000;
point_mc.x = _root.map_units[this_mc]._x;
point_mc.y = _root.map_units[this_mc]._y;
i = 0;
while (i < this[inString + '_roster'].length) {
point_target.x = _root.map_units[inString + '_' + this[inString + '_roster'][i]]._x;
point_target.y = _root.map_units[inString + '_' + this[inString + '_roster'][i]]._y;
THISDISTANCE = flash.geom.Point.distance(point_mc, point_target);
if (v3 > THISDISTANCE) {
v3 = THISDISTANCE;
closesttarget = i;
}
++i;
}
_root.map_units[this_mc].unit_target = inString + '_' + this[inString + '_roster'][closesttarget];
_root.map_units[this_mc].unit_status = 'attack';
}
if (this_type == 'type1') {
randomnumber = Math.floor(Math.random() * (this[inString + '_roster'].length - 1 - 0 + 1));
thistarget = 'm_' + this.m_roster[randomnumber];
_root.map_units[this_mc].unit_target = thistarget;
_root.map_units[this_mc].unit_status = 'attack';
}
}
function change_target(this_mc, this_type, this_status, this_target) {
if (_root.map_units[this_target] == undefined and this_target.substr(-9, 9) !== 'undefined' and this_target !== undefined) {
trace('Targetting: ' + this_mc + ' was targetting ' + this_target + ' but that target is undefined.');
this.find_target(this_mc, this_type, this_status, this_target);
trace('New target is ' + _root.map_units[this_mc].unit_target);
}
if (_root.map_units[this_target].unit_status == 'retreating' and this_status == 'attack') {
this.find_target(this_mc, this_type, this_status, this_target);
}
if (_root.map_units[this_target].unit_status == 'dead' and this_status == 'attack') {
this.find_target(this_mc, this_type, this_status, this_target);
}
if (this_type == 'type2' and this_status !== 'wander' and this_status !== 'idle' and this_status !== 'flee' and _root.map_units[this_mc].unit_ready !== true) {
if (this.check_enemiesleft(this_mc, this_type, false) == true) {
this.find_target(this_mc, this_type, this_status, this_target);
}
}
if (this_type == 'type5') {
if (this_target == 'm_0' and _root.pulse_timer.timer == 1) {
if (this.check_enemiesleft(this_mc, 'type0', true) == true) {
if (this.check_range(this_mc, 'm_0', 'attack') == false) {
this.find_target(this_mc, this_type, this_status, this_target);
}
}
}
if (this_target !== 'm_0' and _root.pulse_timer.timer == 1) {
if (this.check_range(this_mc, 'm_0', 'attack') == false) {
if (this.check_enemiesleft(this_mc, 'type0', true) == false) {
_root.map_units[this_mc].unit_target = 'm_0';
}
}
}
if (_root.m_0 == true and _root.map_units[this_mc].unit_drift !== true) {
_root.map_units[this_mc].unit_coordinate.x = _root.m_0._x;
_root.map_units[this_mc].unit_coordinate.y = _root.m_0._y;
} else {
if (_root.map_units[this_mc].unit_drift !== true) {
_root.map_units[this_mc].unit_coordinate.x = 350;
_root.map_units[this_mc].unit_coordinate.y = 225;
}
}
}
}
function check_range(this_mc, this_target, this_status) {
if (this_status == 'flee' or this_status == 'wander' or this_status == 'retreating') {
this_status = 'move';
}
if (this_status == 'attack') {
return _root.map_units[this_mc].sprite_spread.sprite['range_' + this_status].hitTest(_root.map_units[this_target]._x + _root.map_background._x, _root.map_units[this_target]._y + _root.map_background._y, true);
}
if (this_status == 'move') {
return _root.map_units[this_mc].sprite_spread.sprite['range_' + this_status].hitTest(_root.map_units[this_mc].unit_coordinate.x + _root.map_background._x, _root.map_units[this_mc].unit_coordinate.y + _root.map_background._y, true);
}
}
function check_enemiesleft(this_mc, this_type, pulse_override) {
if (pulse_override == true or _root.pulse_timer.timer == 3 and _root.map_units[this_mc].unit_status == 'move' or _root.pulse_timer.timer == 4 and _root.map_units[this_mc].unit_status == 'attack' or _root.pulse_timer.timer == 5 and _root.map_units[this_mc].unit_status == 'guard') {
if (_root.map_units[this_mc]._name.substr(0, 1) == 'm') {
inString = 'e';
}
if (_root.map_units[this_mc]._name.substr(0, 1) == 'e') {
inString = 'm';
}
if (this_type !== 'type0' and this_type !== 'type6') {
if (this[inString + '_roster'].length > 0) {
return true;
} else {
return false;
}
} else {
if (this[inString + '_roster'].length > 0) {
i = 0;
while (i < this[inString + '_roster'].length) {
if (_root.map_units[this_mc].sprite_spread.sprite.range_view.hitTest(_root.map_units[inString + '_' + this[inString + '_roster'][i]]._x + _root.map_background._x, _root.map_units[inString + '_' + this[inString + '_roster'][i]]._y + _root.map_background._y, true) == true) {
if (_root.map_background.map_hittest.hitTest(_root.map_units[inString + '_' + this[inString + '_roster'][i]]._x + _root.map_background._x, _root.map_units[inString + '_' + this[inString + '_roster'][i]]._y + _root.map_background._y, true) == false) {
return true;
break;
}
}
++i;
}
return false;
}
}
}
}
function check_enemiesoutnumbered(this_mc, pulse_override) {
if (pulse_override == true or _root.pulse_timer.timer == 2) {
if (_root.map_units[this_mc]._name.substr(0, 1) == 'm') {
inString = 'e';
}
if (_root.map_units[this_mc]._name.substr(0, 1) == 'e') {
inString = 'm';
}
var v4 = 0;
i = 0;
while (i < this[inString + '_roster'].length) {
if (_root.map_background.map_hittest.hitTest(_root.map_units[this_mc]._x + _root.map_background._x, _root.map_units[this_mc]._y + _root.map_background._y, true) == false) {
if (_root.map_units[this_mc].sprite_spread.sprite.range_view.hitTest(_root.map_units[inString + '_' + this[inString + '_roster'][i]]._x + _root.map_background._x, _root.map_units[inString + '_' + this[inString + '_roster'][i]]._y + _root.map_background._y, true) == true) {
v4 += 1;
}
}
++i;
}
return v4;
}
}
function check_seehenchman(this_mc, pulse_override, hit_type) {
if (pulse_override == true or _root.pulse_timer.timer == 6) {
if (_root.map_units[this_mc].sprite_spread.sprite['range_' + hit_type].hitTest(_root.map_units['m_' + _root.hench_id]._x + _root.map_background._x, _root.map_units['m_' + _root.hench_id]._y + _root.map_background._y, true) == true) {
return true;
} else {
return false;
}
}
}
function check_overlapfriend(this_mc, pulse_override) {
if (pulse_override == true or _root.pulse_timer.timer == 6) {
inString = _root.map_units[this_mc]._name.substr(0, 1);
if (_root.map_units[this_mc].unit_status !== 'type6' and _root.map_units[this_mc].unit_status !== 'type7') {
i = 0;
while (i < this[inString + '_roster'].length) {
if (this_mc !== inString + '_' + this[inString + '_roster'][i] and _root.map_units[this_mc].sprite_spread.sprite.range_move.hitTest(_root.map_units[inString + '_' + this[inString + '_roster'][i]]._x + _root.map_background._x, _root.map_units[inString + '_' + this[inString + '_roster'][i]]._y + _root.map_background._y, true)) {
return true;
break;
}
++i;
}
}
}
return false;
}
function check_random(my_min, my_max) {
if (Math.floor(Math.random() * (my_max - 1 + 1)) - 1 <= my_min) {
return true;
}
}
function check_rotationrange(this_target, this_mc, this_status) {
if (this_status == 'attack') {
Xd = _root.map_units[this_target]._x - _root.map_units[this_mc]._x;
Yd = _root.map_units[this_target]._y - _root.map_units[this_mc]._y;
} else {
Xd = this_target.x - _root.map_units[this_mc]._x;
Yd = this_target.y - _root.map_units[this_mc]._y;
}
if (int(Math.atan2(Yd, Xd) * 360 / 6.283185307179586 + 90) > 180) {
var v3 = -180 - (180 - int(Math.atan2(Yd, Xd) * 360 / 6.283185307179586 + 90));
} else {
var v3 = int(Math.atan2(Yd, Xd) * 360 / 6.283185307179586 + 90);
}
if (_root.map_units[this_mc]._rotation >= v3) {
if (_root.map_units[this_mc]._rotation >= v3 + 10) {
return false;
} else {
return true;
}
} else {
if (_root.map_units[this_mc]._rotation <= v3 - 10) {
return false;
} else {
return true;
}
}
}
function move_unit(this_mc, this_type, this_status, this_target) {
if (this_type !== 'type6') {
if (this_status == 'attack') {
this.rotate_unit(this_target, this_mc, this_status);
}
if (this_status == 'move' or this_status == 'flee' or this_status == 'retreating') {
this.rotate_unit(_root.map_units[this_mc].unit_coordinate, this_mc, this_status);
}
if (this_status == 'drift') {
var v4 = 0.5;
if (_root.power_active[1] == true and _root.map_units[this_mc].unit_category == 'tank') {
if (_root.map_background.map_targethittest.hitTest(_root.map_units[this_mc]._x + _root.map_background._x, _root.map_units[this_mc]._y + _root.map_background._y, true) == true) {
v4 = 0;
}
}
var v7 = _root.map_units[this_mc].unit_coordinate.x - _root.map_units[this_mc]._x;
var v8 = _root.map_units[this_mc].unit_coordinate.y - _root.map_units[this_mc]._y;
var v6 = int(Math.atan2(v8, v7) * 360 / 6.283185307179586 + 90);
if (v6 > 180) {
v6 = -180 - (180 - v6);
}
this_rotationY = v4 * Math.cos(0.0174532925199433 * v6);
this_rotationX = v4 * Math.sin(0.0174532925199433 * v6);
} else {
var v4 = _root.map_units[this_mc].unit_speed;
if (_root.map_units[this_mc].unit_animation == 'walk') {
v4 /= 3;
}
if (_root.map_units[this_mc].unit_animation == 'charge') {
v4 *= 3;
}
if (_root.power_active[3] == true and this_mc.substr(0, 1) == 'm') {
v4 += 1;
}
if (_root.power_active[1] == true and _root.map_units[this_mc].unit_category == 'tank') {
v4 = 0;
this.cause_hitblood('electro', this_mc);
}
this_rotationY = v4 * Math.cos(0.0174532925199433 * _root.map_units[this_mc]._rotation);
this_rotationX = v4 * Math.sin(0.0174532925199433 * _root.map_units[this_mc]._rotation);
}
if (_root.map_units[this_mc]._rotation > 180) {
_root.map_units[this_mc]._y += this_rotationY;
_root.map_units[this_mc]._x -= this_rotationX;
} else {
_root.map_units[this_mc]._y -= this_rotationY;
_root.map_units[this_mc]._x += this_rotationX;
}
}
}
function rotate_unit(this_target, this_mc, this_status) {
if (this_status == 'attack' and _root.map_units[this_target] !== undefined) {
Xd = _root.map_units[this_target]._x - _root.map_units[this_mc]._x;
Yd = _root.map_units[this_target]._y - _root.map_units[this_mc]._y;
} else {
Xd = this_target.x - _root.map_units[this_mc]._x;
Yd = this_target.y - _root.map_units[this_mc]._y;
}
if (_root.map_units[this_mc].unit_type == 'type5') {
if (_root.map_units[this_mc].unit_category == 'inf') {
my_spin = 3;
}
if (_root.map_units[this_mc].unit_category == 'tank') {
my_spin = 1;
}
if (_root.map_units[this_mc].unit_category == 'air') {
my_spin = 2;
}
if (int(Math.atan2(Yd, Xd) * 360 / 6.283185307179586 + 90) > 180) {
var v3 = -180 - (180 - int(Math.atan2(Yd, Xd) * 360 / 6.283185307179586 + 90));
} else {
var v3 = int(Math.atan2(Yd, Xd) * 360 / 6.283185307179586 + 90);
}
if (_root.map_units[this_mc]._rotation > v3) {
if (_root.map_units[this_mc]._rotation - v3 <= 180) {
if (_root.map_units[this_mc]._rotation > v3 + my_spin) {
_root.map_units[this_mc]._rotation -= my_spin;
} else {
_root.map_units[this_mc]._rotation = v3;
}
} else {
_root.map_units[this_mc]._rotation += my_spin;
}
} else {
if (v3 - _root.map_units[this_mc]._rotation <= 180) {
if (_root.map_units[this_mc]._rotation < v3 - my_spin) {
_root.map_units[this_mc]._rotation += my_spin;
} else {
_root.map_units[this_mc]._rotation = v3;
}
} else {
_root.map_units[this_mc]._rotation -= my_spin;
}
}
} else {
_root.map_units[this_mc]._rotation = int(Math.atan2(Yd, Xd) * 360 / 6.283185307179586 + 90);
}
}
function coordinate_generator(this_mc, inString, this_target) {
var v5 = _root.map_units['m_' + _root.hench_id].unit_power;
var v11 = _root.map_units[this_mc].unit_type;
myX = _root.map_units[this_mc]._x;
myY = _root.map_units[this_mc]._y;
_root.map_units[this_mc].unit_coordinate = new flash.geom.Point(0, 0);
if (inString == 'move') {
_root.map_units[this_mc].unit_coordinate.x = Math.floor(Math.random() * 201) - 100 + myX;
_root.map_units[this_mc].unit_coordinate.y = Math.floor(Math.random() * 201) - 100 + myY;
if (v11 == 'type0' and v5 == 'leadership' or v11 == 'type0' and v5 == 'morale') {
if (v5 == 'morale') {
var v13 = 'move';
}
if (v5 == 'leadership') {
v13 = 'attack';
}
if (this.check_seehenchman(this_mc, true, v13) !== true) {
_root.map_units[this_mc].unit_status = 'flee';
_root.map_units[this_mc].unit_coordinate.x = _root.map_units['m_' + _root.hench_id]._x + Math.floor(Math.random() * 101) - 50;
_root.map_units[this_mc].unit_coordinate.y = _root.map_units['m_' + _root.hench_id]._y + Math.floor(Math.random() * 101) - 50;
}
}
}
if (inString == 'scatter') {
_root.map_units[this_mc].unit_coordinate.x = Math.floor(Math.random() * 121) - 60 + myX;
_root.map_units[this_mc].unit_coordinate.y = Math.floor(Math.random() * 121) - 60 + myY;
}
if (inString == 'flee') {
if (_root.map_units[this_mc]._rotation > 180) {
_root.map_units[this_mc].unit_coordinate.y = myY - 150 * Math.cos(0.0174532925199433 * _root.map_units[this_mc]._rotation);
_root.map_units[this_mc].unit_coordinate.x = myX + 150 * Math.sin(0.0174532925199433 * _root.map_units[this_mc]._rotation);
} else {
_root.map_units[this_mc].unit_coordinate.y = myY + 150 * Math.cos(0.0174532925199433 * _root.map_units[this_mc]._rotation);
_root.map_units[this_mc].unit_coordinate.x = myX - 150 * Math.sin(0.0174532925199433 * _root.map_units[this_mc]._rotation);
}
}
if (inString == 'retreat') {
_root.map_units[this_mc].unit_coordinate.y = _root.map_units.m_0._y;
_root.map_units[this_mc].unit_coordinate.x = _root.map_units.m_0._x;
}
if (inString == 'drift') {
_root.map_units[this_mc].unit_coordinate.x = Math.floor(Math.random() * 91) - 45 + myX;
_root.map_units[this_mc].unit_coordinate.y = Math.floor(Math.random() * 91) - 45 + myY;
}
if (inString == 'move' or inString == 'scatter') {
if (_root.map_background.map_targethittest.hitTest(_root.map_units[this_mc].unit_coordinate.x + _root.map_background._x, _root.map_units[this_mc].unit_coordinate.y + _root.map_background._y, true) == false) {
var v6 = _root.map_background.map_targethittest._x - _root.map_units[this_mc]._x;
var v7 = _root.map_background.map_targethittest._y - _root.map_units[this_mc]._y;
if (int(Math.atan2(v7, v6) * 360 / 6.283185307179586 + 90) > 180) {
var v8 = -180 - (180 - int(Math.atan2(v7, v6) * 360 / 6.283185307179586 + 90));
} else {
var v8 = int(Math.atan2(v7, v6) * 360 / 6.283185307179586 + 90);
}
var v9 = 100;
var v12 = v9 * Math.cos(0.0174532925199433 * v8);
var v10 = v9 * Math.sin(0.0174532925199433 * v8);
if (v8 > 180) {
_root.map_units[this_mc].unit_coordinate.y += v12;
_root.map_units[this_mc].unit_coordinate.x -= v10;
} else {
_root.map_units[this_mc].unit_coordinate.y -= v12;
_root.map_units[this_mc].unit_coordinate.x += v10;
}
}
}
if (_root.map_units[this_mc].unit_coordinate.x < -87) {
_root.map_units[this_mc].unit_coordinate.x = -87;
}
if (_root.map_units[this_mc].unit_coordinate.y > 580) {
_root.map_units[this_mc].unit_coordinate.y = 580;
}
if (_root.map_units[this_mc].unit_coordinate.x > 804) {
_root.map_units[this_mc].unit_coordinate.x = 804;
}
if (_root.map_units[this_mc].unit_coordinate.y < -144) {
_root.map_units[this_mc].unit_coordinate.y = -144;
}
}
function perform_attack(inNumber, inString) {
var v4 = inString + '_' + inNumber;
var v11 = _root.map_units[v4].unit_type;
var v10 = _root.map_units[v4].unit_status;
var v3 = _root.map_units[v4].unit_target;
Array;
if (_root.map_units[v3].unit_power == 'dodge') {
if (_root.map_units[v4].unit_attack < _root.map_units[v3].unit_speed * 3) {
var v8 = _root.map_units[v3].unit_speed * 3 + 1;
} else {
var v8 = _root.map_units[v4].unit_attack;
}
var v7 = Math.floor(Math.random() * (v8 - 1 + 1)) + 1;
if (v7 < _root.map_units[v3].unit_speed * 3) {
var v9 = true;
if (Math.floor(Math.random() * 8) + 1 == 1) {
_root.map_units[v3].unit_status = 'dodge';
}
} else {
var v9 = false;
}
} else {
if (_root.power_active[2] == true and inString == 'e') {
var v9 = true;
} else {
var v9 = false;
}
}
if (_root.gamepaused == false and v9 == false) {
_root.map_units[v3].unit_HP -= this.damage_calculator(v4, v3);
if (_root.power_active[3] == true and inString == 'm') {
_root.map_units[v3].unit_HP -= 5;
}
this.cause_hitblood(v4, v3);
var v5 = _root.map_units[v3].unit_HP;
if (v5 <= 0) {
if (_root.map_units['m_' + _root.hench_id].unit_power == 'morale' and _root.map_units[v3].unit_type == 'type0' or _root.event_influence('proudlegions', 'any', 'any') == true and _root.map_units[v3].unit_type == 'type0') {
if (this.check_seehenchman(v3, true, 'view') == true and v5 > -100 or _root.event_influence('proudlegions', 'any', 'any') == true and v5 > -100) {
if (Math.floor(Math.random() * 5) + 1 == 1) {
_root.unit_actions.minion_messagecenter(v3, 'nofail');
}
} else {
_root.map_units[v3].unit_status = 'dead';
}
} else {
_root.map_units[v3].unit_status = 'dead';
if (_root.map_units[v4].unit_ID == _root.hench_id) {
_root.hench_kills += 1;
}
}
}
}
}
function damage_calculator(this_mc, this_target) {
var v2 = 1;
var v4 = _root.player_currentweapon;
if (_root.map_units[this_mc].unit_type == 'type0' and this_mc !== 'm_' + _root.hench_id or _root.map_units[this_mc].unit_type == 'type6') {
var v3 = _root.map_units[this_target].unit_category;
if (_root.map_units[this_mc].unit_turret == 'laser') {
v4 = 4;
} else {
if (_root.map_units[this_mc].unit_turret == 'basic') {
v4 = 1;
} else {
if (_root.map_units[this_mc].unit_turret == 'aa') {
v4 = 3;
} else {
if (_root.map_units[this_mc].unit_turret == 'repeater') {
v4 = 2;
}
}
}
}
if (v4 == 0) {
if (v3 == 'tank') {
v2 = 0.3;
}
if (v3 == 'air') {
v2 = 0.3;
}
if (v3 == 'inf') {
v2 = 0.7;
}
} else {
if (v4 == 1) {
if (v3 == 'tank') {
v2 = 0.5;
}
if (v3 == 'air') {
v2 = 0.5;
}
if (v3 == 'inf') {
v2 = 0.9;
}
} else {
if (v4 == 2) {
if (v3 == 'tank') {
v2 = 0.5;
}
if (v3 == 'air') {
v2 = 0.9;
}
if (v3 == 'inf') {
v2 = 1.2;
}
} else {
if (v4 == 3) {
if (v3 == 'tank') {
v2 = 1;
}
if (v3 == 'air') {
v2 = 1.3;
}
if (v3 == 'inf') {
v2 = 1;
}
} else {
if (v4 == 4) {
if (v3 == 'tank') {
v2 = 1.3;
}
if (v3 == 'air') {
v2 = 1;
}
if (v3 == 'inf') {
v2 = 1;
}
} else {
if (v4 == 5) {
if (v3 == 'tank') {
v2 = 0.5;
}
if (v3 == 'air') {
v2 = 0.5;
}
if (v3 == 'inf') {
v2 = 2.5;
}
} else {
if (v4 == 6) {
if (v3 == 'tank') {
v2 = 1.8;
}
if (v3 == 'air') {
v2 = 1.8;
}
if (v3 == 'inf') {
v2 = 1.3;
}
}
}
}
}
}
}
}
v2 += 0.08 * _root.player_level - 0.08;
if (_root.event_influence('proudlegions', 'any', 'any') == true) {
v2 += 0.3;
}
return _root.map_units[this_mc].unit_attack * v2;
}
if (_root.map_units[this_mc].unit_type !== 'type0' and _root.map_units[this_mc].unit_type !== 'type6') {
if (_root.map_units[this_target].unit_status == 'retreating' or _root.player_tutorial !== -1) {
v2 = 0;
}
}
return _root.map_units[this_mc].unit_attack * v2;
}
function cause_hitblood(this_attacker, this_defender) {
if (_root.map_units[this_defender].sprite_spread.sprite.hitblood._currentframe == 1) {
_root.map_units[this_defender].sprite_spread.sprite.hitblood.play();
if (_root.map_units[this_defender].unit_category == 'tank' or _root.map_units[this_defender].unit_category == 'air' or _root.map_units[this_defender].unit_type == 'type6') {
if (this_attacker !== 'electro' and this_attacker !== 'fire') {
_root.map_units[this_defender].sprite_spread.sprite.hitblood.gotoAndPlay('metal');
}
}
if (_root.player_currentweapon == '5' and this_attacker.substr(0, 1) == 'm' and _root.map_units[this_attacker].unit_type !== 'type6') {
_root.map_units[this_defender].sprite_spread.sprite.hitblood.gotoAndPlay('fire');
}
if (_root.map_units[this_attacker].unit_category == 'tank') {
_root.map_units[this_defender].sprite_spread.sprite.hitblood.gotoAndPlay('explosion');
}
if (this_attacker == 'gas') {
_root.map_units[this_defender].sprite_spread.sprite.hitblood.gotoAndPlay('gas');
}
if (this_attacker == 'electro') {
_root.map_units[this_defender].sprite_spread.sprite.hitblood.gotoAndPlay('electro');
}
}
}
function attack_minionstargetthis(inNumber) {
if (_root.map_background.map_targethittest.hitTest(_root.map_units['e_' + inNumber]._x + _root.map_background._x, _root.map_units['e_' + inNumber]._y + _root.map_background._y, true) == true) {
i = 0;
while (i < this.m_roster.length) {
if (_root.map_units['m_' + this.m_roster[i]].unit_type !== 'type6' and _root.map_units['m_' + this.m_roster[i]].unit_type !== 'type7') {
_root.map_units['m_' + this.m_roster[i]].unit_target = 'e_' + inNumber;
_root.map_units['m_' + this.m_roster[i]].unit_status = 'attack';
_root.map_units['m_' + this.m_roster[i]].unit_forcetarget = true;
}
++i;
}
}
}
function attack_minionflee(inNumber) {
_root.map_units['m_' + inNumber].unit_status = 'stow';
_root.map_units['m_' + inNumber].unit_fallback = true;
this.coordinate_generator('m_' + inNumber, 'retreat', this_target);
_root.unit_actions.minion_messagecenter('m_' + inNumber, 'fallback');
}
function attack_fullretreat() {
i = 0;
while (i < this.m_roster.length) {
if (_root.map_units['m_' + m_roster[i]].unit_type == 'type0') {
_root.map_units['m_' + m_roster[i]].unit_status = 'stow';
_root.map_units['m_' + m_roster[i]].unit_fallback = true;
this.coordinate_generator('m_' + m_roster[i], 'retreat', this_target);
if (Math.floor(Math.random() * (this.m_roster.length - 1 + 1)) + 1 == 1) {
_root.unit_actions.minion_messagecenter('m_' + m_roster[i], 'fallback');
}
}
++i;
}
}
function recall_minion(inString) {
var v3 = false;
if (inString == 'minion') {
i = 0;
while (i < m_roster.length) {
if (_root.map_units['m_' + m_roster[i]].unit_type !== 'type6' and m_roster[i] !== _root.hench_id and m_roster[i] !== 0) {
v3 = true;
var v4 = 'm_' + m_roster[i];
_root.unit_actions.minion_messagecenter(v4, 'fallback');
_root.player_minlimbo += 1;
_root.map_units[v4].unit_limbo = true;
break;
}
++i;
}
}
if (inString == 'henchman') {
v4 = 'm_' + _root.hench_id;
v3 = true;
}
if (v3 == true) {
trace('Recalling ' + v4 + ' back to base!');
this.coordinate_generator(v4, 'retreat', this_target);
_root.map_units[v4].unit_status = 'retreating';
this.remove_element(_root.map_units[v4].unit_ID, 'm', v4);
this.unit_rename(v4);
} else {}
}
function power_unitexecute() {
i = 0;
while (i < 1) {
var v3 = Math.floor(Math.random() * (this.m_roster.length - 1 + 1)) + 1;
--v3;
if (this.m_roster[v3] !== 0 and _root.map_units['m_' + this.m_roster[v3]].unit_type !== 'type6' and this.m_roster[v3] !== _root.hench_id) {
_root.map_units['m_' + this.m_roster[v3]].unit_status = 'dead';
_root.map_units['m_' + this.m_roster[v3]].unit_HP = 0;
m = 0;
while (m < this.m_roster.length) {
if (m !== v3) {
_root.map_units['m_' + this.m_roster[m]].sprite_spread.sprite.message_spread.hitdefense.gotoAndPlay('defense3');
}
++m;
}
break;
} else {
i = -1;
}
++i;
}
_root.display_defenseminions();
}
function power_unithealthboost() {
i = 0;
while (i < this.m_roster.length) {
if (this.m_roster[i] !== 0 and _root.map_units['m_' + this.m_roster[i]].unit_type !== 'type6' and this.m_roster[i] !== _root.hench_id) {
_root.map_units['m_' + this.m_roster[i]].unit_HP += 20;
_root.map_units['m_' + this.m_roster[i]].sprite_spread.sprite.message_spread.hitdefense.gotoAndPlay('defense4');
}
++i;
}
}
function remove_element(inNumber, inString, this_mc) {
i = 0;
while (i < this[inString + '_roster'].length) {
if (this[inString + '_roster'][i] == _root.map_units[this_mc].unit_ID) {
this[inString + '_roster'].splice(i, 1);
if (_root.map_units[this_mc].unit_type == 'type0') {
_root.display_defenseminions();
}
break;
}
++i;
}
}
function unit_rename(this_mc) {
var v2 = Math.floor(Math.random() * 999999801) + 200;
if (this_mc == 'm_' + _root.hench_id) {
_root.hench_id = v2;
}
_root.map_units[this_mc].unit_ID = v2;
_root.map_units[this_mc]._name = 'm_' + v2;
}
function move_deadman(this_mc) {
if (_root.map_units[this_mc].unit_category !== 'air') {
i = 211;
while (i < 300) {
if (_root.map_units.getInstanceAtDepth(i) == undefined) {
_root.map_units[this_mc].swapDepths(i);
break;
}
++i;
}
}
}
function clear_turret(this_mc) {
trace('clearing turret!');
i = 0;
while (i < 6) {
if (_root.map_units[this_mc].unit_ID == _root.player_turrets[i]) {
trace('Found match. Before: ' + _root.player_turrets);
_root.player_turrets[i] = -1;
trace('After: ' + _root.player_turrets);
break;
}
++i;
}
}
function change_animation(this_mc, inString) {
if (inString == 'death') {
if (_root.map_units[this_mc].unit_animation !== 'death') {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('death');
_root.map_units[this_mc].unit_animation = 'death';
if (this_mc == 'm_' + _root.hench_id) {
_root.killhench();
}
if (_root.map_units[this_mc].unit_type == 'type6') {
this.clear_turret(this_mc);
}
this.remove_element(_root.map_units[this_mc].unit_ID, _root.map_units[this_mc]._name.substr(0, 1), this_mc);
this.move_deadman(this_mc);
}
}
if (inString == 'walk') {
if (_root.map_units[this_mc].unit_animation !== 'walk') {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('walk');
_root.map_units[this_mc].unit_animation = 'walk';
}
}
if (inString == 'run') {
if (_root.map_units[this_mc].unit_animation !== 'run') {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('run');
_root.map_units[this_mc].unit_animation = 'run';
}
}
if (inString == 'charge') {
if (_root.map_units[this_mc].unit_animation !== 'charge') {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('charge');
_root.map_units[this_mc].unit_animation = 'charge';
}
}
if (inString == 'dodge') {
if (_root.map_units[this_mc].unit_animation !== 'dodge') {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('dodge');
_root.map_units[this_mc].unit_animation = 'dodge';
}
}
if (inString == 'salute') {
if (_root.map_units[this_mc].unit_animation !== 'salute') {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('salute');
_root.map_units[this_mc].unit_animation = 'salute';
}
}
if (inString == 'attack') {
if (_root.map_units[this_mc].unit_animation !== 'attack') {
if (_root.map_units[this_mc].unit_ready !== true) {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('draw');
_root.map_units[this_mc].unit_animation = 'attack';
} else {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('attack');
_root.map_units[this_mc].unit_animation = 'attack';
}
}
}
if (inString == 'stow') {
if (_root.map_units[this_mc].unit_animation !== 'stow') {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('stow');
_root.map_units[this_mc].unit_animation = 'stow';
}
}
if (inString == 'idle') {
if (_root.map_units[this_mc].unit_animation !== 'idle') {
_root.map_units[this_mc].sprite_spread.sprite.gotoAndPlay('idle');
_root.map_units[this_mc].unit_animation = 'idle';
}
}
}
function minion_messagecenter(this_mc, inString) {
_root.map_units[this_mc].sprite_spread.sprite.message_spread.currentmessage = inString;
_root.map_units[this_mc].sprite_spread.sprite.message_spread.play();
}
syncHold = getTimer() + 42;
var point_mc = new flash.geom.Point(0, 0);
var point_target = new flash.geom.Point(0, 0);
var THISDISTANCE = flash.geom.Point.distance(point_mc, point_target);
var m_roster = new Array();
var e_roster = new Array();
}
}
movieClip 686 {
}
instance unit_spawner of movieClip 686 {
onClipEvent (load) {
function spawn_minion(this_type) {
if (this_type.substr(-6, 6) == 'turret') {
i = 101;
while (i < 110) {
if (_root.map_units.getInstanceAtDepth(i) == undefined) {
target_depth = i;
break;
}
++i;
}
} else {
i = 300;
while (i < 400) {
if (_root.map_units.getInstanceAtDepth(i) == undefined) {
target_depth = i;
break;
}
++i;
}
}
var v3 = 0;
i = 0;
while (i < _root.unit_actions.m_roster.length) {
if (_root.unit_actions.m_roster[i] >= v3) {
v3 = _root.unit_actions.m_roster[i] + 1;
}
++i;
}
new_unit = 'm_' + v3;
if (this_type == 'Henchman') {
_root.hench_id = v3;
}
duplicateMovieClip(_root.map_units.unit_empty, new_unit, target_depth);
if (this_type.substr(-6, 6) == 'turret') {
if (_root.turret_spawnplace !== -1 and _root.turret_spawnplace !== undefined) {
_root.map_units[new_unit]._x = _root.map_background['t_' + _root.turret_spawnplace]._x;
_root.map_units[new_unit]._y = _root.map_background['t_' + _root.turret_spawnplace]._y;
_root.turret_spawnplace = -1;
} else {
i = 0;
while (i < 6) {
if (_root.player_turrets[i] == -1) {
_root.player_turrets[i] = v3;
_root.map_units[new_unit]._x = _root.map_background['t_' + i]._x;
_root.map_units[new_unit]._y = _root.map_background['t_' + i]._y;
if (this_type == 'basicturret') {
_root.player_turrettype[i] = 'basic';
}
if (this_type == 'laserturret') {
_root.player_turrettype[i] = 'laser';
}
if (this_type == 'repeaterturret') {
_root.player_turrettype[i] = 'repeater';
}
if (this_type == 'aaturret') {
_root.player_turrettype[i] = 'aa';
}
break;
}
++i;
}
}
} else {
_root.map_units[new_unit]._x = _root.map_units.m_0._x;
_root.map_units[new_unit]._y = _root.map_units.m_0._y;
}
if (this_type.substr(-6, 6) == 'turret') {
_root.map_units[new_unit].unit_type = 'type6';
_root.map_units[new_unit].unit_category = 'turret';
} else {
_root.map_units[new_unit].unit_type = 'type0';
_root.map_units[new_unit].unit_category = 'inf';
}
_root.map_units[new_unit].unit_ID = v3;
_root.unit_actions.m_roster[_root.unit_actions.m_roster.length] = _root.map_units[new_unit].unit_ID;
_root.map_units[new_unit].unit_speed = minion_basestats('speed', this_type) + minion_modifiers('speed', this_type, false);
if (this_type.substr(-6, 6) == 'turret') {
if (this_type == 'basicturret') {
_root.map_units[new_unit].unit_HP = 250 + minion_modifiers('hp', this_type, false);
_root.map_units[new_unit].unit_turret = 'basic';
}
if (this_type == 'laserturret') {
_root.map_units[new_unit].unit_HP = 450 + minion_modifiers('hp', this_type, false);
_root.map_units[new_unit].unit_turret = 'laser';
}
if (this_type == 'repeaterturret') {
_root.map_units[new_unit].unit_HP = 350 + minion_modifiers('hp', this_type, false);
_root.map_units[new_unit].unit_turret = 'repeater';
}
if (this_type == 'aaturret') {
_root.map_units[new_unit].unit_HP = 500 + minion_modifiers('hp', this_type, false);
_root.map_units[new_unit].unit_turret = 'aa';
}
} else {
_root.map_units[new_unit].unit_HP = minion_basestats('hp', this_type) + minion_modifiers('hp', this_type, false);
}
_root.map_units[new_unit].unit_maxHP = _root.map_units[new_unit].unit_HP;
_root.map_units[new_unit].unit_power = minion_basestats('power', this_type);
if (_root.hench_healthbackup !== -1 and this_type == 'Henchman') {
_root.map_units[new_unit].unit_HP = _root.hench_healthbackup;
}
_root.map_units[new_unit].unit_status = 'spawn';
_root.map_units[new_unit].unit_animation = 'idle';
if (this_type.substr(-6, 6) == 'turret') {
if (_root.map_units[new_unit].unit_turret == 'basic') {
_root.map_units[new_unit].unit_attack = 20;
}
if (_root.map_units[new_unit].unit_turret == 'repeater') {
_root.map_units[new_unit].unit_attack = 8;
}
if (_root.map_units[new_unit].unit_turret == 'laser') {
_root.map_units[new_unit].unit_attack = 50;
}
if (_root.map_units[new_unit].unit_turret == 'aa') {
_root.map_units[new_unit].unit_attack = 20;
}
} else {
_root.map_units[new_unit].unit_attack = minion_basestats('dmg', this_type) + minion_modifiers('dmg', this_type, false);
}
_root.map_units[new_unit].sprite_spread.gotoAndStop(this_type);
trace('New turret (' + this_type + ')! ID ' + _root.map_units[new_unit].unit_ID + ' at location ' + _root.map_units[new_unit]._x + 'x vs ' + _root.map_units[new_unit]._y + ' y.');
trace('And the array is now ' + _root.player_turrets);
_root.last_ID_spawned = _root.map_units[new_unit].unit_ID;
}
function spawn_enemywave() {
this.enemy_shoppinglist();
creator = _root.shoppinglist_enemies.length;
spawnpoint = 's_' + String(Math.floor(Math.random() * 6) + 0);
a = 0;
while (a < creator) {
if (_root.shoppinglist_enemies[a].substr(0, 3) == 'Air') {
i = 501;
while (i < 601) {
if (_root.map_units.getInstanceAtDepth(i) == undefined) {
target_depth = i;
break;
}
++i;
}
} else {
i = 400;
while (i < 501) {
if (_root.map_units.getInstanceAtDepth(i) == undefined) {
target_depth = i;
break;
}
++i;
}
}
z = 1;
i = 0;
while (i < _root.unit_actions.e_roster.length) {
if (_root.unit_actions.e_roster[i] >= z) {
z = _root.unit_actions.e_roster[i] + 1;
}
++i;
}
new_unit = 'e_' + z;
duplicateMovieClip(_root.map_units.unit_empty, new_unit, target_depth);
var v5 = Math.floor(Math.random() * 401) - 150;
var v4 = _root.map_background[spawnpoint]._rotation - 90;
this_rotationY = v5 * Math.cos(0.0174532925199433 * v4);
this_rotationX = v5 * Math.sin(0.0174532925199433 * v4);
_root.map_units[new_unit]._x = _root.map_background[spawnpoint]._x;
_root.map_units[new_unit]._y = _root.map_background[spawnpoint]._y;
if (_root.map_units[new_unit]._rotation > 180) {
_root.map_units[new_unit]._y += this_rotationY;
_root.map_units[new_unit]._x -= this_rotationX;
} else {
_root.map_units[new_unit]._y -= this_rotationY;
_root.map_units[new_unit]._x += this_rotationX;
}
var v6 = _root.map_units.m_0._x - _root.map_units[new_unit]._x;
var v7 = _root.map_units.m_0._y - _root.map_units[new_unit]._y;
var v3 = int(Math.atan2(v7, v6) * 360 / 6.283185307179586 + 90);
if (v3 > 180) {
v3 = -180 - (180 - v3);
}
_root.map_units[new_unit]._rotation = v3;
_root.map_units[new_unit].unit_ID = z;
_root.unit_actions.e_roster[_root.unit_actions.e_roster.length] = _root.map_units[new_unit].unit_ID;
this.get_stats(_root.shoppinglist_enemies[a]);
_root.map_units[new_unit].unit_type = 'type' + this.get_type(_root.shoppinglist_enemies[a]);
_root.map_units[new_unit].unit_HP = unit_stats[0];
_root.map_units[new_unit].unit_speed = unit_stats[1];
_root.map_units[new_unit].unit_attack = unit_stats[2];
_root.map_units[new_unit].unit_category = unit_stats[3];
_root.map_units[new_unit].unit_status = 'idle';
_root.map_units[new_unit].unit_animation = 'idle';
_root.map_units[new_unit].sprite_spread.gotoAndStop(_root.shoppinglist_enemies[a]);
trace('Just Spawned: ' + _root.shoppinglist_enemies[a]);
++a;
}
}
function spawn_base(inNumber) {
new_unit = 'm_0';
target_depth = 100;
_root.unit_actions.m_roster[0] = 0;
duplicateMovieClip(_root.map_units.unit_empty, new_unit, target_depth);
_root.map_units[new_unit]._x = _root.map_background.base._x;
_root.map_units[new_unit]._y = _root.map_background.base._y;
_root.map_units[new_unit]._rotation = _root.map_background.base._rotation;
_root.map_units[new_unit].unit_ID = 0;
_root.map_units[new_unit].unit_type = 'type7';
_root.map_units[new_unit].unit_HP = 1000;
_root.map_units[new_unit].unit_maxHP = _root.map_units[new_unit].unit_HP;
_root.map_units[new_unit].unit_speed = 0;
_root.map_units[new_unit].unit_attack = 0;
_root.map_units[new_unit].unit_category = 'inf';
_root.map_units[new_unit].unit_status = 'base';
_root.map_units[new_unit].unit_animation = 'idle';
_root.map_units[new_unit].sprite_spread.gotoAndStop('base');
}
function get_type(inString) {
var v3 = Math.floor(Math.random() * 2) + 1;
var v2 = Math.floor(Math.random() * 3) + 1;
if (inString == 'Soldier') {
return String(v2);
}
if (inString == 'Ninja') {
return String(v3);
}
if (inString == 'Spec-Ops') {
return '2';
}
if (inString == 'Commando') {
return '5';
}
if (inString == 'Tank1') {
return '5';
}
if (inString == 'Superhero') {
return '5';
}
if (inString == 'Air1') {
return '5';
}
if (inString == 'Tank2') {
return '5';
}
if (inString == 'Agent') {
return '3';
}
if (inString == 'Air2') {
return '5';
}
if (inString == 'Tank3') {
return '5';
}
}
function get_stats(inString) {
if (inString == 'Soldier') {
unit_stats[0] = 70;
unit_stats[1] = 1.8;
unit_stats[2] = 10;
unit_stats[3] = 'inf';
}
if (inString == 'Ninja') {
unit_stats[0] = 120;
unit_stats[1] = 3;
unit_stats[2] = 20;
unit_stats[3] = 'inf';
}
if (inString == 'Spec-Ops') {
unit_stats[0] = 100;
unit_stats[1] = 2;
unit_stats[2] = 8;
unit_stats[3] = 'inf';
}
if (inString == 'Commando') {
unit_stats[0] = 280;
unit_stats[1] = 1;
unit_stats[2] = 7;
unit_stats[3] = 'inf';
}
if (inString == 'Tank1') {
unit_stats[0] = 550;
unit_stats[1] = 0.8;
unit_stats[2] = 30;
unit_stats[3] = 'tank';
}
if (inString == 'Superhero') {
unit_stats[0] = 850;
unit_stats[1] = 1.5;
unit_stats[2] = 45;
unit_stats[3] = 'inf';
}
if (inString == 'Air1') {
unit_stats[0] = 230;
unit_stats[1] = 1.7;
unit_stats[2] = 20;
unit_stats[3] = 'air';
}
if (inString == 'Tank2') {
unit_stats[0] = 880;
unit_stats[1] = 1;
unit_stats[2] = 50;
unit_stats[3] = 'tank';
}
if (inString == 'Agent') {
unit_stats[0] = 150;
unit_stats[1] = 3;
unit_stats[2] = 40;
unit_stats[3] = 'inf';
}
if (inString == 'Air2') {
unit_stats[0] = 450;
unit_stats[1] = 1.3;
unit_stats[2] = 20;
unit_stats[3] = 'air';
}
if (inString == 'Tank3') {
unit_stats[0] = 1500;
unit_stats[1] = 0.8;
unit_stats[2] = 95;
unit_stats[3] = 'tank';
}
if (unit_stats[3] == 'inf') {
if (_root.player_currentbase == 4 or _root.player_currentbase == 8) {
unit_stats[0] -= Math.floor(unit_stats[0] * 0.35);
}
}
if (unit_stats[3] == 'tank') {
unit_stats[0] -= Math.floor(unit_stats[0] * (_root.worldmod_a[0] * 0.006));
}
if (unit_stats[3] == 'air') {
unit_stats[0] -= Math.floor(unit_stats[0] * (_root.worldmod_a[0] * 0.006));
}
unit_stats[2] -= Math.floor(unit_stats[2] * (_root.worldmod_na[0] * 0.006));
if (_root.event_influence('prototypearmor', 'any', 'any') == true and unit_stats[3] == 'inf') {
unit_stats[0] += 60;
}
}
function enemy_shoppinglist() {
_root.shoppinglist_enemies = _root.shoppinglist_enemies.splice(1);
var v4 = _root.player_level * 5 + Math.floor(Math.random() * (_root.player_level * 1.5)) + 1;
if (_root.player_level < 3) {
v4 = Math.floor(v4 * 0.5);
}
if (_root.player_level < 6 and _root.player_level >= 3) {
v4 = Math.floor(v4 * 0.75);
}
var v2;
i = 0;
while (v4 > 0) {
shoppinglist_enemies[i] == '';
var v3 = Math.floor(Math.random() * 20) + 1;
if (_root.player_level == 1) {
if (v3 <= 16) {
v2 = 'Soldier';
v4 -= 1;
}
if (v3 > 16) {
v2 = 'Ninja';
v4 -= 3;
}
}
if (_root.player_level == 2) {
if (v3 <= 10) {
v2 = 'Soldier';
v4 -= 1;
}
if (v3 > 10 and v3 <= 17) {
v2 = 'Ninja';
v4 -= 3;
}
if (v3 > 17) {
v2 = 'Spec-Ops';
v4 -= 3;
}
}
if (_root.player_level == 3) {
if (v3 <= 8) {
v2 = 'Soldier';
v4 -= 1;
}
if (v3 > 8 and v3 <= 13) {
v2 = 'Ninja';
v4 -= 3;
}
if (v3 > 13 and v3 <= 19) {
v2 = 'Spec-Ops';
v4 -= 3;
}
if (v3 == 20) {
v2 = 'Commando';
v4 -= 10;
}
}
if (_root.player_level == 4) {
if (v3 <= 6) {
v2 = 'Soldier';
v4 -= 2;
}
if (v3 > 6 and v3 <= 11) {
v2 = 'Ninja';
v4 -= 3;
}
if (v3 > 11 and v3 <= 18) {
v2 = 'Spec-Ops';
v4 -= 3;
}
if (v3 == 19) {
v2 = 'Commando';
v4 -= 10;
}
if (v3 == 20) {
v2 = 'Tank1';
v4 -= 16;
}
}
if (_root.player_level == 5) {
if (v3 <= 5) {
v2 = 'Soldier';
v4 -= 2;
}
if (v3 > 5 and v3 <= 8) {
v2 = 'Ninja';
v4 -= 3;
}
if (v3 > 8 and v3 <= 16) {
v2 = 'Spec-Ops';
v4 -= 3;
}
if (v3 == 17) {
v2 = 'Commando';
v4 -= 10;
}
if (v3 == 18) {
v2 = 'Tank1';
v4 -= 16;
}
if (v3 == 19) {
v2 = 'Air1';
v4 -= 12;
}
if (v3 == 20) {
v2 = 'Superhero';
v4 -= 15;
}
}
if (_root.player_level == 6) {
if (v3 <= 4) {
v2 = 'Soldier';
v4 -= 2;
}
if (v3 > 4 and v3 <= 7) {
v2 = 'Ninja';
v4 -= 3;
}
if (v3 > 7 and v3 <= 15) {
v2 = 'Spec-Ops';
v4 -= 3;
}
if (v3 == 16) {
v2 = 'Commando';
v4 -= 10;
}
if (v3 == 17) {
v2 = 'Tank1';
v4 -= 16;
}
if (v3 == 18) {
v2 = 'Air1';
v4 -= 12;
}
if (v3 == 19) {
v2 = 'Superhero';
v4 -= 15;
}
if (v3 == 20) {
v2 = 'Tank2';
v4 -= 20;
}
}
if (_root.player_level == 7) {
if (v3 <= 3) {
v2 = 'Soldier';
v4 -= 2;
}
if (v3 > 3 and v3 <= 6) {
v2 = 'Ninja';
v4 -= 3;
}
if (v3 > 6 and v3 <= 14) {
v2 = 'Spec-Ops';
v4 -= 3;
}
if (v3 == 15) {
v2 = 'Agent';
v4 -= 22;
}
if (v3 == 16) {
v2 = 'Commando';
v4 -= 10;
}
if (v3 == 17) {
v2 = 'Tank1';
v4 -= 16;
}
if (v3 == 18) {
v2 = 'Air1';
v4 -= 12;
}
if (v3 == 19) {
v2 = 'Superhero';
v4 -= 15;
}
if (v3 == 20) {
v2 = 'Tank2';
v4 -= 20;
}
}
if (_root.player_level == 8) {
if (v3 <= 5) {
v2 = 'Ninja';
v4 -= 3;
}
if (v3 > 5 and v3 <= 13) {
v2 = 'Spec-Ops';
v4 -= 3;
}
if (v3 == 14) {
v2 = 'Air2';
v4 -= 18;
}
if (v3 == 15) {
v2 = 'Agent';
v4 -= 22;
}
if (v3 == 16) {
v2 = 'Commando';
v4 -= 5;
}
if (v3 == 17) {
v2 = 'Tank1';
v4 -= 16;
}
if (v3 == 18) {
v2 = 'Air1';
v4 -= 12;
}
if (v3 == 19) {
v2 = 'Superhero';
v4 -= 15;
}
if (v3 == 20) {
v2 = 'Tank2';
v4 -= 20;
}
}
if (_root.player_level == 9) {
if (v3 <= 5) {
v2 = 'Ninja';
v4 -= 2;
}
if (v3 > 5 and v3 <= 12) {
v2 = 'Spec-Ops';
v4 -= 2;
}
if (v3 == 13) {
v2 = 'Tank3';
v4 -= 25;
}
if (v3 == 14) {
v2 = 'Air2';
v4 -= 18;
}
if (v3 == 15) {
v2 = 'Agent';
v4 -= 22;
}
if (v3 == 16) {
v2 = 'Commando';
v4 -= 10;
}
if (v3 == 17) {
v2 = 'Tank1';
v4 -= 16;
}
if (v3 == 18) {
v2 = 'Air1';
v4 -= 12;
}
if (v3 == 19) {
v2 = 'Superhero';
v4 -= 15;
}
if (v3 == 20) {
v2 = 'Tank2';
v4 -= 20;
}
}
if (_root.player_level == 10) {
if (v3 <= 10) {
v2 = 'Spec-Ops';
v4 -= 3;
}
if (v3 > 10 and v3 <= 12) {
v2 = 'Tank3';
v4 -= 25;
}
if (v3 > 12 and v3 <= 15) {
v2 = 'Air2';
v4 -= 18;
}
if (v3 > 15 and v3 <= 18) {
v2 = 'Agent';
v4 -= 22;
}
if (v3 > 18 and v3 <= 20) {
v2 = 'Superhero';
v4 -= 15;
}
}
if (_root.player_currentbase == 1) {
} else {
if (_root.player_currentbase == 2) {
if (v2 == 'Air1' or v2 == 'Air2' or v2 == 'Air3') {
v2 = 'Spec-Ops';
v4 += 15;
}
} else {
if (_root.player_currentbase == 3) {
if (v2 == 'Air1' or v2 == 'Air2' or v2 == 'Air3' or v2 == 'Tank1' or v2 == 'Tank2' or v2 == 'Tank3') {
v2 = 'Spec-Ops';
v4 += 15;
}
} else {
if (_root.player_currentbase == 4) {
} else {
if (_root.player_currentbase == 5) {
} else {
if (_root.player_currentbase == 6) {
if (v2 == 'Tank1' or v2 == 'Tank2' or v2 == 'Tank3') {
if (Math.floor(Math.random() * 2) + 1 == 1) {
v2 = 'Spec-Ops';
v4 += 15;
}
}
} else {
if (_root.player_currentbase == 7) {
} else {
if (_root.player_currentbase == 8) {
if (v2 == 'Tank1' or v2 == 'Tank2' or v2 == 'Tank3') {
if (Math.floor(Math.random() * 2) + 1 == 1) {
v2 = 'Spec-Ops';
v4 += 15;
}
}
}
}
}
}
}
}
}
}
if (i > 30) {
v4 = 0;
}
_root.shoppinglist_enemies[i] = v2;
++i;
}
}
function enemy_modifiers() {}
function enemy_typedata() {}
function minion_modifiers(inString, this_type, inScience) {
var v3 = 0;
if (inString == 'hp' and this_type == 'Minion') {
if (_root.player_science2[2] == true and inScience == false or inScience == '2c') {
v3 += 15;
trace('Minion spawned with bonus health Sc2');
}
if (_root.player_science3[3] == true and inScience == false or inScience == '3d') {
v3 += 15;
trace('Minion spawned with bonus health Sc3');
}
} else {
if (inString == 'hp' and this_type.substr(-6, 6) == 'turret') {
if (_root.player_science2[0] == true and inScience == false or inScience == '2a') {
v3 += 20;
trace('Turret spawned with bonus health Sc2');
}
if (_root.player_science4[0] == true and inScience == false or inScience == '4a') {
v3 += 20;
trace('Turret spawned with bonus health Sc4');
}
}
}
if (inString == 'dmg' and this_type == 'Minion') {
if (_root.player_science2[1] == true and inScience == false or inScience == '2b') {
v3 += 2;
trace('Minion spawned with bonus dmg Sc2');
}
if (_root.player_science3[1] == true and inScience == false or inScience == '3b') {
v3 += 2;
trace('Minion spawned with bonus dmg Sc3');
}
}
if (inString == 'speed' and this_type == 'Minion') {
if (_root.player_science4[2] == true and inScience == false or inScience == '4c') {
v3 += 0.4;
trace('Minion spawned with bonus speed Sc4');
}
}
return v3;
}
function minion_basestats(inString, this_type) {
if (this_type == 'Minion') {
if (inString == 'hp') {
return 100;
}
if (inString == 'dmg') {
return 10;
}
if (inString == 'speed') {
return 2;
}
if (inString == 'power') {
return 'none';
}
}
if (this_type == 'Henchman') {
if (_root.hench_roster == 'Bodyguard') {
if (inString == 'hp') {
return 300;
}
if (inString == 'dmg') {
return 20;
}
if (inString == 'speed') {
return 2;
}
if (inString == 'power') {
return 'none';
}
}
if (_root.hench_roster == 'Brutus') {
if (inString == 'hp') {
return 400;
}
if (inString == 'dmg') {
return 40;
}
if (inString == 'speed') {
return 1.7;
}
if (inString == 'power') {
return 'charge';
}
}
if (_root.hench_roster == 'Tom') {
if (inString == 'hp') {
return 650;
}
if (inString == 'dmg') {
return 20;
}
if (inString == 'speed') {
return 1.9;
}
if (inString == 'power') {
return 'frightening';
}
}
if (_root.hench_roster == 'Femme') {
if (inString == 'hp') {
return 300;
}
if (inString == 'dmg') {
return 20;
}
if (inString == 'speed') {
return 2.2;
}
if (inString == 'power') {
return 'dodge';
}
}
if (_root.hench_roster == 'Muerto') {
if (inString == 'hp') {
return 600;
}
if (inString == 'dmg') {
return 30;
}
if (inString == 'speed') {
return 2;
}
if (inString == 'power') {
return 'leadership';
}
}
if (_root.hench_roster == 'Ophelia') {
if (inString == 'hp') {
return 300;
}
if (inString == 'dmg') {
return 10;
}
if (inString == 'speed') {
return 1.9;
}
if (inString == 'power') {
return 'morale';
}
}
if (_root.hench_roster == 'IV') {
if (inString == 'hp') {
return 900;
}
if (inString == 'dmg') {
return 45;
}
if (inString == 'speed') {
return 2.6;
}
if (inString == 'power') {
return 'charge';
}
}
if (_root.hench_roster == 'Weeman') {
if (inString == 'hp') {
return 1500;
}
if (inString == 'dmg') {
return 30;
}
if (inString == 'speed') {
return 1.7;
}
if (inString == 'power') {
return 'leadership';
}
}
if (_root.hench_roster == 'Agent') {
if (inString == 'hp') {
return 500;
}
if (inString == 'dmg') {
return 70;
}
if (inString == 'speed') {
return 2.1;
}
if (inString == 'power') {
return 'dodge';
}
}
if (_root.hench_roster == 'Mandible') {
if (inString == 'hp') {
return 2500;
}
if (inString == 'dmg') {
return 40;
}
if (inString == 'speed') {
return 1.8;
}
if (inString == 'power') {
return 'leadership';
}
}
if (_root.hench_roster == 'Afro') {
if (inString == 'hp') {
return 800;
}
if (inString == 'dmg') {
return 100;
}
if (inString == 'speed') {
return 3.5;
}
if (inString == 'power') {
return 'dodge';
}
}
if (_root.hench_roster == 'Valentine') {
if (inString == 'hp') {
return 1700;
}
if (inString == 'dmg') {
return 120;
}
if (inString == 'speed') {
return 3;
}
if (inString == 'power') {
return 'frightening';
}
}
}
}
var unit_stats = new Array();
}
}
movieClip 689 {
frame 1 {
this.timer = 1;
}
frame 2 {
this.timer = 2;
}
frame 3 {
this.timer = 3;
}
frame 4 {
this.timer = 4;
}
frame 5 {
this.timer = 5;
}
frame 6 {
this.timer = 6;
}
frame 7 {
this.timer = 7;
}
frame 8 {
this.timer = 8;
}
}
movieClip 693 {
}
movieClip 694 {
}
movieClip 695 {
frame 1 {
stop();
}
}
movieClip 697 {
}
movieClip 699 {
}
movieClip 701 {
}
movieClip 703 {
}
movieClip 705 {
}
movieClip 708 {
}
movieClip 732 {
frame 2 {
var i = Math.floor(Math.random() * 2) + 1;
if (i == 1) {
gotoAndPlay('star1');
} else {
if (i == 2) {
gotoAndPlay('star2');
}
}
}
frame 20 {
gotoAndStop(1);
}
frame 39 {
gotoAndStop(1);
}
}
movieClip 733 {
}
movieClip 745 {
frame 2 {
var i = Math.floor(Math.random() * 20) + 1;
if (i == 1) {
this._rotation = Math.floor(Math.random() * 361) - 180;
gotoAndPlay('star1');
} else {
if (i == 2) {
this._rotation = Math.floor(Math.random() * 361) - 180;
gotoAndPlay('star2');
} else {
gotoAndPlay(1);
}
}
}
frame 11 {
gotoAndStop(1);
}
frame 19 {
gotoAndStop(1);
}
}
movieClip 746 {
}
movieClip 782 {
frame 1 {
stop();
}
frame 2 {
this._x = Math.floor(Math.random() * 41) - 20;
this._y = Math.floor(Math.random() * 41) - 20;
i = Math.floor(Math.random() * 3) + 1;
if (i == 2) {
gotoAndPlay('basic2');
}
if (i == 3) {
gotoAndPlay('basic2');
}
}
instance range_move of movieClip 708 {
onClipEvent (enterFrame) {
_parent.play();
}
}
frame 7 {
gotoAndStop(1);
}
frame 13 {
gotoAndStop(1);
}
frame 19 {
gotoAndStop(1);
}
frame 20 {
this._x = Math.floor(Math.random() * 21) - 10;
this._y = Math.floor(Math.random() * 21) - 10;
}
frame 40 {
gotoAndStop(1);
}
frame 41 {
this._x = Math.floor(Math.random() * 41) - 20;
this._y = Math.floor(Math.random() * 41) - 20;
}
frame 61 {
gotoAndStop(1);
}
frame 62 {
this._x = Math.floor(Math.random() * 41) - 20;
this._y = Math.floor(Math.random() * 41) - 20;
}
frame 71 {
gotoAndStop(1);
}
frame 72 {
this._x = Math.floor(Math.random() * 21) - 10;
this._y = Math.floor(Math.random() * 21) - 10;
}
frame 81 {
gotoAndStop(1);
}
frame 82 {
this._x = Math.floor(Math.random() * 41) - 20;
this._y = Math.floor(Math.random() * 41) - 20;
i = Math.floor(Math.random() * 2) + 1;
if (i == 2) {
gotoAndPlay('metal2');
}
}
frame 90 {
gotoAndStop(1);
}
frame 99 {
gotoAndStop(1);
}
}
movieClip 791 {
}
movieClip 792 {
frame 2 {
var i = Math.floor(Math.random() * 100) + 1;
if (i == 1) {
this._rotation = Math.floor(Math.random() * 361) - 180;
gotoAndPlay('star1');
} else {
if (i == 2) {
this._rotation = Math.floor(Math.random() * 361) - 180;
gotoAndPlay('star2');
} else {
gotoAndPlay(1);
}
}
}
frame 21 {
gotoAndPlay(1);
}
frame 62 {
gotoAndPlay(1);
}
}
movieClip 793 {
}
movieClip 796 {
}
movieClip 799 {
frame 1 {
stop();
if (_root.power_active[1] == true) {
gotoAndPlay('defense1');
}
if (_root.power_active[2] == true) {
gotoAndPlay('defense2');
}
if (_root.power_active[3] == true) {
gotoAndPlay('defense3');
}
}
frame 12 {
if (_root.power_active[0] == true) {
gotoAndPlay('defense0');
} else {
gotoAndStop(1);
}
}
frame 23 {
if (_root.power_active[1] == true) {
gotoAndPlay('defense1');
} else {
gotoAndStop(1);
}
}
frame 36 {
if (_root.power_active[2] == true) {
gotoAndPlay('defense2');
} else {
gotoAndStop(1);
}
}
frame 49 {
if (_root.power_active[3] == true) {
gotoAndPlay('defense3');
} else {
gotoAndStop(1);
}
}
frame 73 {
gotoAndStop(1);
}
}
// unknown tag 88 length 67
movieClip 805 {
frame 1 {
gotoAndStop(Math.floor(Math.random() * 4) + 1);
}
}
movieClip 814 {
frame 1 {
gotoAndStop(Math.floor(Math.random() * 4) + 1);
}
}
movieClip 823 {
frame 1 {
gotoAndStop(Math.floor(Math.random() * 7) + 1);
if (_parent._parent._parent._parent._parent.unit_ID == _root.hench_id) {
if (_parent._parent._parent._parent._parent.unit_power == 'morale') {
gotoAndStop(8);
} else {
gotoAndStop(9);
}
}
}
}
movieClip 828 {
frame 1 {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
}
}
movieClip 834 {
frame 1 {
gotoAndStop(Math.floor(Math.random() * 4) + 1);
}
}
movieClip 835 {
}
movieClip 836 {
frame 1 {
this.currentmessage = '';
stop();
}
frame 2 {
gotoAndPlay(this.currentmessage);
}
frame 3 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 29 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 30 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 56 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 57 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 83 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 84 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 110 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 111 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 137 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 138 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 167 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 168 {
this.textmessage.gotoAndStop(this.currentmessage);
_root.voicebox.play_voice('hail');
}
frame 194 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 195 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 221 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 222 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 248 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 249 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 275 {
this.currentmessage = '';
gotoAndStop(1);
}
frame 276 {
this.textmessage.gotoAndStop(this.currentmessage);
}
frame 302 {
this.currentmessage = '';
gotoAndStop(1);
}
}
movieClip 838 {
}
movieClip 840 {
}
movieClip 842 {
}
movieClip 915 {
frame 1 {
gotoAndPlay('w' + _root.player_currentweapon);
}
frame 12 {
stop();
}
frame 18 {
stop();
}
frame 28 {
stop();
}
frame 37 {
stop();
}
frame 45 {
stop();
}
frame 61 {
stop();
}
frame 70 {
stop();
}
}
movieClip 922 {
}
movieClip 924 {
}
movieClip 926 {
}
movieClip 928 {
}
movieClip 931 {
}
movieClip 933 {
}
movieClip 945 {
frame 1 {
stop();
}
frame 15 {
var randomIdle = Math.floor(Math.random() * 2) + 1;
if (randomIdle == 1) {
gotoAndPlay('idle');
}
}
frame 47 {
var randomIdle = Math.floor(Math.random() * 2) + 1;
if (randomIdle == 1) {
gotoAndPlay('idle');
}
}
frame 59 {
gotoAndPlay('idle');
}
frame 60 {
_parent._parent.unit_ready = true;
}
frame 69 {
_root.unit_actions.minion_messagecenter(_parent._parent._name, 'salute');
}
frame 78 {
if (_parent.thiscolored == 1) {
gotoAndPlay('saluteloop');
}
}
frame 90 {
_parent._parent.unit_ready = false;
gotoAndPlay('idle');
}
frame 104 {
gotoAndPlay('walk');
}
frame 116 {
gotoAndPlay('run');
}
frame 117 {
_parent._parent.unit_ready = true;
}
frame 140 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
if (Math.floor(Math.random() * 40) + 1 == 1) {
_root.voicebox.play_voice('fight');
}
if (_root.power_active[3] == true) {
gotoAndPlay('attack');
}
}
frame 148 {
gotoAndPlay('attack');
}
frame 161 {
_parent._parent.unit_ready = false;
stop();
}
frame 164 {
_root.voicebox.play_voice('die');
}
frame 175 {
}
frame 209 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 947 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1 and _parent.unit_status !== 'retreating') {
if (_parent.unit_status == 'guard' or _parent.unit_status == 'move' or _parent.unit_status == 'idle' or _parent.unit_status == 'wander') {
_parent.unit_status = 'salute';
_parent._rotation = 180;
}
var thiscolored = 1;
this.sprite.selector.gotoAndStop('type0');
_root.unitdetail.this_type = 'type0';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead' and _parent.unit_status !== 'retreating') {
if (_parent.unit_animation == 'salute') {
_parent.unit_ready = false;
}
_root.unit_actions.attack_minionflee(_parent.unit_ID);
trace('Force-retreating ' + _parent.unit_ID);
}
}
}
movieClip 949 {
}
movieClip 951 {
}
movieClip 953 {
}
movieClip 955 {
}
movieClip 957 {
}
movieClip 974 {
}
movieClip 976 {
}
movieClip 980 {
}
movieClip 982 {
}
movieClip 984 {
}
movieClip 989 {
frame 1 {
stop();
}
frame 51 {
gotoAndPlay('idle');
}
frame 71 {
gotoAndPlay('walk');
}
frame 79 {
gotoAndPlay('run');
}
frame 80 {
_parent._parent.unit_ready = true;
}
frame 99 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 110 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 116 {
gotoAndPlay('attack');
}
frame 132 {
_parent._parent.unit_ready = false;
stop();
}
frame 146 {
}
frame 179 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 990 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Ninja');
_root.unitdetail.this_type = 'Ninja';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 992 {
}
movieClip 994 {
}
movieClip 996 {
}
movieClip 998 {
}
movieClip 1000 {
}
movieClip 1019 {
}
movieClip 1040 {
}
movieClip 1042 {
}
movieClip 1046 {
}
movieClip 1050 {
}
movieClip 1052 {
}
movieClip 1058 {
frame 1 {
stop();
}
frame 29 {
gotoAndPlay('idle');
}
frame 57 {
gotoAndPlay('walk');
}
frame 73 {
gotoAndPlay('run');
}
frame 74 {
_parent._parent.unit_ready = true;
}
frame 104 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 109 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 114 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 124 {
gotoAndPlay('attack');
}
frame 157 {
_parent._parent.unit_ready = false;
stop();
}
frame 172 {
}
frame 222 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1059 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Spec-Ops');
_root.unitdetail.this_type = 'Spec-Ops';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1061 {
}
movieClip 1063 {
}
movieClip 1065 {
}
movieClip 1067 {
}
movieClip 1069 {
}
movieClip 1071 {
}
movieClip 1073 {
}
movieClip 1075 {
}
movieClip 1077 {
}
movieClip 1092 {
}
movieClip 1096 {
}
movieClip 1098 {
}
movieClip 1101 {
}
movieClip 1111 {
frame 1 {
stop();
}
frame 29 {
gotoAndPlay('idle');
}
frame 53 {
gotoAndPlay('walk');
}
frame 65 {
gotoAndPlay('run');
}
frame 66 {
_parent._parent.unit_ready = true;
}
frame 83 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 93 {
gotoAndPlay('attack');
}
frame 106 {
_parent._parent.unit_ready = false;
stop();
}
frame 120 {
}
frame 162 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1112 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Agent');
_root.unitdetail.this_type = 'Agent';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1114 {
}
movieClip 1120 {
}
movieClip 1122 {
}
movieClip 1124 {
}
movieClip 1126 {
}
movieClip 1128 {
}
movieClip 1132 {
}
movieClip 1134 {
}
movieClip 1194 {
}
movieClip 1196 {
}
movieClip 1199 {
}
movieClip 1201 {
}
movieClip 1203 {
}
movieClip 1206 {
frame 1 {
stop();
}
frame 25 {
gotoAndPlay('idle');
}
frame 68 {
gotoAndPlay('walk');
}
frame 92 {
gotoAndPlay('run');
}
frame 93 {
_parent._parent.unit_ready = true;
}
frame 127 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 131 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 135 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 140 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 145 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 148 {
_parent._parent.currently_firing = false;
}
frame 151 {
gotoAndPlay('attack');
}
frame 177 {
_parent._parent.unit_ready = false;
stop();
}
frame 191 {
}
frame 245 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1207 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Commando');
_root.unitdetail.this_type = 'Commando';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1209 {
}
movieClip 1211 {
}
movieClip 1213 {
}
movieClip 1229 {
}
movieClip 1233 {
}
movieClip 1250 {
}
movieClip 1252 {
}
movieClip 1266 {
frame 1 {
stop();
}
frame 9 {
gotoAndPlay('idle');
}
frame 18 {
gotoAndPlay('walk');
}
frame 27 {
gotoAndPlay('run');
}
frame 28 {
_parent._parent.unit_ready = true;
}
frame 52 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 62 {
_parent._parent.currently_firing = false;
}
frame 90 {
gotoAndPlay('attack');
}
frame 123 {
_parent._parent.unit_ready = false;
stop();
}
frame 137 {
}
frame 167 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1267 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Tank1');
_root.unitdetail.this_type = 'Tank1';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1269 {
}
movieClip 1271 {
}
movieClip 1298 {
}
movieClip 1305 {
}
movieClip 1314 {
}
movieClip 1316 {
}
movieClip 1321 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay('idle');
}
frame 19 {
gotoAndPlay('walk');
}
frame 28 {
gotoAndPlay('run');
}
frame 29 {
_parent._parent.unit_ready = true;
}
frame 67 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 104 {
_parent._parent.currently_firing = false;
}
frame 117 {
gotoAndPlay('attack');
}
frame 169 {
_parent._parent.unit_ready = false;
stop();
}
frame 183 {
}
frame 250 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1322 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Tank2');
_root.unitdetail.this_type = 'Tank2';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1325 {
}
movieClip 1336 {
}
movieClip 1369 {
}
movieClip 1381 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay('idle');
}
frame 19 {
gotoAndPlay('walk');
}
frame 28 {
gotoAndPlay('run');
}
frame 29 {
_parent._parent.unit_ready = true;
}
frame 71 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 82 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 108 {
_parent._parent.currently_firing = false;
}
frame 126 {
gotoAndPlay('attack');
}
frame 189 {
_parent._parent.unit_ready = false;
stop();
}
frame 203 {
}
frame 233 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1382 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Tank3');
_root.unitdetail.this_type = 'Tank3';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1384 {
}
movieClip 1386 {
}
movieClip 1388 {
}
movieClip 1390 {
}
movieClip 1392 {
}
movieClip 1411 {
}
movieClip 1414 {
}
movieClip 1416 {
}
movieClip 1426 {
frame 1 {
stop();
}
frame 9 {
gotoAndPlay('idle');
}
frame 37 {
gotoAndPlay('walk');
}
frame 53 {
gotoAndPlay('run');
}
frame 54 {
_parent._parent.unit_ready = true;
}
frame 83 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 106 {
gotoAndPlay('attack');
}
frame 121 {
_parent._parent.unit_ready = false;
stop();
}
frame 136 {
}
frame 177 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1427 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Soldier');
_root.unitdetail.this_type = 'Soldier';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1430 {
}
movieClip 1432 {
}
movieClip 1434 {
}
movieClip 1436 {
}
movieClip 1442 {
}
movieClip 1454 {
}
movieClip 1457 {
}
movieClip 1475 {
}
movieClip 1482 {
}
movieClip 1484 {
}
movieClip 1492 {
}
movieClip 1498 {
}
movieClip 1504 {
frame 1 {
stop();
}
frame 26 {
gotoAndPlay('idle');
}
frame 54 {
gotoAndPlay('walk');
}
frame 70 {
gotoAndPlay('run');
}
frame 71 {
_parent._parent.unit_ready = true;
}
frame 81 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 103 {
gotoAndPlay('attack');
}
frame 108 {
_parent._parent.unit_ready = false;
stop();
}
frame 122 {
}
frame 185 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1505 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Superhero');
_root.unitdetail.this_type = 'Superhero';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1507 {
}
movieClip 1509 {
}
movieClip 1510 {
}
movieClip 1524 {
}
movieClip 1525 {
frame 21 {
stop();
}
}
movieClip 1527 {
frame 1 {
stop();
}
frame 9 {
gotoAndPlay('idle');
}
frame 18 {
gotoAndPlay('walk');
}
frame 27 {
gotoAndPlay('run');
}
frame 28 {
_parent._parent.unit_ready = true;
}
frame 40 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 51 {
_parent._parent.currently_firing = false;
}
frame 54 {
gotoAndPlay('attack');
}
frame 58 {
_parent._parent.unit_ready = false;
stop();
}
frame 76 {
}
frame 137 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1528 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Air1');
_root.unitdetail.this_type = 'Air1';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1530 {
}
movieClip 1543 {
frame 1 {
stop();
}
frame 9 {
gotoAndPlay('idle');
}
frame 18 {
gotoAndPlay('walk');
}
frame 27 {
gotoAndPlay('run');
}
frame 28 {
_parent._parent.unit_ready = true;
}
frame 40 {
_parent._parent.currently_firing = true;
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 51 {
_parent._parent.currently_firing = false;
}
frame 54 {
gotoAndPlay('attack');
}
frame 58 {
_parent._parent.unit_ready = false;
stop();
}
frame 76 {
}
frame 137 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1544 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1) {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Air2');
_root.unitdetail.this_type = 'Air2';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_minionstargetthis(_parent.unit_ID);
trace('Force-targetting ' + _parent.unit_ID);
}
}
}
movieClip 1545 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1546 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1547 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1549 {
}
movieClip 1551 {
frame 1 {
var dangerzone = _root.map_units['m_' + _root.hench_id].unit_maxHP * 0.15;
if (dangerzone > 200) {
dangerzone = 200;
}
if (_root.map_units['m_' + _root.hench_id].unit_HP < dangerzone) {
gotoAndPlay('lowhealth');
_root.unit_actions.minion_messagecenter('m_' + _root.hench_id, 'help');
}
}
frame 12 {
var dangerzone = _root.map_units['m_' + _root.hench_id].unit_maxHP * 0.15;
if (dangerzone > 200) {
dangerzone = 200;
}
if (_root.map_units['m_' + _root.hench_id].unit_HP < dangerzone) {
gotoAndPlay('lowhealth');
_root.unit_actions.minion_messagecenter('m_' + _root.hench_id, 'help');
}
}
frame 23 {
var dangerzone = _root.map_units['m_' + _root.hench_id].unit_maxHP * 0.15;
if (dangerzone > 200) {
dangerzone = 200;
}
if (_root.map_units['m_' + _root.hench_id].unit_HP < dangerzone) {
gotoAndPlay('lowhealth');
_root.unit_actions.minion_messagecenter('m_' + _root.hench_id, 'help');
}
}
frame 34 {
var dangerzone = _root.map_units['m_' + _root.hench_id].unit_maxHP * 0.15;
if (dangerzone > 200) {
dangerzone = 200;
}
if (_root.map_units['m_' + _root.hench_id].unit_HP < dangerzone) {
gotoAndPlay('lowhealth');
_root.unit_actions.minion_messagecenter('m_' + _root.hench_id, 'help');
}
}
frame 44 {
var dangerzone = _root.map_units['m_' + _root.hench_id].unit_maxHP * 0.15;
if (dangerzone > 200) {
dangerzone = 200;
}
if (_root.map_units['m_' + _root.hench_id].unit_HP < dangerzone) {
gotoAndPlay('lowhealth');
_root.unit_actions.minion_messagecenter('m_' + _root.hench_id, 'help');
}
}
frame 54 {
var dangerzone = _root.map_units['m_' + _root.hench_id].unit_maxHP * 0.15;
if (dangerzone > 200) {
dangerzone = 200;
}
if (_root.map_units['m_' + _root.hench_id].unit_HP < dangerzone) {
gotoAndPlay('lowhealth');
_root.unit_actions.minion_messagecenter('m_' + _root.hench_id, 'help');
} else {
gotoAndPlay(1);
}
}
frame 63 {
var dangerzone = _root.map_units['m_' + _root.hench_id].unit_maxHP * 0.15;
if (dangerzone > 200) {
dangerzone = 200;
}
if (_root.map_units['m_' + _root.hench_id].unit_HP >= dangerzone) {
gotoAndPlay(1);
} else {
gotoAndPlay('lowhealth');
}
}
}
movieClip 1552 {
}
movieClip 1566 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1578 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1591 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1595 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1608 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1612 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1613 {
}
movieClip 1632 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1637 {
frame 4 {
stop();
}
}
movieClip 1638 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1664 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1678 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1691 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1704 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1717 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1722 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 1723 {
frame 1 {
stop();
}
frame 24 {
gotoAndPlay('idle');
}
frame 33 {
gotoAndPlay('charge');
}
frame 34 {
_parent._parent.unit_dodge = true;
}
frame 46 {
_parent._parent.unit_dodge = false;
stop();
}
frame 63 {
gotoAndPlay('walk');
}
frame 76 {
gotoAndPlay('run');
}
frame 77 {
_parent._parent.unit_ready = true;
if (_root.hench_roster == 'Afro' or _root.hench_roster == 'Brutus') {
gotoAndPlay('draw3');
} else {
if (_root.hench_roster == 'IV' or _root.hench_roster == 'Femme' or _root.hench_roster == 'Agent' or _root.hench_roster == 'Muerto') {
gotoAndPlay('draw2');
}
}
}
frame 89 {
if (_root.hench_roster == 'Afro' or _root.hench_roster == 'Brutus') {
gotoAndPlay('attack3');
} else {
if (_root.hench_roster == 'IV' or _root.hench_roster == 'Femme' or _root.hench_roster == 'Agent' or _root.hench_roster == 'Muerto') {
gotoAndPlay('attack2');
}
}
if (Math.floor(Math.random() * 2) + 1 == 1) {
gotoAndPlay('attack1b');
}
}
frame 95 {
if (Math.floor(Math.random() * 6) + 1 > 3) {
_root.voicebox.play_henchman('Battlecry');
}
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 117 {
if (Math.floor(Math.random() * 6) + 1 > 3) {
_root.voicebox.play_henchman('Battlecry');
}
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 125 {
gotoAndPlay('attack');
}
frame 126 {
if (_root.hench_roster == 'Afro' or _root.hench_roster == 'Brutus') {
gotoAndPlay('stow3');
} else {
if (_root.hench_roster == 'IV' or _root.hench_roster == 'Femme' or _root.hench_roster == 'Agent' or _root.hench_roster == 'Muerto') {
gotoAndPlay('stow2');
}
}
}
frame 131 {
_parent._parent.unit_ready = false;
stop();
}
frame 145 {
if (Math.floor(Math.random() * 2) + 1 == 1) {
gotoAndPlay('attack2b');
}
}
frame 149 {
if (Math.floor(Math.random() * 6) + 1 > 3) {
_root.voicebox.play_henchman('Battlecry');
}
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 158 {
if (Math.floor(Math.random() * 6) + 1 > 3) {
_root.voicebox.play_henchman('Battlecry');
}
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 166 {
gotoAndPlay('attack2');
}
frame 179 {
_parent._parent.unit_ready = false;
stop();
}
frame 192 {
if (Math.floor(Math.random() * 2) + 1 == 1) {
gotoAndPlay('attack3b');
}
}
frame 199 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 225 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 234 {
gotoAndPlay('attack3');
}
frame 246 {
_parent._parent.unit_ready = false;
stop();
}
frame 249 {
_root.voicebox.play_henchman('Death');
}
frame 260 {
_root.hench_roster = '';
_root.hench_id = -1;
}
frame 298 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
button 1724 {
on (rollOver) {
if (_parent.unit_status !== 'dead' and thiscolored !== 1 and _parent.unit_status !== 'retreating') {
var thiscolored = 1;
this.sprite.selector.gotoAndStop('Henchman');
_root.unitdetail.this_type = 'Henchman';
_root.unitdetail.play();
if (_root._xmouse > 600) {
_root.unitdetail._x = _root._xmouse - 50;
} else {
if (_root._xmouse < 125) {
_root.unitdetail._x = _root._xmouse + 50;
} else {
_root.unitdetail._x = _root._xmouse;
}
}
if (_root._ymouse < 150) {
_root.unitdetail._y = _root._ymouse + 110;
} else {
_root.unitdetail._y = _root._ymouse;
}
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (dragOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
this.sprite.selector.gotoAndStop(1);
var thiscolored = 0;
_root.unitdetail.gotoAndStop(1);
}
}
on (press) {
if (_parent.unit_status !== 'dead' and _parent.unit_status !== 'retreating') {
_root.unit_actions.attack_minionflee(_parent.unit_ID);
trace('Force-retreating ' + _parent.unit_ID);
}
}
}
movieClip 1733 {
}
movieClip 1734 {
}
movieClip 1737 {
}
movieClip 1764 {
}
movieClip 1766 {
}
movieClip 1767 {
frame 1 {
stop();
}
frame 17 {
gotoAndPlay('idle');
}
frame 31 {
gotoAndPlay('walk');
}
frame 39 {
gotoAndPlay('run');
}
frame 40 {
_parent._parent.unit_ready = true;
}
frame 77 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 90 {
gotoAndPlay('attack');
}
frame 114 {
_parent._parent.unit_ready = false;
stop();
}
frame 128 {
}
frame 156 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
movieClip 1776 {
}
movieClip 1777 {
}
movieClip 1783 {
}
movieClip 1806 {
frame 1 {
stop();
}
frame 17 {
gotoAndPlay('idle');
}
frame 31 {
gotoAndPlay('walk');
}
frame 39 {
gotoAndPlay('run');
}
frame 40 {
_parent._parent.unit_ready = true;
}
frame 71 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 75 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 79 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 83 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 90 {
gotoAndPlay('attack');
}
frame 114 {
_parent._parent.unit_ready = false;
stop();
}
frame 128 {
}
frame 156 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
movieClip 1815 {
}
movieClip 1816 {
}
movieClip 1822 {
}
movieClip 1852 {
frame 1 {
stop();
}
frame 17 {
gotoAndPlay('idle');
}
frame 31 {
gotoAndPlay('walk');
}
frame 39 {
gotoAndPlay('run');
}
frame 40 {
_parent._parent.unit_ready = true;
}
frame 74 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 80 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 92 {
gotoAndPlay('attack');
}
frame 116 {
_parent._parent.unit_ready = false;
stop();
}
frame 130 {
}
frame 158 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
movieClip 1861 {
}
movieClip 1862 {
}
movieClip 1868 {
}
movieClip 1879 {
}
movieClip 1895 {
frame 1 {
stop();
}
frame 17 {
gotoAndPlay('idle');
}
frame 31 {
gotoAndPlay('walk');
}
frame 39 {
gotoAndPlay('run');
}
frame 40 {
_parent._parent.unit_ready = true;
}
frame 83 {
_root.unit_actions.perform_attack(_parent._parent.unit_ID, _parent._parent._name.substr(0, 1));
}
frame 101 {
gotoAndPlay('attack');
}
frame 125 {
_parent._parent.unit_ready = false;
stop();
}
frame 139 {
}
frame 167 {
stop();
_parent._parent.swapDepths(69);
_parent._parent.removeMovieClip();
}
}
movieClip 1903 {
frame 1 {
gotoAndStop(_root.player_currentbase);
}
}
movieClip 1908 {
}
movieClip 1913 {
}
movieClip 1914 {
}
movieClip 1915 {
instance bar2 of movieClip 1908 {
onClipEvent (enterFrame) {
this._xscale = 100 * (_parent._parent._parent._parent.unit_HP / _parent._parent._parent._parent.unit_maxHP);
}
}
instance of movieClip 1914 {
onClipEvent (enterFrame) {
if (100 * (_parent._parent._parent._parent.unit_HP / _parent._parent._parent._parent.unit_maxHP) <= 50) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
movieClip 1923 {
frame 1 {
gotoAndStop(_root.player_currentbase);
}
}
movieClip 1924 {
instance of movieClip 1915 {
onClipEvent (load) {
this._rotation = -_parent._parent._parent._rotation;
}
}
frame 9 {
gotoAndPlay('idle');
}
frame 45 {
stop();
_root.player_defeat = true;
}
}
button 1925 {
on (rollOver) {
if (_parent.unit_status !== 'dead') {
thiscolored = 1;
}
}
on (rollOut) {
if (_parent.unit_status !== 'dead' and thiscolored == 1) {
thiscolored = 0;
}
}
on (press) {
if (_parent.unit_status !== 'dead') {
_root.unit_actions.attack_fullretreat();
trace('Ordering mass retreat!');
}
}
}
movieClip 1926 {
frame 1 {
stop();
}
}
movieClip 1927 {
instance sprite_spread of movieClip 1926 {
onClipEvent (enterFrame) {
if (_parent._name !== 'unit_empty' and _root.gamepaused == false and _parent._name !== 'm_0') {
_root.unit_actions.perform_actions(_parent.unit_ID, _parent._name.substr(0, 1));
this.sprite.message_spread._rotation = -_parent._rotation;
}
if (_parent._name == 'm_0') {
if (_parent.unit_HP < 0) {
_root.unit_actions.change_animation('m_0', 'death');
}
}
if (_root.gamepaused == false and _parent.unit_paused == true) {
this.sprite.play();
_parent.unit_paused = false;
}
if (_root.gamepaused == true and _parent.unit_paused !== true) {
this.sprite.stop();
_parent.unit_paused = true;
}
}
}
}
movieClip 1929 {
instance unit_empty of movieClip 1927 {
}
instance m_0 of movieClip 1927 {
onClipEvent (load) {
var unit_type = 'type7';
var unit_ID = Number(this._name.substr(2));
_root.unit_actions[this._name.substr(0, 1) + '_roster'][_root.unit_actions[this._name.substr(0, 1) + '_roster'].length] = unit_ID;
var unit_category = 'inf';
var unit_speed = 0;
var unit_HP = 600;
var unit_maxHP = unit_HP;
var unit_status = 'base';
var unit_animation = 'idle';
var unit_attack = 0;
this.sprite_spread.gotoAndStop('base');
this._x = _root.map_background.base._x;
this._y = _root.map_background.base._y;
this._rotation = _root.map_background.base._rotation;
}
}
}
movieClip 1945 {
}
movieClip 1947 {
}
button 1949 {
on (press) {
_parent.gotoAndStop(1);
}
}
movieClip 1955 {
frame 1 {
var i = Math.floor(Math.random() * 3) + 1;
gotoAndStop(i);
}
}
movieClip 2006 {
frame 1 {
stop();
gotoAndStop(_root.hench_roster);
}
}
movieClip 2007 {
frame 1 {
stop();
gotoAndStop(_parent.this_type);
}
}
movieClip 2011 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 2014 {
}
movieClip 2021 {
}
movieClip 2026 {
}
movieClip 2030 {
}
movieClip 2037 {
frame 1 {
stop();
}
}
movieClip 2041 {
frame 1 {
stop();
}
}
movieClip 2045 {
}
movieClip 2046 {
frame 1 {
stop();
}
}
movieClip 2049 {
}
instance cashdisplay of movieClip 2049 {
onClipEvent (load) {
moneydisplayer();
}
}
movieClip 2053 {
}
movieClip 2064 {
frame 1 {
stop();
}
frame 17 {
gotoAndStop(1);
}
frame 40 {
gotoAndStop(1);
}
}
movieClip 2068 {
}
movieClip 2071 {
}
movieClip 2073 {
instance notorietybar of movieClip 2064 {
onClipEvent (enterFrame) {
this._yscale = _root.player_notoriety;
}
}
}
movieClip 2075 {
}
instance of movieClip 2075 {
onClipEvent (enterFrame) {
if (_root.gamepaused == false) {
_root.recruitbuttonavailable();
_root.timeron = true;
if (_root.timeron) {
_root.plottimers();
}
}
if (_root.screen_locked !== true and _root.roommenu._currentframe == 1) {
_root.map_background._x += (-0.5 * (_root._xmouse - 350) - _root.map_background._x) / 2.5;
_root.map_background._y += (-0.9 * (_root._ymouse - 260) - _root.map_background._y) / 2.5;
_root.map_units._x += (-0.5 * (_root._xmouse - 350) - _root.map_units._x) / 2.5;
_root.map_units._y += (-0.9 * (_root._ymouse - 260) - _root.map_units._y) / 2.5;
}
if (_root.player_defeat == true and _root.gamepaused !== true) {
_root.voicebox.mbox.stop();
_root.voicebox.vbox.stop();
_root.voicebox.hbox.stop();
_root.tutorialbox.tutbox.stop();
_root.player_currentroom = 0;
_root.gotoAndStop('defeat');
trace('DEAD');
}
}
}
movieClip 2084 {
frame 1 {
stop();
}
frame 7 {
stop();
}
frame 19 {
stop();
}
frame 31 {
stop();
}
frame 43 {
stop();
}
frame 54 {
stop();
}
frame 65 {
stop();
}
frame 76 {
stop();
}
}
movieClip 2087 {
frame 1 {
if (_root.gamepaused == false) {
_root.moneymaker();
_root.notorietymanagement();
_root.minioncost_management();
}
}
frame 2 {
if (_root.gamepaused == false) {
_root.event_generator();
if (_root.gamestart_defensemin > 0) {
_root.spawn_startminions();
}
if (_root.gamestart_turrets == true) {
_root.spawn_startturrets();
}
}
}
frame 3 {
if (_root.gamepaused == false) {
_root.timermanagement();
_root.missionmanagement();
}
}
frame 4 {
if (_root.gamepaused == false) {
_root.wave_system();
_root.defense_system();
}
}
frame 5 {
if (_root.gamepaused == false) {
_root.xp_checker();
if (_root.player_tutorial !== -1) {
_root.tutorialbox.play_tutorial();
}
}
}
}
movieClip 2092 {
frame 8 {
stop();
}
}
movieClip 2101 {
}
movieClip 2122 {
}
movieClip 2125 {
}
movieClip 2127 {
}
movieClip 2130 {
}
movieClip 2132 {
}
movieClip 2136 {
}
movieClip 2138 {
}
movieClip 2141 {
}
movieClip 2145 {
}
movieClip 2146 {
}
movieClip 2148 {
}
movieClip 2155 {
}
movieClip 2156 {
}
movieClip 2158 {
}
movieClip 2160 {
}
movieClip 2161 {
frame 1 {
stop();
}
}
movieClip 2166 {
}
movieClip 2168 {
}
movieClip 2175 {
}
button 2181 {
on (press) {
if (_root.plot_type[0] !== '' and _root.plot_type[1] !== '' and _root.plot_type[2] !== '' and _root.plot_type[3] !== '' and _root.plot_type[4] !== '' and _root.plot_type[5] !== '') {
defaultdisplay.controlroommessages.gotoAndPlay('plotsfull');
menu_execute.plotfull.play();
} else {
if (_root.plot_missiontime > 0) {
defaultdisplay.controlroommessages.gotoAndPlay('alreadyplotting');
menu_execute.alreadyplotting.play();
} else {
if (_root.player_tutorial > 3 and _root.player_tutorial <= 5 or _root.player_tutorial == -1) {
this.menu_create.gotoAndPlay(2);
this.menu_execute.gotoAndStop(1);
this.menu_world.gotoAndStop(1);
this.defaultdisplay.gotoAndStop(1);
this.button_create._visible = false;
this.button_executeX._visible = false;
this.button_worldX._visible = false;
}
}
}
}
}
button 2185 {
on (press) {
if (_root.exec_missiontime > 0) {
defaultdisplay.controlroommessages.gotoAndPlay('alreadyexecuting');
menu_create.alreadyexecuting.play();
} else {
this.menu_create.gotoAndStop(1);
this.menu_execute.gotoAndPlay(2);
this.menu_world.gotoAndStop(1);
this.defaultdisplay.gotoAndStop(1);
this.button_create._visible = false;
this.button_executeX._visible = false;
this.button_worldX._visible = false;
}
}
}
button 2190 {
on (press) {
_root.roombuttons.roombuttonselector.gotoAndStop(1);
gotoAndStop(1);
_root.player_currentroom = 0;
}
}
// unknown tag 88 length 79
button 2199 {
on (press) {
this.menu_create.gotoAndStop(1);
this.menu_execute.gotoAndStop(1);
this.menu_world.gotoAndPlay(2);
this.defaultdisplay.gotoAndStop(1);
this.button_create._visible = false;
this.button_executeX._visible = false;
this.button_worldX._visible = false;
}
}
button 2204 {
on (press) {
if (_root.player_tutorial == -1) {
_root.gamepausedtext.play();
_root.tutorialbox.gotoAndStop('control');
}
}
}
movieClip 2214 {
frame 25 {
stop();
}
}
button 2220 {
on (press) {
if (_root.player_science5[0] == true) {
_parent.controlAI.play();
} else {
if (_root.plot_missiontime == 0 and _root.exec_missiontime == 0) {
if (_root.player_mincontrol < 15 and _root.player_minpool > 0) {
deployglow2.gotoAndPlay(2);
_root.player_minpool -= 1;
_root.player_mincontrol += 1;
_root.soundplayer.gotoAndPlay('deploy');
_root.roommenu.controlroompicture1.controlroompicture2.gotoAndStop(_root.player_mincontrol + 1);
if (_root.ControlroomNoChange == false) {
_root.controlroomdetails(_root.getordersorted(_root.plot_displaynumber));
}
} else {
_root.soundplayer.gotoAndPlay('error');
if (_root.player_minpool > 0) {
_parent.controlfull.play();
}
}
} else {
_parent.controllocked.play();
}
}
}
}
button 2224 {
on (press) {
if (_root.player_science5[0] == true) {
_parent.controlAI.play();
} else {
if (_root.plot_missiontime == 0 and _root.exec_missiontime == 0) {
if (_root.player_mincontrol > 0) {
_root.minionpooldisplay.deployglow4.gotoAndPlay(2);
_root.player_minpool += 1;
_root.player_mincontrol -= 1;
_root.soundplayer.gotoAndPlay('recall');
_root.roommenu.controlroompicture1.controlroompicture2.gotoAndStop(_root.player_mincontrol + 1);
if (_root.ControlroomNoChange == false) {
_root.controlroomdetails(_root.getordersorted(_root.plot_displaynumber));
}
} else {
_root.soundplayer.gotoAndPlay('error');
}
} else {
_parent.controllocked.play();
}
}
}
}
movieClip 2227 {
frame 1 {
stop();
}
}
movieClip 2228 {
}
movieClip 2233 {
}
movieClip 2234 {
frame 1 {
stop();
}
}
movieClip 2238 {
}
movieClip 2241 {
frame 11 {
stop();
}
}
movieClip 2244 {
frame 1 {
stop();
}
}
movieClip 2250 {
frame 6 {
stop();
}
}
movieClip 2257 {
frame 45 {
gotoAndPlay('loop');
}
}
movieClip 2265 {
frame 45 {
gotoAndPlay('loop');
}
}
movieClip 2268 {
}
movieClip 2271 {
}
button 2273 {
on (press) {
_parent.menu_create.gotoAndStop(1);
_parent.menu_execute.gotoAndStop(1);
_parent.menu_world.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(2);
}
}
movieClip 2279 {
}
button 2282 {
on (press) {
_parent.play();
}
}
button 2287 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'cash';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('cash');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
button 2291 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'science';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
button 2295 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'kill';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('kill');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
button 2299 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'kidnap';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('kidnap');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
button 2303 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'propaganda';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('propaganda');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
button 2307 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'brainwash';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('brainwash');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
button 2311 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'sabotage';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('sabotage');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
button 2315 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'blowup';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('blowup');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
button 2319 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_execute') {
_parent.gotoAndPlay(9);
_root.controlroomdetails(this._name.substr(-1, 1));
}
if (_parent._name == 'menu_create') {
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['selectterritory' + String(i)].gotoAndStop(1);
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_type[6] = 'world';
_root.plot_territory[6] = '';
_parent.gotoAndPlay(16);
}
if (_parent._name == 'menu_meeting') {
_parent.gotoAndPlay(9);
_root.meetingroomdetails(this._name.substr(-1, 1));
_parent['selecttype' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttype' + String(i)].gotoAndStop(1);
}
_parent['sp' + String(i)].gotoAndStop(1);
_parent['ep' + String(i)].gotoAndStop(1);
++i;
}
_root.meeting_displaynumber = _root.plot_displaynumber;
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('world');
}
if (_parent._name == 'menu_meeting') {
_parent.plotdetailpatsy.gotoAndStop(2);
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
movieClip 2324 {
}
movieClip 2333 {
frame 1 {
stop();
}
instance of movieClip 2324 {
onClipEvent (enterFrame) {
if (_parent._parent._name == 'ploticon' or _parent._parent._name == 'ploticon2') {
if (_root.plot_missiontime <= _root.plot_timeplot * 0.89 and _root.plot_missiontime > _root.plot_timeplot * 0.78) {
_parent.gotoAndStop(2);
}
if (_root.plot_missiontime <= _root.plot_timeplot * 0.78 and _root.plot_missiontime > _root.plot_timeplot * 0.67) {
_parent.gotoAndStop(3);
}
if (_root.plot_missiontime <= _root.plot_timeplot * 0.67 and _root.plot_missiontime > _root.plot_timeplot * 0.5600000000000001) {
_parent.gotoAndStop(4);
}
if (_root.plot_missiontime <= _root.plot_timeplot * 0.5600000000000001 and _root.plot_missiontime > _root.plot_timeplot * 0.45) {
_parent.gotoAndStop(5);
}
if (_root.plot_missiontime <= _root.plot_timeplot * 0.45 and _root.plot_missiontime > _root.plot_timeplot * 0.34) {
_parent.gotoAndStop(6);
}
if (_root.plot_missiontime <= _root.plot_timeplot * 0.34 and _root.plot_missiontime > _root.plot_timeplot * 0.23) {
_parent.gotoAndStop(7);
}
if (_root.plot_missiontime <= _root.plot_timeplot * 0.23 and _root.plot_missiontime > _root.plot_timeplot * 0.12) {
_parent.gotoAndStop(8);
}
if (_root.plot_missiontime <= _root.plot_timeplot * 0.12) {
_parent.gotoAndStop(9);
}
if (_root.plot_missiontime == 0) {
if (_parent._parent._parent._name.substr(0, 4) == 'defa') {
_parent._parent._parent.gotoAndStop(_root.sortdefaultplot(_root.gethighestorderslot()));
}
if (_parent._parent._parent._name.substr(0, 4) == 'exec') {
_parent._parent._parent.gotoAndStop(_root.sortplotexecute(_root.gethighestorderslot()));
}
if (_parent._parent._parent._name.substr(0, 4) == 'crea') {
_parent._parent._parent.gotoAndStop(_root.sortnewplot(_root.gethighestorderslot()));
}
}
}
if (_parent._parent._name == 'execicon' or _parent._parent._name == 'execicon2') {
bbb = _root.plot_currentexecuted;
if (_root.exec_missiontime <= _root.plot_timeexecute[bbb] * 0.89 and _root.exec_missiontime > _root.plot_timeexecute[bbb] * 0.78) {
_parent.gotoAndStop(2);
}
if (_root.exec_missiontime <= _root.plot_timeexecute[bbb] * 0.78 and _root.exec_missiontime > _root.plot_timeexecute[bbb] * 0.67) {
_parent.gotoAndStop(3);
}
if (_root.exec_missiontime <= _root.plot_timeexecute[bbb] * 0.67 and _root.exec_missiontime > _root.plot_timeexecute[bbb] * 0.5600000000000001) {
_parent.gotoAndStop(4);
}
if (_root.exec_missiontime <= _root.plot_timeexecute[bbb] * 0.5600000000000001 and _root.exec_missiontime > _root.plot_timeexecute[bbb] * 0.45) {
_parent.gotoAndStop(5);
}
if (_root.exec_missiontime <= _root.plot_timeexecute[bbb] * 0.45 and _root.exec_missiontime > _root.plot_timeexecute[bbb] * 0.34) {
_parent.gotoAndStop(6);
}
if (_root.exec_missiontime <= _root.plot_timeexecute[bbb] * 0.34 and _root.exec_missiontime > _root.plot_timeexecute[bbb] * 0.23) {
_parent.gotoAndStop(7);
}
if (_root.exec_missiontime <= _root.plot_timeexecute[bbb] * 0.23 and _root.exec_missiontime > _root.plot_timeexecute[bbb] * 0.12) {
_parent.gotoAndStop(8);
}
if (_root.exec_missiontime <= _root.plot_timeexecute[bbb] * 0.12) {
_parent.gotoAndStop(9);
}
}
}
}
}
movieClip 2335 {
}
movieClip 2336 {
}
button 2339 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
movieClip 2341 {
}
movieClip 2342 {
}
button 2344 {
on (press) {
if (_parent._name == 'defaultdisplay') {
_root.controlroomdetails(this._name.substr(-1, 1));
}
}
}
movieClip 2346 {
}
movieClip 2347 {
}
movieClip 2349 {
}
movieClip 2351 {
}
movieClip 2353 {
}
movieClip 2355 {
}
movieClip 2357 {
}
movieClip 2359 {
}
movieClip 2361 {
}
movieClip 2363 {
}
movieClip 2365 {
}
movieClip 2373 {
}
button 2387 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'na';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('northamerica');
}
}
}
button 2390 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'e';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('europe');
}
}
}
button 2393 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'a';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('asia');
}
}
}
button 2396 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'sa';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('southamerica');
}
}
}
button 2399 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'world';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('worldterritory');
}
}
}
movieClip 2403 {
}
movieClip 2404 {
frame 7 {
stop();
}
}
button 2405 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'na';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('northamerica');
}
}
}
button 2408 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'e';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('europe');
}
}
}
button 2412 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'a';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('asia');
}
}
}
button 2415 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'sa';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('southamerica');
}
}
}
movieClip 2419 {
}
movieClip 2420 {
frame 7 {
stop();
}
}
button 2421 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'na';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('northamerica');
}
}
}
button 2424 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'e';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('europe');
}
}
}
button 2427 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'a';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('asia');
}
}
}
button 2430 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'sa';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('southamerica');
}
}
}
button 2435 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'science0';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science0');
}
}
}
button 2438 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'science1';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science1');
}
}
}
button 2441 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'science2';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science2');
}
}
}
button 2444 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'science3';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science3');
}
}
}
button 2447 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'science4';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science4');
}
}
}
button 2450 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'science5';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science5');
}
}
}
button 2453 {
on (press) {
_parent['selectterritory' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selectterritory' + String(i)].gotoAndStop(1);
}
_parent['selecttarget' + String(i)].gotoAndStop(1);
++i;
}
_root.plot_territory[6] = 'science6';
_root.plot_target[6] = '';
_parent.gotoAndPlay(23);
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science6');
}
}
}
button 2470 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'steal1';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('steal1');
}
}
}
button 2473 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'steal2';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('steal2');
}
}
}
button 2476 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'steal3';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('steal3');
}
}
}
button 2479 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'steal4';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('steal4');
}
}
}
button 2485 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'sabotage';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('sabotagetarget');
}
}
}
button 2488 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'blowup';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('blowuptarget');
}
}
}
button 2491 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'propaganda';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('propagandatarget');
}
}
}
button 2494 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'brainwash';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('brainwashtarget');
}
}
}
button 2497 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'world';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('worldtarget');
}
}
}
button 2500 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'leader';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('leader');
_parent.plotdetails.plotdetailsleader.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2503 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'politician';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('politician');
_parent.plotdetails.plotdetailspolitician.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2506 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'criminal';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('criminal');
_parent.plotdetails.plotdetailscriminal.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2509 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'journalist';
_parent.gotoAndPlay(31);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('journalist');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2512 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science0a';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science0a');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2513 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science1a';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science1a');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2516 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science1b';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science1b');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2519 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science2a';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science2a');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2522 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science2b';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science2b');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2525 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science2c';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science2c');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2528 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science3a';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science3a');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2531 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science3b';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science3b');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2534 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science3c';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science3c');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2537 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science3d';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science3d');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2540 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science4a';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science4a');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2543 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science4b';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science4b');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2546 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science4c';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science4c');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2549 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science4d';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science4d');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2552 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science4e';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science4e');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2555 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science5a';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science5a');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2558 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science5b';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science5b');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2561 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science5c';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science5c');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
button 2562 {
on (press) {
if (_parent._name == 'menu_create') {
_parent['selecttarget' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 7) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['selecttarget' + String(i)].gotoAndStop(1);
}
++i;
}
_root.plot_target[6] = 'science6a';
_parent.gotoAndPlay(31);
}
if (_parent._name == 'defaultdisplay') {
_parent.displayscience.gotoAndStop(2);
_parent.displayscience.sciencetext1.sciencetext.gotoAndStop(this._name);
_parent.displayscience.sciencetext1.gotoAndPlay(1);
}
}
on (rollOver) {
if (_parent._name == 'menu_create') {
_parent.plotdetails.gotoAndStop('science6a');
_parent.plotdetails.plotdetailsjournalist.gotoAndStop(_root.plot_territory[6]);
}
}
}
movieClip 2564 {
}
movieClip 2565 {
frame 1 {
stop();
}
}
movieClip 2569 {
}
movieClip 2570 {
}
movieClip 2571 {
frame 1 {
this_arrow = Number(this._name.substr(13, this._name.length - 13));
if (this_arrow == _root.player_tutorial or this_arrow == _root.player_tutorial - 1 and _root.tutorialbox.tutorial_checker() == false) {
play();
} else {
stop();
}
}
frame 9 {
this_arrow = Number(this._name.substr(13, this._name.length - 13));
if (this_arrow == _root.player_tutorial or this_arrow == _root.player_tutorial - 1 and _root.tutorialbox.tutorial_checker() == false) {
gotoAndPlay('loop');
}
}
}
movieClip 2577 {
frame 8 {
stop();
}
}
movieClip 2630 {
frame 1 {
stop();
}
}
movieClip 2638 {
frame 1 {
stop();
}
}
movieClip 2646 {
frame 1 {
stop();
}
}
movieClip 2654 {
frame 1 {
stop();
}
}
// unknown tag 88 length 223
movieClip 2781 {
frame 1 {
stop();
}
frame 4 {
detailsglower.gotoAndPlay(1);
}
frame 5 {
detailsglower.gotoAndPlay(1);
}
frame 6 {
detailsglower.gotoAndPlay(1);
}
frame 7 {
detailsglower.gotoAndPlay(1);
}
frame 8 {
detailsglower.gotoAndPlay(1);
}
frame 9 {
detailsglower.gotoAndPlay(1);
}
frame 10 {
detailsglower.gotoAndPlay(1);
}
frame 11 {
detailsglower.gotoAndPlay(1);
}
frame 12 {
detailsglower.gotoAndPlay(1);
}
frame 13 {
detailsglower.gotoAndPlay(1);
}
frame 14 {
detailsglower.gotoAndPlay(1);
}
frame 15 {
detailsglower.gotoAndPlay(1);
}
frame 16 {
detailsglower.gotoAndPlay(1);
}
frame 17 {
detailsglower.gotoAndPlay(1);
}
frame 18 {
detailsglower.gotoAndPlay(1);
}
frame 19 {
detailsglower.gotoAndPlay(1);
}
frame 20 {
detailsglower.gotoAndPlay(1);
}
frame 21 {
detailsglower.gotoAndPlay(1);
}
frame 22 {
detailsglower.gotoAndPlay(1);
}
frame 23 {
detailsglower.gotoAndPlay(1);
}
frame 24 {
detailsglower.gotoAndPlay(1);
}
frame 25 {
detailsglower.gotoAndPlay(1);
}
frame 26 {
detailsglower.gotoAndPlay(1);
}
frame 27 {
detailsglower.gotoAndPlay(1);
}
frame 28 {
detailsglower.gotoAndPlay(1);
}
frame 29 {
detailsglower.gotoAndPlay(1);
}
frame 30 {
detailsglower.gotoAndPlay(1);
}
frame 31 {
detailsglower.gotoAndPlay(1);
}
frame 32 {
detailsglower.gotoAndPlay(1);
}
frame 33 {
detailsglower.gotoAndPlay(1);
}
frame 34 {
detailsglower.gotoAndPlay(1);
}
frame 35 {
detailsglower.gotoAndPlay(1);
}
frame 36 {
detailsglower.gotoAndPlay(1);
}
frame 37 {
detailsglower.gotoAndPlay(1);
}
frame 38 {
detailsglower.gotoAndPlay(1);
}
frame 39 {
detailsglower.gotoAndPlay(1);
}
frame 40 {
detailsglower.gotoAndPlay(1);
}
frame 41 {
detailsglower.gotoAndPlay(1);
}
frame 42 {
detailsglower.gotoAndPlay(1);
}
frame 43 {
detailsglower.gotoAndPlay(1);
}
frame 44 {
detailsglower.gotoAndPlay(1);
}
frame 45 {
detailsglower.gotoAndPlay(1);
}
frame 46 {
detailsglower.gotoAndPlay(1);
}
frame 47 {
detailsglower.gotoAndPlay(1);
}
frame 48 {
detailsglower.gotoAndPlay(1);
}
frame 49 {
detailsglower.gotoAndPlay(1);
}
frame 50 {
detailsglower.gotoAndPlay(1);
}
frame 51 {
detailsglower.gotoAndPlay(1);
}
frame 52 {
detailsglower.gotoAndPlay(1);
}
frame 54 {
detailsglower.gotoAndPlay(1);
}
frame 55 {
detailsglower.gotoAndPlay(1);
}
frame 56 {
detailsglower.gotoAndPlay(1);
}
frame 57 {
detailsglower.gotoAndPlay(1);
}
}
movieClip 2785 {
}
movieClip 2789 {
frame 12 {
stop();
}
}
movieClip 2792 {
frame 12 {
stop();
}
}
movieClip 2795 {
frame 12 {
stop();
}
}
movieClip 2798 {
}
movieClip 2803 {
frame 12 {
stop();
}
frame 71 {
stop();
}
}
button 2805 {
on (press) {
_parent.menu_create.gotoAndStop(1);
_parent.menu_execute.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(2);
}
}
movieClip 2809 {
}
movieClip 2815 {
frame 1 {
stop();
if (_root.plot_success[6] < 75) {
gotoAndStop(2);
}
if (_root.plot_success[6] < 50) {
gotoAndStop(3);
}
if (_root.plot_success[6] < 20) {
gotoAndStop(4);
}
}
}
movieClip 2823 {
frame 1 {
gotoAndStop(_root.plot_type[6]);
stop();
}
frame 4 {
detailsglower.gotoAndPlay(1);
}
frame 5 {
detailsglower.gotoAndPlay(1);
}
frame 6 {
detailsglower.gotoAndPlay(1);
}
frame 7 {
detailsglower.gotoAndPlay(1);
}
frame 8 {
detailsglower.gotoAndPlay(1);
}
frame 9 {
detailsglower.gotoAndPlay(1);
}
frame 10 {
detailsglower.gotoAndPlay(1);
}
frame 11 {
detailsglower.gotoAndPlay(1);
}
frame 12 {
detailsglower.gotoAndPlay(1);
}
}
movieClip 2829 {
}
movieClip 2831 {
}
button 2838 {
on (press) {
if (_root.player_mincontrol >= _root.plot_control[6] or _root.player_science5[0] == true) {
_root.createplot();
_parent._parent.defaultdisplay.gotoAndStop(2);
_root.soundplayer.gotoAndPlay('click');
_parent.gotoAndStop(1);
} else {
_parent.plotbuttontext.gotoAndPlay('minions');
_root.soundplayer.gotoAndPlay('error');
}
}
}
movieClip 2839 {
frame 1 {
stop();
}
}
movieClip 2840 {
frame 1 {
stop();
_root.current_menu = 'plotting';
}
instance create1 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortnewplot(1));
}
}
instance create3 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortnewplot(3));
}
}
instance create4 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortnewplot(4));
}
}
instance create2 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortnewplot(2));
}
}
instance create5 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortnewplot(5));
}
}
instance create6 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortnewplot(6));
}
}
frame 8 {
stop();
}
instance createtype1 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetype(1));
}
}
instance createtype2 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetype(2));
}
}
instance createtype3 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetype(3));
}
}
instance createtype4 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetype(4));
}
}
instance createtype5 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetype(5));
}
}
instance createtype6 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetype(6));
}
}
frame 15 {
stop();
_root.plot_type[6] = '';
}
instance createterritory1 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreateterritory(1));
}
}
instance createterritory2 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreateterritory(2));
}
}
instance createterritory3 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreateterritory(3));
}
}
instance createterritory4 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreateterritory(4));
}
}
instance createterritory5 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreateterritory(5));
}
}
instance createterritory6 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreateterritory(6));
}
}
frame 22 {
stop();
_root.plot_territory[6] = '';
}
instance createtarget1 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetarget(1));
}
}
instance createtarget2 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetarget(2));
}
}
instance createtarget3 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetarget(3));
}
}
instance createtarget4 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetarget(4));
}
}
instance createtarget5 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetarget(5));
}
}
instance createtarget6 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortcreatetarget(6));
}
}
frame 30 {
stop();
_root.plot_target[6] = '';
}
frame 31 {
_root.calculatemissionstats();
}
frame 38 {
stop();
}
}
button 2843 {
on (press) {
_parent.menu_create.gotoAndStop(1);
_parent.menu_execute.gotoAndStop(1);
_parent.menu_world.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(2);
}
}
movieClip 2845 {
}
movieClip 2848 {
}
movieClip 2850 {
}
movieClip 2852 {
}
movieClip 2855 {
}
movieClip 2856 {
frame 1 {
stop();
}
}
movieClip 2859 {
}
movieClip 2860 {
frame 1 {
stop();
}
}
movieClip 2864 {
}
movieClip 2867 {
}
movieClip 2870 {
}
movieClip 2871 {
frame 12 {
stop();
}
frame 69 {
gotoAndPlay(1);
}
frame 126 {
gotoAndPlay(1);
}
}
movieClip 2888 {
frame 1 {
stop();
}
frame 2 {
detailsglower.gotoAndPlay(1);
}
frame 3 {
detailsglower.gotoAndPlay(1);
}
frame 4 {
detailsglower.gotoAndPlay(1);
}
frame 5 {
detailsglower.gotoAndPlay(1);
}
frame 6 {
detailsglower.gotoAndPlay(1);
}
frame 7 {
detailsglower.gotoAndPlay(1);
}
frame 8 {
detailsglower.gotoAndPlay(1);
}
frame 9 {
detailsglower.gotoAndPlay(1);
}
frame 10 {
detailsglower.gotoAndPlay(1);
}
}
movieClip 2897 {
frame 1 {
stop();
}
}
movieClip 2932 {
frame 1 {
stop();
}
}
movieClip 2936 {
frame 1 {
stop();
}
}
movieClip 2944 {
frame 1 {
stop();
}
}
movieClip 2970 {
frame 1 {
stop();
}
}
movieClip 2971 {
frame 1 {
stop();
}
}
button 2974 {
on (press) {
var j = _root.plot_displaynumber;
if (_root.plot_patsy[j] > -1) {
if (_root.plot_cost[j] < 0) {
var this_cost = _root.plot_cost[j] + Math.floor(_root.plot_cost[j] * _root.plot_patsycost * 0.01);
} else {
var this_cost = _root.plot_cost[j];
}
var this_min = _root.plot_minions[j] + Math.floor(_root.plot_minions[j] * _root.plot_patsymin * 0.01);
if (this_min < 0) {
this_success = 0;
}
var this_time = _root.plot_timeexecute[j] + Math.floor(_root.plot_timeexecute[j] * _root.plot_patsytime * 0.01);
if (this_time < 10) {
this_time = 10;
}
var this_success = _root.plot_success[j] + _root.plot_patsysuccess;
if (this_success > 99) {
this_success = 99;
}
} else {
var this_success = _root.plot_success[j];
var this_time = _root.plot_timeexecute[j];
var this_cost = _root.plot_cost[j];
var this_min = _root.plot_minions[j];
}
this_success += Math.floor(_root.plot_success[j] * _root.player_mincontrol * 0.005);
if (_root.player_science5[0] == true) {
this_success += Math.floor(_root.plot_success[j] * 15 * 0.005);
}
this_time -= _root.player_mincontrol;
if (_root.player_science5[0] == true) {
this_time -= 15;
}
if (this_success > 99) {
this_success = 99;
}
if (this_success < 1) {
this_success = 1;
}
if (this_min < 0) {
this_min = 0;
}
if (this_time < 10) {
this_time = 10;
}
if (_root.player_minpool >= this_min) {
if (_root.player_cash * -1 <= this_cost) {
_root.plot_timeexecute[j] = this_time;
_root.plot_minions[j] = this_min;
_root.plot_cost[j] = this_cost;
_root.plot_success[j] = this_success;
_root.executemission();
_parent._parent.defaultdisplay.gotoAndStop(2);
_root.soundplayer.gotoAndPlay('click');
_parent.gotoAndStop(1);
} else {
_parent.executebuttontext.gotoAndPlay('cash');
_root.soundplayer.gotoAndPlay('error');
}
} else {
_parent.executebuttontext.gotoAndPlay('minions');
_root.soundplayer.gotoAndPlay('error');
}
}
}
movieClip 2975 {
frame 1 {
stop();
}
}
movieClip 2976 {
frame 1 {
stop();
_root.current_menu = 'executing';
}
frame 2 {
_root.plot_order[6] = 9999;
_root.ControlroomNoChange = false;
}
instance execute1 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(1));
}
}
instance execute3 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(3));
}
}
instance execute4 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(4));
}
}
instance execute2 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(2));
}
}
instance execute5 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(5));
}
}
instance execute6 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(6));
}
}
frame 8 {
stop();
}
frame 9 {
var plot_patsytime_string = _root.plot_patsytime + '%';
var plot_patsycost_string = _root.plot_patsycost + '%';
var plot_patsymin_string = _root.plot_patsymin + '%';
if (_root.plot_patsytime >= 0) {
plot_patsytime_string = '+' + plot_patsytime_string;
}
if (_root.plot_cost[_root.plot_displaynumber] >= 0) {
plot_patsycost_string = '+0%';
}
if (_root.plot_patsymin >= 0) {
plot_patsymin_string = '+' + plot_patsymin_string;
}
}
frame 14 {
stop();
}
}
movieClip 2984 {
}
movieClip 2987 {
frame 11 {
stop();
}
}
movieClip 2990 {
frame 1 {
stop();
if (_root.plot_type[0] !== '' or _root.plot_type[1] !== '' or _root.plot_type[2] !== '' or _root.plot_type[3] !== '' or _root.plot_type[4] !== '' or _root.plot_type[5] !== '') {
gotoAndStop(2);
}
}
}
movieClip 2996 {
frame 1 {
stop();
}
frame 2 {
detailsglower.gotoAndPlay(1);
}
frame 3 {
detailsglower.gotoAndPlay(1);
}
frame 4 {
detailsglower.gotoAndPlay(1);
}
frame 5 {
detailsglower.gotoAndPlay(1);
}
frame 6 {
detailsglower.gotoAndPlay(1);
}
frame 7 {
detailsglower.gotoAndPlay(1);
}
frame 8 {
detailsglower.gotoAndPlay(1);
}
frame 9 {
detailsglower.gotoAndPlay(1);
}
frame 10 {
detailsglower.gotoAndPlay(1);
}
}
button 3002 {
on (press) {
if (_root.player_tutorial == -1 and _root.plot_status[_root.plot_displaynumber] !== 'plotting' and _root.plot_status[_root.plot_displaynumber] !== 'executing') {
gotoAndStop(3);
} else {
gotoAndStop(4);
}
}
}
movieClip 3004 {
}
button 3008 {
on (press) {
gotoAndStop(2);
}
}
button 3011 {
on (press) {
_root.plot_type[_root.plot_displaynumber] = '';
_root.plot_territory[_root.plot_displaynumber] = '';
_root.plot_target[_root.plot_displaynumber] = '';
_root.plot_order[_root.plot_displaynumber] = 9999;
_root.plot_cost[_root.plot_displaynumber] = 0;
_root.plot_minions[_root.plot_displaynumber] = 0;
_root.plot_success[_root.plot_displaynumber] = 0;
_root.plot_timeexecute[_root.plot_displaynumber] = 0;
_root.plot_timeplot[_root.plot_displaynumber] = 0;
_root.plot_control[_root.plot_displaynumber] = 0;
_root.plot_patsy[_root.plot_displaynumber] = -1;
_root.plot_status[_root.plotdisplaynumber] = '';
gotoAndStop(1);
_parent.gotoAndStop(1);
}
}
movieClip 3014 {
}
movieClip 3015 {
frame 12 {
stop();
}
}
movieClip 3017 {
}
movieClip 3018 {
frame 36 {
_parent.gotoAndStop(2);
}
}
movieClip 3019 {
frame 1 {
stop();
_root.ControlroomNoChange = true;
}
frame 2 {
_root.ControlroomNoChange = false;
}
}
movieClip 3022 {
}
movieClip 3024 {
}
movieClip 3026 {
}
movieClip 3027 {
frame 1 {
stop();
}
frame 48 {
gotoAndStop(1);
}
frame 94 {
gotoAndStop(1);
}
frame 140 {
gotoAndStop(1);
}
}
movieClip 3035 {
frame 7 {
stop();
}
}
movieClip 3042 {
}
movieClip 3047 {
}
movieClip 3053 {
}
movieClip 3059 {
}
movieClip 3064 {
}
movieClip 3070 {
}
movieClip 3076 {
}
movieClip 3082 {
}
movieClip 3087 {
}
movieClip 3093 {
}
movieClip 3098 {
}
movieClip 3104 {
}
movieClip 3110 {
}
movieClip 3116 {
}
movieClip 3122 {
}
movieClip 3128 {
}
movieClip 3135 {
}
movieClip 3140 {
}
movieClip 3145 {
}
movieClip 3150 {
}
movieClip 3156 {
}
movieClip 3162 {
}
movieClip 3167 {
}
movieClip 3171 {
}
movieClip 3175 {
}
movieClip 3180 {
}
movieClip 3185 {
}
movieClip 3190 {
}
movieClip 3196 {
frame 1 {
stop();
}
frame 2 {
detailsglower.gotoAndPlay(1);
}
frame 3 {
detailsglower.gotoAndPlay(1);
}
frame 4 {
detailsglower.gotoAndPlay(1);
}
frame 5 {
detailsglower.gotoAndPlay(1);
}
frame 6 {
detailsglower.gotoAndPlay(1);
}
frame 7 {
detailsglower.gotoAndPlay(1);
}
frame 8 {
detailsglower.gotoAndPlay(1);
}
frame 9 {
detailsglower.gotoAndPlay(1);
}
frame 10 {
detailsglower.gotoAndPlay(1);
}
frame 11 {
detailsglower.gotoAndPlay(1);
}
frame 12 {
detailsglower.gotoAndPlay(1);
}
frame 13 {
detailsglower.gotoAndPlay(1);
}
frame 14 {
detailsglower.gotoAndPlay(1);
}
frame 15 {
detailsglower.gotoAndPlay(1);
}
frame 16 {
detailsglower.gotoAndPlay(1);
}
frame 17 {
detailsglower.gotoAndPlay(1);
}
frame 18 {
detailsglower.gotoAndPlay(1);
}
frame 19 {
detailsglower.gotoAndPlay(1);
}
frame 20 {
detailsglower.gotoAndPlay(1);
}
frame 21 {
detailsglower.gotoAndPlay(1);
}
frame 22 {
detailsglower.gotoAndPlay(1);
}
frame 23 {
detailsglower.gotoAndPlay(1);
}
frame 24 {
detailsglower.gotoAndPlay(1);
}
frame 25 {
detailsglower.gotoAndPlay(1);
}
frame 26 {
detailsglower.gotoAndPlay(1);
}
frame 27 {
detailsglower.gotoAndPlay(1);
}
frame 28 {
detailsglower.gotoAndPlay(1);
}
frame 29 {
detailsglower.gotoAndPlay(1);
}
frame 30 {
detailsglower.gotoAndPlay(1);
}
frame 32 {
detailsglower.gotoAndPlay(1);
}
frame 33 {
detailsglower.gotoAndPlay(1);
}
}
movieClip 3198 {
}
movieClip 3205 {
frame 1 {
stop();
}
}
movieClip 3207 {
frame 1 {
stop();
}
frame 48 {
gotoAndStop(1);
}
frame 94 {
gotoAndStop(1);
}
frame 140 {
gotoAndStop(1);
}
}
button 3213 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Lieutennant');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Lieutennant', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Lieutennant');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Lieutennant');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3216 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Baroness');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Baroness', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Baroness');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Baroness');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3219 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Vampyre');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Vampyre', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Vampyre');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Vampyre');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3222 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Betty');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Betty', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Betty');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Betty');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3225 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Tudor');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Tudor', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Tudor');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Tudor');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3228 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Scientist');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Scientist', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Scientist');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Scientist');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3231 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Alexander');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Alexander', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Alexander');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Alexander');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3234 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Radiel');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Radiel', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Radiel');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Radiel');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3237 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Baron');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Baron', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Baron');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Baron');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3240 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Don');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Don', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Don');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Don');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3243 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Snobgoblin');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Snobgoblin', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Snobgoblin');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Snobgoblin');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3247 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Garth');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Garth', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Garth');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Garth');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3250 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Lez');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Lez', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Lez');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Lez');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3253 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Mocha');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Mocha', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Mocha');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Mocha');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3256 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Convict');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Convict', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Convict');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Convict');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3259 {
on (press) {
if (_parent._name == 'menu_meeting') {
if (this._name.substr(0, 2) == 'pa') {
_root.patsy_selected = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(14);
_parent['sp' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 4) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['sp' + String(i)].gotoAndStop(1);
}
_parent['ep' + String(i)].gotoAndStop(1);
_parent.ep4.gotoAndStop(1);
++i;
}
}
if (this._name.substr(0, 2) == 'ex') {
_root.patsy_executed = Number(this._name.substr(-1, 1) - 1);
_parent.gotoAndPlay(19);
_parent['ep' + this._name.substr(-1, 1)].gotoAndStop(2);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
}
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Wadolf');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
if (_parent._name == 'menu_patsy') {
_root.patsybuy('Wadolf', this._name);
}
}
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Wadolf');
}
if (_parent._name == 'menu_meeting') {
_parent.patsydetails.gotoAndStop('Wadolf');
_parent.efficiencybar.gotoAndStop(2);
_parent.efficiencybar.bar._xscale = _root.patsy_effective[Number(this._name.substr(-1, 1) - 1)];
}
}
}
button 3261 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Lieutennant');
}
}
}
button 3263 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Baroness');
}
}
}
button 3265 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Vampyre');
}
}
}
button 3267 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Betty');
}
}
}
button 3269 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Tudor');
}
}
}
button 3271 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Scientist');
}
}
}
button 3273 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Alexander');
}
}
}
button 3275 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Radiel');
}
}
}
button 3277 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Baron');
}
}
}
button 3279 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Don');
}
}
}
button 3281 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Snobgoblin');
}
}
}
button 3284 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Garth');
}
}
}
button 3286 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Lez');
}
}
}
button 3288 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Mocha');
}
}
}
button 3290 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Convict');
}
}
}
button 3292 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('Wadolf');
}
}
}
button 3293 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3294 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3295 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3296 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3297 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3298 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3299 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3300 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3301 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3302 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3303 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3304 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3305 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3306 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3307 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
button 3308 {
on (rollOver) {
if (_parent._name == 'menu_patsy') {
_parent.patsydetails.gotoAndStop('unknownpatsy');
}
}
}
movieClip 3310 {
}
button 3314 {
on (press) {
_root.patsy_executed = -1;
_parent.gotoAndPlay(19);
i = 1;
while (i < 5) {
if (this._name.substr(-1, 1) !== String(i)) {
_parent['ep' + String(i)].gotoAndStop(1);
}
++i;
}
gotoAndStop('skip2');
}
}
button 3316 {
on (press) {
_root.patsy_executed = -1;
_parent.gotoAndPlay(19);
gotoAndStop('skip2');
}
}
button 3319 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Bodyguard', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Bodyguard');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Bodyguard');
}
}
}
button 3322 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Brutus', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Brutus');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Brutus');
}
}
}
button 3325 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Tom', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Tom');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Tom');
}
}
}
button 3328 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Femme', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Femme');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Femme');
}
}
}
button 3331 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Muerto', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Muerto');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Muerto');
}
}
}
button 3334 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Ophelia', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Ophelia');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Ophelia');
}
}
}
button 3337 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('IV', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('IV');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('IV');
}
}
}
button 3340 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Weeman', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Weeman');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Weeman');
}
}
}
button 3343 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Agent', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Agent');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Agent');
}
}
}
button 3346 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Mandible', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Mandible');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Mandible');
}
}
}
button 3349 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Afro', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Afro');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Afro');
}
}
}
button 3352 {
on (press) {
if (_parent._name == 'menu_henchman') {
_root.henchbuy('Valentine', this._name);
}
if (_parent._name == 'defaultdisplay') {
_parent.patsydetails.gotoAndStop('Valentine');
_parent.efficiencybar.gotoAndStop(3);
}
}
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Valentine');
}
}
}
button 3354 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Bodyguard');
}
}
}
button 3356 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Brutus');
}
}
}
button 3358 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Tom');
}
}
}
button 3360 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Femme');
}
}
}
button 3362 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Muerto');
}
}
}
button 3364 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Ophelia');
}
}
}
button 3366 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('IV');
}
}
}
button 3368 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Weeman');
}
}
}
button 3370 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Agent');
}
}
}
button 3372 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Mandible');
}
}
}
button 3374 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Afro');
}
}
}
button 3376 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('Valentine');
}
}
}
button 3377 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3378 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3379 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3380 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3381 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3382 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3383 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3384 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3385 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3386 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3387 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
button 3388 {
on (rollOver) {
if (_parent._name == 'menu_henchman') {
_parent.patsydetails.gotoAndStop('unknownhench');
}
}
}
movieClip 3389 {
frame 1 {
stop();
}
}
movieClip 3424 {
frame 6 {
stop();
}
}
movieClip 3444 {
frame 1 {
_parent.bgflash.gotoAndPlay(1);
}
frame 2 {
_parent.bgflash.gotoAndPlay(1);
}
frame 3 {
_parent.bgflash.gotoAndPlay(1);
}
frame 4 {
_parent.bgflash.gotoAndPlay(1);
}
frame 5 {
_parent.bgflash.gotoAndPlay(1);
}
frame 6 {
_parent.bgflash.gotoAndPlay(1);
}
frame 7 {
_parent.bgflash.gotoAndPlay(1);
}
frame 8 {
_parent.bgflash.gotoAndPlay(1);
}
frame 9 {
_parent.bgflash.gotoAndPlay(1);
}
frame 10 {
_parent.bgflash.gotoAndPlay(1);
}
frame 11 {
_parent.bgflash.gotoAndPlay(1);
}
frame 12 {
_parent.bgflash.gotoAndPlay(1);
}
frame 13 {
_parent.bgflash.gotoAndPlay(1);
}
frame 14 {
_parent.bgflash.gotoAndPlay(1);
}
frame 15 {
_parent.bgflash.gotoAndPlay(1);
}
frame 16 {
_parent.bgflash.gotoAndPlay(1);
}
frame 17 {
_parent.bgflash.gotoAndPlay(1);
}
frame 18 {
_parent.bgflash.gotoAndPlay(1);
}
}
movieClip 3445 {
}
movieClip 3446 {
frame 1 {
stop();
}
}
movieClip 3447 {
frame 1 {
if (_parent._currentframe == 2 and _parent.menu_create._currentframe == 1 and _parent.menu_execute._currentframe == 1 and _parent.menu_world._currentframe == 1) {
gotoAndStop(2);
}
}
frame 2 {
_root.plot_order[6] = 9999;
_parent.button_create._visible = true;
if (_root.player_tutorial >= 7 or _root.player_tutorial == -1) {
_parent.button_executeX._visible = true;
}
if (_root.player_tutorial == -1) {
_parent.button_worldX._visible = true;
}
}
instance defaultplot1 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortdefaultplot(1));
}
}
instance defaultplot3 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortdefaultplot(3));
}
}
instance defaultplot4 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortdefaultplot(4));
}
}
instance defaultplot2 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortdefaultplot(2));
}
}
instance defaultplot5 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortdefaultplot(5));
}
}
instance defaultplot6 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortdefaultplot(6));
}
}
frame 3 {
_parent.button_patsy._visible = true;
_parent.button_henchman._visible = true;
_parent.button_meeting._visible = true;
}
instance disp1 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortdisplay(1));
}
}
instance disp2 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortdisplay(2));
}
}
instance disp3 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortdisplay(3));
}
}
instance henchman of movieClip 3389 {
onClipEvent (load) {
if (_root.hench_roster == '') {
gotoAndStop('closed');
} else {
gotoAndStop(_root.hench_roster);
}
}
}
frame 4 {
_root.income_calculator();
}
instance of movieClip 584 {
onClipEvent (load) {
function weaponsroom_variables() {
_parent.weapon_available = 0;
_parent.weapon_total = 0;
_parent.turret_available = 0;
_parent.turret_total = 0;
_parent.power_available = 0;
_parent.power_total = 0;
i = 0;
while (i < 6) {
if (_root.player_weapon[i + 1] == true) {
_parent.weapon_total += 1;
}
if (_root.sort_weapon(i + 1) == true and _root.player_weapon[i + 1] == false) {
_parent.weapon_available += 1;
}
if (_root.player_power[i] == true) {
_parent.power_total += 1;
}
if (_root.sort_power(i) == true and _root.player_power[i] == false) {
_parent.power_available += 1;
}
if (_root.player_turrets[i] !== -1) {
_parent.turret_total += 1;
}
++i;
}
_parent.turret_available = 6 - _parent.turret_total;
if (_root.sort_turret(0) == false and _root.sort_turret(1) == false and _root.sort_turret(2) == false and _root.sort_turret(3) == false) {
_parent.turret_available = 0;
}
_parent.weapon_total += 1;
}
this.weaponsroom_variables();
}
onClipEvent (enterFrame) {
if (_root.pulse_timer.timer == 4) {
this.weaponsroom_variables();
}
}
}
instance science1a of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science1[0] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science1b of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science1[1] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science2a of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science2[0] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science2b of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science2[1] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science2c of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science2[2] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science3a of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science3[0] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science3b of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science3[1] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science3c of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science3[2] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science3d of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science3[3] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science4a of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science4[0] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science4b of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science4[1] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science4c of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science4[2] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science4d of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science4[3] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science4e of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science4[4] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science5a of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science5[0] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science5b of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science5[1] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science5c of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science5[2] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
instance science6a of movieClip 2565 {
onClipEvent (load) {
if (_root.player_science6[0] == true) {
gotoAndStop(this._name);
} else {
gotoAndStop('scienceclosed');
}
}
}
}
movieClip 3454 {
frame 1 {
stop();
}
}
button 3456 {
on (press) {
_parent.menu_create.gotoAndStop(1);
_parent.menu_execute.gotoAndStop(1);
_parent.menu_world.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(2);
}
}
movieClip 3462 {
}
movieClip 3467 {
frame 1 {
stop();
}
}
movieClip 3470 {
frame 1 {
if (_root.territory_suspicion[0] >= 50) {
outline.gotoAndStop(3);
} else {
if (_root.territory_suspicion[0] >= 25) {
outline.gotoAndStop(2);
} else {
outline.gotoAndStop(1);
}
}
}
}
movieClip 3474 {
frame 1 {
stop();
if (_root.territory_suspicion[0] >= 50) {
gotoAndStop(3);
} else {
if (_root.territory_suspicion[0] >= 25) {
gotoAndStop(2);
}
}
}
}
button 3476 {
on (press) {
territorydetails.gotoAndStop('na');
suspicionbar.gotoAndStop('na');
}
}
movieClip 3481 {
frame 1 {
stop();
}
}
movieClip 3484 {
frame 1 {
if (_root.territory_suspicion[3] >= 50) {
outline.gotoAndStop(3);
} else {
if (_root.territory_suspicion[3] >= 25) {
outline.gotoAndStop(2);
} else {
outline.gotoAndStop(1);
}
}
}
}
movieClip 3488 {
frame 1 {
stop();
if (_root.territory_suspicion[3] >= 50) {
gotoAndStop(3);
} else {
if (_root.territory_suspicion[3] >= 25) {
gotoAndStop(2);
}
}
}
}
button 3489 {
on (press) {
territorydetails.gotoAndStop('sa');
suspicionbar.gotoAndStop('sa');
}
}
movieClip 3494 {
frame 1 {
stop();
}
}
movieClip 3497 {
frame 1 {
if (_root.territory_suspicion[1] >= 50) {
outline.gotoAndStop(3);
} else {
if (_root.territory_suspicion[1] >= 25) {
outline.gotoAndStop(2);
} else {
outline.gotoAndStop(1);
}
}
}
}
movieClip 3501 {
frame 1 {
stop();
if (_root.territory_suspicion[1] >= 50) {
gotoAndStop(3);
} else {
if (_root.territory_suspicion[1] >= 25) {
gotoAndStop(2);
}
}
}
}
button 3503 {
on (press) {
territorydetails.gotoAndStop('e');
suspicionbar.gotoAndStop('e');
}
}
movieClip 3508 {
frame 1 {
stop();
}
}
movieClip 3511 {
frame 1 {
if (_root.territory_suspicion[2] >= 50) {
outline.gotoAndStop(3);
} else {
if (_root.territory_suspicion[2] >= 25) {
outline.gotoAndStop(2);
} else {
outline.gotoAndStop(1);
}
}
}
}
movieClip 3515 {
frame 1 {
stop();
if (_root.territory_suspicion[2] >= 50) {
gotoAndStop(3);
} else {
if (_root.territory_suspicion[2] >= 25) {
gotoAndStop(2);
}
}
}
}
button 3516 {
on (press) {
territorydetails.gotoAndStop('a');
suspicionbar.gotoAndStop('a');
}
}
movieClip 3521 {
}
movieClip 3522 {
}
movieClip 3525 {
}
movieClip 3527 {
}
movieClip 3528 {
}
movieClip 3532 {
frame 18 {
stop();
}
}
movieClip 3539 {
frame 18 {
stop();
}
}
movieClip 3544 {
frame 18 {
stop();
}
}
movieClip 3549 {
frame 18 {
stop();
}
}
movieClip 3554 {
frame 18 {
stop();
}
}
movieClip 3557 {
}
movieClip 3558 {
}
movieClip 3560 {
}
movieClip 3561 {
}
movieClip 3563 {
}
movieClip 3564 {
}
movieClip 3565 {
frame 1 {
stop();
}
instance of movieClip 3528 {
onClipEvent (enterFrame) {
_parent.suspicion.bar._xscale = _root.worldmod_na[0];
_parent.leader.bar._xscale = _root.worldmod_na[1];
_parent.politician.bar._xscale = _root.worldmod_na[2];
_parent.criminal.bar._xscale = _root.worldmod_na[3];
}
}
instance of movieClip 3528 {
onClipEvent (enterFrame) {
_parent.suspicion.bar._xscale = _root.worldmod_e[0];
_parent.leader.bar._xscale = _root.worldmod_e[1];
_parent.politician.bar._xscale = _root.worldmod_e[2];
_parent.criminal.bar._xscale = _root.worldmod_e[3];
}
}
instance of movieClip 3528 {
onClipEvent (enterFrame) {
_parent.suspicion.bar._xscale = _root.worldmod_a[0];
_parent.leader.bar._xscale = _root.worldmod_a[1];
_parent.politician.bar._xscale = _root.worldmod_a[2];
_parent.criminal.bar._xscale = _root.worldmod_a[3];
}
}
instance of movieClip 3528 {
onClipEvent (enterFrame) {
_parent.suspicion.bar._xscale = _root.worldmod_sa[0];
_parent.leader.bar._xscale = _root.worldmod_sa[1];
_parent.politician.bar._xscale = _root.worldmod_sa[2];
_parent.criminal.bar._xscale = _root.worldmod_sa[3];
}
}
}
movieClip 3575 {
}
movieClip 3576 {
frame 1 {
stop();
}
instance of movieClip 3528 {
onClipEvent (enterFrame) {
if (_root.territory_suspicion[0] >= 50) {
_parent.suspicion.gotoAndStop(3);
} else {
if (_root.territory_suspicion[0] >= 25) {
_parent.suspicion.gotoAndStop(2);
} else {
_parent.suspicion.gotoAndStop(1);
}
}
}
}
instance of movieClip 3528 {
onClipEvent (enterFrame) {
if (_root.territory_suspicion[1] >= 50) {
_parent.suspicion.gotoAndStop(3);
} else {
if (_root.territory_suspicion[1] >= 25) {
_parent.suspicion.gotoAndStop(2);
} else {
_parent.suspicion.gotoAndStop(1);
}
}
}
}
instance of movieClip 3528 {
onClipEvent (enterFrame) {
if (_root.territory_suspicion[2] >= 50) {
_parent.suspicion.gotoAndStop(3);
} else {
if (_root.territory_suspicion[2] >= 25) {
_parent.suspicion.gotoAndStop(2);
} else {
_parent.suspicion.gotoAndStop(1);
}
}
}
}
instance of movieClip 3528 {
onClipEvent (enterFrame) {
if (_root.territory_suspicion[3] >= 50) {
_parent.suspicion.gotoAndStop(3);
} else {
if (_root.territory_suspicion[3] >= 25) {
_parent.suspicion.gotoAndStop(2);
} else {
_parent.suspicion.gotoAndStop(1);
}
}
}
}
}
movieClip 3577 {
frame 1 {
stop();
_root.current_menu = 'worldmap';
}
frame 6 {
stop();
}
}
movieClip 3584 {
frame 7 {
stop();
}
}
movieClip 3586 {
frame 4 {
stop();
}
}
movieClip 3592 {
frame 1 {
stop();
}
}
movieClip 3595 {
frame 1 {
stop();
}
}
movieClip 3598 {
frame 1 {
stop();
}
}
movieClip 3600 {
frame 8 {
stop();
}
}
movieClip 3607 {
}
movieClip 3638 {
}
movieClip 3657 {
}
movieClip 3658 {
instance hench of movieClip 3657 {
onClipEvent (load) {
if (_root.hench_roster !== '') {
gotoAndStop('empty');
} else {
gotoAndStop('empty');
}
}
}
instance patsy0 of movieClip 3657 {
onClipEvent (load) {
if (_root.patsy_roster[Number(this._name.substr(-1, 1))] !== '') {
gotoAndStop(_root.patsy_roster[Number(this._name.substr(-1, 1))]);
} else {
gotoAndStop('empty');
}
}
}
instance patsy2 of movieClip 3657 {
onClipEvent (load) {
if (_root.patsy_roster[Number(this._name.substr(-1, 1))] !== '') {
gotoAndStop(_root.patsy_roster[Number(this._name.substr(-1, 1))]);
} else {
gotoAndStop('empty');
}
}
}
instance patsy1 of movieClip 3657 {
onClipEvent (load) {
if (_root.patsy_roster[Number(this._name.substr(-1, 1))] !== '') {
gotoAndStop(_root.patsy_roster[Number(this._name.substr(-1, 1))]);
} else {
gotoAndStop('empty');
}
}
}
}
movieClip 3659 {
}
button 3663 {
on (press) {
this.menu_patsy.gotoAndPlay(2);
this.menu_henchman.gotoAndStop(1);
this.menu_meeting.gotoAndStop(1);
this.defaultdisplay.gotoAndStop(1);
this.button_patsy._visible = false;
this.button_henchman._visible = false;
this.button_meeting._visible = false;
}
}
button 3667 {
on (press) {
this.menu_patsy.gotoAndStop(1);
this.menu_henchman.gotoAndPlay(2);
this.menu_meeting.gotoAndStop(1);
this.defaultdisplay.gotoAndStop(1);
this.button_patsy._visible = false;
this.button_henchman._visible = false;
this.button_meeting._visible = false;
}
}
button 3671 {
on (press) {
this.menu_patsy.gotoAndStop(1);
this.menu_henchman.gotoAndStop(1);
this.menu_meeting.gotoAndPlay(2);
this.defaultdisplay.gotoAndStop(1);
this.button_patsy._visible = false;
this.button_henchman._visible = false;
this.button_meeting._visible = false;
}
}
button 3675 {
on (press) {
_root.gamepausedtext.play();
_root.tutorialbox.gotoAndStop('meeting');
}
}
button 3679 {
on (press) {
_parent.menu_patsy.gotoAndStop(1);
_parent.menu_henchman.gotoAndStop(1);
_parent.menu_meeting.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(3);
}
}
movieClip 3693 {
frame 1 {
stop();
}
}
movieClip 3694 {
frame 1 {
stop();
}
frame 6 {
stop();
}
instance patsy13 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy14 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy15 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy16 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy9 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy10 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy11 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy12 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy5 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy6 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy7 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy8 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy1 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy2 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy3 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
instance patsy4 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buypatsysort(this._name.substr(-2, 2)));
}
}
}
movieClip 3697 {
frame 1 {
stop();
}
}
button 3700 {
on (press) {
_parent.menu_patsy.gotoAndStop(1);
_parent.menu_henchman.gotoAndStop(1);
_parent.menu_meeting.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(3);
}
}
movieClip 3711 {
frame 1 {
stop();
}
}
movieClip 3726 {
frame 1 {
stop();
}
frame 2 {
detailsglower.gotoAndPlay(1);
}
frame 3 {
detailsglower.gotoAndPlay(1);
}
frame 4 {
detailsglower.gotoAndPlay(1);
}
frame 5 {
detailsglower.gotoAndPlay(1);
}
frame 6 {
detailsglower.gotoAndPlay(1);
}
frame 7 {
detailsglower.gotoAndPlay(1);
}
frame 8 {
detailsglower.gotoAndPlay(1);
}
frame 9 {
detailsglower.gotoAndPlay(1);
}
frame 10 {
detailsglower.gotoAndPlay(1);
}
frame 11 {
detailsglower.gotoAndPlay(1);
}
frame 12 {
detailsglower.gotoAndPlay(1);
}
frame 13 {
detailsglower.gotoAndPlay(1);
}
frame 14 {
detailsglower.gotoAndPlay(1);
}
frame 15 {
detailsglower.gotoAndPlay(1);
}
frame 16 {
detailsglower.gotoAndPlay(1);
}
frame 17 {
detailsglower.gotoAndPlay(1);
}
}
button 3729 {
on (press) {
_root.plot_patsy[_root.meeting_displaynumber] = _root.patsy_selected;
_root.cutscenemeeting.play();
_parent._parent.defaultdisplay.gotoAndStop(3);
_root.soundplayer.gotoAndPlay('click');
_parent.gotoAndStop(1);
}
}
movieClip 3730 {
frame 1 {
stop();
}
}
movieClip 3731 {
frame 1 {
stop();
_root.current_menu = 'meeting';
}
instance execute1 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(1));
}
}
instance execute3 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(3));
}
}
instance execute4 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(4));
}
}
instance execute2 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(2));
}
}
instance execute5 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(5));
}
}
instance execute6 of movieClip 2565 {
onClipEvent (load) {
gotoAndStop(_root.sortplotexecute(6));
}
}
frame 8 {
stop();
}
instance patsy1 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortdisplay(1));
}
}
instance patsy2 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortdisplay(2));
}
}
instance patsy3 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortdisplay(3));
}
}
frame 13 {
stop();
}
instance expatsy1 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortexecuted(1));
}
}
instance expatsy2 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortexecuted(2));
}
}
instance expatsy3 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.patsysortexecuted(3));
}
}
instance expatsy4 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop('skip');
}
}
frame 18 {
stop();
}
frame 19 {
plotdetailpatsy2.gotoAndStop(_root.patsy_roster[_root.patsy_selected]);
this.expatsy1.gotoAndStop(_root.patsy_roster[0]);
this.expatsy2.gotoAndStop(_root.patsy_roster[1]);
this.expatsy3.gotoAndStop(_root.patsy_roster[2]);
this.expatsy4.gotoAndStop('skip');
if (_root.patsy_executed == -1) {
this.expatsy4.gotoAndStop('skip2');
}
if (_root.patsy_selected > -1) {
this['expatsy' + (_root.patsy_selected + 1)].gotoAndStop(_root.patsy_roster[_root.patsy_selected] + 'locked');
}
if (_root.patsy_executed > -1) {
this['expatsy' + (_root.patsy_executed + 1)].gotoAndStop(_root.patsy_roster[_root.patsy_executed] + 'dead');
}
if (_root.plot_patsy[_root.plot_currentexecuted] > -1) {
this['expatsy' + (_root.plot_patsy[_root.plot_currentexecuted] + 1)].gotoAndStop(_root.patsy_roster[_root.plot_patsy[_root.plot_currentexecuted]] + 'locked');
}
if (_root.patsy_executed == -1) {
this.expatsy4.gotoAndStop('skipdead');
}
_root.patsy_missionbonuses(_root.meetingroom_mission, false);
var plot_patsytime_string = _root.plot_patsytime + '%';
var plot_patsycost_string = _root.plot_patsycost + '%';
var plot_patsymin_string = _root.plot_patsymin + '%';
var plot_patsysuccess_string = '+' + _root.plot_patsysuccess + '%';
if (_root.plot_patsytime >= 0) {
plot_patsytime_string = '+' + plot_patsytime_string;
}
if (_root.plot_cost[_root.meetingroom_mission] >= 0) {
plot_patsycost_string = '+0%';
}
if (_root.plot_patsymin >= 0) {
plot_patsymin_string = '+' + plot_patsymin_string;
}
}
frame 23 {
stop();
}
}
button 3734 {
on (press) {
_parent.menu_patsy.gotoAndStop(1);
_parent.menu_henchman.gotoAndStop(1);
_parent.menu_meeting.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(3);
}
}
movieClip 3736 {
frame 1 {
stop();
}
frame 6 {
stop();
}
instance hench9 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench10 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench11 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench12 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench5 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench6 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench7 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench8 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench1 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench2 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench3 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
instance hench4 of movieClip 3389 {
onClipEvent (load) {
gotoAndStop(_root.buyhenchsort(this._name.substr(-2, 2)));
}
}
}
movieClip 3738 {
frame 8 {
stop();
}
}
movieClip 3740 {
frame 8 {
stop();
}
}
movieClip 3748 {
}
movieClip 3749 {
}
movieClip 3750 {
}
movieClip 3752 {
}
movieClip 3753 {
}
movieClip 3761 {
}
movieClip 3762 {
}
movieClip 3764 {
}
movieClip 3770 {
}
movieClip 3771 {
}
movieClip 3774 {
}
movieClip 3775 {
}
movieClip 3778 {
}
movieClip 3798 {
}
movieClip 3799 {
}
movieClip 3801 {
}
movieClip 3802 {
}
movieClip 3803 {
}
button 3807 {
on (press) {
this.menu_business.gotoAndPlay(2);
this.menu_base.gotoAndStop(1);
this.defaultdisplay.gotoAndStop(1);
this.button_business._visible = false;
this.button_base._visible = false;
}
}
button 3811 {
on (press) {
this.menu_business.gotoAndStop(1);
this.menu_base.gotoAndPlay(2);
this.defaultdisplay.gotoAndStop(1);
this.button_business._visible = false;
this.button_base._visible = false;
}
}
button 3812 {
on (press) {
if (_root.player_science5[0] == true) {
_parent.controlAI.play();
} else {
if (_root.player_minfinancial < 15 and _root.player_minpool > 0) {
deployglow3.gotoAndPlay(2);
_root.player_minpool -= 1;
_root.player_minfinancial += 1;
_root.soundplayer.gotoAndPlay('deploy');
_root.roommenu.financialroompicture1.financialroompicture2.gotoAndStop(_root.player_minfinancial + 1);
_root.income_calculator();
} else {
_root.soundplayer.gotoAndPlay('error');
if (_root.player_minpool > 0) {
_parent.financialfull.play();
}
}
}
}
}
button 3813 {
on (press) {
if (_root.player_science5[0] == true) {
_parent.controlAI.play();
} else {
if (_root.player_minfinancial > 0) {
_root.minionpooldisplay.deployglow4.gotoAndPlay(2);
_root.player_minpool += 1;
_root.player_minfinancial -= 1;
_root.soundplayer.gotoAndPlay('recall');
_root.roommenu.financialroompicture1.financialroompicture2.gotoAndStop(_root.player_minfinancial + 1);
_root.income_calculator();
} else {
_root.soundplayer.gotoAndPlay('error');
}
}
}
}
movieClip 3814 {
}
button 3818 {
on (press) {
_root.gamepausedtext.play();
_root.tutorialbox.gotoAndStop('financial');
}
}
button 3822 {
on (press) {
_parent.button_business._visible = true;
_parent.button_base._visible = true;
_parent.menu_base.gotoAndStop(1);
_parent.menu_business.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(4);
}
}
movieClip 3826 {
}
button 3836 {
on (rollOver) {
_parent.basedetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 10000) {
_root.player_cash -= 10000;
_root.player_base[1] = true;
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
button 3842 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 20000) {
_root.player_cash -= 20000;
_root.player_base[2] = true;
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 3848 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 30000) {
_root.player_cash -= 30000;
_root.player_base[3] = true;
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 3854 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 15000) {
_root.player_cash -= 15000;
_root.player_base[4] = true;
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 3860 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 24000) {
_root.player_cash -= 24000;
_root.player_base[5] = true;
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 3866 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 25000) {
_root.player_cash -= 25000;
_root.player_weapon[6] = 'yes';
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 3872 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 8000) {
_root.player_cash -= 8000;
_root.player_weapon[7] = 'yes';
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 3878 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 22000) {
_root.player_cash -= 22000;
_root.player_weapon[8] = 'yes';
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
movieClip 3880 {
}
movieClip 3882 {
}
movieClip 3884 {
}
movieClip 3886 {
}
movieClip 3888 {
}
movieClip 3890 {
}
movieClip 3892 {
}
movieClip 3894 {
}
movieClip 3895 {
frame 1 {
stop();
}
}
movieClip 3900 {
frame 7 {
stop();
}
}
movieClip 3902 {
}
movieClip 3941 {
frame 1 {
stop();
}
frame 2 {
detailsglower.gotoAndPlay(1);
}
instance of movieClip 3902 {
onClipEvent (load) {
if (_parent._parent._name == 'menu_evacuate') {
this._visible = false;
}
}
}
frame 3 {
detailsglower.gotoAndPlay(1);
}
frame 4 {
detailsglower.gotoAndPlay(1);
}
frame 5 {
detailsglower.gotoAndPlay(1);
}
frame 6 {
detailsglower.gotoAndPlay(1);
}
frame 7 {
detailsglower.gotoAndPlay(1);
}
frame 8 {
detailsglower.gotoAndPlay(1);
}
frame 9 {
detailsglower.gotoAndPlay(1);
}
}
button 3945 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
on (press) {
if (_parent._name == 'menu_evacuate') {
_root.select_baseevac = 1;
_parent.gotoAndPlay(7);
_parent.basedetail.gotoAndStop(this._name);
} else {
if (_parent._name == 'menu_base') {
if (_root.player_cash >= 10000) {
_root.player_cash -= 10000;
_root.player_base[1] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
}
button 3949 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
on (press) {
if (_parent._name == 'menu_evacuate') {
_root.select_baseevac = 2;
_parent.gotoAndPlay(7);
_parent.basedetail.gotoAndStop(this._name);
} else {
if (_parent._name == 'menu_base') {
if (_root.player_cash >= 20000) {
_root.player_cash -= 20000;
_root.player_base[2] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
}
button 3953 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
on (press) {
if (_parent._name == 'menu_evacuate') {
_root.select_baseevac = 3;
_parent.gotoAndPlay(7);
_parent.basedetail.gotoAndStop(this._name);
} else {
if (_parent._name == 'menu_base') {
if (_root.player_cash >= 30000) {
_root.player_cash -= 30000;
_root.player_base[3] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
}
button 3957 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
on (press) {
if (_parent._name == 'menu_evacuate') {
_root.select_baseevac = 4;
_parent.gotoAndPlay(7);
_parent.basedetail.gotoAndStop(this._name);
} else {
if (_parent._name == 'menu_base') {
if (_root.player_cash >= 15000) {
_root.player_cash -= 15000;
_root.player_base[4] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
}
button 3961 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
on (press) {
if (_parent._name == 'menu_evacuate') {
_root.select_baseevac = 5;
_parent.gotoAndPlay(7);
_parent.basedetail.gotoAndStop(this._name);
} else {
if (_parent._name == 'menu_base') {
trace('test1');
if (_root.player_cash >= 24000) {
trace('test2');
_root.player_cash -= 24000;
_root.player_base[5] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
}
button 3965 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
on (press) {
if (_parent._name == 'menu_evacuate') {
_root.select_baseevac = 6;
_parent.gotoAndPlay(7);
_parent.basedetail.gotoAndStop(this._name);
} else {
if (_parent._name == 'menu_base') {
if (_root.player_cash >= 25000) {
_root.player_cash -= 25000;
_root.player_base[6] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
}
button 3969 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
on (press) {
if (_parent._name == 'menu_evacuate') {
_root.select_baseevac = 7;
_parent.gotoAndPlay(7);
_parent.basedetail.gotoAndStop(this._name);
} else {
if (_parent._name == 'menu_base') {
if (_root.player_cash >= 8000) {
_root.player_cash -= 8000;
_root.player_base[7] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
}
button 3973 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
on (press) {
if (_parent._name == 'menu_evacuate') {
_root.select_baseevac = 8;
_parent.gotoAndPlay(7);
_parent.basedetail.gotoAndStop(this._name);
} else {
if (_parent._name == 'menu_base') {
if (_root.player_cash >= 22000) {
_root.player_cash -= 22000;
_root.player_base[8] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
}
button 3976 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 3979 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 3982 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 3985 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 3988 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 3991 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 3994 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 3997 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 4004 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
on (press) {
if (_parent._name == 'menu_business') {
if (_root.player_cash >= 2000) {
_root.player_cash -= 2000;
_root.cash_invested += 2000;
_root.business_coffee += 1;
if (_root.business_coffee >= 5) {
this.gotoAndStop(this._name + 'closed');
}
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
button 4009 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
on (press) {
if (_parent._name == 'menu_business') {
if (_root.player_cash >= 3500) {
_root.player_cash -= 3500;
_root.cash_invested += 3500;
_root.business_book += 1;
if (_root.business_book >= 5) {
this.gotoAndStop(this._name + 'closed');
}
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
button 4014 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
on (press) {
if (_parent._name == 'menu_business') {
if (_root.player_cash >= 5000) {
_root.player_cash -= 5000;
_root.cash_invested += 5000;
_root.business_invest += 1;
if (_root.business_invest >= 5) {
this.gotoAndStop(this._name + 'closed');
}
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
button 4019 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
on (press) {
if (_parent._name == 'menu_business') {
if (_root.player_cash >= 10000) {
_root.player_cash -= 10000;
_root.cash_invested += 10000;
_root.business_law += 1;
if (_root.business_law >= 5) {
this.gotoAndStop(this._name + 'closed');
}
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
button 4025 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
on (press) {
if (_parent._name == 'menu_business') {
if (_root.player_cash >= 15000) {
_root.player_cash -= 15000;
_root.cash_invested += 15000;
_root.business_hq += 1;
if (_root.business_hq >= 1) {
this.gotoAndStop(this._name + 'closed');
}
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
button 4030 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
on (press) {
if (_parent._name == 'menu_business') {
if (_root.player_cash >= 15000) {
_root.player_cash -= 15000;
_root.cash_invested += 15000;
_root.business_research += 1;
if (_root.business_research >= 1) {
this.gotoAndStop(this._name + 'closed');
}
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
button 4035 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
on (press) {
if (_parent._name == 'menu_business') {
if (_root.player_cash >= 20000) {
_root.player_cash -= 20000;
_root.cash_invested += 20000;
_root.business_investig += 1;
if (_root.business_investig >= 1) {
this.gotoAndStop(this._name + 'closed');
}
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
button 4040 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
on (press) {
if (_parent._name == 'menu_business') {
if (_root.player_cash >= 3000) {
_root.player_cash -= 3000;
_root.cash_invested += 3000;
_root.business_factory += 1;
if (_root.business_factory >= 5) {
this.gotoAndStop(this._name + 'closed');
}
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.baseerror.play();
}
}
}
}
button 4044 {
on (rollOver) {
if (_parent._name !== 'menu_evacuate' or _parent._name == 'menu_evacuate' and _parent._currentframe < 7) {
_parent.basedetail.gotoAndStop(this._name);
}
}
}
button 4049 {
on (rollOver) {
_parent.businessdetails.gotoAndStop(this._name);
}
}
movieClip 4050 {
frame 1 {
stop();
}
}
movieClip 4078 {
frame 1 {
stop();
}
frame 2 {
detailsglower.gotoAndPlay(1);
}
frame 3 {
detailsglower.gotoAndPlay(1);
}
frame 4 {
detailsglower.gotoAndPlay(1);
}
frame 5 {
detailsglower.gotoAndPlay(1);
}
frame 6 {
detailsglower.gotoAndPlay(1);
}
frame 7 {
detailsglower.gotoAndPlay(1);
}
frame 8 {
detailsglower.gotoAndPlay(1);
}
frame 9 {
detailsglower.gotoAndPlay(1);
}
}
movieClip 4079 {
frame 1 {
stop();
}
instance office of movieClip 3895 {
onClipEvent (load) {
if (_root.player_base[1] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[1] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(1) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance wastes of movieClip 3895 {
onClipEvent (load) {
if (_root.player_base[3] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[3] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(3) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance jungle of movieClip 3895 {
onClipEvent (load) {
if (_root.player_base[5] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[5] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(5) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance skyscraper of movieClip 3895 {
onClipEvent (load) {
if (_root.player_base[7] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[7] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(7) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance volcano of movieClip 3895 {
onClipEvent (load) {
if (_root.player_base[2] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[2] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(2) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance aquadome of movieClip 3895 {
onClipEvent (load) {
if (_root.player_base[4] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[4] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(4) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance castle of movieClip 3895 {
onClipEvent (load) {
if (_root.player_base[6] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[6] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(6) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance moon of movieClip 3895 {
onClipEvent (load) {
if (_root.player_base[8] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[8] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(8) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
frame 7 {
stop();
}
instance coffee of movieClip 4050 {
onClipEvent (load) {
if (_root.business_coffee >= 5) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.business_coffee < 5) {
this.gotoAndStop(this._name);
}
if (_root.sort_businesses(1) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance hq of movieClip 4050 {
onClipEvent (load) {
if (_root.business_hq >= 1) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.business_hq < 1) {
this.gotoAndStop(this._name);
}
if (_root.sort_businesses(5) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance book of movieClip 4050 {
onClipEvent (load) {
if (_root.business_book >= 5) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.business_book < 5) {
this.gotoAndStop(this._name);
}
if (_root.sort_businesses(2) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance research of movieClip 4050 {
onClipEvent (load) {
if (_root.business_research >= 1) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.business_research < 1) {
this.gotoAndStop(this._name);
}
if (_root.sort_businesses(6) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance invest of movieClip 4050 {
onClipEvent (load) {
if (_root.business_invest >= 5) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.business_invest < 5) {
this.gotoAndStop(this._name);
}
if (_root.sort_businesses(3) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance investig of movieClip 4050 {
onClipEvent (load) {
if (_root.business_investig >= 1) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.business_investig < 1) {
this.gotoAndStop(this._name);
}
if (_root.sort_businesses(7) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance law of movieClip 4050 {
onClipEvent (load) {
if (_root.business_law >= 5) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.business_law < 5) {
this.gotoAndStop(this._name);
}
if (_root.sort_businesses(4) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance factory of movieClip 4050 {
onClipEvent (load) {
if (_root.business_factory >= 5) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.business_factory < 5) {
this.gotoAndStop(this._name);
}
if (_root.sort_businesses(8) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
}
button 4081 {
on (press) {
_parent.button_business._visible = true;
_parent.button_base._visible = true;
_parent.menu_base.gotoAndStop(1);
_parent.menu_business.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(4);
}
}
movieClip 4082 {
frame 1 {
stop();
}
frame 7 {
stop();
}
instance office of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[7] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[7] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(7) == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[7] == true) {
this.gotoAndStop(this._name + 'dead');
}
}
}
instance jungle of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[8] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[8] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(8) == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[8] == true) {
this.gotoAndStop(this._name + 'dead');
}
}
}
instance volcano of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[1] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[1] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(1) == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[1] == true) {
this.gotoAndStop(this._name + 'dead');
}
}
}
instance castle of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[5] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[5] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(5) == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[5] == true) {
this.gotoAndStop(this._name + 'dead');
}
}
}
instance wastes of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[4] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[4] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(4) == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[4] == true) {
this.gotoAndStop(this._name + 'dead');
}
}
}
instance skyscraper of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[6] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[6] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(6) == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[6] == true) {
this.gotoAndStop(this._name + 'dead');
}
}
}
instance aquadome of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[2] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[2] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(2) == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[2] == true) {
this.gotoAndStop(this._name + 'dead');
}
}
}
instance moon of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[3] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_base[3] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_bases(3) == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[3] == true) {
this.gotoAndStop(this._name + 'dead');
}
}
}
}
movieClip 4084 {
frame 8 {
stop();
}
}
movieClip 4086 {
frame 4 {
stop();
}
}
movieClip 4088 {
frame 8 {
stop();
}
}
movieClip 4091 {
frame 1 {
stop();
}
}
movieClip 4092 {
instance of movieClip 4091 {
onClipEvent (enterFrame) {
if (_root.player_weapon[6] != true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 4091 {
onClipEvent (enterFrame) {
if (_root.player_weapon[5] != true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 4091 {
onClipEvent (enterFrame) {
if (_root.player_weapon[4] != true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 4091 {
onClipEvent (enterFrame) {
if (_root.player_weapon[3] != true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 4091 {
onClipEvent (enterFrame) {
if (_root.player_weapon[2] != true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 4091 {
onClipEvent (enterFrame) {
if (_root.player_weapon[1] != true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
}
movieClip 4093 {
}
button 4097 {
on (press) {
this.menu_weapons.gotoAndPlay(2);
this.menu_defenses.gotoAndStop(1);
this.menu_powers.gotoAndStop(1);
this.defaultdisplay.gotoAndStop(1);
this.button_weapon._visible = false;
this.button_turret._visible = false;
this.button_power._visible = false;
}
}
button 4101 {
on (press) {
this.menu_weapons.gotoAndStop(1);
this.menu_defenses.gotoAndPlay(2);
this.menu_powers.gotoAndStop(1);
this.defaultdisplay.gotoAndStop(1);
this.button_weapon._visible = false;
this.button_turret._visible = false;
this.button_power._visible = false;
}
}
button 4105 {
on (press) {
this.menu_weapons.gotoAndStop(1);
this.menu_defenses.gotoAndStop(1);
this.menu_powers.gotoAndPlay(2);
this.defaultdisplay.gotoAndStop(1);
this.button_weapon._visible = false;
this.button_turret._visible = false;
this.button_power._visible = false;
}
}
button 4109 {
on (press) {
_root.gamepausedtext.play();
_root.tutorialbox.gotoAndStop('weapons');
}
}
button 4112 {
on (press) {
this.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(5);
_parent.button_weapon._visible = true;
_parent.button_turret._visible = true;
_parent.button_power._visible = true;
}
}
movieClip 4114 {
frame 1 {
stop();
}
}
movieClip 4122 {
frame 8 {
stop();
}
}
movieClip 4140 {
frame 1 {
gotoAndStop(_parent._parent._parent._name);
}
}
movieClip 4141 {
frame 8 {
stop();
}
}
button 4144 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_weapon[1] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4149 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 4000) {
_root.player_cash -= 4000;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.player_weapon[2] = true;
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4153 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 8000) {
_root.player_cash -= 8000;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.player_weapon[3] = true;
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4158 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 14000) {
_root.player_cash -= 14000;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.player_weapon[4] = true;
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4162 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 20000) {
_root.player_cash -= 20000;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.player_weapon[5] = true;
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4167 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 35000) {
_root.player_cash -= 35000;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.player_weapon[6] = true;
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4170 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4173 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4176 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4179 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4182 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4185 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4192 {
on (rollOver) {
_parent.displayturret.gotoAndStop(2);
_parent.displayturret.display2.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 800) {
if (_root.player_turrets[0] == -1 or _root.player_turrets[1] == -1 or _root.player_turrets[2] == -1 or _root.player_turrets[3] == -1 or _root.player_turrets[4] == -1 or _root.player_turrets[5] == -1) {
_root.player_cash -= 800;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.unit_spawner.spawn_minion('basicturret');
}
} else {
_root.soundplayer.gotoAndPlay('error');
_root.cashpointer.play();
}
}
}
button 4197 {
on (rollOver) {
_parent.displayturret.gotoAndStop(2);
_parent.displayturret.display2.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1200) {
if (_root.player_turrets[0] == -1 or _root.player_turrets[1] == -1 or _root.player_turrets[2] == -1 or _root.player_turrets[3] == -1 or _root.player_turrets[4] == -1 or _root.player_turrets[5] == -1) {
_root.player_cash -= 1200;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.unit_spawner.spawn_minion('repeaterturret');
}
} else {
_root.soundplayer.gotoAndPlay('error');
_root.cashpointer.play();
}
}
}
button 4202 {
on (rollOver) {
_parent.displayturret.gotoAndStop(2);
_parent.displayturret.display2.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 2000) {
if (_root.player_turrets[0] == -1 or _root.player_turrets[1] == -1 or _root.player_turrets[2] == -1 or _root.player_turrets[3] == -1 or _root.player_turrets[4] == -1 or _root.player_turrets[5] == -1) {
_root.player_cash -= 2000;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.unit_spawner.spawn_minion('laserturret');
}
} else {
_root.soundplayer.gotoAndPlay('error');
_root.cashpointer.play();
}
}
}
button 4207 {
on (rollOver) {
_parent.displayturret.gotoAndStop(2);
_parent.displayturret.display2.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 2000) {
if (_root.player_turrets[0] == -1 or _root.player_turrets[1] == -1 or _root.player_turrets[2] == -1 or _root.player_turrets[3] == -1 or _root.player_turrets[4] == -1 or _root.player_turrets[5] == -1) {
_root.player_cash -= 2000;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
_root.unit_spawner.spawn_minion('aaturret');
}
} else {
_root.soundplayer.gotoAndPlay('error');
_root.cashpointer.play();
}
}
}
button 4210 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_weapon[1] = 'yes';
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4213 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_weapon[1] = 'yes';
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4216 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_weapon[1] = 'yes';
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4219 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_weapon[1] = 'yes';
_root.moneydisplayer();
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4223 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_power[1] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4228 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_power[3] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4232 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_power[2] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4236 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_power[0] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4240 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_power[4] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4244 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
on (press) {
if (_root.player_cash >= 1000) {
_root.player_cash -= 1000;
_root.player_power[5] = true;
_root.moneydisplayer();
_root.soundplayer.gotoAndPlay('buy');
this.gotoAndStop(this._name + 'closed');
} else {
_root.soundplayer.gotoAndPlay('error');
_parent.weaponerror.play();
}
}
}
button 4247 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4250 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4253 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4256 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4259 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
button 4262 {
on (rollOver) {
_parent.weapondetail.gotoAndStop(this._name);
}
}
movieClip 4263 {
frame 1 {
stop();
}
}
movieClip 4264 {
frame 1 {
stop();
}
instance combat of movieClip 4263 {
onClipEvent (load) {
if (_root.player_weapon[1] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_weapon[1] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_weapon(1) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance automatic of movieClip 4263 {
onClipEvent (load) {
if (_root.player_weapon[2] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_weapon[2] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_weapon(2) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance heavy of movieClip 4263 {
onClipEvent (load) {
if (_root.player_weapon[3] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_weapon[3] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_weapon(3) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance laser of movieClip 4263 {
onClipEvent (load) {
if (_root.player_weapon[4] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_weapon[4] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_weapon(4) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance flamethrower of movieClip 4263 {
onClipEvent (load) {
if (_root.player_weapon[5] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_weapon[5] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_weapon(5) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance railgun of movieClip 4263 {
onClipEvent (load) {
if (_root.player_weapon[6] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_weapon[6] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_weapon(6) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
frame 6 {
stop();
}
}
button 4267 {
on (press) {
this.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(5);
_parent.button_weapon._visible = true;
_parent.button_turret._visible = true;
_parent.button_power._visible = true;
}
}
movieClip 4275 {
frame 5 {
stop();
}
}
movieClip 4282 {
}
movieClip 4283 {
frame 1 {
stop();
}
}
movieClip 4284 {
frame 1 {
stop();
}
instance basicturret of movieClip 4263 {
onClipEvent (load) {
this.gotoAndStop(this._name);
if (_root.sort_turret(0) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance repeaterturret of movieClip 4263 {
onClipEvent (load) {
this.gotoAndStop(this._name);
if (_root.sort_turret(1) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance laserturret of movieClip 4263 {
onClipEvent (load) {
this.gotoAndStop(this._name);
if (_root.sort_turret(2) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance aaturret of movieClip 4263 {
onClipEvent (load) {
this.gotoAndStop(this._name);
if (_root.sort_turret(3) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
frame 6 {
stop();
}
}
button 4288 {
on (press) {
this.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(5);
_parent.button_weapon._visible = true;
_parent.button_turret._visible = true;
_parent.button_power._visible = true;
}
}
movieClip 4289 {
frame 1 {
stop();
}
instance execute of movieClip 4263 {
onClipEvent (load) {
if (_root.player_power[0] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_power[0] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_power(0) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance gasbattlefield of movieClip 4263 {
onClipEvent (load) {
if (_root.player_power[1] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_power[1] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_power(1) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance supersoldiers of movieClip 4263 {
onClipEvent (load) {
if (_root.player_power[2] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_power[2] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_power(2) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance electromagnets of movieClip 4263 {
onClipEvent (load) {
if (_root.player_power[3] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_power[3] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_power(3) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance injection of movieClip 4263 {
onClipEvent (load) {
if (_root.player_power[4] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_power[4] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_power(4) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
instance clonesoldiers of movieClip 4263 {
onClipEvent (load) {
if (_root.player_power[5] == true) {
this.gotoAndStop(this._name + 'closed');
}
if (_root.player_power[5] == false) {
this.gotoAndStop(this._name);
}
if (_root.sort_power(5) == false) {
this.gotoAndStop(this._name + 'locked');
}
}
}
frame 6 {
stop();
}
}
movieClip 4291 {
frame 8 {
stop();
}
}
movieClip 4293 {
frame 8 {
stop();
}
}
movieClip 4296 {
}
movieClip 4297 {
}
movieClip 4302 {
}
movieClip 4303 {
}
movieClip 4305 {
}
button 4309 {
on (press) {
this.menu_evacuate.gotoAndPlay(2);
this.menu_events.gotoAndStop(1);
this.defaultdisplay.gotoAndStop(1);
this.button_evac._visible = false;
this.button_event._visible = false;
}
}
button 4313 {
on (press) {
this.menu_evacuate.gotoAndStop(1);
this.menu_events.gotoAndPlay(2);
this.defaultdisplay.gotoAndStop(1);
this.button_evac._visible = false;
this.button_event._visible = false;
}
}
button 4317 {
on (press) {
_root.gamepausedtext.play();
_root.tutorialbox.gotoAndStop('inner');
}
}
button 4321 {
on (press) {
this.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(6);
_parent.button_evac._visible = true;
_parent.button_event._visible = true;
}
}
button 4328 {
on (press) {
_root.cutsceneevac.play();
_root.roombuttons.roombuttonselector.gotoAndStop(1);
_root.soundplayer.gotoAndPlay('click');
_root.player_currentroom = 0;
_root.roommenu.gotoAndStop(1);
}
}
movieClip 4329 {
frame 1 {
stop();
}
}
movieClip 4330 {
frame 1 {
stop();
}
instance office of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[7] == true) {
this.gotoAndStop(this._name);
}
if (_root.player_base[7] == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[7] == true) {
this.gotoAndStop(this._name + 'dead');
}
if (_root.player_currentbase == 7) {
this.gotoAndStop(this._name + 'closed');
}
}
}
instance jungle of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[8] == true) {
this.gotoAndStop(this._name);
}
if (_root.player_base[8] == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[8] == true) {
this.gotoAndStop(this._name + 'dead');
}
if (_root.player_currentbase == 8) {
this.gotoAndStop(this._name + 'closed');
}
}
}
instance volcano of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[1] == true) {
this.gotoAndStop(this._name);
}
if (_root.player_base[1] == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[1] == true) {
this.gotoAndStop(this._name + 'dead');
}
if (_root.player_currentbase == 1) {
this.gotoAndStop(this._name + 'closed');
}
}
}
instance castle of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[5] == true) {
this.gotoAndStop(this._name);
}
if (_root.player_base[5] == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[5] == true) {
this.gotoAndStop(this._name + 'dead');
}
if (_root.player_currentbase == 5) {
this.gotoAndStop(this._name + 'closed');
}
}
}
instance wastes of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[4] == true) {
this.gotoAndStop(this._name);
}
if (_root.player_base[4] == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[4] == true) {
this.gotoAndStop(this._name + 'dead');
}
if (_root.player_currentbase == 4) {
this.gotoAndStop(this._name + 'closed');
}
}
}
instance skyscraper of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[6] == true) {
this.gotoAndStop(this._name);
}
if (_root.player_base[6] == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[6] == true) {
this.gotoAndStop(this._name + 'dead');
}
if (_root.player_currentbase == 6) {
this.gotoAndStop(this._name + 'closed');
}
}
}
instance aquadome of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[2] == true) {
this.gotoAndStop(this._name);
}
if (_root.player_base[2] == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[2] == true) {
this.gotoAndStop(this._name + 'dead');
}
if (_root.player_currentbase == 2) {
this.gotoAndStop(this._name + 'closed');
}
}
}
instance moon of movieClip 4050 {
onClipEvent (load) {
if (_root.player_base[3] == true) {
this.gotoAndStop(this._name);
}
if (_root.player_base[3] == false) {
this.gotoAndStop(this._name + 'locked');
}
if (_root.player_basedestroyed[3] == true) {
this.gotoAndStop(this._name + 'dead');
}
if (_root.player_currentbase == 3) {
this.gotoAndStop(this._name + 'closed');
}
}
}
frame 6 {
stop();
}
frame 10 {
stop();
}
}
movieClip 4349 {
frame 1 {
stop();
}
}
movieClip 4360 {
frame 1 {
stop();
}
}
movieClip 4376 {
frame 1 {
stop();
}
}
movieClip 4438 {
frame 1 {
stop();
}
}
movieClip 4441 {
frame 1 {
stop();
}
}
movieClip 4442 {
frame 1 {
stop();
}
}
button 4444 {
on (press) {
this.gotoAndStop(1);
_parent.defaultdisplay.gotoAndStop(6);
_parent.button_evac._visible = true;
_parent.button_event._visible = true;
}
}
button 4448 {
on (press) {
_root.event_display(this._name.substr(-1, 1));
}
}
movieClip 4454 {
frame 1 {
stop();
}
}
movieClip 4480 {
frame 1 {
stop();
}
}
movieClip 4485 {
frame 1 {
stop();
if (_root.player_science5[1] == true) {
this.nextFrame();
}
}
}
movieClip 4486 {
frame 1 {
stop();
}
frame 7 {
stop();
}
instance event1 of movieClip 4480 {
onClipEvent (load) {
_root.event_sort(1);
}
}
instance event2 of movieClip 4480 {
onClipEvent (load) {
_root.event_sort(2);
}
}
}
movieClip 4488 {
frame 8 {
stop();
}
}
movieClip 4489 {
frame 1 {
stop();
_root.spritebutton(true);
}
frame 2 {
this.controlroompicture1.controlroompicture2.gotoAndStop(_root.player_mincontrol + 1);
if (_root.player_science5[0] == true) {
this.controlroompicture1.controlroompicture2.gotoAndStop(20);
}
this.defaultdisplay.gotoAndStop(2);
_root.spritebutton(false);
if (_root.player_tutorial > -1) {
button_worldX._visible = false;
}
if (_root.player_tutorial < 7 and _root.player_tutorial !== -1) {
button_executeX._visible = false;
}
}
frame 3 {
this.defaultdisplay.gotoAndStop(3);
_root.spritebutton(false);
}
frame 4 {
this.financialroompicture1.financialroompicture2.gotoAndStop(_root.player_minfinancial + 1);
if (_root.player_science5[0] == true) {
this.financialroompicture1.financialroompicture2.gotoAndStop(20);
}
this.defaultdisplay.gotoAndStop(4);
_root.spritebutton(false);
}
frame 5 {
this.defaultdisplay.gotoAndStop(5);
_root.spritebutton(false);
}
frame 6 {
this.defaultdisplay.gotoAndStop(6);
_root.spritebutton(false);
}
}
movieClip 4495 {
}
movieClip 4498 {
}
movieClip 4505 {
frame 25 {
stop();
}
}
button 4509 {
on (press) {
if (_root.player_currentroom == 1) {
_root.roommenu.gotoAndStop(1);
roombuttonselector.gotoAndStop(1);
_root.player_currentroom = 0;
} else {
_root.roommenu.gotoAndStop(2);
roombuttonselector.gotoAndStop(2);
_root.player_currentroom = 1;
}
}
}
movieClip 4512 {
}
movieClip 4519 {
frame 25 {
stop();
}
}
button 4523 {
on (press) {
if (_root.player_currentroom == 2) {
_root.roommenu.gotoAndStop(1);
roombuttonselector.gotoAndStop(1);
_root.player_currentroom = 0;
} else {
_root.roommenu.gotoAndStop(3);
roombuttonselector.gotoAndStop(3);
_root.player_currentroom = 2;
}
}
}
movieClip 4525 {
}
movieClip 4531 {
frame 25 {
stop();
}
}
button 4534 {
on (press) {
if (_root.player_currentroom == 3) {
_root.roommenu.gotoAndStop(1);
roombuttonselector.gotoAndStop(1);
_root.player_currentroom = 0;
} else {
_root.roommenu.gotoAndStop(4);
roombuttonselector.gotoAndStop(4);
_root.player_currentroom = 3;
}
}
}
movieClip 4537 {
}
movieClip 4544 {
frame 25 {
stop();
}
}
button 4547 {
on (press) {
if (_root.player_currentroom == 4) {
_root.roommenu.gotoAndStop(1);
roombuttonselector.gotoAndStop(1);
_root.player_currentroom = 0;
} else {
_root.roommenu.gotoAndStop(5);
roombuttonselector.gotoAndStop(5);
_root.player_currentroom = 4;
}
}
}
movieClip 4550 {
}
movieClip 4557 {
frame 25 {
stop();
}
}
button 4560 {
on (press) {
if (_root.player_currentroom == 5) {
_root.roommenu.gotoAndStop(1);
roombuttonselector.gotoAndStop(1);
_root.player_currentroom = 0;
} else {
_root.roommenu.gotoAndStop(6);
roombuttonselector.gotoAndStop(6);
_root.player_currentroom = 5;
}
}
}
button 4566 {
on (press) {
if (_root.player_minpool > 0 and _root.display_defensemin < _root.player_mindefensemax) {
deployglow1.gotoAndPlay(2);
_root.unit_spawner.spawn_minion('Minion');
_root.display_defenseminions();
_root.player_minpool -= 1;
_root.soundplayer.gotoAndPlay('deploy');
} else {
_root.soundplayer.gotoAndPlay('error');
if (_root.player_minpool > 0) {
defensefull.play();
}
}
}
}
button 4569 {
on (press) {
if (_root.player_tutorial == -1) {
_root.display_defenseminions();
_root.unit_actions.recall_minion('minion');
if (Math.floor(Math.random() * 5) + 1 == 1) {
_root.voicebox.play_voice('returning');
}
}
}
}
movieClip 4570 {
}
movieClip 4574 {
frame 1 {
stop();
}
}
movieClip 4575 {
}
movieClip 4584 {
frame 1 {
stop();
}
}
movieClip 4586 {
frame 1 {
_root.player_xptarget = _root.player_level * 100 + ' XP';
if (_root.player_level == 10) {
xpcover.gotoAndStop(2);
}
}
}
movieClip 4589 {
}
button 4594 {
on (press) {
_root.gamepausedtext.play();
}
}
button 4597 {
on (press) {
if (_quality == 'HIGH') {
_quality = 'MEDIUM';
} else {
if (_quality == 'MEDIUM') {
_quality = 'LOW';
} else {
if (_quality == 'LOW') {
_quality = 'HIGH';
}
}
}
(SharedObject.getLocal('MWC')).data.player_quality = _quality;
}
}
button 4603 {
on (press) {
this.nextFrame();
}
}
button 4605 {
on (press) {
this.prevFrame();
}
}
button 4606 {
on (press) {
this.prevFrame();
}
}
button 4607 {
on (press) {
_root.voicebox.mbox.stop();
_root.voicebox.vbox.stop();
_root.voicebox.hbox.stop();
_root.tutorialbox.tutbox.stop();
_root.player_currentroom = 0;
_root.gotoAndStop('mainmenu');
}
}
movieClip 4608 {
frame 1 {
stop();
}
}
button 4611 {
on (press) {
this.nextFrame();
}
}
button 4615 {
on (press) {
getURL('http://www.theswain.com/About/MWC_Walkthrough.htm', 'blank');
this.gotoAndStop(1);
}
}
button 4616 {
on (press) {
if (_root.player_tutorial == -1) {
_root.gamepausedtext.play();
_root.tutorialbox.gotoAndStop('general');
this.gotoAndStop(1);
}
}
}
button 4617 {
on (press) {
_root.tooltipsbox.gotoAndStop(2);
_root.gamepausedtext.play();
this.gotoAndStop(1);
}
}
button 4618 {
on (press) {
this.prevFrame();
}
}
movieClip 4622 {
frame 1 {
stop();
}
}
movieClip 4623 {
}
movieClip 4626 {
}
movieClip 4629 {
}
movieClip 4633 {
frame 25 {
stop();
}
}
button 4634 {
on (press) {
play();
}
}
button 4642 {
on (press) {
if (_root.hench_id == -1) {
_root.unit_spawner.spawn_minion('Henchman');
_root.voicebox.play_henchman('Deploy');
}
_parent._parent.play();
}
}
button 4645 {
on (press) {
_root.unit_actions.recall_minion('henchman');
_parent._parent.play();
_root.voicebox.play_henchman('Return');
}
}
movieClip 4648 {
frame 1 {
stop();
}
}
button 4653 {
on (press) {
_parent._parent.gotoAndPlay('powers');
}
}
movieClip 4655 {
frame 1 {
stop();
}
}
button 4660 {
on (press) {
_parent._parent.gotoAndPlay('weapons');
}
}
movieClip 4663 {
frame 1 {
stop();
}
}
movieClip 4664 {
instance weapon4 of movieClip 4648 {
onClipEvent (load) {
if (_root.event_influence('arch-henchman', 'any', 'any') == true) {
gotoAndStop(4);
}
if (_root.hench_roster == '') {
gotoAndStop(3);
}
if (_root.hench_id !== -1 and root.hench_roster !== '') {
gotoAndStop(2);
}
}
}
instance weapon5 of movieClip 4655 {
onClipEvent (load) {
if (_root.player_power[0] == false and _root.player_power[1] == false and _root.player_power[2] == false and _root.player_power[3] == false and _root.player_power[4] == false and _root.player_power[5] == false) {
gotoAndStop(2);
}
}
}
instance weapon6 of movieClip 4663 {
onClipEvent (load) {
if (_root.event_influence('armsembargo', 'any', 'any') == true) {
gotoAndStop(3);
}
if (_root.player_weapon[1] == false and _root.player_weapon[2] == false and _root.player_weapon[3] == false and _root.player_weapon[4] == false and _root.player_weapon[5] == false and _root.player_weapon[6] == false) {
gotoAndStop(2);
}
}
}
}
button 4670 {
on (press) {
play();
}
}
button 4676 {
on (press) {
if (_root.power_recharging[0] !== true) {
_root.power_active[0] = true;
_root.power_recharging[0] = true;
}
_parent._parent.play();
}
}
movieClip 4679 {
frame 1 {
stop();
}
}
button 4684 {
on (press) {
if (_root.power_recharging[1] !== true) {
_root.power_active[1] = true;
_root.power_recharging[1] = true;
}
_parent._parent.play();
}
}
movieClip 4687 {
frame 1 {
stop();
}
}
button 4692 {
on (press) {
if (_root.power_recharging[2] !== true) {
_root.power_active[2] = true;
_root.power_recharging[2] = true;
i = 0;
while (i < _root.unit_actions.m_roster.length) {
_root.map_units['m_' + _root.unit_actions.m_roster[i]].sprite_spread.sprite.message_spread.hitdefense.gotoAndPlay('defense2');
++i;
}
}
_parent._parent.play();
}
}
movieClip 4695 {
frame 1 {
stop();
}
}
button 4700 {
on (press) {
if (_root.power_recharging[3] !== true and _root.display_defensemin > 1) {
_root.power_active[3] = true;
_root.power_recharging[3] = true;
_root.unit_actions.power_unitexecute();
}
_parent._parent.play();
}
}
movieClip 4703 {
frame 1 {
stop();
}
}
button 4708 {
on (press) {
if (_root.power_recharging[4] !== true) {
_root.power_active[4] = true;
_root.power_recharging[4] = true;
_root.unit_actions.power_unithealthboost();
}
_parent._parent.play();
}
}
movieClip 4711 {
frame 1 {
stop();
}
}
button 4716 {
on (press) {
if (_root.power_recharging[5] !== true) {
var k = Math.floor(Math.random() * 6) + 5;
i = 0;
while (i < k) {
if (_root.display_defensemin < 30) {
_root.unit_spawner.spawn_minion('Minion');
_root.display_defenseminions();
} else {
break;
}
++i;
}
_root.power_active[5] = true;
_root.power_recharging[5] = true;
}
_parent._parent.play();
}
}
movieClip 4719 {
frame 1 {
stop();
}
}
movieClip 4720 {
instance weapon1 of movieClip 4679 {
onClipEvent (load) {
if (_root.player_power[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[0] == true) {
gotoAndStop(3);
}
}
}
instance weapon3 of movieClip 4687 {
onClipEvent (load) {
if (_root.player_power[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[1] == true) {
gotoAndStop(3);
}
}
}
instance weapon2 of movieClip 4695 {
onClipEvent (load) {
if (_root.player_power[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[2] == true) {
gotoAndStop(3);
}
}
}
instance weapon0 of movieClip 4703 {
onClipEvent (load) {
if (_root.player_power[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[3] == true) {
gotoAndStop(3);
}
}
}
instance weapon4 of movieClip 4711 {
onClipEvent (load) {
if (_root.player_power[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[4] == true) {
gotoAndStop(3);
}
}
}
instance weapon5 of movieClip 4719 {
onClipEvent (load) {
if (_root.player_power[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[5] == true) {
gotoAndStop(3);
}
}
}
}
button 4727 {
on (press) {
_root.player_currentweapon = 0;
_parent._parent.play();
}
}
movieClip 4729 {
frame 1 {
stop();
}
}
button 4733 {
on (press) {
_root.player_currentweapon = 1;
_parent._parent.play();
}
}
movieClip 4735 {
frame 1 {
stop();
}
}
button 4740 {
on (press) {
_root.player_currentweapon = 2;
_parent._parent.play();
}
}
movieClip 4742 {
frame 1 {
stop();
}
}
button 4747 {
on (press) {
_root.player_currentweapon = 3;
_parent._parent.play();
}
}
movieClip 4749 {
frame 1 {
stop();
}
}
button 4754 {
on (press) {
_root.player_currentweapon = 4;
_parent._parent.play();
}
}
movieClip 4756 {
frame 1 {
stop();
}
}
button 4761 {
on (press) {
_root.player_currentweapon = 6;
_parent._parent.play();
}
}
movieClip 4763 {
frame 1 {
stop();
}
}
button 4768 {
on (press) {
_root.player_currentweapon = 5;
_parent._parent.play();
}
}
movieClip 4770 {
frame 1 {
stop();
}
}
movieClip 4771 {
instance weapon0 of movieClip 4729 {
onClipEvent (load) {
if (_root.player_weapon[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
}
}
instance weapon1 of movieClip 4735 {
onClipEvent (load) {
if (_root.player_weapon[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
}
}
instance weapon2 of movieClip 4742 {
onClipEvent (load) {
if (_root.player_weapon[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
}
}
instance weapon3 of movieClip 4749 {
onClipEvent (load) {
if (_root.player_weapon[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
}
}
instance weapon4 of movieClip 4756 {
onClipEvent (load) {
if (_root.player_weapon[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
}
}
instance weapon6 of movieClip 4763 {
onClipEvent (load) {
if (_root.player_weapon[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
}
}
instance weapon5 of movieClip 4770 {
onClipEvent (load) {
if (_root.player_weapon[Number(this._name.substr(-1, 1))] == false) {
gotoAndStop(2);
}
}
}
}
movieClip 4772 {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 13 {
gotoAndStop(1);
}
frame 26 {
stop();
}
frame 29 {
gotoAndStop(1);
}
frame 42 {
stop();
}
frame 45 {
gotoAndStop(1);
}
}
movieClip 4776 {
}
movieClip 4778 {
}
movieClip 4779 {
}
movieClip 4782 {
}
movieClip 4785 {
}
movieClip 4787 {
}
movieClip 4789 {
}
movieClip 4792 {
}
movieClip 4793 {
frame 1 {
stop();
}
frame 2 {
stop();
if (_root.gamepaused == false) {
if (_root.messages[0] == true) {
gotoAndPlay('plotted');
}
if (_root.messages[1] == true) {
gotoAndPlay('checkpoint');
}
if (_root.messages[2] == true) {
gotoAndPlay('majorcheckpoint');
}
if (_root.messages[3] == true) {
gotoAndPlay('levelup');
}
if (_root.messages[4] == true) {
gotoAndPlay('newevent');
}
if (_root.messages[5] == true) {
gotoAndPlay('eventclosed');
}
}
if (_root.messages[0] == false and _root.messages[1] == false and _root.messages[2] == false and _root.messages[3] == false and _root.messages[4] == false and _root.messages[5] == false) {
gotoAndStop(1);
}
}
frame 5 {
gotoAndPlay(2);
}
frame 9 {
gotoAndPlay(2);
}
frame 67 {
_root.messages[0] = false;
gotoAndStop(2);
}
frame 123 {
_root.messages[1] = false;
gotoAndStop(2);
}
frame 179 {
_root.messages[2] = false;
gotoAndStop(2);
}
frame 235 {
_root.messages[3] = false;
gotoAndStop(2);
}
frame 291 {
_root.messages[4] = false;
gotoAndStop(2);
}
frame 347 {
_root.messages[5] = false;
gotoAndStop(2);
}
}
movieClip 4797 {
}
movieClip 4807 {
frame 25 {
stop();
}
}
button 4811 {
on (press) {
if (_root.player_recruitmax <= _root.player_cash and _root.player_mincontrol + _root.player_minfinancial + _root.display_defensemin + _root.player_minpool + _root.player_minlimbo < _root.player_minmax) {
_root.minionpooldisplay.deployglow4.gotoAndPlay(2);
_root.recruitzap.gotoAndPlay(2);
_root.player_cash -= _root.player_recruitmax;
++_root.player_minpool;
_root.moneydisplayer();
if (_root.player_currentbase !== 5 and _root.player_tutorial == -1) {
_root.player_recruitmax += 30;
}
} else {}
}
}
movieClip 4812 {
frame 6 {
stop();
}
}
movieClip 4814 {
}
movieClip 4819 {
}
movieClip 4820 {
frame 6 {
stop();
}
}
movieClip 4831 {
frame 1 {
stop();
}
}
movieClip 4840 {
}
movieClip 4842 {
}
movieClip 4843 {
}
movieClip 4854 {
frame 1 {
if (_root.cut_plot_territory == 'na') {
gotoAndStop(2);
}
if (_root.cut_plot_territory == 'e') {
gotoAndStop(3);
}
if (_root.cut_plot_territory == 'a') {
gotoAndStop(4);
}
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(5);
}
if (_root.cut_plot_type == 'science') {
gotoAndStop(6);
}
}
}
movieClip 4861 {
frame 1 {
if (_root.cut_plot_territory == 'na') {
gotoAndStop(2);
}
if (_root.cut_plot_territory == 'e') {
gotoAndStop(3);
}
if (_root.cut_plot_territory == 'a') {
gotoAndStop(4);
}
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(5);
}
if (_root.cut_plot_type == 'science') {
gotoAndStop(6);
}
}
}
movieClip 4866 {
}
movieClip 4868 {
}
movieClip 4870 {
}
movieClip 4871 {
}
movieClip 4872 {
frame 1 {
_parent.stop();
}
frame 45 {
_parent.nextFrame();
}
}
movieClip 4886 {
frame 1 {
if (_root.cut_plot_target == 'steal1') {
gotoAndStop(2);
} else {
if (_root.cut_plot_target == 'steal2') {
gotoAndStop(3);
} else {
if (_root.cut_plot_target == 'steal3') {
gotoAndStop(4);
} else {
if (_root.cut_plot_target == 'steal4') {
gotoAndStop(5);
} else {
if (_root.cut_plot_type == 'sabotage') {
gotoAndStop(6);
} else {
if (_root.cut_plot_type == 'blowup') {
gotoAndStop(7);
} else {
if (_root.cut_plot_type == 'brainwash') {
gotoAndStop(8);
} else {
if (_root.cut_plot_type == 'science') {
gotoAndStop(9);
} else {
if (_root.cut_plot_type == 'propaganda' and _root.cut_plot_territory == 'na') {
gotoAndStop(10);
} else {
if (_root.cut_plot_type == 'propaganda' and _root.cut_plot_territory == 'e') {
gotoAndStop(11);
} else {
if (_root.cut_plot_type == 'propaganda' and _root.cut_plot_territory == 'a') {
gotoAndStop(12);
} else {
if (_root.cut_plot_type == 'propaganda' and _root.cut_plot_territory == 'sa') {
gotoAndStop(12);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
movieClip 4888 {
}
movieClip 4890 {
}
movieClip 4891 {
frame 34 {
_parent._parent.nextFrame();
}
}
movieClip 4894 {
}
movieClip 4900 {
}
movieClip 4906 {
}
movieClip 4907 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop('1');
}
if (_root.cut_plot_territory == 'e') {
gotoAndStop('2');
}
if (_root.cut_plot_territory == 'a') {
gotoAndPlay('3');
}
if (_root.cut_plot_territory == 'sa') {
gotoAndPlay('4');
}
}
frame 58 {
stop();
}
frame 111 {
stop();
}
}
movieClip 4908 {
frame 62 {
stop();
}
}
movieClip 4914 {
}
movieClip 4915 {
instance of movieClip 4914 {
onClipEvent (load) {
gotoAndPlay(8);
}
}
instance of movieClip 4914 {
onClipEvent (load) {
gotoAndPlay(4);
}
}
}
movieClip 4916 {
frame 58 {
_parent._parent.nextFrame();
}
}
movieClip 4917 {
frame 1 {
_parent.stop();
stop();
if (_root.cut_plot_type !== 'kill' and _root.cut_plot_type !== 'kidnap') {
gotoAndStop(2);
} else {
gotoAndStop(3);
}
}
}
movieClip 4921 {
}
movieClip 4929 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
} else {
if (_root.cut_plot_type == 'science') {
_root.cut_sciencehead = Math.floor(Math.random() * 5) + 1;
gotoAndStop(_root.cut_sciencehead);
}
}
}
}
}
}
}
movieClip 4932 {
frame 1 {
stop();
if (_root.cut_plot_target !== 'steal1') {
gotoAndStop(2);
}
if (_root.cut_plot_type == 'science') {
gotoAndStop(3);
}
}
}
movieClip 4936 {
}
movieClip 4938 {
}
movieClip 4946 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
} else {
if (_root.cut_plot_type == 'science') {
gotoAndStop(_root.cut_sciencehead);
}
}
}
}
}
}
}
movieClip 4949 {
frame 1 {
stop();
if (_root.cut_plot_target !== 'steal1') {
gotoAndStop(2);
}
if (_root.cut_plot_type == 'science') {
gotoAndStop(3);
}
}
}
movieClip 4956 {
}
movieClip 4957 {
}
movieClip 4960 {
}
movieClip 4962 {
frame 12 {
_root.cutscenebox.play_voice('mission', 'setup', 'min');
}
frame 54 {
_parent._parent.nextFrame();
}
}
movieClip 4965 {
}
movieClip 4967 {
}
movieClip 4968 {
}
movieClip 4970 {
}
movieClip 4971 {
frame 1 {
if (_parent.mycharacter == false) {
gotoAndStop(41);
}
}
frame 40 {
gotoAndPlay(1);
}
}
movieClip 4974 {
}
movieClip 4975 {
frame 1 {
if (_parent.mycharacter == false) {
gotoAndStop(41);
}
}
frame 40 {
gotoAndPlay(1);
}
}
movieClip 4980 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 4986 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 4993 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 4999 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5000 {
frame 1 {
stop();
if (_root.cut_plot_target == 'leader') {
gotoAndStop(1);
} else {
if (_root.cut_plot_target == 'politician') {
gotoAndStop(2);
} else {
if (_root.cut_plot_target == 'criminal') {
gotoAndStop(3);
} else {
if (_root.cut_plot_target == 'journalist') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5001 {
frame 40 {
_parent._parent.nextFrame();
}
}
movieClip 5004 {
}
movieClip 5006 {
}
movieClip 5008 {
}
movieClip 5010 {
}
movieClip 5013 {
}
movieClip 5018 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5023 {
}
movieClip 5029 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5030 {
frame 26 {
_root.cutscenebox.play_voice('mission', 'setup', 'min');
}
frame 45 {
_parent._parent.nextFrame();
}
}
movieClip 5034 {
}
movieClip 5035 {
}
movieClip 5041 {
frame 1 {
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5043 {
}
movieClip 5045 {
}
movieClip 5047 {
}
movieClip 5048 {
frame 2 {
_root.cutscenebox.play_voice('mission', 'setup', 'min');
}
frame 31 {
rewind = 'rewind1';
}
frame 32 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 34 {
_parent._parent.nextFrame();
}
}
movieClip 5051 {
}
movieClip 5054 {
}
movieClip 5057 {
}
movieClip 5059 {
}
movieClip 5061 {
}
movieClip 5075 {
frame 23 {
_root.cutscenebox.play_voice('mission', 'setup', 'min');
}
frame 47 {
rewind = 'rewind1';
}
frame 48 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 50 {
_parent._parent.nextFrame();
}
}
movieClip 5076 {
frame 1 {
_parent.stop();
stop();
if (_root.cut_plot_type == 'cash') {
gotoAndStop(2);
}
if (_root.cut_plot_type == 'science') {
gotoAndStop(2);
}
if (_root.cut_plot_type == 'kidnap') {
gotoAndStop(3);
}
if (_root.cut_plot_type == 'kill') {
gotoAndStop(3);
}
if (_root.cut_plot_type == 'propaganda') {
gotoAndStop(4);
}
if (_root.cut_plot_type == 'brainwash') {
gotoAndStop(5);
}
if (_root.cut_plot_type == 'sabotage') {
gotoAndStop(6);
}
if (_root.cut_plot_type == 'blowup') {
gotoAndStop(6);
}
}
}
movieClip 5079 {
}
movieClip 5083 {
frame 1 {
if (_root.cut_plot_target == 'steal1') {
gotoAndStop(1);
} else {
if (_root.cut_plot_type == 'cash') {
gotoAndStop(2);
} else {
if (_root.cut_plot_type == 'science') {
gotoAndStop(3);
}
}
}
}
}
movieClip 5085 {
}
movieClip 5086 {
frame 19 {
rewind = 'rewind1';
}
frame 20 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 22 {
_root.cutscenebox.play_voice('mission', 'interaction', 'victim');
}
frame 42 {
rewind = 'rewind2';
}
frame 43 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 48 {
_parent._parent.nextFrame();
}
}
movieClip 5089 {
}
movieClip 5091 {
}
movieClip 5093 {
}
movieClip 5095 {
}
movieClip 5102 {
}
movieClip 5103 {
frame 4 {
_root.cutscenebox.play_voice('mission', 'interaction', 'min');
}
frame 30 {
rewind = 'rewind1';
}
frame 31 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 32 {
_parent._parent.nextFrame();
}
}
movieClip 5106 {
}
movieClip 5108 {
}
movieClip 5111 {
}
movieClip 5113 {
}
movieClip 5115 {
frame 18 {
_root.cutscenebox.play_voice('mission', 'interaction', 'min');
}
instance of movieClip 5000 {
onClipEvent (load) {
mycharacter = false;
}
}
frame 40 {
rewind = 'rewind1';
}
frame 41 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 44 {
_root.cutscenebox.play_voice('mission', 'interaction', 'victim');
}
frame 50 {
rewind = 'rewind2';
}
frame 51 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 53 {
_root.cutscenebox.play_voice('mission', 'interaction', 'min2');
}
frame 74 {
rewind = 'rewind3';
}
frame 75 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 77 {
_root.cutscenebox.play_voice('mission', 'interaction', 'min3');
}
frame 101 {
_parent._parent.nextFrame();
}
}
movieClip 5132 {
}
movieClip 5136 {
frame 24 {
rewind = 'rewind1';
}
frame 25 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 30 {
_root.cutscenebox.play_voice('mission', 'interaction', 'min');
}
frame 106 {
rewind = 'rewind2';
}
frame 107 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 109 {
_parent._parent.nextFrame();
}
}
movieClip 5141 {
}
movieClip 5144 {
}
movieClip 5148 {
}
movieClip 5149 {
}
movieClip 5152 {
}
movieClip 5158 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5163 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5164 {
frame 2 {
_root.cutscenebox.play_voice('mission', 'interaction', 'mm');
}
frame 62 {
_parent._parent.nextFrame();
}
}
movieClip 5171 {
}
movieClip 5175 {
}
movieClip 5177 {
}
movieClip 5181 {
frame 39 {
_parent._parent.nextFrame();
}
}
movieClip 5185 {
}
movieClip 5194 {
}
movieClip 5195 {
}
movieClip 5196 {
frame 4 {
_root.cutscenebox.play_voice('mission', 'interaction', 'min1');
}
frame 26 {
rewind = 'rewind1';
}
frame 27 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 29 {
_root.cutscenebox.play_voice('mission', 'interaction', 'min2');
}
frame 40 {
_parent._parent.nextFrame();
}
}
movieClip 5197 {
frame 1 {
_parent.stop();
stop();
if (_root.cut_plot_type == 'cash') {
gotoAndStop(2);
}
if (_root.cut_plot_type == 'science') {
gotoAndStop(2);
}
if (_root.cut_plot_type == 'kidnap') {
gotoAndStop(3);
}
if (_root.cut_plot_type == 'kill') {
gotoAndStop(4);
}
if (_root.cut_plot_type == 'propaganda') {
gotoAndStop(5);
}
if (_root.cut_plot_type == 'brainwash') {
gotoAndStop(6);
}
if (_root.cut_plot_type == 'sabotage') {
gotoAndStop(7);
}
if (_root.cut_plot_type == 'blowup') {
gotoAndStop(8);
}
}
}
movieClip 5201 {
}
movieClip 5203 {
}
movieClip 5207 {
}
movieClip 5209 {
}
movieClip 5213 {
}
movieClip 5215 {
}
movieClip 5218 {
frame 15 {
_root.cutscenebox.play_voice('mission', 'victory', 'min1');
}
frame 47 {
rewind = 'rewind1';
}
frame 48 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 50 {
_root.cutscenebox.play_voice('mission', 'victory', 'min2');
}
frame 83 {
rewind = 'rewind2';
}
frame 84 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 86 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5221 {
}
movieClip 5223 {
}
movieClip 5225 {
}
movieClip 5227 {
}
movieClip 5230 {
}
movieClip 5233 {
frame 5 {
_root.cutscenebox.play_voice('mission', 'victory', 'min');
}
frame 39 {
rewind = 'rewind1';
}
frame 40 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 44 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5236 {
}
movieClip 5239 {
frame 1 {
stop();
if (_root.cut_plot_target == 'leader') {
gotoAndStop(1);
} else {
if (_root.cut_plot_target == 'politician') {
gotoAndStop(1);
} else {
if (_root.cut_plot_target == 'criminal') {
gotoAndStop(2);
} else {
if (_root.cut_plot_target == 'journalist') {
gotoAndStop(2);
}
}
}
}
}
}
movieClip 5240 {
}
movieClip 5242 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5244 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5245 {
frame 1 {
stop();
if (_root.cut_plot_target == 'leader') {
gotoAndStop(1);
} else {
if (_root.cut_plot_target == 'politician') {
gotoAndStop(2);
} else {
if (_root.cut_plot_target == 'criminal') {
gotoAndStop(3);
} else {
if (_root.cut_plot_target == 'journalist') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5250 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5255 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5260 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5265 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5266 {
frame 1 {
stop();
if (_root.cut_plot_target == 'leader') {
gotoAndStop(1);
} else {
if (_root.cut_plot_target == 'politician') {
gotoAndStop(2);
} else {
if (_root.cut_plot_target == 'criminal') {
gotoAndStop(3);
} else {
if (_root.cut_plot_target == 'journalist') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5267 {
frame 2 {
_root.cutscenebox.play_voice('mission', 'victory', 'victim');
}
frame 15 {
rewind = 'rewind1';
}
frame 16 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 19 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5297 {
}
movieClip 5300 {
}
movieClip 5317 {
}
movieClip 5329 {
frame 2 {
rewind = 'rewind3';
}
frame 3 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 87 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5333 {
frame 2 {
_root.cutscenebox.play_voice('mission', 'victory', 'victim');
}
frame 17 {
rewind = 'rewind1';
}
frame 18 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 23 {
_root.cutscenebox.play_voice('mission', 'victory', 'min');
}
frame 38 {
rewind = 'rewind2';
}
frame 39 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 41 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5335 {
}
movieClip 5340 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5343 {
}
movieClip 5345 {
}
movieClip 5349 {
}
movieClip 5350 {
}
movieClip 5352 {
frame 1 {
rewind = 'rewind3';
}
frame 2 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 7 {
_root.cutscenebox.play_voice('mission', 'victory', 'mm');
}
frame 66 {
rewind = 'rewind2';
}
frame 67 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 69 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5355 {
}
movieClip 5362 {
}
movieClip 5365 {
}
movieClip 5368 {
frame 68 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5371 {
}
movieClip 5373 {
}
movieClip 5375 {
}
movieClip 5387 {
}
movieClip 5393 {
}
movieClip 5402 {
}
movieClip 5404 {
}
movieClip 5405 {
}
movieClip 5414 {
}
movieClip 5424 {
}
movieClip 5432 {
frame 1 {
rewind = 'rewind2';
}
frame 2 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 131 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5433 {
frame 1 {
_parent.stop();
stop();
if (_root.cut_plot_type == 'cash') {
gotoAndStop(2);
}
if (_root.cut_plot_type == 'science') {
gotoAndStop(3);
}
if (_root.cut_plot_type == 'kidnap') {
gotoAndStop(4);
}
if (_root.cut_plot_type == 'kill') {
gotoAndStop(5);
}
if (_root.cut_plot_type == 'propaganda') {
gotoAndStop(6);
}
if (_root.cut_plot_type == 'brainwash') {
gotoAndStop(7);
}
if (_root.cut_plot_type == 'sabotage') {
gotoAndStop(8);
}
if (_root.cut_plot_type == 'blowup') {
gotoAndStop(9);
}
}
}
movieClip 5437 {
}
movieClip 5440 {
}
movieClip 5442 {
}
movieClip 5444 {
}
movieClip 5446 {
}
movieClip 5451 {
frame 6 {
_root.cutscenebox.play_voice('mission', 'defeat', 'police');
}
frame 11 {
rewind = 'rewind1';
}
frame 12 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 15 {
_root.cutscenebox.play_voice('mission', 'defeat', 'min');
}
frame 31 {
rewind = 'rewind2';
}
frame 32 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 34 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5455 {
}
movieClip 5461 {
frame 23 {
stop();
}
}
movieClip 5466 {
}
movieClip 5468 {
}
movieClip 5475 {
frame 32 {
_root.cutscenebox.play_voice('mission', 'defeat', 'victim');
}
frame 75 {
rewind = 'rewind1';
}
frame 76 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 77 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5480 {
}
movieClip 5482 {
instance of movieClip 5000 {
onClipEvent (load) {
mycharacter = false;
}
}
frame 2 {
_root.cutscenebox.play_voice('mission', 'defeat', 'victim');
}
frame 17 {
rewind = 'rewind1';
}
frame 18 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 23 {
_root.cutscenebox.play_voice('mission', 'defeat', 'police');
}
frame 49 {
rewind = 'rewind2';
}
frame 50 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 52 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5486 {
}
movieClip 5488 {
}
movieClip 5490 {
}
movieClip 5498 {
}
movieClip 5500 {
}
movieClip 5503 {
}
movieClip 5525 {
frame 3 {
rewind = 'rewind1';
}
frame 4 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 10 {
_root.cutscenebox.play_voice('mission', 'defeat', 'victim');
}
frame 35 {
rewind = 'rewind2';
}
frame 36 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 38 {
_root.cutscenebox.play_voice('mission', 'defeat', 'min');
}
frame 66 {
rewind = 'rewind3';
}
frame 67 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 72 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5531 {
frame 1 {
stop();
if (_root.cut_plot_territory == 'na') {
gotoAndStop(1);
} else {
if (_root.cut_plot_territory == 'e') {
gotoAndStop(2);
} else {
if (_root.cut_plot_territory == 'a') {
gotoAndStop(3);
} else {
if (_root.cut_plot_territory == 'sa') {
gotoAndStop(4);
}
}
}
}
}
}
movieClip 5533 {
}
movieClip 5539 {
}
movieClip 5542 {
frame 2 {
_root.cutscenebox.play_voice('mission', 'defeat', 'victim');
}
frame 16 {
rewind = 'rewind1';
}
frame 17 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 32 {
_root.cutscenebox.play_voice('mission', 'defeat', 'min');
}
frame 47 {
rewind = 'rewind2';
}
frame 48 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 51 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5546 {
frame 3 {
rewind = 'rewind3';
}
frame 4 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 7 {
_root.cutscenebox.play_voice('mission', 'defeat', 'victim');
}
frame 47 {
rewind = 'rewind1';
}
frame 48 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 50 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5549 {
}
movieClip 5553 {
frame 32 {
stop();
}
}
movieClip 5562 {
}
movieClip 5566 {
frame 2 {
_root.cutscenebox.play_voice('mission', 'defeat', 'min');
}
frame 29 {
rewind = 'rewind1';
}
frame 30 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 46 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5569 {
}
movieClip 5582 {
frame 2 {
rewind = 'rewind2';
}
frame 3 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 10 {
_root.cutscenebox.play_voice('mission', 'defeat', 'police');
}
frame 23 {
rewind = 'rewind1';
}
frame 24 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 25 {
if (_root.cut_patsy == true) {
_parent._parent.gotoAndStop('patsy');
} else {
_parent._parent.gotoAndPlay('end');
}
}
}
movieClip 5583 {
frame 1 {
_parent.stop();
stop();
if (_root.cut_plot_type == 'cash') {
gotoAndStop(2);
}
if (_root.cut_plot_type == 'science') {
gotoAndStop(3);
}
if (_root.cut_plot_type == 'kidnap') {
gotoAndStop(4);
}
if (_root.cut_plot_type == 'kill') {
gotoAndStop(5);
}
if (_root.cut_plot_type == 'propaganda') {
gotoAndStop(6);
}
if (_root.cut_plot_type == 'brainwash') {
gotoAndStop(7);
}
if (_root.cut_plot_type == 'sabotage') {
gotoAndStop(8);
}
if (_root.cut_plot_type == 'blowup') {
gotoAndStop(9);
}
}
}
movieClip 5587 {
}
movieClip 5605 {
frame 1 {
gotoAndStop(mycharacter);
}
}
movieClip 5607 {
}
movieClip 5627 {
frame 1 {
gotoAndStop(mycharacter);
}
}
movieClip 5630 {
}
movieClip 5632 {
}
movieClip 5634 {
}
movieClip 5636 {
}
movieClip 5638 {
}
movieClip 5640 {
}
movieClip 5642 {
}
movieClip 5644 {
}
movieClip 5646 {
}
movieClip 5648 {
}
movieClip 5650 {
}
movieClip 5652 {
}
movieClip 5654 {
}
movieClip 5656 {
}
movieClip 5658 {
}
movieClip 5660 {
}
movieClip 5661 {
frame 1 {
gotoAndStop(mycharacter);
}
}
movieClip 5666 {
frame 1 {
stop();
if (_root.cut_success !== true) {
gotoAndStop(2);
}
}
}
movieClip 5673 {
frame 1 {
gotoAndStop(mycharacter);
}
}
movieClip 5674 {
frame 1 {
gotoAndPlay(2);
}
instance of movieClip 5605 {
onClipEvent (load) {
mycharacter = _root.patsy_roster[_root.cut_patsy_selected];
}
}
instance of movieClip 5627 {
onClipEvent (load) {
mycharacter = _root.patsy_roster[_root.cut_patsy_selected];
}
}
instance of movieClip 5661 {
onClipEvent (load) {
mycharacter = _root.patsy_roster[_root.cut_patsy_selected];
}
}
frame 42 {
if (_root.cut_success !== true) {
_root.cutscenebox.play_voice('mission', 'patsy', 'min1');
} else {
_root.cutscenebox.play_voice('mission', 'patsy', 'min2');
}
}
frame 50 {
rewind = 'rewind1';
}
frame 51 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 52 {
if (_root.cut_success !== true) {
_root.cutscenebox.play_voice('mission', 'patsy', 'patsy1');
} else {
_root.cutscenebox.play_voice('mission', 'patsy', 'patsy2');
}
}
instance of movieClip 5673 {
onClipEvent (load) {
mycharacter = _root.patsy_roster[_root.cut_patsy_selected];
}
}
frame 69 {
rewind = 'rewind2';
}
frame 70 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 72 {
_parent.gotoAndPlay('end');
}
}
movieClip 5677 {
}
movieClip 5695 {
frame 1 {
stop();
gotoAndStop(mycharacter);
}
}
movieClip 5698 {
}
movieClip 5699 {
}
movieClip 5700 {
instance of movieClip 5695 {
onClipEvent (load) {
p = 2;
if (_root.patsy_roster[p] !== '') {
mycharacter = _root.patsy_roster[p];
} else {
mycharacter = 'empty';
}
if (_root.have_executed == true and p == _root.cut_patsy_executed) {
mycharacter = 'empty';
}
}
}
instance of movieClip 5695 {
onClipEvent (load) {
p = 0;
if (_root.patsy_roster[p] !== '') {
mycharacter = _root.patsy_roster[p];
} else {
mycharacter = 'empty';
}
if (_root.have_executed == true and p == _root.cut_patsy_executed) {
mycharacter = 'empty';
}
}
}
instance of movieClip 5695 {
onClipEvent (load) {
p = 1;
if (_root.patsy_roster[p] !== '') {
mycharacter = _root.patsy_roster[p];
} else {
mycharacter = 'empty';
}
if (_root.have_executed == true and p == _root.cut_patsy_executed) {
mycharacter = 'empty';
}
}
}
}
movieClip 5702 {
frame 9 {
_root.cutscenebox.play_voice('meeting', 'establish', 'mm');
}
frame 49 {
rewind = 'rewind1';
}
frame 50 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 53 {
if (_root.cut_patsy_executed == -1) {
_parent.gotoAndStop('meet_intro');
} else {
_parent.nextFrame();
}
}
}
movieClip 5722 {
frame 1 {
stop();
gotoAndStop(mycharacter);
}
}
movieClip 5724 {
}
movieClip 5726 {
}
movieClip 5727 {
instance of movieClip 5722 {
onClipEvent (load) {
p = 1;
if (_root.patsy_roster[p] !== '') {
mycharacter = _root.patsy_roster[p];
} else {
mycharacter = 'empty';
}
if (_root.have_executed == true and p == _root.cut_patsy_executed) {
mycharacter = 'empty';
}
}
}
instance of movieClip 5722 {
onClipEvent (load) {
p = 0;
if (_root.patsy_roster[p] !== '') {
mycharacter = _root.patsy_roster[p];
} else {
mycharacter = 'empty';
}
if (_root.have_executed == true and p == _root.cut_patsy_executed) {
mycharacter = 'empty';
}
}
}
instance of movieClip 5722 {
onClipEvent (load) {
p = 2;
if (_root.patsy_roster[p] !== '') {
mycharacter = _root.patsy_roster[p];
} else {
mycharacter = 'empty';
}
if (_root.have_executed == true and p == _root.cut_patsy_executed) {
mycharacter = 'empty';
}
}
}
}
movieClip 5734 {
}
movieClip 5736 {
frame 1 {
stop();
}
frame 29 {
stop();
}
}
movieClip 5740 {
}
movieClip 5742 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 5746 {
}
movieClip 5748 {
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 5752 {
frame 1 {
stop();
}
frame 18 {
stop();
}
}
movieClip 5756 {
}
movieClip 5758 {
frame 1 {
stop();
}
frame 32 {
stop();
}
}
movieClip 5762 {
frame 1 {
stop();
}
frame 23 {
stop();
}
}
movieClip 5766 {
}
movieClip 5768 {
frame 1 {
stop();
}
frame 25 {
stop();
}
}
movieClip 5772 {
}
movieClip 5774 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 5778 {
}
movieClip 5780 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 5784 {
}
movieClip 5786 {
frame 1 {
stop();
}
frame 24 {
stop();
}
}
movieClip 5790 {
}
movieClip 5792 {
frame 1 {
stop();
}
frame 21 {
stop();
}
}
movieClip 5796 {
}
movieClip 5798 {
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 5806 {
}
movieClip 5808 {
frame 1 {
stop();
}
frame 16 {
stop();
}
}
movieClip 5812 {
}
movieClip 5814 {
frame 1 {
stop();
}
frame 17 {
stop();
}
}
movieClip 5818 {
}
movieClip 5820 {
frame 1 {
stop();
}
frame 27 {
stop();
}
}
movieClip 5824 {
frame 1 {
stop();
}
frame 14 {
stop();
}
}
movieClip 5825 {
frame 1 {
gotoAndStop(_root.patsy_roster[mycharacter]);
}
}
movieClip 5833 {
}
movieClip 5834 {
frame 9 {
stop();
}
}
movieClip 5837 {
}
movieClip 5838 {
instance MMscreen of movieClip 5834 {
onClipEvent (load) {
if (_parent.SHUTUP !== true) {
this._visible = false;
}
}
}
}
movieClip 5843 {
frame 29 {
stop();
}
}
movieClip 5845 {
}
movieClip 5865 {
frame 1 {
gotoAndStop(_root.patsy_roster[mycharacter]);
}
}
movieClip 5869 {
}
movieClip 5871 {
frame 2 {
_root.cutscenebox.play_voice('meeting', 'execute', 'mm1');
}
instance this_patsy of movieClip 5825 {
onClipEvent (load) {
mycharacter = _root.cut_patsy_executed;
}
}
frame 81 {
rewind = 'rewind1';
}
frame 82 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 85 {
_root.cutscenebox.play_voice('meeting', 'execute', 'patsy1');
this_patsy.head.play();
}
frame 88 {
rewind = 'rewind2';
}
frame 89 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 91 {
_root.cutscenebox.play_voice('meeting', 'execute', 'mm2');
}
frame 130 {
rewind = 'rewind3';
}
frame 131 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
instance of movieClip 5865 {
onClipEvent (load) {
mycharacter = _root.cut_patsy_executed;
}
}
frame 143 {
_root.cutscenebox.play_voice('meeting', 'execute', 'patsy2');
}
frame 158 {
rewind = 'rewind4';
}
frame 159 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 161 {
_parent.nextFrame();
}
}
movieClip 5873 {
frame 2 {
_root.cutscenebox.play_voice('meeting', 'intro', 'mm');
}
frame 216 {
rewind = 'rewind1';
}
frame 217 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 220 {
_parent.nextFrame();
}
}
movieClip 5892 {
frame 58 {
stop();
}
}
movieClip 5903 {
frame 1 {
gotoAndStop(_root.cut_plot_type);
stop();
}
}
movieClip 5904 {
frame 46 {
stop();
}
}
movieClip 5911 {
frame 1 {
if (_root.cut_plot_territory == 'na' or _root.cut_plot_territory == 'e' or _root.cut_plot_territory == 'a' or _root.cut_plot_territory == 'sa') {
gotoAndStop(_root.cut_plot_territory);
} else {
stop();
}
}
}
movieClip 5912 {
frame 31 {
stop();
}
}
movieClip 5920 {
}
movieClip 5921 {
frame 2 {
_root.cutscenebox.play_voice('meeting', 'plot', 'mm');
}
instance MMbackground of movieClip 5838 {
onClipEvent (load) {
this.screen._visible = true;
this.SHUTUP = true;
}
}
frame 55 {
rewind = 'rewind1';
}
frame 56 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 59 {
_parent.nextFrame();
}
}
movieClip 5926 {
}
movieClip 5928 {
frame 2 {
_root.cutscenebox.play_voice('meeting', 'select', 'mm1');
}
frame 56 {
rewind = 'rewind1';
}
frame 57 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 60 {
_root.cutscenebox.play_voice('meeting', 'select', 'mm2');
}
instance this_patsy of movieClip 5825 {
onClipEvent (load) {
mycharacter = _root.cut_patsy_selected;
}
}
frame 98 {
rewind = 'rewind2';
}
frame 99 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 101 {
_root.cutscenebox.play_voice('meeting', 'select', 'patsy');
this_patsy.head.play();
}
frame 129 {
rewind = 'rewind3';
}
frame 130 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 132 {
_parent.nextFrame();
}
}
movieClip 5930 {
frame 2 {
_root.cutscenebox.play_voice('meeting', 'conclusion', 'mm');
}
frame 11 {
rewind = 'rewind1';
}
frame 12 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 15 {
_root.cutscenebox.play_voice('meeting', 'conclusion', 'patsy');
}
frame 55 {
rewind = 'rewind2';
}
frame 56 {
if (_root.voice_key !== true) {
gotoAndPlay(rewind);
} else {
_root.voice_key = false;
}
}
frame 60 {
_parent.gotoAndPlay('end');
}
}
movieClip 5931 {
frame 1 {
}
frame 11 {
if (_root.cut_current == 'mission') {
gotoAndStop('establish');
} else {
if (_root.cut_current == 'meeting') {
cut_patsy1 = _root.patsy_roster[0];
cut_patsy2 = _root.patsy_roster[1];
cut_patsy3 = _root.patsy_roster[2];
gotoAndStop('meet_establish');
} else {
if (_root.cut_current == 'evac') {
gotoAndStop('evac_establish');
}
}
}
}
frame 12 {
stop();
}
frame 16 {
if (_root.cut_success == false) {
nextFrame();
}
}
frame 20 {
_root.have_executed = false;
}
frame 22 {
_root.have_executed = true;
}
frame 36 {
stop();
_parent.gotoAndPlay('stats');
}
}
button 5932 {
on (press) {
_root.cutscenebox.cutbox.stop();
gotoAndPlay('stats');
}
}
movieClip 5939 {
frame 1 {
stop();
}
}
movieClip 5943 {
frame 1 {
stop();
}
}
button 5950 {
on (press) {
gotoAndPlay('done');
}
}
movieClip 5957 {
}
movieClip 5958 {
frame 1 {
stop();
}
frame 2 {
_root.gamepaused = true;
}
frame 5 {
var i = _root.plot_currentexecuted;
_root.cut_success = _root.calculatesuccess(_root.plot_success[i]);
_root.cut_plot_type = _root.plot_type[i];
_root.cut_plot_target = _root.plot_target[i];
_root.cut_plot_territory = _root.plot_territory[i];
_root.cut_current = 'mission';
if (_root.plot_patsy[i] !== -1) {
_root.cut_patsy = true;
} else {
_root.cut_patsy = false;
}
_root.voice_key = true;
}
frame 8 {
_root.voicebox.mbox.setVolume(50);
_root.voicebox.vbox.setVolume(30);
_root.voicebox.hbox.setVolume(30);
if (_root.player_tutorial == -1) {
_root.tutorialbox.tutbox.stop();
_root.tutorialbox.soundplaying = false;
}
}
frame 14 {
stop();
}
frame 15 {
if (_root.plot_patsy[mission_number] == -1) {
missionpatsyicon._visible = false;
} else {
missionpatsyicon.gotoAndStop(_root.patsy_roster[_root.plot_patsy[mission_number]]);
}
_root.missioncomplete(mission_number);
if (mission_cash < 0) {
mission_cashstring = _root.moneyformat(-1 * mission_cash);
} else {
if (mission_success == false) {
mission_cashstring = 'NONE';
} else {
mission_cashstring = _root.moneyformat(mission_cash);
}
}
}
instance of movieClip 5939 {
onClipEvent (load) {
if (_parent.mission_success == true) {
_root.soundplayer.gotoAndPlay('victory');
gotoAndStop(1);
} else {
_root.soundplayer.gotoAndPlay('defeat');
gotoAndStop(2);
}
}
}
instance of movieClip 5943 {
onClipEvent (load) {
if (_parent.mission_success == false) {
gotoAndStop(3);
}
if (_parent.mission_cash < 0 and _parent.mission_success == true) {
gotoAndStop(2);
}
if (_parent.mission_cash >= 0 and _parent.mission_success == true) {
gotoAndStop(1);
}
}
}
instance of movieClip 5957 {
onClipEvent (load) {
gotoAndStop(3);
if (_parent.mission_notoriety <= 15) {
gotoAndStop(2);
}
if (_parent.mission_notoriety <= 5) {
gotoAndStop(1);
}
}
}
frame 25 {
stop();
}
frame 27 {
_root.voicebox.mbox.setVolume(100);
_root.voicebox.vbox.setVolume(45);
_root.voicebox.hbox.setVolume(100);
}
frame 30 {
_root.gamepaused = false;
}
}
movieClip 5962 {
}
movieClip 5963 {
}
button 5971 {
on (press) {
_root.cutscenebox.cutbox.stop();
gotoAndPlay('done');
}
}
movieClip 5972 {
frame 1 {
stop();
}
frame 2 {
_root.gamepaused = true;
}
frame 8 {
_root.cut_patsy_selected = _root.patsy_selected;
_root.cut_patsy_executed = _root.patsy_executed;
_root.cut_current = 'meeting';
_root.cut_plot_type = _root.plot_type[_root.meeting_displaynumber];
_root.cut_plot_target = _root.plot_target[_root.meeting_displaynumber];
_root.cut_plot_territory = _root.plot_territory[_root.meeting_displaynumber];
_root.voice_key = true;
_root.voicebox.mbox.setVolume(50);
_root.voicebox.vbox.setVolume(30);
_root.voicebox.hbox.setVolume(30);
_root.tutorialbox.tutbox.stop();
_root.tutorialbox.soundplaying = false;
}
frame 14 {
stop();
}
frame 16 {
if (_root.patsy_executed > -1) {
_root.roommenu.defaultdisplay['disp' + (_root.patsy_executed + 1)].gotoAndStop('closed');
_root.patsycleardead(_root.patsy_executed);
}
_root.voicebox.mbox.setVolume(100);
_root.voicebox.vbox.setVolume(45);
_root.voicebox.hbox.setVolume(100);
}
frame 19 {
_root.gamepaused = false;
}
}
movieClip 5975 {
}
movieClip 5980 {
}
movieClip 5982 {
}
movieClip 5984 {
}
movieClip 5991 {
}
movieClip 5994 {
}
movieClip 6000 {
frame 98 {
stop();
}
}
movieClip 6001 {
frame 116 {
stop();
}
}
button 6002 {
on (press) {
gotoAndPlay('done');
}
}
movieClip 6003 {
frame 1 {
stop();
}
frame 2 {
_root.gamepaused = true;
}
frame 8 {
_root.voicebox.mbox.setVolume(50);
_root.voicebox.vbox.setVolume(30);
_root.voicebox.hbox.setVolume(30);
}
frame 12 {
stop();
_root.player_previousbase = _root.player_currentbase;
_root.player_currentbase = _root.select_baseevac;
_root.evacuate_base(_root.select_baseevac);
_root.save_game();
}
frame 14 {
_root.voicebox.mbox.setVolume(100);
_root.voicebox.vbox.setVolume(45);
_root.voicebox.hbox.setVolume(85);
}
frame 17 {
_root.gamepaused = false;
}
}
movieClip 6005 {
}
movieClip 6007 {
}
movieClip 6009 {
}
movieClip 6010 {
}
movieClip 6011 {
}
movieClip 6013 {
}
movieClip 6015 {
}
movieClip 6041 {
frame 1 {
stop();
}
frame 2 {
played = true;
}
}
movieClip 6045 {
}
movieClip 6047 {
frame 1 {
stop();
}
frame 13 {
stop();
}
}
movieClip 6059 {
frame 1 {
stop();
}
}
movieClip 6065 {
}
movieClip 6067 {
}
movieClip 6070 {
}
movieClip 6073 {
}
movieClip 6075 {
frame 1 {
stop();
}
frame 17 {
if (_root.enemy_waves > 0 or _root.unit_actions.e_roster.length > 0) {
gotoAndPlay('loop');
}
}
frame 23 {
_root.voicebox.play_voice('clear');
_root.henchman_talkclear = true;
}
frame 52 {
if (_root.player_tutorial == -1) {
_root.save_game();
}
}
}
movieClip 6100 {
frame 1 {
stop();
played = false;
}
frame 2 {
played = true;
}
}
button 6104 {
on (press) {
if (_root.tooltipsbox._currentframe == 1 and _root.tutorialbox._currentframe == 1) {
play();
}
}
}
movieClip 6107 {
}
movieClip 6109 {
frame 1 {
stop();
}
frame 2 {
_root.gamepaused = true;
}
frame 7 {
stop();
}
frame 12 {
_root.gamepaused = false;
}
}
button 6122 {
on (press) {
gotoAndStop(1);
}
}
button 6145 {
on (press) {
gotoAndStop(1);
_root.gamepausedtext.gotoAndPlay(7);
}
}
movieClip 6157 {
frame 1 {
stop();
if (_root.player_tutorial == 1) {
}
if (_root.player_tutorial == 2) {
}
if (_root.player_tutorial == 3) {
}
if (_root.player_tutorial == 4) {
}
if (_root.player_tutorial == 5) {
}
if (_root.player_tutorial == 6) {
}
if (_root.player_tutorial == 7) {
}
if (_root.player_tutorial == 8) {
}
if (_root.player_tutorial == 9) {
}
if (_root.player_tutorial == 10) {
}
if (_root.player_tutorial == 11) {
}
if (_root.player_tutorial == 12) {
}
if (_root.player_tutorial == 13) {
}
if (_root.player_tutorial == -1) {
}
}
frame 2 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
}
frame 3 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
_root.cashdisplay._visible = true;
_root.recruitbuttonspread._visible = true;
_root.cashdisplaytutorial._visible = false;
_root.recruitbuttonspreadtutorial._visible = false;
_root.minionpooldisplay._visible = true;
_root.minionpooldisplaytutorial._visible = false;
_root.tutorialarrow1.play();
}
frame 4 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
_root.tutorialarrow2.play();
}
frame 5 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
_root.tutorialarrow3.play();
_root.roombuttons._visible = true;
_root.roombuttonstutorial._visible = false;
_root.roombuttons.defensedeploy._visible = false;
_root.roombuttons.meetingbutton._visible = false;
_root.roombuttons.financialbutton._visible = false;
_root.roombuttons.weaponbutton._visible = false;
_root.roombuttons.innerbutton._visible = false;
}
frame 6 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
_root.roommenu.tutorialarrow4.play();
}
frame 7 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
}
frame 8 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
}
frame 9 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
_root.roommenu.button_executeX._visible = true;
_root.roommenu.tutorialarrow7.play();
}
frame 10 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
}
frame 11 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
_root.tutorialarrow9.play();
_root.levelguage._visible = true;
_root.obj_notorietybar._visible = true;
_root.levelguagetutorial._visible = false;
_root.obj_notorietybartutorial._visible = false;
}
frame 12 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
_root.roombuttons.defensedeploy._visible = true;
_root.tutorialarrow10.play();
}
frame 13 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
_root.enemy_waves += 1;
_root.underattack.gotoAndPlay('start');
}
frame 14 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
}
frame 15 {
_root['tutorialarrow' + this._currentframe - 2].gotoAndPlay(2);
this.play_tutorial();
}
frame 17 {
this.play_roomtutorial('Control');
}
frame 18 {
this.play_roomtutorial('Meeting');
}
frame 19 {
this.play_roomtutorial('Financial');
}
frame 20 {
this.play_roomtutorial('Weapons');
}
frame 21 {
this.play_roomtutorial('Inner');
}
frame 23 {
this.play_roomtutorial('general');
}
}
instance tutorialbox of movieClip 6157 {
onClipEvent (load) {
function play_roomtutorial(inRoom) {
if (soundplaying == true) {
tutbox.stop();
}
if (_root.player_tutorial == -1) {
trace('Playing tutorial sound for room: ' + inRoom);
tutbox.attachSound('Tut_' + inRoom);
tutbox.start();
soundplaying = true;
_root.voicebox.mbox.setVolume(50);
_root.voicebox.vbox.setVolume(30);
_root.voicebox.hbox.setVolume(30);
}
}
function play_tutorial() {
if (soundplaying == false and this.tutorial_spoken[_root.player_tutorial] !== true and this.tutorial_checker() == true) {
trace('Playing tutorial sound for part ' + _root.player_tutorial);
_root.tutorialbox.gotoAndStop(_root.player_tutorial + 2);
tutbox.attachSound('Tut_' + _root.player_tutorial);
tutbox.start();
this.tutorial_spoken[_root.player_tutorial] = true;
soundplaying = true;
_root.voicebox.mbox.setVolume(50);
_root.voicebox.vbox.setVolume(30);
}
}
function tutorial_checker() {
if (_root.player_tutorial == 0) {
return true;
} else {
if (_root.player_tutorial == 1) {
return true;
} else {
if (_root.player_tutorial == 2 and _root.player_minpool == 3) {
return true;
} else {
if (_root.player_tutorial == 3) {
return true;
} else {
if (_root.player_tutorial == 4 and _root.roommenu._currentframe == 2) {
return true;
} else {
if (_root.player_tutorial == 5 and _root.roommenu.menu_create._currentframe > 1) {
return true;
} else {
if (_root.player_tutorial == 6 and _root.plot_missiontime !== 0) {
trace(_root.plot_timeplot);
return true;
} else {
if (_root.player_tutorial == 7 and _root.plot_missiontime == 0) {
return true;
} else {
if (_root.player_tutorial == 8 and _root.exec_missiontime !== 0) {
return true;
} else {
if (_root.player_tutorial == 9 and _root.player_minpool == 3) {
return true;
} else {
if (_root.player_tutorial == 10) {
return true;
} else {
if (_root.player_tutorial == 11 and _root.display_defensemin == 3) {
return true;
} else {
if (_root.player_tutorial == 12 and _root.unit_actions.e_roster.length == 0 and _root.enemy_waves == 0) {
return true;
} else {
if (_root.player_tutorial == 13) {
return true;
} else {
return false;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function play_voice(inString) {
if (soundplaying !== true) {
if (inString == 'clear') {
this_max = 10;
}
if (inString == 'die') {
this_max = 10;
}
if (inString == 'fight') {
this_max = 10;
}
if (inString == 'hail') {
this_max = 5;
}
if (inString == 'losing') {
this_max = 3;
}
if (inString == 'returning') {
this_max = 4;
}
var v2 = String(Math.floor(Math.random() * this_max) + 1);
vbox.attachSound(inString + v2);
vbox.start();
}
}
var tutbox = new Sound(_root.soundtest3);
var soundplaying = false;
var tutorial_spoken = new Array(false, false, false, false, false, false, false, false, false, false, false, false, false, false);
tutbox.setVolume(100);
if (_root.player_tutorial == -1) {
_root.cashdisplay._visible = true;
_root.recruitbuttonspread._visible = true;
_root.defenseslider._visible = true;
_root.levelguage._visible = true;
_root.obj_notorietybar._visible = true;
_root.roombuttons._visible = true;
_root.minionpooldisplay._visible = true;
_root.cashdisplaytutorial._visible = false;
_root.recruitbuttonspreadtutorial._visible = false;
_root.defenseslidertutorial._visible = false;
_root.levelguagetutorial._visible = false;
_root.obj_notorietybartutorial._visible = false;
_root.roombuttonstutorial._visible = false;
_root.minionpooldisplaytutorial._visible = false;
} else {
_root.cashdisplay._visible = false;
_root.recruitbuttonspread._visible = false;
_root.defenseslider._visible = false;
_root.levelguage._visible = false;
_root.obj_notorietybar._visible = false;
_root.roombuttons._visible = false;
_root.minionpooldisplay._visible = false;
_root.cashdisplaytutorial._visible = true;
_root.recruitbuttonspreadtutorial._visible = true;
_root.defenseslidertutorial._visible = true;
_root.levelguagetutorial._visible = true;
_root.obj_notorietybartutorial._visible = true;
_root.roombuttonstutorial._visible = true;
_root.minionpooldisplaytutorial._visible = true;
}
if (_root.player_tutorial >= 0) {
}
if (_root.player_tutorial >= 1) {
_root.cashdisplay._visible = true;
_root.recruitbuttonspread._visible = true;
_root.cashdisplaytutorial._visible = false;
_root.recruitbuttonspreadtutorial._visible = false;
}
if (_root.player_tutorial >= 2) {
_root.minionpooldisplay._visible = true;
_root.minionpooldisplaytutorial._visible = false;
}
if (_root.player_tutorial >= 3) {
_root.roombuttons._visible = true;
_root.roombuttonstutorial._visible = false;
_root.roombuttons.defensedeploy._visible = false;
_root.roombuttons.meetingbutton._visible = false;
_root.roombuttons.financialbutton._visible = false;
_root.roombuttons.weaponbutton._visible = false;
_root.roombuttons.innerbutton._visible = false;
}
if (_root.player_tutorial >= 4) {
}
if (_root.player_tutorial >= 5) {
}
if (_root.player_tutorial >= 6) {
}
if (_root.player_tutorial >= 7) {
}
if (_root.player_tutorial >= 8) {
}
if (_root.player_tutorial >= 9) {
_root.levelguage._visible = true;
_root.obj_notorietybar._visible = true;
_root.levelguagetutorial._visible = false;
_root.obj_notorietybartutorial._visible = false;
}
if (_root.player_tutorial >= 10) {
_root.roombuttons.defensedeploy._visible = true;
}
if (_root.player_tutorial >= 11) {
}
if (_root.player_tutorial >= 12) {
}
if (_root.player_tutorial >= 13) {
_root.defenseslider._visible = true;
_root.roombuttons._visible = true;
_root.defenseslidertutorial._visible = false;
_root.roombuttonstutorial._visible = false;
_root.roombuttons.meetingbutton._visible = true;
_root.roombuttons.financialbutton._visible = true;
_root.roombuttons.weaponbutton._visible = true;
_root.roombuttons.innerbutton._visible = true;
}
tutbox.onSoundComplete = function () {
if (_root.player_tutorial !== 13 and _root.player_tutorial !== -1) {
++_root.player_tutorial;
} else {
if (_root.player_tutorial == 13) {
_root.player_tutorial = -1;
_root.defenseslider._visible = true;
_root.roombuttons._visible = true;
_root.defenseslidertutorial._visible = false;
_root.roombuttonstutorial._visible = false;
_root.roombuttons.meetingbutton._visible = true;
_root.roombuttons.financialbutton._visible = true;
_root.roombuttons.weaponbutton._visible = true;
_root.roombuttons.innerbutton._visible = true;
_root.player_cash += 3000;
_root.moneydisplayer();
_root.save_game();
} else {
if (_root.player_tutorial == -1) {
}
}
}
soundplaying = false;
_root.voicebox.mbox.setVolume(100);
_root.voicebox.vbox.setVolume(45);
};
}
}
instance voicebox of movieClip 582 {
onClipEvent (load) {
function play_music() {
mbox.attachSound('MWC_' + thissong);
mbox.start();
mbox.setVolume(100);
if (_root.tutorialbox.soundplaying == true or _root.cutscenemenu.currentFrame > 1 or _root.cutscenemeeting.currentFrame > 1 or _root.cutsceneevac.currentFrame > 1) {
mbox.setVolume(50);
}
while (thissong == randomsong) {
randomsong = Math.floor(Math.random() * 4) + 1;
}
thissong = randomsong;
}
function play_voice(inString) {
if (soundplaying !== true) {
if (inString == 'clear') {
this_max = 10;
}
if (inString == 'die') {
this_max = 10;
}
if (inString == 'fight') {
this_max = 10;
}
if (inString == 'hail') {
this_max = 5;
}
if (inString == 'losing') {
this_max = 3;
}
if (inString == 'returning') {
this_max = 4;
}
var v3 = String(Math.floor(Math.random() * this_max) + 1);
vbox.attachSound(inString + v3);
vbox.start();
vbox.setVolume(45);
if (_root.tutorialbox.soundplaying == true) {
vbox.setVolume(30);
}
soundplaying = true;
}
}
function play_henchman(inString) {
if (hench_soundplaying !== true) {
if (inString !== 'Battlecry' or _root.henchman_talkclear !== false and inString == 'Battlecry') {
if (inString == 'Battlecry') {
_root.henchman_talkclear = false;
}
hbox.attachSound('Hench_' + _root.hench_roster + '_' + inString);
hbox.start();
if (inString == 'Hired') {
hbox.setVolume(100);
} else {
if (inString == 'Battlecry') {
hbox.setVolume(50);
} else {
hbox.setVolume(85);
}
}
if (_root.tutorialbox.soundplaying == true or _root.cutscenemenu.currentFrame > 1 or _root.cutscenemeeting.currentFrame > 1 or _root.cutsceneevac.currentFrame > 1) {
hbox.setVolume(50);
}
hench_soundplaying = true;
}
}
}
function play_patsy(inPatsy, inString) {
if (hench_soundplaying !== true) {
hbox.attachSound('Patsy_' + inPatsy + '_' + inString);
hbox.start();
hbox.setVolume(100);
trace('Playing sound: ' + ('Patsy_' + inPatsy + '_' + inString));
if (_root.tutorialbox.soundplaying == true or cutscenemenu.currentFrame > 1 or cutscenemeeting.currentFrame > 1 or cutsceneevac.currentFrame > 1) {
hbox.setVolume(50);
}
hench_soundplaying = true;
}
}
var thissong = 0;
var randomsong = 0;
var vbox = new Sound(_root.soundtest1);
var soundplaying = false;
vbox.setVolume(45);
var mbox = new Sound(_root.soundtest2);
mbox.setVolume(100);
var hbox = new Sound(_root.soundtest4);
hbox.setVolume(100);
var hench_soundplaying = false;
if ((SharedObject.getLocal('MWC')).data.music_status != false) {
this.play_music();
}
vbox.onSoundComplete = function () {
soundplaying = false;
};
mbox.onSoundComplete = function () {
_root.voicebox.play_music();
};
hbox.onSoundComplete = function () {
hench_soundplaying = false;
};
}
}
button 6165 {
on (press) {
_root.gamepausedtext.gotoAndPlay(7);
gotoAndStop(1);
}
}
button 6167 {
on (press) {
nextFrame();
}
}
button 6171 {
on (press) {
if (_root.player_tooltips !== false) {
_root.player_tooltips = false;
(SharedObject.getLocal('MWC')).data.player_tooltips = false;
tootlipsyes._visible = false;
} else {
_root.player_tooltips = true;
(SharedObject.getLocal('MWC')).data.player_tooltips = true;
tootlipsyes._visible = true;
}
}
}
movieClip 6173 {
}
button 6183 {
on (press) {
gotoAndStop(3);
}
}
movieClip 6184 {
frame 1 {
stop();
}
frame 2 {
gotoAndStop(Math.floor(Math.random() * 9) + 3);
}
instance tootlipsyes of movieClip 6173 {
onClipEvent (load) {
if (_root.player_tooltips == false) {
this._visible = false;
} else {
this._visible = true;
}
}
}
}
instance tooltipsbox of movieClip 6184 {
onClipEvent (load) {
if (_root.player_tooltips !== false and _root.player_tutorial == -1) {
_root.gamepausedtext.play();
this.gotoAndStop(2);
}
}
}
movieClip 6186 {
}
instance cutscenebox of movieClip 6186 {
onClipEvent (load) {
function play_voice(inCutscene, inScene, inChar) {
_root.voice_key = false;
if (inCutscene == 'mission') {
if (inScene == 'setup') {
if (inChar == 'min') {
if (_root.cut_plot_type == 'cash') {
this_max = 10;
}
if (_root.cut_plot_type == 'science') {
this_max = 6;
}
if (_root.cut_plot_type == 'propaganda') {
this_max = 3;
}
if (_root.cut_plot_type == 'brainwash') {
this_max = 3;
}
if (_root.cut_plot_type == 'sabotage') {
this_max = 4;
}
if (_root.cut_plot_type == 'blowup') {
this_max = 4;
}
}
}
if (inScene == 'interaction') {
if (inChar == 'mm') {
if (_root.cut_plot_type == 'brainwash') {
this_max = 1;
}
}
if (inChar == 'min') {
if (_root.cut_plot_type == 'kidnap') {
this_max = 4;
}
if (_root.cut_plot_type == 'kill') {
this_max = 1;
if (_root.cut_plot_target == 'politician' or _root.cut_plot_target == 'leader') {
inChar = 'min_' + _root.cut_plot_territory + '_' + _root.cut_plot_target;
} else {
inChar = 'min_' + _root.cut_plot_target;
}
}
if (_root.cut_plot_type == 'propaganda') {
this_max = 2;
}
}
if (inChar == 'min1') {
if (_root.cut_plot_type == 'blowup') {
this_max = 3;
}
}
if (inChar == 'min2') {
if (_root.cut_plot_type == 'kill') {
this_max = 4;
}
if (_root.cut_plot_type == 'blowup') {
this_max = 3;
}
}
if (inChar == 'min3') {
if (_root.cut_plot_type == 'kill') {
this_max = 5;
}
}
if (inChar == 'victim') {
if (_root.cut_plot_type == 'kill') {
this_max = 1;
inChar = 'victim_' + _root.cut_plot_territory;
}
if (_root.cut_plot_type == 'cash' or _root.cut_plot_type == 'science') {
this_max = 3;
}
}
}
if (inScene == 'victory') {
if (inChar == 'mm') {
if (_root.cut_plot_type == 'brainwash') {
this_max = 1;
}
}
if (inChar == 'min') {
if (_root.cut_plot_type == 'science') {
this_max = 6;
}
if (_root.cut_plot_type == 'cash') {
this_max = 5;
}
if (_root.cut_plot_type == 'propaganda') {
this_max = 5;
}
}
if (inChar == 'min1') {
if (_root.cut_plot_type == 'cash') {
this_max = 5;
}
}
if (inChar == 'min2') {
if (_root.cut_plot_type == 'cash') {
this_max = 5;
}
}
if (inChar == 'victim') {
if (_root.cut_plot_type == 'kidnap' or _root.cut_plot_type == 'propaganda') {
this_max = 1;
inChar = 'victim_' + _root.cut_plot_territory;
}
}
}
if (inScene == 'defeat') {
if (inChar == 'police') {
if (_root.cut_plot_type == 'kidnap') {
this_max = 4;
}
if (_root.cut_plot_type == 'cash') {
this_max = 4;
}
}
if (inChar == 'victim') {
if (_root.cut_plot_type == 'science') {
this_max = 3;
}
if (_root.cut_plot_type == 'kill') {
this_max = 2;
}
if (_root.cut_plot_type == 'kidnap' or _root.cut_plot_type == 'propaganda' or _root.cut_plot_type == 'brainwash') {
this_max = 1;
inChar = 'victim_' + _root.cut_plot_territory;
}
}
if (inChar == 'min') {
if (_root.cut_plot_type == 'sabotage') {
this_max = 5;
}
if (_root.cut_plot_type == 'cash') {
this_max = 6;
}
if (_root.cut_plot_type == 'kill') {
this_max = 3;
}
if (_root.cut_plot_type == 'propaganda') {
this_max = 4;
}
}
}
if (inScene == 'patsy') {
this_max = 1;
if (inChar == 'patsy1' or inChar == 'patsy2') {
inChar = inChar + '_' + _root.patsy_roster[_root.cut_patsy_selected];
}
}
if (inChar !== 'police' and inScene !== 'patsy') {
inScene = _root.cut_plot_type + '_' + inScene;
}
if (inChar == 'civ') {
inChar = _root.cut_plot_territory + '_civ';
}
}
if (inCutscene == 'meeting') {
if (inScene == 'establish') {
if (inChar == 'mm') {
this_max = 6;
}
}
if (inScene == 'execute') {
if (inChar == 'mm1') {
this_max = 2;
}
if (inChar == 'patsy1') {
this_max = 1;
}
if (inChar == 'mm2') {
this_max = 2;
}
if (inChar == 'patsy2') {
this_max = 1;
}
if (inChar.substr(0, 5) == 'patsy') {
inChar = _root.patsy_roster[_root.cut_patsy_executed] + inChar.substr(-1, 1);
}
}
if (inScene == 'intro') {
if (inChar == 'mm') {
this_max = 2;
}
}
if (inScene == 'plot') {
if (inChar == 'mm') {
this_max = 1;
}
inChar = 'mm_' + _root.cut_plot_type;
}
if (inScene == 'select') {
if (inChar == 'mm1') {
this_max = 2;
}
if (inChar == 'mm2') {
this_max = 1;
}
if (inChar == 'patsy') {
this_max = 1;
}
if (inChar == 'mm2') {
inChar = 'mm_' + _root.patsy_roster[_root.cut_patsy_selected];
}
if (inChar == 'patsy') {
inChar = _root.patsy_roster[_root.cut_patsy_selected];
}
}
if (inScene == 'conclusion') {
if (inChar == 'mm') {
this_max = 6;
}
if (inChar == 'patsy') {
this_max = 1;
}
if (inChar == 'patsy') {
play_all_hail();
}
if (inChar == 'patsy') {
inChar = _root.patsy_roster[_root.cut_patsy_selected];
}
}
}
if (inString == 'clear') {
this_max = 10;
}
if (inString == 'die') {
this_max = 10;
}
if (inString == 'fight') {
this_max = 10;
}
if (inString == 'hail') {
this_max = 5;
}
if (inString == 'losing') {
this_max = 3;
}
if (inString == 'returning') {
this_max = 4;
}
if (inScene == 'cash_victory' and inChar == 'min2') {
var v4 = _root.backup_randomsound;
} else {
var v4 = String(Math.floor(Math.random() * this_max) + 1);
_root.backup_randomsound = v4;
}
trace('Now speaking: ' + inChar + ', with line #' + v4 + ' from scene ' + inScene);
if (inScene !== 'conclusion' or inScene == 'conclusion' and inChar == 'mm') {
trace('Name of sound linkage is: ' + ('Cutscene_' + inScene + '_' + inChar + '_' + v4));
cutbox.attachSound('Cutscene_' + inScene + '_' + inChar + '_' + v4);
cutbox.start();
cutbox.setVolume(100);
if (_root.tutorialbox.soundplaying == true) {
cutbox.setVolume(30);
}
}
}
function play_all_hail() {
i = 0;
while (i < 3) {
if (_root.patsy_roster[i] !== '' and i !== _root.cut_patsy_executed) {
cutbox.attachSound('Cutscene_conclusion_' + _root.patsy_roster[i] + '_1');
cutbox.start();
cutbox.setVolume(70);
if (_root.tutorialbox.soundplaying == true) {
cutbox.setVolume(25);
}
}
++i;
}
}
var thissong = 0;
var randomsong = 0;
var cutbox = new Sound(_parent.soundtest5);
cutbox.setVolume(45);
cutbox.onSoundComplete = function () {
_root.voice_key = true;
};
}
}
movieClip 6187 {
}
button 6191 {
on (press) {
_root.unit_spawner.spawn_minion();
_root.display_defenseminions();
}
}
button 6197 {
on (press) {
if (_root.gamepaused == false) {
_root.gamepaused = true;
} else {
if (_root.player_defeat !== true) {
_root.gamepaused = false;
}
}
}
}
button 6209 {
on (press) {
if (_root.player_minpool > 0 and _root.display_defensemin < _root.player_mintotal) {
_root.unit_spawner.spawn_minion('Minion');
_root.display_defenseminions();
_root.player_minpool -= 1;
}
}
}
button 6211 {
on (press) {
_root.display_defenseminions();
_root.unit_actions.recall_minion('minion');
}
}
button 6214 {
on (press) {
if (_root.hench_id == -1) {
_root.unit_spawner.spawn_minion('Henchman');
}
this.gotoAndStop(2);
}
}
button 6216 {
on (press) {
_root.unit_actions.recall_minion('henchman');
}
}
movieClip 6217 {
frame 1 {
stop();
}
}
button 6219 {
on (press) {
_root.enemy_waves += 1;
}
}
button 6222 {
on (press) {
_root.evacuate_base(2);
}
}
button 6224 {
on (press) {
_root.map_units['m_' + _root.hench_id].unit_power = 'leadership';
}
}
button 6225 {
on (press) {
_root.map_units['m_' + _root.hench_id].unit_power = 'charge';
}
}
button 6226 {
on (press) {
_root.map_units['m_' + _root.hench_id].unit_power = 'frightening';
}
}
button 6227 {
on (press) {
_root.map_units['m_' + _root.hench_id].unit_power = 'dodge';
}
}
button 6232 {
on (press) {
_root.map_units['m_' + _root.hench_id].unit_power = 'morale';
}
}
button 6235 {
on (press) {
if (_root.power_recharging[3] !== true and _root.display_defensemin > 1) {
_root.power_active[3] = true;
_root.power_recharging[3] = true;
_root.unit_actions.power_unitexecute();
}
}
}
button 6236 {
on (press) {
if (_root.power_recharging[0] !== true) {
_root.power_active[0] = true;
_root.power_recharging[0] = true;
}
}
}
button 6237 {
on (press) {
if (_root.power_recharging[1] !== true) {
_root.power_active[1] = true;
_root.power_recharging[1] = true;
}
}
}
button 6238 {
on (press) {
if (_root.power_recharging[4] !== true) {
_root.power_active[4] = true;
_root.power_recharging[4] = true;
_root.unit_actions.power_unithealthboost();
}
}
}
button 6239 {
on (press) {
if (_root.power_recharging[2] !== true) {
_root.power_active[2] = true;
_root.power_recharging[2] = true;
i = 0;
while (i < _root.unit_actions.m_roster.length) {
_root.map_units['m_' + _root.unit_actions.m_roster[i]].sprite_spread.sprite.message_spread.hitdefense.gotoAndPlay('defense2');
++i;
}
}
}
}
button 6240 {
on (press) {
if (_root.power_recharging[5] !== true) {
var k = Math.floor(Math.random() * 6) + 5;
i = 0;
while (i < k) {
if (_root.display_defensemin < _root.player_mintotal) {
_root.unit_spawner.spawn_minion('Minion');
_root.display_defenseminions();
} else {
break;
}
++i;
}
_root.power_active[5] = true;
_root.power_recharging[5] = true;
}
}
}
movieClip 6250 {
}
button 6251 {
on (press) {
_root.player_currentweapon = 0;
}
}
button 6253 {
on (press) {
_root.player_currentweapon = 1;
}
}
button 6255 {
on (press) {
_root.player_currentweapon = 2;
}
}
button 6257 {
on (press) {
_root.player_currentweapon = 3;
}
}
button 6259 {
on (press) {
_root.player_currentweapon = 4;
}
}
button 6261 {
on (press) {
_root.player_currentweapon = 5;
}
}
button 6263 {
on (press) {
_root.player_currentweapon = 6;
}
}
movieClip 6265 {
instance of movieClip 6250 {
onClipEvent (enterFrame) {
if (_root.power_recharging[3] == false and _root.power_active[3] == false) {
gotoAndStop(1);
}
if (_root.power_recharging[3] == true and _root.power_active[3] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[3] == true and _root.power_active[3] == true) {
gotoAndStop(3);
}
}
}
instance of movieClip 6250 {
onClipEvent (enterFrame) {
if (_root.power_recharging[0] == false and _root.power_active[0] == false) {
gotoAndStop(1);
}
if (_root.power_recharging[0] == true and _root.power_active[0] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[0] == true and _root.power_active[0] == true) {
gotoAndStop(3);
}
}
}
instance of movieClip 6250 {
onClipEvent (enterFrame) {
if (_root.power_recharging[1] == false and _root.power_active[1] == false) {
gotoAndStop(1);
}
if (_root.power_recharging[1] == true and _root.power_active[1] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[1] == true and _root.power_active[1] == true) {
gotoAndStop(3);
}
}
}
instance of movieClip 6250 {
onClipEvent (enterFrame) {
if (_root.power_recharging[4] == false and _root.power_active[4] == false) {
gotoAndStop(1);
}
if (_root.power_recharging[4] == true and _root.power_active[4] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[4] == true and _root.power_active[4] == true) {
gotoAndStop(3);
}
}
}
instance of movieClip 6250 {
onClipEvent (enterFrame) {
if (_root.power_recharging[2] == false and _root.power_active[2] == false) {
gotoAndStop(1);
}
if (_root.power_recharging[2] == true and _root.power_active[2] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[2] == true and _root.power_active[2] == true) {
gotoAndStop(3);
}
}
}
instance of movieClip 6250 {
onClipEvent (enterFrame) {
if (_root.power_recharging[5] == false and _root.power_active[5] == false) {
gotoAndStop(1);
}
if (_root.power_recharging[5] == true and _root.power_active[5] == false) {
gotoAndStop(2);
}
if (_root.power_recharging[5] == true and _root.power_active[5] == true) {
gotoAndStop(3);
}
}
}
}
instance hhhhh of movieClip 6265 {
onClipEvent (load) {
this.swapDepths(5000);
}
onClipEvent (enterFrame) {
this.minions = _root.unit_actions.m_roster.length - 1;
this.enemies = _root.unit_actions.e_roster.length;
}
}
button 6268 {
on (press) {
_root.screen_locked = false;
this.gotoAndStop(1);
}
}
movieClip 6269 {
frame 1 {
stop();
}
}
frame 8 {
NewgroundsAPI.logCustomEvent('Victory');
}
movieClip 6276 {
}
movieClip 6278 {
}
movieClip 6280 {
}
movieClip 6283 {
}
movieClip 6284 {
frame 77 {
stop();
}
}
// unknown tag 88 length 202
movieClip 6290 {
}
movieClip 6295 {
}
movieClip 6297 {
}
movieClip 6299 {
}
movieClip 6301 {
}
movieClip 6304 {
}
movieClip 6306 {
}
movieClip 6311 {
}
movieClip 6313 {
}
movieClip 6315 {
}
movieClip 6317 {
}
movieClip 6320 {
}
movieClip 6322 {
}
movieClip 6324 {
}
movieClip 6325 {
}
movieClip 6333 {
}
movieClip 6335 {
}
movieClip 6342 {
}
movieClip 6351 {
}
// unknown tag 88 length 209
movieClip 6362 {
}
movieClip 6364 {
}
movieClip 6368 {
}
movieClip 6376 {
}
movieClip 6378 {
}
movieClip 6384 {
frame 58 {
stop();
}
}
movieClip 6386 {
}
movieClip 6388 {
}
movieClip 6391 {
}
movieClip 6393 {
}
movieClip 6395 {
}
movieClip 6397 {
}
movieClip 6399 {
}
movieClip 6401 {
}
movieClip 6402 {
}
movieClip 6404 {
}
movieClip 6406 {
}
movieClip 6416 {
}
movieClip 6418 {
}
movieClip 6419 {
}
movieClip 6422 {
}
movieClip 6423 {
}
movieClip 6425 {
}
movieClip 6428 {
}
movieClip 6431 {
}
movieClip 6434 {
}
movieClip 6492 {
}
movieClip 6494 {
}
movieClip 6504 {
frame 1 {
stop();
}
frame 194 {
stop();
}
frame 249 {
stop();
}
frame 403 {
stop();
}
frame 505 {
stop();
}
frame 655 {
stop();
}
frame 827 {
stop();
}
frame 917 {
stop();
}
}
button 6507 {
on (press) {
_parent.mastermind.gotoAndPlay('laugh');
}
}
button 6508 {
on (press) {
_parent.mastermind.gotoAndPlay('jeer');
}
}
button 6509 {
on (press) {
_parent.mastermind.gotoAndPlay('ponder');
}
}
button 6510 {
on (press) {
_parent.mastermind.gotoAndPlay('celebrate');
}
}
button 6511 {
on (press) {
_parent.mastermind.gotoAndPlay('furious');
}
}
button 6512 {
on (press) {
_parent.mastermind.gotoAndPlay('finger');
}
}
button 6513 {
on (press) {
_parent.mastermind.gotoAndPlay('stare');
}
}
button 6514 {
on (press) {
_root.gotoAndStop('mainmenu');
}
}
movieClip 6524 {
}
movieClip 6525 {
frame 1064 {
stop();
}
}
frame 9 {
NewgroundsAPI.logCustomEvent('Defeat');
_root.player_defeat = false;
}
movieClip 6539 {
}
movieClip 6540 {
}
button 6544 {
on (press) {
if (_root.test_load() == true) {
_root.load_game();
_root.voicebox.introbox.stop();
_root.gotoAndStop('maingame');
} else {
_root.player_tutorial = 0;
_root.player_notoriety = 0;
_root.player_cash = 300;
_root.player_cashdisplay = '$300';
_root.player_minpool = 0;
_root.player_level = 1;
_root.player_xp = 0;
_root.voicebox.introbox.stop();
_root.gotoAndStop('gameintro');
}
}
}
movieClip 6548 {
}
movieClip 6549 {
frame 5 {
stop();
}
}
movieClip 6550 {
frame 69 {
gotoAndPlay('mm' + (Math.floor(Math.random() * 4) + 1));
}
frame 184 {
gotoAndPlay('end');
}
frame 286 {
gotoAndPlay('end');
}
frame 360 {
gotoAndPlay('end');
}
frame 472 {
gotoAndPlay('end');
}
frame 653 {
stop();
}
}
button 6552 {
on (press) {
play();
}
}
// unknown tag 88 length 216
// unknown tag 88 length 216
button 6559 {
on (press) {
_root.player_mindefense -= Math.floor(Math.random() * 5) + 1;
if (_root.player_mindefense < 0) {
_root.player_mindefense = 0;
}
}
}
movieClip 6562 {
}
button 6564 {
on (press) {
if (_root.hench_roster !== '') {
_root.killhench();
}
}
}
button 6565 {
on (press) {
_root.player_level -= 1;
}
}
button 6566 {
on (press) {
_root.player_level += 1;
}
}
button 6568 {
on (press) {
_root.save_game();
}
}
button 6571 {
on (press) {
play();
}
}
button 6577 {
on (press) {
trace('Event 1: ' + _root.event1);
trace('Event 2: ' + _root.event2);
trace('Voucher:' + _root.event_voucher);
trace('Terr1 Suspicion: ' + _root.territory_suspicion[0]);
trace('Terr2 Suspicion: ' + _root.territory_suspicion[1]);
trace('Terr3 Suspicion: ' + _root.territory_suspicion[2]);
trace('Terr4 Suspicion: ' + _root.territory_suspicion[3]);
}
}
button 6578 {
on (press) {
if (_root.player_science0[0] !== true) {
_root.player_science0[0] = true;
} else {
_root.player_science0[0] = false;
}
}
}
button 6579 {
on (press) {
if (_root.player_science1[0] !== true) {
_root.player_science1[0] = true;
} else {
_root.player_science1[0] = false;
}
}
}
button 6580 {
on (press) {
if (_root.player_science1[1] !== true) {
_root.player_science1[1] = true;
} else {
_root.player_science1[1] = false;
}
}
}
button 6581 {
on (press) {
if (_root.player_science2[0] !== true) {
_root.player_science2[0] = true;
} else {
_root.player_science2[0] = false;
}
}
}
button 6582 {
on (press) {
if (_root.player_science2[1] !== true) {
_root.player_science2[1] = true;
} else {
_root.player_science2[1] = false;
}
}
}
button 6583 {
on (press) {
if (_root.player_science2[2] !== true) {
_root.player_science2[2] = true;
} else {
_root.player_science2[2] = false;
}
}
}
button 6584 {
on (press) {
if (_root.player_science3[0] !== true) {
_root.player_science3[0] = true;
} else {
_root.player_science3[0] = false;
}
}
}
button 6585 {
on (press) {
if (_root.player_science3[1] !== true) {
_root.player_science3[1] = true;
} else {
_root.player_science3[1] = false;
}
}
}
button 6586 {
on (press) {
if (_root.player_science3[2] !== true) {
_root.player_science3[2] = true;
} else {
_root.player_science3[2] = false;
}
}
}
button 6587 {
on (press) {
if (_root.player_science3[3] !== true) {
_root.player_science3[3] = true;
} else {
_root.player_science3[3] = false;
}
}
}
button 6588 {
on (press) {
if (_root.player_science4[0] !== true) {
_root.player_science4[0] = true;
} else {
_root.player_science4[0] = false;
}
}
}
button 6589 {
on (press) {
if (_root.player_science4[1] !== true) {
_root.player_science4[1] = true;
} else {
_root.player_science4[1] = false;
}
}
}
button 6590 {
on (press) {
if (_root.player_science4[2] !== true) {
_root.player_science4[2] = true;
} else {
_root.player_science4[2] = false;
}
}
}
button 6591 {
on (press) {
if (_root.player_science4[3] !== true) {
_root.player_science4[3] = true;
} else {
_root.player_science4[3] = false;
}
}
}
button 6592 {
on (press) {
if (_root.player_science4[4] !== true) {
_root.player_science4[4] = true;
} else {
_root.player_science4[4] = false;
}
}
}
button 6593 {
on (press) {
if (_root.player_science5[0] !== true) {
_root.player_science5[0] = true;
} else {
_root.player_science5[0] = false;
}
}
}
button 6594 {
on (press) {
if (_root.player_science5[1] !== true) {
_root.player_science5[1] = true;
} else {
_root.player_science5[1] = false;
}
}
}
button 6595 {
on (press) {
if (_root.player_science5[2] !== true) {
_root.player_science5[2] = true;
} else {
_root.player_science5[2] = false;
}
}
}
button 6596 {
on (press) {
if (_root.player_science6[0] !== true) {
_root.player_science6[0] = true;
} else {
_root.player_science6[0] = false;
}
}
}
button 6600 {
on (press) {
if (_root.player_weapon[2] !== true) {
_root.player_weapon[2] = true;
} else {
_root.player_weapon[2] = false;
}
}
}
button 6601 {
on (press) {
if (_root.player_weapon[3] !== true) {
_root.player_weapon[3] = true;
} else {
_root.player_weapon[3] = false;
}
}
}
button 6602 {
on (press) {
if (_root.player_weapon[4] !== true) {
_root.player_weapon[4] = true;
} else {
_root.player_weapon[4] = false;
}
}
}
button 6603 {
on (press) {
if (_root.player_weapon[5] !== true) {
_root.player_weapon[5] = true;
} else {
_root.player_weapon[5] = false;
}
}
}
button 6604 {
on (press) {
if (_root.player_weapon[6] !== true) {
_root.player_weapon[6] = true;
} else {
_root.player_weapon[6] = false;
}
}
}
button 6605 {
on (press) {
if (_root.player_base[1] !== true) {
_root.player_base[1] = true;
} else {
_root.player_base[1] = false;
}
}
}
button 6606 {
on (press) {
if (_root.player_base[2] !== true) {
_root.player_base[2] = true;
} else {
_root.player_base[2] = false;
}
}
}
button 6607 {
on (press) {
if (_root.player_base[3] !== true) {
_root.player_base[3] = true;
} else {
_root.player_base[3] = false;
}
}
}
button 6608 {
on (press) {
if (_root.player_base[4] !== true) {
_root.player_base[4] = true;
} else {
_root.player_base[4] = false;
}
}
}
button 6609 {
on (press) {
if (_root.player_weapon[1] !== true) {
_root.player_weapon[1] = true;
} else {
_root.player_weapon[1] = false;
}
}
}
button 6610 {
on (press) {
if (_root.player_weapon[0] !== true) {
_root.player_weapon[0] = true;
} else {
_root.player_weapon[0] = false;
}
}
}
button 6611 {
on (press) {
if (_root.player_base[5] !== true) {
_root.player_base[5] = true;
} else {
_root.player_base[5] = false;
}
}
}
button 6612 {
on (press) {
if (_root.player_base[6] !== true) {
_root.player_base[6] = true;
} else {
_root.player_base[6] = false;
}
}
}
button 6613 {
on (press) {
if (_root.player_base[7] !== true) {
_root.player_base[7] = true;
} else {
_root.player_base[7] = false;
}
}
}
button 6614 {
on (press) {
if (_root.player_base[8] !== true) {
_root.player_base[8] = true;
} else {
_root.player_base[8] = false;
}
}
}
button 6616 {
on (press) {
if (_root.player_power[1] !== true) {
_root.player_power[1] = true;
} else {
_root.player_power[1] = false;
}
}
}
button 6617 {
on (press) {
if (_root.player_power[2] !== true) {
_root.player_power[2] = true;
} else {
_root.player_power[2] = false;
}
}
}
button 6618 {
on (press) {
if (_root.player_power[3] !== true) {
_root.player_power[3] = true;
} else {
_root.player_power[3] = false;
}
}
}
button 6619 {
on (press) {
if (_root.player_power[4] !== true) {
_root.player_power[4] = true;
} else {
_root.player_power[4] = false;
}
}
}
button 6620 {
on (press) {
if (_root.player_power[5] !== true) {
_root.player_power[5] = true;
} else {
_root.player_power[5] = false;
}
}
}
button 6621 {
on (press) {
if (_root.player_power[0] !== true) {
_root.player_power[0] = true;
} else {
_root.player_power[0] = false;
}
}
}
button 6649 {
on (press) {
trace('Depth of ' + target_depth + ', and at that location is ' + _root.map_units.getInstanceAtDepth(target_depth));
}
}
button 6653 {
on (press) {
_root.map_background._x = 350 - (_root.map_units.getInstanceAtDepth(target_depth))._x;
_root.map_background._y = 260 - (_root.map_units.getInstanceAtDepth(target_depth))._y;
_root.map_units._x = 350 - (_root.map_units.getInstanceAtDepth(target_depth))._x;
_root.map_units._y = 260 - (_root.map_units.getInstanceAtDepth(target_depth))._y;
}
}
movieClip 6655 {
frame 1 {
_root.outerframe._visible = true;
stop();
}
frame 2 {
_root.outerframe._visible = false;
stop();
}
instance of movieClip 6562 {
onClipEvent (press) {
_root.player_cash += Math.floor(Math.random() * 501) + 300;
_root.player_cashdisplay = _root.moneyformat(_root.player_cash);
_root.player_xp += Math.floor(Math.random() * 91) + 10;
}
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}