It's certainly possible, there is nothing that cannot be done.
You need it to seek unique elements that are present in each of the 'random' pieces and jump to a <ActorExistsAt ...> If loop section for each piece. It'd take a while to work out, and running it over and over till all the possible...