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

dgatsoulis

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

kuddel

Donator
Donator
Joined
Apr 1, 2008
Messages
2,064
Reaction score
507
Points
113
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