Sorry. My previous posts are far from clear

I'll try to summarize.
Luck only works with Unseen Actions. It gives you +0.2% chance to avoid losing stealth in Unseen Actions for every point above 50. Luck is notoriously difficult to acquire so getting much over 100 luck is pretty much impossible.
However, this point is moot because you will *never* break stealth on Unseen Actions once you get to level 4 or so. Normally when you are in stealth, if you do a non-movement action (attacking, using an infusion, casting a spell, etc) you will break stealth. If you have Unseen Actions, each opponent will make a check against a multiple of your Stealth. At level 1 the multiple is 0.4 and at level 5 I think the multiple is 1.89. Although there is no scaling for distance, luck further modifies the result.
If you only move, then you will never break stealth. However, this is not terribly relevant because every turn (or possibly every time the opponent has an action... I didn't check), the opponent gets a chance to "spot you". This comes in the form of a check against your Stealth. It is important to note that *this* check is not scaled at all (no scaling from Unseen Actions, no contribution from luck, no scaling from distance). If they succeed then they will spot you and can target you (and hit you with no penalties).
If an opponent "spots" you, then for a turn or so, they can see you. If you attack in a turn where an opponent can see you, then you will break stealth. So as I said, you need to keep track of the little messages saying that an opponent has spotted you. However, if the opponent spots you in the *same turn* that you attacked, you will get no such message. You will simply break stealth. I think this is where people think Unseen Actions are failing them, but in truth it never gets to the Unseen Actions check.
The key here is that every action the opponent gets a chance to see you which essentially nullifies your advantage from stealth. This check is unmodified. The only check that is modified is your Unseen Actions one and that one is modified enough that it is unlikely ever to break your stealth. So once you get to level 4 or 5 of Unseen Actions, every single stealth breakage will come from being spotted. Being spotted does not include luck.
So as long as you have at least 50 luck (your starting position), and you have at least level 4 in Unseen Actions, then luck will play absolutely no role in stealth.
There is one other important aspect with Stealth. That is Hide In Plain Sight. This allows you to regain stealth once you have broken it. Each opponent makes a check against your Stealth scaled by your level (0.9x for level 1 and 2.7x for level 5). The resulting chance for detection is further reduced by 10% for every tile the opponent is away. So Hide in Plain Sight is the only one that scales by distance. It also does *not* use luck. Why Hide in Pain Sight is the only talent to scale by distance, I have no idea...
One thing I didn't talk about previously is that the opponents' stealth detection level is increased by a factor of their level and their cunning (I can't remember if it was 0.5 * level + 0.25 * cunning or the other way around...). Anyway, the point is that once you get to the mid game, your opponents will all have 30+ stealth detection. Unless you can get your stealth to stratospheric levels (I believe someone was talking about having 190 Stealth), you will be detected when you encounter large groups. In my test run I had 62 stealth when I got to the alternative Daikara level. It was impossible to use stealth at all because there is nothing to break the line of sight and you have 5-6 opponents each with a 14% chance of spotting you. So every time you attack you break stealth. I think to run an effective stealth campaign you need to invest in traps and use sticky smoke and the target dummy to obscure vision and draw creatures away from you. But I haven't tested this theory.
You should also note that in the Ideas part of the forum somebody is redesigning the Rogue including Stealth. The ideas look good and I think it is pretty obvious that Stealth needs an overhaul, so one of these days I'd like to give it a try.