Ancordia_PRC8/_module/nss/initiative_check.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

15 lines
430 B
Plaintext

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