Use return value from a lua function as a PE condition
Hey.
Let's imagine I have a function myFunc. Pseudocode:
Code:
function myFunc()
if whateveriwanttocheck > whatever then
return true
end
return false
end
How do I use the result from myFunc in a ProbablyEngine?
Code:
...
{"Random ability", myFunc()} --Doesn't work
...
{"Random ability", (function() return myFunc() end)} --Obviously doesn't work either ;)
There must surely be a way.
Cheers
Last edited by Filint; 11-23-2014 at 03:42 PM.
These ads disappear when you log in.