Difference between revisions of "Vision"

From Tales of Maj'Eyal
Jump to: navigation, search
m
(Heightened Senses / Infravision: Missed a critical "not")
 
(37 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[[:Category:Game_mechanics]]
+
== Introduction==
There are x stats related to vison, that determine whetever you can see a certain tile or actor:
+
In the [[character sheet]] for an entity, there are several stats related to vision that determine whether or no that entity can see certain tiles or other characters.
  
*Vision Range
+
* Light radius
*Light Radius
+
* Vision range
*Infravision
+
* Heightened Senses / Infravision
*See stealth
+
* Stealth
*See invisibility
+
* See stealth
*[[#Telepathy|Telepathy]]
+
* Invisibility
 +
* See invisibility
 +
* Telepathy Range
 +
* [[#Telepathy|Telepathy]]
  
 
Also, terrain may have 3 different states that will affect what you may or may not see.
 
Also, terrain may have 3 different states that will affect what you may or may not see.
Line 13: Line 16:
 
A tile may be:
 
A tile may be:
  
*Lit: These tiles are lit by the sun, or through magically field, and do not hinder your sight.
+
* Lit: These tiles are lit by the sun, or through magically field, and do not hinder your sight.
*Unlit: You may not see these tiles unless your [[items#lite|lite]] reaches to it (determined by your [[#Light radius|light radius]])
+
* Unlit: You may not see these tiles unless your [[items#lite|lite]] reaches to it (determined by your [[#Light radius|light radius]]).
*Covered in magical darkness: Regular light will not pierce this darkness, and you will need to banish it, or walk blindly in it
+
* Covered in magical darkness: Blocks all vision and light, can be only lit up with certain talents or artifacts.
  
Similiarily, there are several stats that help you hide from your enemies:
+
Similarly, there are several stats that help you hide from your enemies:
  
*Stealth
+
* Stealth
*Invisibility
+
* Invisibility
*Blindness
+
* Blindness
  
(more info needed)
+
== Light Radius ==
 +
How far your light reaches. Tiles within this range and line of sight will receive the lit status.
  
=== Vision Range ===
+
== Vision Range ==
This is how far you can see. You will never be able to see anything further away than this. For most actors, this has a value of 10.
+
This is how far your normal vision for lit tiles can reach. You cannot see entities farther than this distance even if they are reached by your lite. Most actors will have a vision range of 10.
  
=== Light Radius ===
+
Entities that fall under your normal vision will be marked as "in sight", and this condition is check by many talents.
  
=== Telepathy ===
+
In order for unknown terrain to be permanently revealed, the tile must be lit and fall under your normal vision once.
 +
 
 +
== Heightened Senses / Infravision ==
 +
Allows you to see creatures standing in unlit tiles within a certain radius and in your line of sight. Effectively lights up the tile that the creature is standing on, showing items on the ground and any effects in the tile too. Even though a tile may be temporarily lit in such a manner, this does not permanently reveal the terrain there. You must see a tile with normal vision in order for the terrain to be permanently revealed.
 +
 
 +
Ranged attacks may not take the correct path to a distant enemy that is only lit up by heightened senses or infravision if the intervening terrain has not been fully revealed. For example, if an enemy is poking their head out from behind a corner that you are not aware of, and you can only see the enemy with heightened senses or infravision, then your ranged attack could end up hitting that corner.
 +
 
 +
Heightened Senses is normally acquired from the {{t|Heightened Senses|eponymous talent}}, whereas infravision is typically acquired from items. These two separate ratings do not stack: whichever is higher will take effect.
 +
 
 +
== Seeing Stealth or Invisible Entities ==
 +
''The following information is an interpretation of the game code from ..\tome.team\mod\class\Actor.lua and ..\tome.team\mod\class\interface\Combat.lua, based on how stealth and invisibility checks appear to use the checkHitOld function''
 +
 
 +
The chance for a character to see another one hiding under stealth or invisibility is determined by the following variables and formula:
 +
 
 +
''Note: see stealth appears to be a rescaled stat, whereas see invisibility is not.''
 +
 
 +
'''S''': seeing power, the number given for "see stealth" or "see invisibility" in the [[character sheet]] of the observer
 +
 
 +
'''H''': hiding power, the number given for "stealth" or "invisibility" in the [[character sheet]] of the hider
 +
 
 +
'''See Chance''' = ('''A''' + '''B''') * 50%
 +
 
 +
'''A''' = 1 / ( 1 + exp( ('''H''' - '''S''') / 7 ) )
 +
 
 +
'''B''' = '''S''' / ( '''S''' + '''H''' )
 +
 
 +
''Trivia: the A term above is a [https://en.wikipedia.org/wiki/Fermi%E2%80%93Dirac_statistics Fermi-Dirac distribution]''
 +
 
 +
The table in the image below shows the percentage see chance, given the seeing power in the first column, and the hiding power in the first row:
 +
 
 +
[[File:See hide table.png|border]]
 +
 
 +
Observers with zero "see invisible" power will not be able to see invisible entities at all, and will not even get a chance to participate in the invisibility check.
 +
 
 +
Observers with zero "see stealth" power can still participate in stealth checks, and will see stealthed entities with the chance shown in the table above. This situation can occur if the observer is significantly debuffed.
 +
 
 +
If the hiding entity is both stealthed and invisible, then the observer will have to pass both a stealth and invisibility check in order to see the hider.
 +
 
 +
== Telepathy ==
 +
Allows you to perceive certain kinds of creatures with your mind, and light them up like infravision.
 +
 
 +
Diggable walls, doors, blindness, invisibility or magical darkness do not affect telepathy. Undiggable walls, such as those surrounding vaults, may block telepathy.
  
 
== Talents related to vision ==
 
== Talents related to vision ==
 +
* {{t|Stealth}}: grants stealth power
 +
* {{t|Invisibility}}: grants invisibility power
 +
* [[Inscriptions#ethereal|Ethereal Rune]]: grants invisibility power
 +
* {{t|Heightened Senses}}: increase see stealth and see invisibility
 +
* {{t|Overseer of Nations}}: increase vision range
 +
* {{t|Shadow Shot}}: decrease vision range
 +
* {{t|Chant Adept}}: increase light radius
 +
* {{t|Hymn Adept}}: increase infravision
 +
* {{t|Armour of Shadows}}: make tiles unlit
 +
* {{t|Vision}}: reveals terrain
 +
* {{t|Smoke Bomb}}: blocks line of sight
 +
* {{t|Creeping Darkness}}: blocks line of sight
 +
* {{t|Dark Vision}}: see through magical darkness
 +
 +
== Artifacts related to vision ==
 +
* [[Umbraphage]]: makes tiles lit
 +
* [[Burning Star]]: reveals terrain
  
[[Heightened_senses_(talent)]]
+
[[Category:Game Mechanics]]
[[Overseer_of_nations_(talent)]]
+

Latest revision as of 08:16, 14 October 2021

Introduction

In the character sheet for an entity, there are several stats related to vision that determine whether or no that entity can see certain tiles or other characters.

  • Light radius
  • Vision range
  • Heightened Senses / Infravision
  • Stealth
  • See stealth
  • Invisibility
  • See invisibility
  • Telepathy Range
  • Telepathy

Also, terrain may have 3 different states that will affect what you may or may not see.

A tile may be:

  • Lit: These tiles are lit by the sun, or through magically field, and do not hinder your sight.
  • Unlit: You may not see these tiles unless your lite reaches to it (determined by your light radius).
  • Covered in magical darkness: Blocks all vision and light, can be only lit up with certain talents or artifacts.

Similarly, there are several stats that help you hide from your enemies:

  • Stealth
  • Invisibility
  • Blindness

Light Radius

How far your light reaches. Tiles within this range and line of sight will receive the lit status.

Vision Range

This is how far your normal vision for lit tiles can reach. You cannot see entities farther than this distance even if they are reached by your lite. Most actors will have a vision range of 10.

Entities that fall under your normal vision will be marked as "in sight", and this condition is check by many talents.

In order for unknown terrain to be permanently revealed, the tile must be lit and fall under your normal vision once.

Heightened Senses / Infravision

Allows you to see creatures standing in unlit tiles within a certain radius and in your line of sight. Effectively lights up the tile that the creature is standing on, showing items on the ground and any effects in the tile too. Even though a tile may be temporarily lit in such a manner, this does not permanently reveal the terrain there. You must see a tile with normal vision in order for the terrain to be permanently revealed.

Ranged attacks may not take the correct path to a distant enemy that is only lit up by heightened senses or infravision if the intervening terrain has not been fully revealed. For example, if an enemy is poking their head out from behind a corner that you are not aware of, and you can only see the enemy with heightened senses or infravision, then your ranged attack could end up hitting that corner.

Heightened Senses is normally acquired from the eponymous talent, whereas infravision is typically acquired from items. These two separate ratings do not stack: whichever is higher will take effect.

Seeing Stealth or Invisible Entities

The following information is an interpretation of the game code from ..\tome.team\mod\class\Actor.lua and ..\tome.team\mod\class\interface\Combat.lua, based on how stealth and invisibility checks appear to use the checkHitOld function

The chance for a character to see another one hiding under stealth or invisibility is determined by the following variables and formula:

Note: see stealth appears to be a rescaled stat, whereas see invisibility is not.

S: seeing power, the number given for "see stealth" or "see invisibility" in the character sheet of the observer

H: hiding power, the number given for "stealth" or "invisibility" in the character sheet of the hider

See Chance = (A + B) * 50%

A = 1 / ( 1 + exp( (H - S) / 7 ) )

B = S / ( S + H )

Trivia: the A term above is a Fermi-Dirac distribution

The table in the image below shows the percentage see chance, given the seeing power in the first column, and the hiding power in the first row:

See hide table.png

Observers with zero "see invisible" power will not be able to see invisible entities at all, and will not even get a chance to participate in the invisibility check.

Observers with zero "see stealth" power can still participate in stealth checks, and will see stealthed entities with the chance shown in the table above. This situation can occur if the observer is significantly debuffed.

If the hiding entity is both stealthed and invisible, then the observer will have to pass both a stealth and invisibility check in order to see the hider.

Telepathy

Allows you to perceive certain kinds of creatures with your mind, and light them up like infravision.

Diggable walls, doors, blindness, invisibility or magical darkness do not affect telepathy. Undiggable walls, such as those surrounding vaults, may block telepathy.

Talents related to vision

Artifacts related to vision