|
Post by phr33k on Nov 10, 2005 15:35:25 GMT -5
Basically i have a script im working on, but i had to split it up into 2 .lua files because it needs 2 different threads. 1 thread is monitoring playerstatus and acts upon the changes there.
My other thread in the other file is monitoring the chatlog, and it reacts to certain text. Now my question is, would it be possible to have 2 threads running in one script file? basically 2 sets of while true do ?
What i'm doing right now is in my first script file, it has the command inside to exec a windower script and in that windower script i have .Lunar load 2ndfile.lua
And the chat monitoring is being done in that file.
By the way is there a command to execute a lunar script within another lunar script?
|
|
|
Post by TinyTerror on Nov 10, 2005 17:30:10 GMT -5
You do NOT want to be able to run threads from an existing script. Trust me on that. Any reason you could possibly think of to do this could be fixed with decent programming.
|
|