Difference between revisions of "Move-Random-On Action"

From AgentCubes
Jump to navigation Jump to search
imported>Mike
imported>Corrina
Line 6: Line 6:
 
<tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
 
<td align="left" valign="top" width="80"><b>Definition:</b></td>
<td align="left" valign="top" width="100%">The <strong>Change</strong> action changes the shape (look) of the agent in the cell indicated by the [[Direction parameter]] to the depiction displayed in the action's [[Shape parameter]]. The dot (.) refers to the agent itself, which should be the way Change should be used: changing yourself to have a different shape. The Change action is useful for creating animations or visually changing the state of an agent.
+
<td align="left" valign="top" width="100%">The <strong>Change</strong> When conditions are satisfied, this action moves the subject agent randomly onto agents of type specified that are immediately adjacent. If there are no such specified agents immediately adjacent (that is, in the 8 adjacent places), nothing happens. If there is one specified agent, the subject agents moves onto it. If there is more than one specified agent, the subject agent randomly selects one specified agent and moves onto it.  
 
  </td>
 
  </td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
 
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
<td align="left" valign="top" width="100%">[[Direction parameter|direction]], [[Shape parameter|shape]]</td>
+
<td align="left" valign="top" width="100%">[[Animation parameter|animation]], [[Time parameter|time]]</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>

Revision as of 22:57, 18 April 2012

Move random on action.png

Move random on expanded.png

Definition: The Change When conditions are satisfied, this action moves the subject agent randomly onto agents of type specified that are immediately adjacent. If there are no such specified agents immediately adjacent (that is, in the 8 adjacent places), nothing happens. If there is one specified agent, the subject agents moves onto it. If there is more than one specified agent, the subject agent randomly selects one specified agent and moves onto it.
Parameters: animation, time
Example: ???WHICH EXAMPLE??? 500px