World Trait: Difference between revisions
No edit summary |
(add tooltip text) |
||
Line 5: | Line 5: | ||
<section begin=image/> | <section begin=image/> | ||
[[File:World trait.png|alt=World trait|thumb]] | [[File:World trait.png|alt=World trait|thumb]] | ||
<section end=image/> | <section end=image/><p id="tooltip">Returns 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. You can think of this as a “global variable”.</p> | ||
<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--> | <!--T:2--> | ||
== Usage== | == Usage== | ||
<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." | |||
==Syntax== <!--T:3--> | ==Syntax== <!--T:3--> |
Revision as of 14:55, 8 August 2023
Returns 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. You can think of this as a “global variable”.
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.