Create: Difference between revisions
No edit summary |
m (Test Section) |
||
Line 1: | Line 1: | ||
[[Category:Agents]]{{#vardefine:create|<code>create [_] [▼](s)</code>}} | [[Category:Agents]]{{#vardefine:create|<code>create [_] [▼](s)</code>}} | ||
'''{{#var:create}}''' is a [[code block]] part of the [[agents]] drawer. | <section begin="name" /> '''{{#var:create}}''' <section end="name" /> is a [[code block]] part of the [[agents]] drawer. | ||
== Usage == | ==Usage== | ||
{{#var:create}} is used to populate [[Spaceland]] with [[agent]]s. | {{#var:create}} is used to populate [[Spaceland]] with [[agent]]s. | ||
=== Syntax === | ===Syntax=== | ||
<code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code> | <code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code> | ||
== Nuances == | ==Nuances== | ||
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]]. | ||
Line 15: | Line 15: | ||
{{#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]]. | ||
== Related Blocks == | ==Related Blocks== | ||
*{{#var:cedol}} | *{{#var:cedol}} | ||
== Relevant Video Resources == | ==Relevant Video Resources== | ||
== Relevant Activities == | ==Relevant Activities== | ||
[[Category:Code Block]] | [[Category:Code Block]] |
Revision as of 07:16, 3 August 2022
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.