World Trait: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<languages/> | |||
<translate> | |||
<section begin=image/> | <section begin=image/> | ||
[[File:World trait.png|alt=World trait|thumb]] | [[File:World trait.png|alt=World trait|thumb]] | ||
Line 21: | Line 24: | ||
[[Category:Environment]] | [[Category:Environment]] | ||
[[Category:Code Block]] | [[Category:Code Block]] | ||
</translate> |
Revision as of 14:12, 16 March 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
world trait: [Dropdown: Trait]
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.