Create Each Do/es: Difference between revisions
(Updating to match new version of source page) |
|||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
[[Category: Agents]] | [[Category: Agents]] | ||
<section begin=image/>[[File:Create Each Do.png|alt=The Create Each Do Block|thumb]]<section end=image/> | <section begin=image/>[[File:Create Each Do.png|alt=The Create Each Do Block|thumb]]<section end=image/> | ||
<section begin="name" />'''<code>create [_] [▼](s) each do</code>'''<section end="name" /> is a [[code block]] part of the [[agents]] drawer. | <section begin="name" />'''<code>create [_] [▼](s) each do</code>'''<section end="name" /> is a [[code block]] part of the [[agents]] drawer. | ||
== Uso== | |||
<code>create [_] [▼](s) each do</code> is used to populate [[Spaceland]] with [[agent]]s and then run a [[stack]] of code individually for each agent. This can be useful for making many agents and setting different [[trait]]s for each. | <code>create [_] [▼](s) each do</code> is used to populate [[Spaceland]] with [[agent]]s and then run a [[stack]] of code individually for each agent. This can be useful for making many agents and setting different [[trait]]s for each. | ||
===Sintaxis=== | |||
<code>create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code> | <code>create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code> | ||
<code>crear [_] [▼](s) cada uno hacer</code> es muy similar a <code>[[Special:MyLanguage/create|crear [_] [▼](s)]]</code>. Ambos comandos crean agentes, pero generalmente <code>crear [_] [▼](s) cada uno hacer</code> permite usos más complejos y potentes. | |||
<code> | |||
==Bloques relacionados== | |||
*<code>[[create|create [_] [▼](s)]]</code> | *<code>[[create|create [_] [▼](s)]]</code> | ||
< | <span id="Relevant_Video_Resources"></span> | ||
== | ==Recursos en video relevantes== | ||
< | <span id="Relevant_Activities"></span> | ||
== | ==Actividades relevantes== | ||
Revision as of 20:33, 20 June 2023
create [_] [▼](s) each do
is a code block part of the agents drawer.
Uso
create [_] [▼](s) each do
is used to populate Spaceland with agents and then run a stack of code individually for each agent. This can be useful for making many agents and setting different traits for each.
Sintaxis
create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]
crear [_] [▼](s) cada uno hacer
es muy similar a crear [_] [▼](s)
. Ambos comandos crean agentes, pero generalmente crear [_] [▼](s) cada uno hacer
permite usos más complejos y potentes.
Bloques relacionados
Recursos en video relevantes