Difference between revisions of "Is-selected Condition"

From AgentCubes
Jump to navigation Jump to search
imported>Mike
imported>Repenning
 
Line 1: Line 1:
[[image:Is_selected_action.png|150px]]
+
[[Image:Is selected action.png|150px|Is selected action.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>Is-selected</strong> condition checks if the agent executing this condition is selected or not selected in the world, depending on whether the checkbox is checked or not. If the checkbox is checked and any of the instances of this agent is selected in the world, the condition is true. Otherwise, if any other agent (or nothing) is selected in the world, the condition is false.</td>
+
| align="left" valign="top" width="100%" |
</tr>
+
True if the agent is selected.  
<tr>
 
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
 
<td align="left" valign="top" width="100%">[[Checkbox parameter|checkbox]]</td>
 
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Example:</b></td>
 
<td align="left" valign="top" width="100%">???which example???
 
[[Image:Is selected condition example.png|500px]]</td>
 
</tr>
 
  
</table>
+
An agents is selected by a user clicking it. A selected agent can be recognized by a yellow hello.
 +
 
 +
|-
 +
| align="left" valign="top" width="80" | '''Parameters:'''
 +
| align="left" valign="top" width="100%" | none
 +
|-
 +
| align="left" valign="top" width="80" | '''Example:'''
 +
| align="left" valign="top" width="100%" | If you have many agents of the same type but like to have only one of them be cursor key controlled then make the user click the agent to select it and write cursor key rules which will also check if the agent is selected. This way only one agent can be selected at one time and only this agent would be controlled through cursor keys.
 +
|}
  
 
[[Category:AgentCubes_Conditions]]
 
[[Category:AgentCubes_Conditions]]

Latest revision as of 02:57, 20 April 2012

Is selected action.png

Definition:

True if the agent is selected.

An agents is selected by a user clicking it. A selected agent can be recognized by a yellow hello.

Parameters: none
Example: If you have many agents of the same type but like to have only one of them be cursor key controlled then make the user click the agent to select it and write cursor key rules which will also check if the agent is selected. This way only one agent can be selected at one time and only this agent would be controlled through cursor keys.