LoT_PRC8/_module/nss/hen_trcanset_sc.nss

18 lines
477 B
Plaintext
Raw Permalink Normal View History

2023-09-25 21:32:17 -04:00
// "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;
}