Difference between revisions of "Say Action"

From AgentCubes
Jump to navigation Jump to search
imported>Mike
imported>Mike
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[image:Say action.png|200px]]
+
[[Image:Say action.png|200px|Say action.png]]  
  
<table cellpadding="10" cellspacing="0" border="0" width="100%">
+
{| width="100%" cellspacing="0" cellpadding="10" border="0"
<tr>
+
|-
<td align="left" valign="top" width="80"><b>Definition:</b></td>
+
| width="80" valign="top" align="left" | '''Definition:'''
<td align="left" valign="top" width="100%">The <strong>Say Action</strong> action ...............</td>
+
| width="100%" valign="top" align="left" | The '''Say '''action: ''speaks the text that is given in the specified (or a default) voice.''
</tr>
+
|-
<tr>
+
| width="80" valign="top" align="left" | '''Parameters:'''
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
+
| width="100%" valign="top" align="left" |
<td align="left" valign="top" width="100%">...........</td>
+
[[Text parameter|Text]]: ''what to say; may include agent attribute values when the name is preceeded by ~ (for example: ~value)'' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; may also include the special values ~self.row (agent's current row), ~self.column (agent's current column)
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Example:</b></td>
 
<td align="left" valign="top" width="100%">
 
</td>
 
</tr>
 
  
</table>
+
and ~self.layer (agent's current layer)
  
 +
[[Voice parameter|Voice]] (optional): ''may specify the voice to use when speaking.''
 +
 +
|-
 +
| width="80" valign="top" align="left" | '''Example:'''
 +
| width="100%" valign="top" align="left" |
 +
|}
  
 
[[Category:AgentCubes_Actions]]
 
[[Category:AgentCubes_Actions]]

Latest revision as of 22:07, 25 September 2012

Say action.png

Definition: The Say action: speaks the text that is given in the specified (or a default) voice.
Parameters:

Text: what to say; may include agent attribute values when the name is preceeded by ~ (for example: ~value)          may also include the special values ~self.row (agent's current row), ~self.column (agent's current column)

and ~self.layer (agent's current layer)

Voice (optional): may specify the voice to use when speaking.

Example: