first of all using the command "lua next()" to return the stack values produces no output in my case.
I used the following code:
err=lua execute("function test() return 1,1.1,'test' end")
lua set function "test",0,3
lua call
for x=1 to 3
print "I: ";lua return int()
next x
lua set function "test",0,3
lua call
for x=1 to 3
print "F: ";lua return float()
next x
lua set function "test",0,3
lua call
for x=1 to 3
print "S: ";lua return string()
next x
wait key
and got the results:
0
1
1
0
1.1
1
test
test
test
And this is what works:
err=lua execute("function test() return 1.1,1.2,1.3 end")
lua set function "test",0,3
lua call
print lua return float()
print lua return float()
print lua return float()
wait key
output:
1.3
1.2
1.1