ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Tue Jun 19, 2018 12:42 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Explain Stealth to me
PostPosted: Wed Mar 14, 2018 2:08 am 
Offline
Uruivellas

Joined: Sat Jan 14, 2012 12:02 am
Posts: 703
1. How does it work? What's the detection formula?
2. How does it interact with Hunted!? (the debuff from Madness)


Top
 Profile  
 
PostPosted: Wed Mar 14, 2018 2:18 am 
Offline
Thalore

Joined: Sat Apr 29, 2017 9:39 pm
Posts: 129
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.


Top
 Profile  
 
PostPosted: Wed Mar 14, 2018 3:25 am 
Offline
Uruivellas

Joined: Sat Jan 14, 2012 12:02 am
Posts: 703
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.


Top
 Profile  
 
PostPosted: Wed Mar 14, 2018 5:12 am 
Offline
Cornac

Joined: Wed Mar 04, 2015 5:21 pm
Posts: 39
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.

Top
 Profile  
 
PostPosted: Wed Mar 14, 2018 6:28 am 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 5676
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group