I recently got into Computer Craft (Mod for Minecraft), you can encode computers using lua.
I want to go “water status” and it will load “water” and then set the variable to “status” or any other word / line in its place so that I can use it for anything. Perhaps you would call this parameter?
os.run( environment, prgmpath, arguments )
I don’t understand what the environment is. prgmpath is water and argument will be status? I just don't know how to extract these arguments from this.
So yes, I am very confused = /
Tried to explain it best, thanks, thanks, Jazza
After searching, I think I found my answer.
lua water arg1
Running on command line
derp = arg[2]
Included in the file?
EDIT: After I hid a little more, I found out that:
derp = ... print(derp)
In the file and:
file hi
Hello is printed, so I think it works, but I can no longer add D =
Jazza source share