Difference between revisions of "Once-every Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Andri
imported>Corrina
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[image:Stacked condition.png|150px]]
+
[[Image:Once every.png|150px|Once every.png]]  
  
<table cellpadding="10" cellspacing="0" border="0" width="100%">
+
{| cellpadding="10" cellspacing="0" border="0" width="100%"
<tr>
+
|-
<td align="left" valign="top" width="80"><b>Definition:</b></td>
+
| align="left" valign="top" width="80" | '''Definition:'''
<td align="left" valign="top" width="100%">The <strong>Once-every</strong> condition checks if a certain number of seconds N has passed since it was last checked. The number is specified by an integer, decimal, or a Visual AgenTalk Formula. If N seconds have passed, the condition is true. Otherwise, it is false. The Once-every condition acts as a local timer for an agent. Unlike the [[Wait action]], Once-every can be used to slow down individual agents without stopping other agents.</td>
+
| align="left" valign="top" width="100%" | The '''Once-every''' condition: checks every specfied number of seconds. The Once-every condition acts as a local timer for an agent. Unlike the [[Wait_Action]], Once-every can be used to slow down individual agents without stopping other agents.
</tr>
+
|-
<tr>
+
| align="left" valign="top" width="80" | '''Parameters:'''
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
+
| align="left" valign="top" width="100%" | [[VAT Formula parameter|formula]]: number or VAT formula
<td align="left" valign="top" width="100%">[[Formula parameter|formula]]</td>
+
|-
</tr>
+
| align="left" valign="top" width="80" | '''Example:'''
<tr>
+
| align="left" valign="top" width="100%" | <br>
<td align="left" valign="top" width="80"><b>Example:</b></td>
+
|}
<td align="left" valign="top" width="100%">???which example???
 
[[Image:Empty condition example.png|500px]]</td>
 
</tr>
 
 
 
</table>
 
  
 
[[Category:AgentCubes_Conditions]]
 
[[Category:AgentCubes_Conditions]]

Latest revision as of 01:28, 21 April 2012

Once every.png

Definition: The Once-every condition: checks every specfied number of seconds. The Once-every condition acts as a local timer for an agent. Unlike the Wait_Action, Once-every can be used to slow down individual agents without stopping other agents.
Parameters: formula: number or VAT formula
Example: