PrintToConsole

From the Oblivion ConstructionSet Wiki
Revision as of 17:59, 25 September 2007 by imported>Haama (How to increase the number of console lines)
Jump to navigation Jump to search

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.
  • You can increase the number of lines in the console in the config .ini file found at
..\Documents and Settings\"User Name"\My Documents\My Games\Oblivion\Oblivion.ini

The setting is iConsoleVisibleLines.