Create Each Do/es: Difference between revisions
(Created page with "==Matices==") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[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> | <section begin="name" />'''<code>create [_] [▼](s) each do</code>'''<section end="name" /> is a [[code block]] part of the [[agents]] drawer. | ||
</div> | |||
< | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
== | == 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. | |||
</div> | |||
< | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
<code> | ===Syntax=== | ||
</ | <code>create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code> | ||
</div> | |||
< | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
== | ==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. | |||
</div> | |||
<code> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
==Related Blocks== | |||
</ | *<code>[[create|create [_] [▼](s)]]</code> | ||
</div> | |||
< | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
== | ==Relevant Video Resources== | ||
</div> | |||
< | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
==Relevant Activities== | |||
</div> | |||
= | |||
== | |||
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.