• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Running multiple Luas

Soandso2

Well-known member
Joined
Mar 13, 2023
RedCents
937¢
As I understand it, I can run multiple Lua scripts simultaneously. Do they execute in sequence, in some sort of loop? First script 1, then script 2, then script 3, then back to script 1 again and so on and so forth. Or do they execute in a parallell way? If the latter, does that mean that I can get faster execution of certain pieces of code?

Say that I have one Lua with an eternal do-while-loop, in which I call two functions. The second one wont execute until the first one is done. Granted this may only take milli- or micro-seconds, but still...
If I instead make two Lua scripts, each with an eternal do-while-loop and just call one function (in the loop) per script. Does this save me time (again possibly micro-seconds, but again... still)
 
Consider each Lua to be a self contained, self aware process. LuaA does not know about what LuaB is doing.
 
Question - Running multiple Luas

Users who are viewing this thread

Back
Top
Cart