World Trait/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
 
No edit summary
Line 2: Line 2:


<section begin=image/>
<section begin=image/>
[[File:World trait.png|alt=World trait|thumb]]
[[File:RasgodelMundo.png|alt=World trait|thumb]]
<section end=image/>
<section end=image/>
<section begin="name" />'''<code>world trait: [▼]</code>'''<section end="name" /> is a [[code block]] part of the [[Ambiente]] drawer.
<section begin="name" />'''<code>world trait: [▼]</code>'''<section end="name" /> is a [[code block]] part of the [[Ambiente]] drawer.

Revision as of 20:31, 29 June 2023

Other languages:


World trait

world trait: [▼] is a code block part of the Ambiente 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.

Nuances

Related Blocks