Create/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
[[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/> | ||
{{#vardefine:create|<code>create [_] [▼](s)</code>}} | {{#vardefine:create|<code>create [_] [▼](s)</code>}} | ||
<section begin=name/>'''<code>create [_] [▼](s)</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer. | <section begin=name/>'''<code>create [_] [▼](s)</code>'''<section end=name/> is a [[Special:MyLanguage/Code Block|code block]] part of the [[Special:MyLanguage/Agent|agents]] drawer. | ||
==Usage== | ==Usage== | ||
<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 [[Special:MyLanguage/Spaceland|Spaceland]] with [[Special:MyLanguage/Agent|agent]]s.</p> | ||
===Syntax=== | ===Syntax=== | ||
Line 13: | Line 15: | ||
<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>[[Special:MyLanguage/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 [[Special:MyLanguage/Agent|agent]] that is created. {{#var:create}} only creates agents with the default [[Special:MyLanguage/Traits|trait]]s in the center of [[Special:MyLanguage/Spaceland|Spaceland]]. | ||
{{#var:cedol}} can be useful for [[randomizing traits]] and [[scattering agents without effecting others]]. | {{#var:cedol}} can be useful for [[Special:MyLanguage/Random|randomizing traits]] and [[Special:MyLanguage/Scatter|scattering agents without effecting others]]. | ||
==Related Blocks== | ==Related Blocks== |
Revision as of 16:01, 21 June 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.