Create Each Do/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 10: | Line 10: | ||
==Syntax== | ==Syntax== | ||
[[File:Create Each Do Nums1.png|right|alt=The Create Each Do Block|thumb]] | |||
<!-- <code>create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code> --> | <!-- <code>create [Textbox: Number of Agents to Create] [Dropdown: Type of Agent](s) each do [code]</code> --> | ||
Revision as of 19:00, 10 August 2023
Creates the specified number of agents of the selected breed. Each newly created agent immediately follows the directions specified in "do".
create [_] [▼](s) each do
is a code block part of the agents drawer.
Usage
create [_] [▼](s) each do
is used to populate Spaceland with agents and then run a stack of code individually for each agent. This can be useful for making many agents and setting different traits for each.
Syntax
Inputs in this block:
- a number in the socket
- a breed from the dropdown menu
- relevant code
Nuances
create [_] [▼](s) each do
is very similar to create [_] [▼](s)
. Both create agents, but generally create [_] [▼](s) each do
allows for more complex and powerful usages.