18 lines
477 B
Plaintext
18 lines
477 B
Plaintext
// "I am not skillful enough to set that trap."
|
|
int StartingConditional()
|
|
{
|
|
int nBase = GetLocalInt(OBJECT_SELF, "TRAP_BASE_NUMBER");
|
|
string sDC = Get2DAString("traps", "SetDC", nBase);
|
|
int nDC = StringToInt(sDC);
|
|
int nSkill = GetSkillRank(SKILL_SET_TRAP) + 20;
|
|
string sSkill = IntToString(nSkill);
|
|
|
|
if (nSkill < nDC)
|
|
{
|
|
SendMessageToPC(GetMaster(), "SetTrapDC: " + sDC + " Skill: " + sSkill);
|
|
return TRUE;
|
|
}
|
|
|
|
return FALSE;
|
|
}
|