World Trait

From StarLogo Nova Wiki
Revision as of 16:41, 21 July 2023 by Admin (talk | contribs)
Other languages:


World trait

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

The Create Each Do Block

Inputs:

  1. 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.

Nuances

Related Blocks