Question Can parameters be passed to a Lua script when it is invoked?

dgatsoulis

ele2png user
Joined
Dec 2, 2009
Messages
1,774
Reaction score
8
Points
38
Location
Sparta
Can you be a bit more specific? What exactly do you mean by "parameters"?
 

kuddel

Donator
Donator
Joined
Apr 1, 2008
Messages
1,500
Reaction score
28
Points
48
If I understand you correct, I would
a) make a script, that contains the function (with parameter that is) to do all the work.
b) include that script from the "main" script (via run('path/to/script')
c) call that function (a) with the parameters you like.
 
Top