Ancordia_PRC8/_module/nss/initiative_check.nss

15 lines
430 B
Plaintext
Raw Normal View History

2023-09-21 19:51:32 -04:00
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;
}