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

dgatsoulis

ele2png user
Joined
Dec 2, 2009
Messages
1,846
Reaction score
142
Points
78
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,832
Reaction score
353
Points
83
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