World Trait/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 9: | Line 9: | ||
<p id="tooltip"><code>world trait: [▼]</code> refers to the value of a selected world trait. World traits can be created by adding a new trait to The World breed in the breed manager (go to The World tab and click on the show traits button. Then, select “add custom trait”). This can be thought of as a “global variable."</p> | <p id="tooltip"><code>world trait: [▼]</code> refers to the value of a selected world trait. World traits can be created by adding a new trait to The World breed in the breed manager (go to The World tab and click on the show traits button. Then, select “add custom trait”). This can be thought of as a “global variable."</p> | ||
==Syntax== | |||
<code>world trait: [Dropdown: Trait]</code> | <section begin=image/>[[File:World Trait Nums.png|right|alt=The Create Each Do Block|thumb]]<section end=image/> | ||
<!-- <code>world trait: [Dropdown: Trait]</code> --> | |||
Inputs: | |||
#a world trait from dropdown menu | |||
==Common Uses== | ==Common Uses== |
Revision as of 19:38, 21 July 2023
world trait: [▼]
is a code block part of the Environment drawer.
Usage
world trait: [▼]
refers to the value of a selected world trait. World traits can be created by adding a new trait to The World breed in the breed manager (go to The World tab and click on the show traits button. Then, select “add custom trait”). This can be thought of as a “global variable."
Syntax
Inputs:
- a world trait from dropdown menu
Common Uses
This is used to refer to an aspect of a simulation that affects all parts in scope. All traits attributed to The World will happen to all Agents in the simulation.