ToEE PP

Discussion in 'General Modification' started by hammyh, May 9, 2022.

Remove all ads!
  1. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    258
    Likes Received:
    43
    Opened a new thread to not clutter the IWD2 thread.

    It looks to me like deltaFromDc is set to 0. Should this not be = -pp check (so pp +d20roll)? For spot - pp check?

    here is the SRD definition:
    Edit: unless deltaFromDC is calculated in a different file, which I don't see atm.
     
    Last edited: May 9, 2022
  2. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,523
    Likes Received:
    432
    That's just the initialization value, after the roll it gets updated with the difference from the DC.
     
  3. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    258
    Likes Received:
    43
    If that value gets assigned the correct slight of hand DC roll, then it should be working correctly.
     
  4. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,523
    Likes Received:
    432
    Ok, so no overhaul needed? :)
     
  5. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    258
    Likes Received:
    43
    Doesn't look like it.

    Would it be annoying to ask you to confirm that deltafromDC is actually storing the Sleight of hand roll (skill +d20)? Or if that name is what you typically use is clear then nm. (Sounds a bit like a deltafromDC might mean some calcualtion)
     
  6. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,523
    Likes Received:
    432
    Yeah, deltaFromDc = roll - 20, so in the next spot roll the 20 cancels out and it becomes amd opposed roll.
     
  7. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    258
    Likes Received:
    43
    That seems correct. I must have been having a bad streak that game. ¯\_(ツ)_/¯

    Thanks for humoring me :)
     
  8. anatoliy

    anatoliy Established Member

    Joined:
    Feb 18, 2017
    Messages:
    606
    Likes Received:
    167
    To be fair, I would rather have script possibility to disallow provoking hostility:
    Code:
        if (skillSys.SkillRoll(tgt, SkillEnum::skill_spot, 20 + deltaFromDc, nullptr, 1)) {
            pythonObjIntegration.ExecuteObjectScript(tgt, handle,  0, ObjScriptEvent::CaughtThief); // e.g. when Dala is stealing from you
            gotCaught = 1;
            aiSys.ProvokeHostility(handle, tgt, 1, 2);
        }
     
  9. hammyh

    hammyh Established Member

    Joined:
    Apr 24, 2013
    Messages:
    258
    Likes Received:
    43
    There was a popular mod for BG (infin engine) that allowed for you to talk your way out of getting caught depending on a conversation skill check.

    For example, if you had high enough bluff or diplomacy then you had a decent chance of avoiding aggro the first time you were spotted with that NPC.

    IWD2 vanilla goes auto-aggro on gettin caught, though.
     
    anatoliy likes this.
Our Host!