keeping track of counters
i've been in a private discussion with popcorn (who has been a big help) concerning things like object pairing and how mmf2 handles those operations.
unfortunately, i need a way to destroy specific counters based upon other criteria.
say i had a list, that could have a potential of 1 entry, or 10 entries (or lines). the contents of which will vary per line depending upon criteria held within an array. after the line is created at the start of the frame, i then create a counter with values correlating to whatever the line refers to according to the array. this is working fine for me now.
the problem comes when deleting a line in the list. i can delete the line no problem, but i have no control over deleting the paired counter. i have no way of referencing the counter, because they do not allow naming conventions like a regular active object would. similar to strings, neither strings nor counters allow the definitions of alterable values. why is this?
i'm looking for a way around this without incorporating another list to keep track of what was deleted. i've tried the >> pick one of >> "counter" >> destroy method, but that, as you expected, deletes just a random counter of the instance, and not the paired one i need.