Aantioch_Infernum/_module/nss/hen_trcanset_sc.nss
EpicValor 07f4ebed49 Added henchman rental
Many areas, items, and creatures were adjusted for balance and aesthetics.
2023-08-24 15:20:50 -05:00

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;
}