Explain Stealth to me

Any discussions regarding the spoilers present in ToME 4.x.x should be restricted to this forum

Moderator: Moderator

Post Reply
Message
Author
Parcae2
Uruivellas
Posts: 709
Joined: Sat Jan 14, 2012 12:02 am

Explain Stealth to me

#1 Post by Parcae2 »

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

Arcvasti
Wyrmic
Posts: 269
Joined: Sat Apr 29, 2017 9:39 pm

Re: Explain Stealth to me

#2 Post by Arcvasti »

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.

Parcae2
Uruivellas
Posts: 709
Joined: Sat Jan 14, 2012 12:02 am

Re: Explain Stealth to me

#3 Post by Parcae2 »

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.

Aesthete
Cornac
Posts: 39
Joined: Wed Mar 04, 2015 5:21 pm

Re: Explain Stealth to me

#4 Post by Aesthete »

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.
Last edited by Aesthete on Wed Mar 14, 2018 7:37 am, edited 1 time in total.

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Explain Stealth to me

#5 Post by HousePet »

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.
My feedback meter decays into coding. Give me feedback and I make mods.

Post Reply