\b;Instrução \c;factory\n;
Sintaxe:
\s;\c;factory ( cat, program, object );\n;

Starts a construction of a bot of a given \l;category\u cbot\category; and runs a specified program on it after the construction is finished.

\t;categoria: \c;\l;int\u cbot\int;\n;
\l;Categoria\u cbot\category; do robô para construir.

\t;programa: \c;\l;string\u cbot\string;\n; (valor padrão: \c;""\n;)
Program that will be run on the bot after factory finishes the construction. This can be either a \l;public\u cbot\public; \l;function\u cbot\function;, a \l;filename\u cbot\file; or raw code.

\t;\l;object\u cbot\object;
\l;BotFactory\u object\factory;, nearest by default.

\t;Valor de retorno: \c;\l;int\u cbot\int;\n;
Normalmente um erro para o programa. Se você quiser que o programa não pare ao ocorrer erros use a instrução \c;\l;errmode\u cbot\errmode;(0)\n;.  Um valor diferente de zero é retornado por \c;factory()\n; se um erro ocorrer.
\c;== 0 \n;A construção foi iniciada com sucesso
\c;!= 0 \n;A construção não pode ser iniciada (ex.: nenhum \l;Titânio\u object\titan; na fábrica, o robô não pode ser pesquisado)

\t;Veja também
\c;\l;researched\u cbot\researched;\n;, \c;\l;wait\u cbot\wait;\n;.
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
