Create Each Do: Difference between revisions
No edit summary |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:12--> | |||
[[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/> | ||
Line 8: | Line 9: | ||
<translate> | <translate> | ||
<!--T:13--> | |||
== Usage== | == Usage== | ||
<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. | ||
Line 13: | Line 15: | ||
<translate> | <translate> | ||
<!--T:14--> | |||
===Syntax=== | ===Syntax=== | ||
<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> | ||
Line 18: | Line 21: | ||
<translate> | <translate> | ||
<!--T:15--> | |||
==Nuances== | ==Nuances== | ||
<code>create [_] [▼](s) each do</code> is very similar to <code>[[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>[[create|create [_] [▼](s)]]</code>. Both create agents, but generally <code>create [_] [▼](s) each do</code> allows for more complex and powerful usages. | ||
Line 23: | Line 27: | ||
<translate> | <translate> | ||
<!--T:16--> | |||
==Related Blocks== | ==Related Blocks== | ||
*<code>[[create|create [_] [▼](s)]]</code> | *<code>[[create|create [_] [▼](s)]]</code> | ||
Line 28: | Line 33: | ||
<translate> | <translate> | ||
==Relevant Video Resources== | ==Relevant Video Resources== <!--T:17--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
==Relevant Activities== | ==Relevant Activities== <!--T:18--> | ||
</translate> | </translate> |
Revision as of 20:25, 20 June 2023
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.