Set World To/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
 
(Updating to match new version of source page)
Line 8: Line 8:
<p id="tooltip">{{Block|set world [▼] to [_]}} is used to set [[trait]]s of the [[world]] in a similar way to agents.</p>
<p id="tooltip">{{Block|set world [▼] to [_]}} is used to set [[trait]]s of the [[world]] in a similar way to agents.</p>


===Syntax===
==Syntax==
<code>set world [Dropdown: Trait Selection] to [Socket: Data]</code>
<section begin=image/>[[File:Set World To Nums.png|right|alt=The Create Each Do Block|thumb]]<section end=image/>
<!--<code>set world [Dropdown: Trait Selection] to [Socket: Data]</code> -->
Inputs:
#a world trait from the dropdown menu
#a number


==Nuances==
==Nuances==

Revision as of 16:25, 21 July 2023

Other languages:
The set world to block

set world [▼] to [_] is a code block part of the Environment drawer.

Usage

set world [▼] to [_] is used to set traits of the world in a similar way to agents.

Syntax

The Create Each Do Block

Inputs:

  1. a world trait from the dropdown menu
  2. a number

Nuances

This block is used to soley modify custom traits of the world. The traits of agents are modified using the set my [▼] to [_].

Related Blocks