for(var/obj/selection/square[DHDOwner:CurrentDialLoc]/S in usr.client.screen)
S.overlays +=src
Ofcourse, this aint working, how can I input the variable DHDOwner:CurrentDialLoc in a path
(And how do I get rid of using the damn : operator)
CurrentDialLoc is a var of the reference DHDOwner, which is a var of another object..(of which the above code applies to)
You don't explain really give enough code. You don't say what you're trying to accomplish. And the code you gave makes no sense we can hardly figure anything out from that.