Difference between revisions of "Say Action"

From AgentCubes
Jump to navigation Jump to search
imported>Mike
imported>Mike
Line 8: Line 8:
 
| width="80" valign="top" align="left" | '''Parameters:'''  
 
| width="80" valign="top" align="left" | '''Parameters:'''  
 
| width="100%" valign="top" align="left" |  
 
| width="100%" valign="top" align="left" |  
[[Text parameter|Text]]: ''what to say; may include agent attribute values when the name is preceeded by ~ (for example: ~value)''  
+
[[Text parameter|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)  
         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)
+
 and ~self.layer (agent's current layer)  
  
 
[[Voice parameter|Voice]] (optional): ''may specify the voice to use when speaking.''  
 
[[Voice parameter|Voice]] (optional): ''may specify the voice to use when speaking.''  

Revision as of 22:06, 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: