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.
That's just the initialization value, after the roll it gets updated with the difference from the DC.
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)
Yeah, deltaFromDc = roll - 20, so in the next spot roll the 20 cancels out and it becomes amd opposed roll.
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); }
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.