AutoDC(int, int, object)

Determines whether a skill check succeeds.

int AutoDC(
    int nDC,
    int nSkill,
    object oTarget
);

Parameters

nDC

DC_*

nSkill

SKILL_*

oTarget

The creature rolling to determine success.


Description

Returns TRUE if oTarget succeeds a check based on nSkill for a crude difficulty category DC.



Remarks

As of patch 1.30, this function will work on non-creatures as well. It uses the hitdice of the caller in a division, but if that hitdice is 0 (as for non-creature), it just divides by 1 instead.

NOTE: The version of this function located in here is MUCH better than the version located in nw_i0_tool. This version can test for DCs superior through epic. It also has tests for charmed and dominated effects.


Known Bugs

Previously noted bug was fixed in version 1.59 / patch 1.60.


Requirements

#include "nw_i0_plot"

Version

1.61

See Also

functions: GetIsSkillSuccessful
categories: Talents/Skills/Feats Functions
constants: DC_* Constants | SKILL_* Constants


 author: Tom Cassiotis, editors: Lilac Soul, Mistress, additional contributor(s): Lilac Soul