var/list/list1=list("whatever"="whatever","Yea"="Yea")//and so on
mob/var/list/list2=list()
mob
proc
procname(A)
if(src.variable)
src.list2+=list1[A]
Problem description:
obviously this wont work, but what im trying to do is get one entry from list1 added to list2, i could do it in an extremely tedious way, but i need it done simply. I cant for the life of me get this to work D:
Really? FYI it could work with a proper argument supplied. ;P
(Though you've confuzzled one of the var declarations a bit when writing the post; list2 is a global var)
I fail to see the problem here. Surely you know how to access that 'one entry from list1'? (if not, off to reading on lists in the DM Guide and Ref you go!) If so, then this is extremely straightforward. Access that entry... and then... add it to list2. I [probably ;D] couldn't make it more complex if I wanted.