- Joined
- May 19, 2015
- RedCents
- 1,294¢
Looked around a bit, but wondering if any Lua wizard can throw me a quick suggestion on this.
Have a hotkey in game that I want to send a variable update to a Lua script. The variable is global in the Lua and the script is kept running in the background at all time (doesn't terminate). This works if I have the variable inside a macro, but cant seem to locate a / command to edit variables that are stored inside LUAs.
Example Hotkey:
Lua: *this is not the code for the script but just a quick reference to show what I am meaning*
Have a hotkey in game that I want to send a variable update to a Lua script. The variable is global in the Lua and the script is kept running in the background at all time (doesn't terminate). This works if I have the variable inside a macro, but cant seem to locate a / command to edit variables that are stored inside LUAs.
Example Hotkey:
Code:
/varset Variable1 Active
Lua: *this is not the code for the script but just a quick reference to show what I am meaning*
Code:
local mq = require('mq')
Variable1 = nil
while not terminate do
print(Variable1)
end

