Lua Apis

From Off Grid Wiki
Jump to: navigation, search

Off Grid supplies many Lua Apis that can be used during Mission Scripting.

API
AI
Animator
Color
Conversation
Devices
Doors
GameProgress
Mission
Network
Particles
Player
Scheduler
Sound
Spectrum
UI


To be added

Materials API - Allow changing of materials such as turning on screens in Lua.

Characters API - tracking characters as opposed to their devices

Spectrum API - Spectrum is the all seeing all knowing network knowledge in the game. It is a government run program that knows about all data produced Searching for data based on different criteria. All apps need to be able to toreference this to get network and device information.

Lights/Light Groups API - light groups working like door groups to make interactable lights accesible to control (rather than as individual lamps). This also has to change the material in the game at the same time on occasion to make everything look correct when a light is turned on or off.

Noise API - Noise is what the AI reacts to.

Audio API - Audio is whhat the player hears.

Apps API - lua defined apps - Starting and stopping an app (changing state and tracking state) and passing through to the game side so that the UI can update and vice versa. Has to be aware of whether it is done through app/ wheel / menu. - Way of displaying additional information in popups UI / app sub-buttons (eg. selecting network or filtering with Spectrum) - Notification, popus and hint and such from the UI can all be accessed - Adding of system icons (light the light or clock or battery) - Can disply modal windows and their buttons - Could define a few different windows for apps - Apps able to query each other or send messages to each other?