Board Thread:General Coding Help/@comment-26942307-20170829114238

Hi

I'm trying to make a calculation by using LUA, but I can't get it to work, it keeps telling me that there are Script error.

I need the function to calc. bonus=(T1*B1+T2*B2+T3*B3)*1,4*Set*INTBonus

I can get it to run in a WIKI Template, but not when I change it to be a module. Maybe it is a question on how I call the function. T1..3, B1..3, Set, INTBonus are all params that are coming from a wiki page as params.

It would be nice if there are anyone that could help me getting on with this issue, and if possible generate a working example that can do this for me or have an other example that I can use to se how it should be done. 