My/es: Difference between revisions
(Created page with "Category:Rasgos Category:Code Block") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<section begin="image"/>[[File:my.png|alt=The My Block|thumb]]<section end="image"/> | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Usage== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
<p id="tooltip">Returns the value of an agent's trait.</p> | <p id="tooltip">Returns the value of an agent's trait.</p> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Syntax== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Inputs in this block: | |||
#a category of trait from the dropdown menu | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:my_example.gif|alt=My example gif|thumb]] | |||
[[File:my_example.png|alt=My example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
The use of the ‘my trait’ block in this example ensures that the fish do not swim below the seafloor by ensuring their z coordinate, selected from the traits drop down, is >= 0 before the fish are rendered. | |||
</div> | </div> | ||
[[Category:Rasgos]] | [[Category:Rasgos]] | ||
[[Category:Code Block]] | [[Category:Code Block]] |
Revision as of 20:13, 14 August 2023
Usage
Returns the value of an agent's trait.
Syntax
Inputs in this block:
- a category of trait from the dropdown menu
Example
The use of the ‘my trait’ block in this example ensures that the fish do not swim below the seafloor by ensuring their z coordinate, selected from the traits drop down, is >= 0 before the fish are rendered.