Create: Difference between revisions
No edit summary |
(Marked this version for translation) |
||
Line 3: | Line 3: | ||
<!--T:11--> | |||
[[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 10: | Line 11: | ||
<translate> | <translate> | ||
==Usage== | ==Usage== <!--T:12--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:13--> | |||
<p id="tooltip"><code>create [_] [▼](s)</code> is used to populate [[Special:MyLanguage/Spaceland|Spaceland]] with [[Special:MyLanguage/Agent|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> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
===Syntax=== | ===Syntax=== <!--T:14--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:15--> | |||
<code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code> | <code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
==Nuances== | ==Nuances== <!--T:16--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:17--> | |||
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]]. | 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]]. | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:18--> | |||
{{#var:cedol}} can be useful for [[Special:MyLanguage/Random|randomizing traits]] and [[Special:MyLanguage/Scatter|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]]. | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:19--> | |||
==Related Blocks== | ==Related Blocks== | ||
*{{#var:cedol}} | *{{#var:cedol}} | ||
Line 43: | Line 49: | ||
<translate> | <translate> | ||
==Relevant Video Resources== | ==Relevant Video Resources== <!--T:20--> | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:21--> | |||
==Relevant Activities== | ==Relevant Activities== | ||
[[Category:Code Block]] | [[Category:Code Block]] | ||
</translate> | </translate> |
Revision as of 14:49, 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.