Create/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


 
<div class="mw-translate-fuzzy">
[[Category: Agentes]]
[[Category: Agentes]]
<section begin=image/>[[File:Crear.png|alt=The create block|thumb]]<section end=image/>
<section begin=image/>[[File:Crear.png|alt=The create block|thumb]]<section end=image/>
{{#vardefine:create|<code>create [_] [▼](s)</code>}}
{{#vardefine:create|<code>create [_] [▼](s)</code>}}
<section begin=name/>'''<code>crear [_] [▼](s)</code>'''<section end=name/> es un [[Special:MyLanguage/Code Block|bloque de código]] parte de [[Special:MyLanguage/Agents|agentes]] código.
<section begin=name/>'''<code>crear [_] [▼](s)</code>'''<section end=name/> es un [[Special:MyLanguage/Code Block|bloque de código]] parte de [[Special:MyLanguage/Agents|agentes]] código.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{#vardefine:create|<code>create [_] [▼](s)</code>}}<section begin=name/>'''<code>create [_] [▼](s)</code>'''<section end=name/> is a [[Special:MyLanguage/Code Block|code block]] part of the [[Special:MyLanguage/Agent|agents]] drawer.
</div>


<span id="Usage"></span>
<span id="Usage"></span>
Line 13: Line 18:


<span id="Syntax"></span>
<span id="Syntax"></span>
<div class="mw-translate-fuzzy">
==Sintaxis==
===Sintaxis===
 
[[File:Create Nums.png|right|alt=The Create Each Do Block|thumb]]
Entradas en este bloque:
#un número en el zócalo
#una raza del menú desplegable
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:delete_everyone_example.gif|right|alt=Create Example gif|thumb]]
[[File:create_example.png|right|alt=Create Example code|thumb]]
</div>
</div>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin=image/>[[File:Create Nums.png|right|alt=The Create Each Do Block|thumb]]<section end=image/>
When the setup button is pushed, The World first deletes all the agents, then uses the create block to to create 100 Turtles. Because the Turtles’ defaults have not been changed, they appear as white cubes of size 1. The Turtles also have the default location of (x= 0, y = 0, z = 0) when created, but then The World uses the scatter everyone block, which scatters the Turtles that now exist.
</div>
</div>



Latest revision as of 15:37, 16 August 2023

Other languages:
The create block

crear [_] [▼](s) es un bloque de código parte de agentes código.

create [_] [▼](s) is a code block part of the agents drawer.

Uso

crear [_] [▼](s) se usa para poblar Spaceland con agentes.

Sintaxis

The Create Each Do Block

Entradas en este bloque:

  1. un número en el zócalo
  2. una raza del menú desplegable

Example

Create Example gif
Create Example code

When the setup button is pushed, The World first deletes all the agents, then uses the create block to to create 100 Turtles. Because the Turtles’ defaults have not been changed, they appear as white cubes of size 1. The Turtles also have the default location of (x= 0, y = 0, z = 0) when created, but then The World uses the scatter everyone block, which scatters the Turtles that now exist.

Para tener en cuenta

Una diferencia importante entre crear y crear [_] [▼](s) cada uno hacer es eso crear [_] [▼](s) cada uno hacer permite que una sección de código se ejecute individualmente para cada agente que se crea. Crear solo crea agentes con el valor predeterminado rasgos en el centro de Spaceland.

can be useful for randomizing traits and scattering agents without effecting others.

Bloques relacionados

Recursos en video relevantes

Actividades relevantes