Hello,
anyone can suggest me a simple lua wrapper with clean code?
I want to call from c++ lua functions but I dont really get it..
I only know a little LUA and C++.
Example lua function I have:
Get the level:
function Lv(a)
local lv = GetChaAttr( a , ATTR_LV )
return lv
end
Get life points:
function Lp(a)
local lp = GetChaAttr( a , ATTR_LP )
return lp
end
How can I create now a "GetChaAttr" function in c++ which fetch the player level/life points?
ATTR_LV = to get level
ATTR_LP = to get life points
Any idea which lua wrapper would be the best for me?