PoA_PRC8/_module/nss/confusetrigger.nss

15 lines
479 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object oPC = GetEnteringObject();
if (GetIsDM(oPC) || !GetIsPC(oPC)){
return;
}
int save = GetWillSavingThrow(oPC);
int roll = d20(1);
if (save <= roll){
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ExtraordinaryEffect(EffectConfused()), oPC, 18.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, SupernaturalEffect(EffectConfused()), oPC, 18.0);
SendMessageToPC(oPC, "The mist in these caverns penetrates your mind, and voices begin to command your thoughts.");
}
}