Create: Difference between revisions

From StarLogo Nova Wiki
No edit summary
No edit summary
Line 22: Line 22:
#a number in the socket
#a number in the socket
#a breed from the dropdown menu
#a breed from the dropdown menu
<br>


==Nuances== <!--T:16-->  
==Nuances== <!--T:16-->  

Revision as of 17:57, 27 July 2023

Other languages:
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

The Create Each Do Block

Inputs in this block:

  1. a number in the socket
  2. a breed from the dropdown menu

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