Scatter Everyone/es: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{#vardefine:ScatterEveryone|<code>scatter everyone</code>}}
{{#vardefine:ScatterEveryone|<code>scatter everyone</code>}}
<section begin=name/>'''<code>dispersar todos</code>'''<section end=name/> es un [[bloque de código]] parte de [[Special:MyLanguage/Agents|agentes]] cajón.
<section begin=name/>'''<code>dispersar todos</code>'''<section end=name/> es un [[bloque de código]] parte de [[Special:MyLanguage/Agents|agentes]] cajón.
<div lang="en" dir="ltr" class="mw-content-ltr">
{{#vardefine:ScatterEveryone|<code>scatter everyone</code>}}<section begin=name/>'''<code>scatter everyone</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer.
</div>


== Uso ==
== Uso ==
<p id="tooltip"><code>dispersar todos</code> se utiliza para dispersar a todos los agentes en [[SpaceLand]] a ubicaciones aleatorias.</p>
<p id="tooltip"><code>dispersar todos</code> se utiliza para dispersar a todos los agentes en [[SpaceLand]] a ubicaciones aleatorias.</p>
<div lang="en" dir="ltr" class="mw-content-ltr">
<strong>Note:</strong> if this block is used in an breed tab where more than one agent of that breed exists, each individual agent of this breed will scatter everyone once.  For example, if there are five agents of the breed, everyone will be scattered 5 times as each individual agent runs the code.
</div> 


<span id="Syntax"></span>
<span id="Syntax"></span>
Line 13: Line 21:


<code>(in reference to every agent)Eliminar todos</code>
<code>(in reference to every agent)Eliminar todos</code>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:scatter_everyone_example.gif|alt=Scatter Everyone example gif|thumb]]
[[File:scatter_everyone_example.png|alt=Scatter Everyone example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
The scatter everyone block scatters all agents in spaceland by assigning each one random x and y coordinates.  If this block is called by The World, all agents are scattered once.
</div>


==Para tener en cuenta==
==Para tener en cuenta==

Latest revision as of 18:51, 11 August 2023

Other languages:
DispersarTodos.png

dispersar todos es un bloque de código parte de agentes cajón.

scatter everyone is a code block part of the agents drawer.

Uso

dispersar todos se utiliza para dispersar a todos los agentes en SpaceLand a ubicaciones aleatorias.

Note: if this block is used in an breed tab where more than one agent of that breed exists, each individual agent of this breed will scatter everyone once. For example, if there are five agents of the breed, everyone will be scattered 5 times as each individual agent runs the code.

Sintaxis

(in reference to every agent)Eliminar todos

Example

Scatter Everyone example gif
Scatter Everyone example code

The scatter everyone block scatters all agents in spaceland by assigning each one random x and y coordinates. If this block is called by The World, all agents are scattered once.

Para tener en cuenta

Una diferencia importante entre dispersar todos y dispersar es eso dispersar dispersa sólo los agentes adjuntos a la dispersar bloquear. Dispersar todos dispersa a todos los agentes en SpaceLand.

Bloques relacionados

dispersar

Recursos en video relevantes

Actividades relevantes