World Trait: Difference between revisions
No edit summary |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | |||
<section begin=image/> | <section begin=image/> | ||
[[File:World trait.png|alt=World trait|thumb]] | [[File:World trait.png|alt=World trait|thumb]] | ||
Line 7: | Line 8: | ||
<section begin="name" />'''<code>world trait: [▼]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer. | <section begin="name" />'''<code>world trait: [▼]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer. | ||
<!--T:2--> | |||
== Usage== | == Usage== | ||
<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=== | ===Syntax=== <!--T:3--> | ||
<!--T:4--> | |||
<code>world trait: [Dropdown: Trait]</code> | <code>world trait: [Dropdown: Trait]</code> | ||
<!--T:5--> | |||
==Common Uses== | ==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. | 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. | ||
==Nuances== | ==Nuances== <!--T:6--> | ||
<!--T:7--> | |||
==Related Blocks== | ==Related Blocks== | ||
*<code>[[Set World To|set world [▼] to [_]]]</code> | *<code>[[Set World To|set world [▼] to [_]]]</code> |
Revision as of 14:49, 27 June 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.