Thanks for the response on this, I aprpeciate the help.
Right, to answer your later confusion on the whole pitfall part, I was doing it that way because I was unsure how I'd do it another way. Essentially trying to imbed the sensors resultsas such
list scanner_results = [sensor( integer detected )];
Though it really didn't like that. I wasn't using llGetAgentList because, though I knew about it's advantages, I only wanted the shorter range. It's a close range aspect, though I was unaware that you could just filter for range/name/sitting etc. So in that regard I will be switching over, thanks for that advice on that!
However, I'm not actually sure how I'd filter the data to get range or certain people out with it. I'm aware how to do it with the list feature normally, inputting the distinguishing factors as absolutes, above the default start section and all that. Though I'm not sure how you'd do it after acquiring information during the script.
I attempted continuing with during the script using
list nearby_avatars = llGetAgentList(AGENT_LIST_REGION, []);
Though I can't seem to then input that into a llDialog afterwards. Any thoughts? Thanks for any help that can be provided.