Create: Difference between revisions

From StarLogo Nova Wiki
(Added image)
m (Added image tags)
Line 1: Line 1:
[[Category:Agents]]
[[Category:Agents]]
[[File:Create Block.png|alt=The create block|thumb]]
<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 [[code block]] part of the [[agents]] drawer.

Revision as of 21:58, 7 August 2022

The create block

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.

Related Blocks

Relevant Video Resources

Relevant Activities