Stamp: Difference between revisions
(Created page with "Category:Detection Category:Code Block <section begin=image/>alt=Nearest within steps with =|thumb<section end=image/> <section begin="name" />'''<code>nearest [▼] within [_] steps with [▼] = [_]</code>'''<section end="name" /> is a code block part of the Detection drawer. == Usage== <p id="tooltip"><code>nearest [▼] within [_] steps with [▼] = [_]</code> is used to refer to the nearest agent of a sele...") |
(Marked this version for translation) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<languages/> | |||
<translate> | |||
<section begin=image/>[[File: | |||
<section begin="name" />'''<code> | <!--T:1--> | ||
<section begin=image/> | |||
[[File:Stamp.png|alt=stamp|thumb]] | |||
<section end=image/><p id="tooltip">Colors a circle on the terrain in the agent’s current position, with size corresponding to the size of the agent.</p> | |||
<!--T:8--> | |||
<section begin="name" />'''<code>stamp [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer. | |||
<!--T:2--> | |||
==Usage== | |||
<code>stamp [_]</code> causes the [[agent]] to draw a circle on the [[terrain]] in the agent's current position, with size corresponding to the size of the agent. | |||
==Syntax== <!--T:3--> | |||
<!--T:4--> | |||
[[File:Stamp Nums.png|right|alt=The Create Each Do Block|thumb]] | |||
<!-- <code>stamp [Textbox: Color]</code> --> | |||
Inputs: | |||
#Color block | |||
== | ==Example== <!--T:9--> | ||
< | |||
== | <!--T:10--> | ||
[[File:stamp_example.gif|alt=Stamp example gif|thumb]] | |||
[[File:stamp_example.png|alt=Stamp example code|thumb]] | |||
< | <!--T:11--> | ||
This is a model of disease transmission in a school. Certain squares in [[Special:MyLanguage/Spaceland|spaceland]] have been designated to be doorknobs where sick agents are able to leave a stamp indicative of them leaving the pathogen behind. The size of each Student determines how likely they are to transmit the disease (e.g. small agents wash their hands more frequently). This works because the stamp block leaves a mark proportional to the agent’s size. When healthy agents encounter dirty door knobs, they are likely to pick up the disease. Teachers (large blue agents) can clean doorknobs and not get ill. | |||
<!--T:5--> | |||
==Common Uses== | ==Common Uses== | ||
This is used to change the color of the terrain. Changing the color of all the terrain would require creating one large agent of size 200 and then stamping a certain color. | |||
==Nuances== | ==Nuances== <!--T:6--> | ||
<!--T:7--> | |||
==Related Blocks== | ==Related Blocks== | ||
*<code>[[ | *<code>[[Stamp Grid|stamp grid [_]]]</code> | ||
[[Category:Environment]] | |||
[[Category:Code Block]] | |||
</translate> |
Latest revision as of 18:55, 11 August 2023
Colors a circle on the terrain in the agent’s current position, with size corresponding to the size of the agent.
stamp [_]
is a code block part of the Environment drawer.
Usage
stamp [_]
causes the agent to draw a circle on the terrain in the agent's current position, with size corresponding to the size of the agent.
Syntax
Inputs:
- Color block
Example
This is a model of disease transmission in a school. Certain squares in spaceland have been designated to be doorknobs where sick agents are able to leave a stamp indicative of them leaving the pathogen behind. The size of each Student determines how likely they are to transmit the disease (e.g. small agents wash their hands more frequently). This works because the stamp block leaves a mark proportional to the agent’s size. When healthy agents encounter dirty door knobs, they are likely to pick up the disease. Teachers (large blue agents) can clean doorknobs and not get ill.
Common Uses
This is used to change the color of the terrain. Changing the color of all the terrain would require creating one large agent of size 200 and then stamping a certain color.