Initial Commit
Initial Commit
This commit is contained in:
14
_module/nss/initiative_check.nss
Normal file
14
_module/nss/initiative_check.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
int nBonus = 0;
|
||||
if (GetHasFeat(FEAT_BLOODED, oPC)) nBonus = nBonus + 2;
|
||||
if (GetHasFeat(FEAT_THUG, oPC)) nBonus = nBonus + 2;
|
||||
if (GetHasFeat(FEAT_IMPROVED_INITIATIVE, oPC)) nBonus = nBonus + 4;
|
||||
if (GetHasFeat(FEAT_EPIC_SUPERIOR_INITIATIVE, oPC)) nBonus = nBonus + 4;
|
||||
|
||||
int nDC = 12;
|
||||
if (d20() + nBonus >= 12) return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user