2015-07-26 14:32:13 +00:00
\b;Instruction \c;research\n;
Syntax:
\s;\c;\l;object\u cbot\object;.research ( type );\n;
2015-07-26 16:52:08 +00:00
Starts a \l;research\u cbot\researches; of the given type.
2015-07-26 14:32:13 +00:00
\t;\l;object\u cbot\object;
2015-07-26 14:43:20 +00:00
\l;ResearchCenter\u object\research; or \l;AutoLab\u object\labo;.
2015-07-26 14:32:13 +00:00
\t;type: \c;\l;int\u cbot\int;\n;
2015-07-26 16:52:08 +00:00
\l;Research name\u cbot\researches;.
2015-07-26 14:32:13 +00:00
\t;Return value: \c;\l;int\u cbot\int;\n;
2015-07-26 16:52:08 +00:00
Normally an error stops the program. You can prevent the program from stopping on errors by using the \c;\l;errmode\u cbot\errmode;(0)\n; instruction. A value different from zero if an error occurred is then returned by \c;research()\n;.
2015-07-26 14:32:13 +00:00
\c;== 0 \n;The research successfully started
2015-07-26 16:52:08 +00:00
\c;!= 0 \n;The research could not be started (e.g. the research is disabled in the level, no power cell)
2015-07-26 14:32:13 +00:00
\t;See also
\l;Research names\u cbot\researches;, \l;canresearch\u cbot\canresearch;, \l;researched\u cbot\researched;, \l;programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.