On Lusternia stances are able to avoid kicks. So I'm making an automated script to adjust my kick by their stance. I am having trouble with the return statement though. It's returning as a table and not a string.
The note shows it correct but when it returns it, it's a table it seems. How do I stop this?
tarstance = {}
tarstance.legs = false
tarstance.head = false
function yanker()
local kicklimb = {}
local kicklimb = dokick()
send ( "kata perform " .. target .. " ninshihe" .. kicklimb )
end
function dokick()
local toReturn = {}
if not tarstance.head then
local toReturn = "he"
Note ( "toReturn is " .. toReturn )
else
local toReturn = "rl"
Note ( "toReturn is " .. toReturn )
end
return toReturn
end
The note shows it correct but when it returns it, it's a table it seems. How do I stop this?