LoS searching

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buzzkill
    Prophet
    • May 2008
    • 2939

    LoS searching

    The subject seems to have arisen in another thread, so here my 'scheme' for LoS searching (without co-opting another thread (which I have a tendency to do)).

    The player would have a % chance (searching ability) to detect traps in every grid that is within 50' (5 grids), with a minimal amount of searching possible at 50' distant, and then a steadily increased chance as the the player nears the trap. The player would only gain full searching ability at 10'. Traps would have to be within LoS and also on a lit grid for any detection to be possible. Regardless of LoS or lighting, no detection is possible more than 50' away without magical aid (*detect traps*).

    So, with 100% perfect searching ability (or 50% very good) [or 20% average]...

    Code:
    at 50' you'd would have a 60% (10%) chance to detect a trap,
    at 40' it would rise to 70%  (20%)
    at 30' it would rise to 80%  (30%) [ 0%]
    at 20' it would rise to 90%  (40%) [10%]
    at 10' it would rise to 100% (50%) [20%]
    ...so even with average searching ability and no searching enhancements you would have a cumulative 30% to spot a trap before you step on it.

    Thus, given 25% searching ability, an average light source (20') in a straight darkened corridor, you would have a decent chance (25% + 15% + 5%) to detect a trap. You would also be less likely to detect a trap immediately upon turning a corner or otherwise having previously prohibited LoS (which is cool, IMO).

    In conjunction with this I'd provide 3 potential ways to enhance searching.
    • Toggled Searching [shift-S] adds 10% to searching ability, reduces speed by 50%.
    • Detect Traps: a timed duration spell/scroll/item that also adds 10% (cumulative).
    • *Detect Traps*: an expensive/rare timed duration scroll that magically detects all traps within LoS regardless of distance or lighting.


    I'd go so far as to suspend passive LoS searching on actions other than movement, or resting, or searching. My intent would be to avoid spotting traps while otherwise distracted as in the heat of battle or while casting a spell.

    As usual, subject to tweaking and criticism.
    Last edited by buzzkill; November 18, 2011, 15:16.
    www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
    My banding life on Buzzkill's ladder.
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #2
    [fx: thumbs up] I like this. Unfortunately I'm pathologically unable to avoid tweaking: I'd allow the max range to be a function of the searching skill, i.e. skill / 20, or skill / 15 would be a little easier.
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

    • fizzix
      Prophet
      • Aug 2009
      • 3025

      #3
      ewert implemented LoS searching a long time ago. I don't know if his code is salvageable.

      Comment

      • Magnate
        Angband Devteam member
        • May 2007
        • 5110

        #4
        Originally posted by fizzix
        ewert implemented LoS searching a long time ago. I don't know if his code is salvageable.
        Do you mean iVanilla?
        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

        Comment

        • BreathesFire
          Rookie
          • Aug 2011
          • 9

          #5
          I agree with extending the detection to include LoS and lite squares, but I would be more inclined to use exponential decay instead of a linear model.

          Maybe something like
          Detection = SKILL_SEARCH * exp(-CONST*distanceDifference)

          Comment

          • artes
            Adept
            • Jun 2011
            • 113

            #6
            My suggestion is that there only needs to be one skill, Perception. If someone wants to search a specific place carefully they can just stay there longer and hope to perceive something. If toggled searching is implemented, it can be a bonus to Perception.

            Comment

            Working...
            😀
            😂
            🥰
            😘
            🤢
            😎
            😞
            😡
            👍
            👎