Difference between revisions of "Next-to Condition"
Jump to navigation
Jump to search
imported>Corrina |
imported>Corrina |
||
Line 10: | Line 10: | ||
| align="left" valign="top" width="80" | '''Parameters:''' | | align="left" valign="top" width="80" | '''Parameters:''' | ||
| align="left" valign="top" width="100%" | | | align="left" valign="top" width="100%" | | ||
− | [[Comparator parameter|comparator]]: ''mathematical operator'' <br>[[VAT Formula parameter|number]]: ''how many'' (may be a number or VAT formula)<br> [[Shape parameter|shape]]: ''what shape'' layer: which layer to search for the target agent | + | [[Comparator parameter|comparator]]: ''mathematical operator'' <br>[[VAT Formula parameter|number]]: ''how many'' (may be a number or VAT formula)<br> [[Shape parameter|shape]]: ''what shape'' |
+ | [[Layer parameter|layer]]: which layer to search for the target agent | ||
layer: which layer to search for the target agent | layer: which layer to search for the target agent |
Revision as of 01:25, 21 April 2012
Definition: | True if there is a certain number of agents adjacent to me. Only check the 8 agents immediately adjacent to me. |
Parameters: |
comparator: mathematical operator layer: which layer to search for the target agent |
Example: |
nextTo (>=, 2, ghost) means: are there 2 or more ghosts immediatly adjacent to me?
The Particle agent in the Accretion 3D project checks if it is next to at least one stationery Particle in the same layer or in the layers above (+1) or below (-1). If so, it changes itself to be a stationery Particle, increments a count and maps its color to a shade, based on the current count of stationery particles. |