Create/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 13: | Line 13: | ||
==Syntax== | ==Syntax== | ||
[[File:Create Nums Es.png|right|alt=The Create Each Do Block|thumb]] | |||
<!-- <code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code> --> | <!-- <code> create [Textbox: Number] [Dropdown: Type of Agent](s) </code> --> | ||
Inputs in this block: | Inputs in this block: |
Revision as of 19:10, 10 August 2023
Creates the specified number of agents of the selected breed.
create [_] [▼](s)
is a code block part of the agents drawer.
Usage
create [_] [▼](s)
is used to populate Spaceland with agents.
Syntax
Inputs in this block:
- a number in the socket
- 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.