Added henchman rental
Many areas, items, and creatures were adjusted for balance and aesthetics.
This commit is contained in:
17
_module/nss/hen_trcanset_sc.nss
Normal file
17
_module/nss/hen_trcanset_sc.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
// "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;
|
||||
}
|
Reference in New Issue
Block a user