[QUES]Research is needed for Platform and Research event

hello ,
I want to add a research which is needed to use the licence of a platform , and I also want to add a Event to it , which get triggert before you can research it ( like the event before you can research the visorius support) would be great if you can say me how / give me the code for this , so I can update my More Ninvento mod soon :smiley:

1 Like

Which kind of research? A Lab Research or a staff research?

staff research

1 Like
var myResearch = {
	id: "DebugMonkeyCheckers",
	name: "Monkey Checkers".localize(),
	pointsCost: 10, // Research points
	duration: 4E4, // Time takes to complete
	cost: 80E4, // Cost of research
	canResearch: function (company) {
		return true; //Must return boolean. i.e. true or false so make you checks here.
	},
	category: "Platform Research",
	categoryDisplayName: "Platform Research".localize(),
	complete: function (company) {
		// Run any functions/events you want to here. i.e.
		GameManager.company.notifications.push(new Notification({
			header: "My Research!".localize(),
			text: "The research completed!".localize()
		}));
	}
};


MyMod.addStaffResearch = function () {
	Research.SpecialItems.push(myResearch);
};

This is an example of the code you need :smile:

1 Like