User Tools

Site Tools


print

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
print [2019/10/25 11:17] – created justinprint [2021/04/21 18:40] (current) justin
Line 2: Line 2:
 ---- ----
  
-Hides all entities belonging to the specified group. For tiles belonging to the group, any objects or characters on those tiles will also be hidden.+Prints data to the debug console, for example to display the value of a property or validate that a script is running by logging a message.
  
 ====Signature:==== ====Signature:====
-<code python>+<code>
 print(data) print(data)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|data|Data to be printed to the debug console.|[[String]], [[Decimal]], [[Boolean]]|Yes|+|data|Data to be printed to the debug console.|[[String]], [[Number]], [[Boolean]]|Yes|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-You can use the related [[Show Group]] function to show the entities in a group that were previously hidden with the **Hide Group** function.+You can display variables and properties directly using the **Print** function, or you can display them with additional text using [[placeholder_expression|placeholder expressions]].
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-hide_group("upper_floor")+print("Player is at coordinate ${player.coord}");
 </code> </code>
-//Results:// All entities in the group "upper_floor" will now be hidden.+//Results:// The player character's tile coordinate will be displayed in the debug console.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Hide Group** function to hide the ceiling of room or the upper layers of a structure that would otherwise obstruct the player's vision when entering the underlying area.+Use the **Print** function to debug script that isn't working properly by logging a text message or the value of a property to the console.
 </WRAP> </WRAP>
  
Line 31: Line 31:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:hide_group_node.png?nolink|}}+{{:wiki:print_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:hide_group_demo.gif?nolink|}}+{{:wiki:print_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
print.1572027426.txt.gz · Last modified: 2019/10/25 11:17 by justin