Create: Difference between revisions

From StarLogo Nova Wiki
m (Changed category)
(Added information to Create Page)
Line 1: Line 1:
[[Category: Agents]]
[[Category:Agents]]{{#vardefine:create|<code>create [_] [](s)</code>}}
'''Create [_] [_](s)''' is a [[code block]] part of the [[agents]] drawer.
'''{{#var:create}}''' is a [[code block]] part of the [[agents]] drawer.
== Usage ==
== Usage ==


'''Create [number] [agent type]'''
{{#var:create}} is used to populate [[space land]] with [[agent]]s.


Creates specified number of [[agents]]
=== Syntax ===
 
<code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code>


== Nuances ==
== Nuances ==


text
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]].
 
{{#var:cedol}} can be useful for [[randomizing traits]] and [[scattering agents without effecting others]].


== Related Blocks ==
== Related Blocks ==
*{{#var:cedol}}


== Relevant Video Resources ==
== Relevant Video Resources ==

Revision as of 18:16, 27 July 2022

create [_] [▼](s) is a code block part of the agents drawer.

Usage

create [_] [▼](s) is used to populate space land 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.

Related Blocks

Relevant Video Resources

Relevant Activities