Difference between revisions of "Lua Command Line"

From Sapiens Wiki
Jump to navigation Jump to search
Line 3: Line 3:
[[File:Lua.png|220px|thumb|right|The Lua Command Line]]
[[File:Lua.png|220px|thumb|right|The Lua Command Line]]


==Overview==
=Overview=


The '''Lua Command Line''' is an in-game command line tool that allows direct interaction with the Sapiens game engine.  It can be accessed by entering the game chat using '''Ctrl+C''' and then typing '''/lua'''.  Once the command line has started, Lua commands can be executed directly allowing the player to modify various game behaviors.  The Lua Command Line can be exited by typing '''/exit'''.
The '''Lua Command Line''' is an in-game command line tool that allows direct interaction with the Sapiens game engine.  It can be accessed by entering the game chat using '''Ctrl+C''' and then typing '''/lua'''.  Once the command line has started, Lua commands can be executed directly allowing the player to modify various game behaviors.  The Lua Command Line can be exited by typing '''/exit'''.


==Commands==
=Commands=


===completeCheat()===
==completeCheat()==


===setDebugObject()===
==setDebugObject()==


===setSunrise()===
==setSunrise()==


===setSunset()===
==setSunset()==


===printType()===
==printType()==


===spawn===
==spawn()==
To spawn an item in the game type:
To spawn an item in the game type:


Line 26: Line 26:
Please note if the quantity is omitted, 1 will default.
Please note if the quantity is omitted, 1 will default.


===tp()===
==tp()==

Revision as of 02:21, 31 October 2022

PageStub.png
The Lua Command Line

Overview

The Lua Command Line is an in-game command line tool that allows direct interaction with the Sapiens game engine. It can be accessed by entering the game chat using Ctrl+C and then typing /lua. Once the command line has started, Lua commands can be executed directly allowing the player to modify various game behaviors. The Lua Command Line can be exited by typing /exit.

Commands

completeCheat()

setDebugObject()

setSunrise()

setSunset()

printType()

spawn()

To spawn an item in the game type:

spawn("apple",1)

Please note if the quantity is omitted, 1 will default.

tp()