Create: Difference between revisions
No edit summary |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | |||
[[Category:Agents]] | [[Category:Agents]] | ||
<section begin=image/>[[File:Create Block.png|alt=The create block|thumb]]<section end=image/> | <section begin=image/>[[File:Create Block.png|alt=The create block|thumb]]<section end=image/> | ||
Line 8: | Line 9: | ||
==Usage== | ==Usage== | ||
<!--T:2--> | |||
<p id="tooltip"><code>create [_] [▼](s)</code> is used to populate [[Spaceland]] with [[agent]]s.</p> | <p id="tooltip"><code>create [_] [▼](s)</code> is used to populate [[Spaceland]] with [[agent]]s.</p> | ||
===Syntax=== | ===Syntax=== <!--T:3--> | ||
<!--T:4--> | |||
<code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code> | <code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code> | ||
==Nuances== | ==Nuances== <!--T:5--> | ||
<!--T:6--> | |||
An important difference between {{#var:create}} and {{#vardefineecho:cedol|<code>[[Create Each Do|create [_] [▼](s) each do</code>]]}} is that {{#vardefineecho:cedo|<code>create [_] [▼](s) each do</code>}} allows a section of code to run individually for each [[agent]] that is created. {{#var:create}} only creates agents with the default [[trait]]s in the center of [[Spaceland]]. | An important difference between {{#var:create}} and {{#vardefineecho:cedol|<code>[[Create Each Do|create [_] [▼](s) each do</code>]]}} is that {{#vardefineecho:cedo|<code>create [_] [▼](s) each do</code>}} allows a section of code to run individually for each [[agent]] that is created. {{#var:create}} only creates agents with the default [[trait]]s in the center of [[Spaceland]]. | ||
<!--T:7--> | |||
{{#var:cedol}} can be useful for [[randomizing traits]] and [[scattering agents without effecting others]]. | {{#var:cedol}} can be useful for [[randomizing traits]] and [[scattering agents without effecting others]]. | ||
<!--T:8--> | |||
==Related Blocks== | ==Related Blocks== | ||
*{{#var:cedol}} | *{{#var:cedol}} | ||
==Relevant Video Resources== | ==Relevant Video Resources== <!--T:9--> | ||
<!--T:10--> | |||
==Relevant Activities== | ==Relevant Activities== | ||
[[Category:Code Block]] | [[Category:Code Block]] | ||
</translate> | </translate> |
Revision as of 19:06, 16 March 2023
create [_] [▼](s)
is a code block part of the agents drawer.
Usage
create [_] [▼](s)
is used to populate Spaceland with agents.
Syntax
create [Textbox: Number] [Dropdown: Type of Agent](s)
Nuances
An important difference between create [_] [▼](s)
and create [_] [▼](s) each do
is that create [_] [▼](s) each do
allows a section of code to run individually for each agent that is created. create [_] [▼](s)
only creates agents with the default traits in the center of Spaceland.
create [_] [▼](s) each do
can be useful for randomizing traits and scattering agents without effecting others.