ok thanks for your tips
I will try the lua version of it, but i don´t understand how it works..
lets say I run your lua script with RunScript(), how can I then call the function
TItemClass:New()
from blitzmax to create the new class, or
the OnUpdate() function ?
or must I only call it like this :
lua_getglobal(VM, "TItemClass:New");
lua_call(VM, 0, 1);
Ps.: sorry for the noob questions but I never worked with lua before LE