ToME: the Tales of Maj'Eyal

Explain Stealth to me
Page 1 of 1

Author:  Parcae2 [ Wed Mar 14, 2018 2:08 am ]
Post subject:  Explain Stealth to me

1. How does it work? What's the detection formula?
2. How does it interact with Hunted!? (the debuff from Madness)

Author:  Arcvasti [ Wed Mar 14, 2018 2:18 am ]
Post subject:  Re: Explain Stealth to me

Stealth lets your first hit on enemies be an automatic critical and gives you a pretty large amount of critical multiplier for a few turns afterwards. It gives you a pretty good damage boost, especially on the bursty classes that it tends to be paired with. Stealth doesn't help you hide from things consistently even on Normal difficulty and would be especially useless in that regard on Madness, even disregarding Hunted.

Author:  Parcae2 [ Wed Mar 14, 2018 3:25 am ]
Post subject:  Re: Explain Stealth to me

Thanks, but I'm asking about the underlying formula. I know it'll probably be worthless, but I want to find out out exactly how worthless it is.

Author:  Aesthete [ Wed Mar 14, 2018 5:12 am ]
Post subject:  Re: Explain Stealth to me

I glanced at the code a bit ago but couldn't fully figure it out as it didn't seem to work in practice as how I read it. What it seems to do at some points do a checkHitOld between stealth power and the detection power. checkHitOld is a logarithmic function, not the simple linear power check formula of checkHit, so there will always be at least some chance of detection regardless of relative powers as long as the scaled detection power is above 0.

If the stealth check fails then the enemy will catch sight of you and know precisely where you are for at least a turn, not sure exactly how long. If detection fails but has been woken up it'll start trying to guess where you are, and target a square in your vicinity. That seems to work like an enemy losing track of you in general, and they can fire projectiles and beams at empty squares or even allies.

When you attack out of stealth with something that hits immediately (not a projectile, that'll break stealth before it hits) it does a stealth check immediately, and if the detection fails you get the automatic critical from shadowstrike. There are also some unseen attacks bonuses you get regardless of the talent too, which I didn't see documented anywhere, and I'm guessing you get those on blinded enemies too.

Edit: looking again, it seems spells and mind abilities will auto crit from stealth, while only physical attacks do the stealth check right before the attack and break on detection.

Edit 2: the distance modifier I first put in is for activating the stealth talent proper in the tree, it's easier to activate stealth in the first place if stuff is farther away.

Author:  HousePet [ Wed Mar 14, 2018 6:28 am ]
Post subject:  Re: Explain Stealth to me

Even if it doesn't let you get all the way up to an enemy for the free critical, it still works at reducing the chance of enemies sniping you.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group