
Originally Posted by
Darkhog
Very nice object and easy to understand too. Three things though:
1. Example ext_mmfi doesn't work (nil error on line 86 in Demon AI that despite my best tries I couldn't fix)
2. Help button in the extenson's properties doesn't launch the help file (xlua.chm)
3. I feel like calling functions could be simplified. Instead of pushing parameters, why not just treat function call as "lua line"?
The latter needs a bit of explanation as I feel I wasn't clear enough. So instead of thing like this:
- Push integer parameter Global Value A
- Push string parameter Global String A
- Begin table
- Push integer parameter Global Value B
- Push integer parameter Global Value C
- Push integer parameter Global Value D
- Push string parameter Global String B
- End table
- call function "somefun"
you'd just do it like that:
- Call function "somefun("+Str$(Global Value A)+","+Global String A+",{"+Str$(Global Value B)+","+Str$(Global Value C)+","+Str$(Global Value D)+","+Global String B+"})"