User Tools

Site Tools


Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
scripting:console [2006-09-17 19:19]
Carsten revised the mark-up details
— (current)
Line 1: Line 1:
-====== The Console Library ====== 
- 
-With the functions in the ''​Console''​ library you can output text on the Ca3DE in-game console. 
- 
- 
-===== Print(s) ===== 
- 
-Prints the string ''​s''​ to the Ca3DE in-game console. 
- 
-=== Returns: === 
-Nothing (nil). 
- 
-=== Example: === 
-<code lua> 
-    Console.Print("​Hello!\n"​); ​  -- Prints "​Hello"​ to the in-game console. 
-</​code>​ 
- 
- 
-===== DevPrint(s) ===== 
- 
-Prints a developer message to the in-game console. 
- 
-If the "​developer"​ console variable is set, this prints the string ''​s'',​ prepended by "​[Dev]",​ to the Ca3DE in-game console. If the "​developer"​ console variable is not set, nothing is printed. 
- 
-=== Returns: === 
-Nothing (nil). 
- 
-=== Example: === 
-<code lua> 
-    Console.DevPrint("​Hello!\n"​); ​  -- Prints "[Dev] Hello" to the in-game console (in developer mode). 
-</​code>​ 
- 
- 
-===== Warning(s) ===== 
- 
-Prints a warning to the Ca3DE in-game console. 
-This is the same as function ''​Print(s)'',​ except that the text "​Warning:"​ is prepended to the output. 
- 
-=== Returns: === 
-Nothing (nil). 
- 
-=== Example: === 
-<code lua> 
-    Console.Warning("​Problem here!\n"​); ​  -- Prints "​Warning:​ Problem here!" to the in-game console. 
-    Console.Print ​ ("​Warning:​ "​.."​Problem here!\n"​); ​  -- Same result as above. 
-</​code>​ 
- 
- 
-===== DevWarning(s) ===== 
- 
-Prints a developer warning to the in-game console. 
- 
-If the "​developer"​ console variable is set, this prints the string ''​s'',​ prepended by "[Dev] Warning:",​ to the Ca3DE in-game console. If the "​developer"​ console variable is not set, nothing is printed. 
- 
-=== Returns: === 
-Nothing (nil). 
- 
-=== Example: === 
-<code lua> 
-    Console.DevWarning("​Problem here!\n"​); ​  -- Prints "[Dev] Warning: Problem here!" to the in-game console 
-                                             -- (in developer mode). 
-</​code>​ 
  
scripting/console.1158513591.txt.gz ยท Last modified: 2013-01-07 12:07 (external edit)