User Tools

Site Tools


print

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
print [2019/10/25 11:17] justinprint [2021/04/21 18:40] (current) justin
Line 5: Line 5:
  
 ====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.1572027457.txt.gz · Last modified: 2019/10/25 11:17 by justin