mob/verb/MoveFromList(obj/O in list1+list2+list3+list4)
And I want to move O from it's current list to a new list I specify. What can I do to find out which of list1-4 O was originally taken from, so that I can delete it from that original list and move it to the new one?
if(list1.Find(O)) list1 -= O
else if(list2.Find(O)) list2 -= O
else if(list3.Find(O)) list3 -= O
else if(list4.Find(O)) list4 -= O
I don't think there is any other way to do it because there is no var that stores the list (and location in that list) where it is pointed to. This is probably because multiple lists can be pointing to one object.
Actually, you could probably do it without the if statements:
list1-=O
list2-=O
list3-=O
list4-=O