Board Thread:Lua Help/@comment-24688171-20171205201426

I'm working on this module, which is invoked from a template, which is called on an article with data

I know how to work through the parent arguments and etc. I just wanna know how I can return the value of total "c", "tk", "xp", etc. (providing all are numbers. I wanna know how to write the iterative function using  or any other way.

I want the data to return like this: