Yello!
I want to randomize between negative or positive aka - and +.
I've tried to simply:
But as shown its a string and can therefor not be used, I know you can convert strings to numbers and vice versa, is it possible to convert string to calculation variables aswell?
I know there is workarounds to solve the problem "to work as intended", but It would be fun to know if there actually are something useable in lua to convert these things.
I want to randomize between negative or positive aka - and +.
I've tried to simply:
Lua:
local randSign = math.random(1,2)
if randSign == 1 then
randMe = "+"
else
randMe = "-"
end
doSendMagicEffect({x = (pos.x ..randMe.. 3), y = (pos.y ..randMe.. 3), z = pos.z, stackpos = 255}, 50)
But as shown its a string and can therefor not be used, I know you can convert strings to numbers and vice versa, is it possible to convert string to calculation variables aswell?
I know there is workarounds to solve the problem "to work as intended", but It would be fun to know if there actually are something useable in lua to convert these things.