Quote Originally Posted by shadowart View Post
In what way does require not work for you? I had to fight it a little to get package.path to accept a relative path but now it seems to be working.
It just didn't work for specified name of files but unfortunately I don't remember them anymore. I can try to replicate that "bug" though.


Quote Originally Posted by HjugO View Post
lua code:

function getExperienceForLevel(level)
local level = level or Self.Level()
return ((50.0 / 3.0) * math.pow(level, 3)) - (100.0 * math.pow(level, 2)) + ((850.0 / 3.0) * level) - 200
end

function getExperienceLeft(level)
local level = level or Self.Level() + 1
return getExperienceForLevel(level) - Self.Experience()
end
Can you even read? Would be nice if you can add those functions to XenoLuaLib - suggestion was to add those functions to XenoLuaLib (so you actually don't have to write/paste your own in every script that gonna use them), not to write them for me.