Hi. I would like a few more commands for working with arrays, to the tune of:
MERGE_ARRAYS newarray array1 array2 etc
> Creates newarray from the contents of the listed arrays.
APPEND_ARRAY array value
> Adds the specified value(s) to the specified array.
COUNT_ARRAY_VALUES array variable
> Counts the number of values in the specified array and stores the result in the variable.
If existing functionality covers this, please point me to it. I've been away from modding a while. I realize (ACTION_)PHP_EACH may cover some of this (particular the latter if augmenting a variable in the process), but it has been suboptimal at best so far. I haven't looked into RET_ARRAY much, but as I read it, it seems to be only usable within a function. And in any case, it seems to have a separate purpose.
Incidentally, GET_DIRECTORY_ARRAY seems to regard "." and ".." as the first two entries in that array; is there a way to opt out of this? It also seems to throw an unspecified unix bug if the current mod's folder is one of those directories.
Cheers.