1.I need the number of entries in a table. i tried .count but it only works for a list.
But I want to empty a table from a certain number so that my save doesn't get bigger and bigger. (And for other checks using loop).
This works for a list but not for a table:
Code: Select all
<debug_text text="'List (count): ' + $testlist.count" chance="$debugChance"/>
Code: Select all
<debug_text text="'Table (count): ' + $table.count" chance="$debugChance"/>
But I found only sqrt(2) in the X4 docu.
How can I calculate log10(...) in X4 without having to access an external Lua script?
Which is possible, but I wanted to limit the dependencies to vanilla since it's just a small mod project.
Thanks a lot in advance.