Create: Difference between revisions

From StarLogo Nova Wiki
m (Reverted edits by Admin (talk) to last revision by Rev)
Tag: Rollback
No edit summary
Line 5: Line 5:
==Usage==
==Usage==


<code>create [_] [▼](s)</code> is used to populate [[Spaceland]] with [[agent]]s.
<p id="tooltip"><code>create [_] [▼](s)</code> is used to populate [[Spaceland]] with [[agent]]s.</p>


===Syntax===
===Syntax===

Revision as of 18:49, 17 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