CheckDCStr(int, int, object)
Do a DC check and modify the skill by the target's Strength modifier.
int CheckDCStr( int DC, int nSkill, object oTarget );
Parameters
DC
Can be set to 0 through 5.
nSkill
SKILL_* constant.
oTarget
The object that we will be checking the DC for.
Description
Do a DC check and modify the skill by oTarget's Strength modifier.
Returns TRUE if oTarget passes the skill check. Otherwise, returns FALSE.
Requirements
#include "nw_i0_plot"
Version
???
Example
// Lets' make a strength check to maybe seem bigger during an intimadation. #include "nw_i0_plot" void main() { int nCheck = CheckDCStr(5, SKILL_INTIMIDATE, OBJECT_SELF); switch(nCheck) { case 0://Do stuff here based on the check failing. break; case 1://Do stuff here based on the check passing. break; default://In case something funky happens. break; } }
See Also
functions: | GetAbilityModifier |
constants: | SKILL_* |
categories: | Talents/Skills/Feats Functions |
author: Baragg, editor: Mistress