Create Each Do: Difference between revisions

From StarLogo Nova Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<languages/>
<languages/>
<translate>


[[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/>
<translate>
<section begin="name" />'''<code>create [_] [▼](s) each do</code>'''<section end="name" /> is a [[Special:MyLanguage/Code Block|code block]] part of the [[Special:MyLanguage/Agent|agents]] drawer.
<section begin="name" />'''<code>create [_] [▼](s) each do</code>'''<section end="name" /> is a [[Special:MyLanguage/Code Block|code block]] part of the [[Special:MyLanguage/Agent|agents]] drawer.
</translate>


<translate>
== Usage==
</translate>


== Usage==
<p id="tooltip">
<p id="tooltip"><code>create [_] [▼](s) each do</code> is used to populate [[Special:MyLanguage/Spaceland|Spaceland]] with [[Special:MyLanguage/Agent|agent]]s and then run a [[Special:MyLanguage/Stack|stack]] of code individually for each agent. This can be useful for making many agents and setting different [[Special:MyLanguage/Traits|trait]]s for each.</p>
<translate>
<code>create [_] [▼](s) each do</code> is used to populate [[Special:MyLanguage/Spaceland|Spaceland]] with [[Special:MyLanguage/Agent|agent]]s and then run a [[Special:MyLanguage/Stack|stack]] of code individually for each agent. This can be useful for making many agents and setting different [[Special:MyLanguage/Traits|trait]]s for each.
</translate>
</p>


<translate>
===Syntax===
===Syntax===
</translate>


<code>create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code>
<code>
<translate>
create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]
</translate>
</code>


<translate>
==Nuances==
==Nuances==
</translate>
<translate>
<code>create [_] [▼](s) each do</code> is very similar to <code>[[Special:MyLanguage/create|create [_] [▼](s)]]</code>. Both create agents, but generally <code>create [_] [▼](s) each do</code> allows for more complex and powerful usages.
<code>create [_] [▼](s) each do</code> is very similar to <code>[[Special:MyLanguage/create|create [_] [▼](s)]]</code>. Both create agents, but generally <code>create [_] [▼](s) each do</code> allows for more complex and powerful usages.
</translate>


<translate>
==Related Blocks==
==Related Blocks==
</translate>
<translate>
*<code>[[Special:MyLanguage/create|create [_] [▼](s)]]</code>
*<code>[[Special:MyLanguage/create|create [_] [▼](s)]]</code>
</translate>
<translate>
==Relevant Video Resources==
==Relevant Video Resources==
</translate>


<translate>
==Relevant Activities==
==Relevant Activities==
</translate>
</translate>

Revision as of 19:25, 16 May 2023

Other languages:
The Create Each Do Block

create [_] [▼](s) each do is a code block part of the agents drawer.

Usage

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.

Syntax

create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]

Nuances

create [_] [▼](s) each do is very similar to create [_] [▼](s). Both create agents, but generally create [_] [▼](s) each do allows for more complex and powerful usages.

Related Blocks

Relevant Video Resources

Relevant Activities