Getting & Setting values for variables via EXEC.lua

edited March 2016 in EmptyEpsilon
I see how to run some scripting from exec.lua from a web page, ( but I'm not able to set & get variable values from there. I could use some examples on how to do this as apparently I can't figure this out.

Here's what I want to be able to do:
Read a value from a known variable/array
Set a value from a known variable/array

Quick Example:
Create a web interface for keeping track of inventory in a cargo hold.
inventory["stembolts"]=1 -- Number of stembolts in inventory

Create a web interface for Engineering for recalibrating reactor & engines
calibration["reactors"]=3 -- if greater than 0, multiply it with heat to decrease efficiency


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!