------ Hello.lua ------ function TurnOn(message) lgs.DarkUISrv.TextMessage("Hello Garrett!") return true end
This script is a trap; it has a handler for the TurnOn message. The DarkUI script service is used to display a message on the screen. Script services are how the script interacts with the game. All services are accessed through the lgs module. See Script Services for a list of script services and the functions they provide. Not all services and functions are available for each game. In particular, System Shock 2 has its own script service for doing most tasks.