Difference between revisions of "Print Action"

From AgentCubes
Jump to navigation Jump to search
imported>Corrina
imported>Mike
Line 1: Line 1:
 
[[Image:Print.png|200px|Print.png]]  
 
[[Image:Print.png|200px|Print.png]]  
  
{| cellpadding="10" cellspacing="0" border="0" width="100%"
+
{| width="100%" cellspacing="0" cellpadding="10" border="0"
 
|-
 
|-
| align="left" valign="top" width="80" | '''Definition:'''  
+
| width="80" valign="top" align="left" | '''Definition:'''  
| align="left" valign="top" width="100%" | The '''Print '''action: ''prints text to the status line - can be used to give a message to the player''
+
| width="100%" valign="top" align="left" | The '''Print '''action: ''prints text to the status line - can be used to give a message to the player''
 
|-
 
|-
| align="left" valign="top" width="80" | '''Parameters:'''  
+
| width="80" valign="top" align="left" | '''Parameters:'''  
| align="left" valign="top" width="100%" | [[Text parameter|Text]]: ''text to be printed''
+
| width="100%" valign="top" align="left" | [[Text parameter|Text]]:&nbsp;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) <br>
 +
<br>
 +
 
 
|-
 
|-
| align="left" valign="top" width="80" | '''Example:'''  
+
| width="80" valign="top" align="left" | '''Example:'''  
| align="left" valign="top" width="100%" |  
+
| width="100%" valign="top" align="left" | <br>
 
|}
 
|}
  
 
[[Category:AgentCubes_Actions]]
 
[[Category:AgentCubes_Actions]]

Revision as of 22:08, 25 September 2012

Print.png

Definition: The Print action: prints text to the status line - can be used to give a message to the player
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)


Example: