Other great resources: Official JS API docs, Scripting Forum
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 7 Current »
The event is also triggered when you gain technology by picking up an artefact (something that an AI cannot currently do, but a human ally can).
function eventResearched(research, structure) { // do stuff }
If the research was completed in one of your labs, this will be the structure object for that RESEARCH lab.
The parameter will be undefined if the research was completed by one of your allies, or gifted via a script, etc.
eventResearched(research, structure) { if (structure) pursueResearch(structure, myResearchPath); }
Requires:
Jump to:
Related articles: