Difference between revisions of "PrintToConsole"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Note on other console messages)
imported>WereWolf
Line 3: Line 3:
'''Syntax:'''
'''Syntax:'''
  PrintToConsole "Message text", [var1], [var2], etc
  PrintToConsole "Message text", [var1], [var2], etc
  PrintC "Message text", [var1], [var2], etc
  PrintC "Message text", [var1], [var2], etc


Line 12: Line 13:
* [[GetInventoryObject]] and [[GetNumItems]] will also return messages to the console (1 message for each item). As the number of console lines is limited, use caution with these and PrintToConsole.
* [[GetInventoryObject]] and [[GetNumItems]] will also return messages to the console (1 message for each item). As the number of console lines is limited, use caution with these and PrintToConsole.


[[Category: OBSE Functions]]
<!--[[Category: OBSE Functions]]
[[Category: OBSE Debug Functions]]
[[Category: OBSE Debug Functions]]-->
 
[[Category: Functions]]
[[Category: Functions (OBSE)]]
[[Category: Debug Functions]]
[[Category: Debug Functions (OBSE)]]

Revision as of 04:05, 15 September 2007

A command for Oblivion Script Extender

Syntax:

PrintToConsole "Message text", [var1], [var2], etc
PrintC "Message text", [var1], [var2], etc

Prints a formatted string to console. Uses the same syntax as Message and MessageBox. Mainly useful for debugging purposes.

Notes

  • PrintC is an alias for this function.
  • This function works in conjunction with the console function ToggleDebugText. When PrintToConsole is called while TDT is active, console messages will be visible during normal gameplay. Useful for debugging when a lot of messages need to be displayed.
  • GetInventoryObject and GetNumItems will also return messages to the console (1 message for each item). As the number of console lines is limited, use caution with these and PrintToConsole.