Create Each Do: Difference between revisions
(Marked this version for translation) |
No edit summary |
||
| Line 9: | Line 9: | ||
<!--T:13--> | <!--T:13--> | ||
== Usage== | == Usage== | ||
<code>create [_] [▼](s) each do</code> is used to populate [[Spaceland]] with [[agent]]s and then run a [[stack]] of code individually for each agent. This can be useful for making many agents and setting different [[trait]]s for each. | <p id="tooltip"><code>create [_] [▼](s) each do</code> is used to populate [[Spaceland]] with [[agent]]s and then run a [[stack]] of code individually for each agent. This can be useful for making many agents and setting different [[trait]]s for each. | ||
<!--T:14--> | <!--T:14--> | ||
Revision as of 19:09, 28 July 2023
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.