Difference between revisions of "Text Output"

Jump to navigation Jump to search
25 bytes added ,  23:18, 22 October 2021
m
(Created page with "There are a number of ways to get Lua to output data from the game to readable text. Right now this page just includes basics but there are a lot of specialized functions in t...")
 
 
Line 18: Line 18:




Here is a basic injectable script which opens a non-interactive console window the first time you execute it, and then whenever you use print() it prints text in the console; could be changed to use a function name other than print() if you don't want to see the stuff the game normally uses "print" for.
Here is a basic injectable script which opens a non-interactive console window the first time you execute it, without pausing the game, and then whenever you use print() it prints text in the console; could be changed to use a function name other than print() if you don't want to see the stuff the game normally uses "print" for.


Good for simply viewing stuff that you don't need to save, and barely slows down the game at all.
Good for simply viewing stuff that you don't need to save, and barely slows down the game at all.
Line 31: Line 31:
end
end
</nowiki>
</nowiki>


=== Print to a file ===
=== Print to a file ===

Navigation menu