15 lines
479 B
Plaintext
15 lines
479 B
Plaintext
|
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.");
|
||
|
}
|
||
|
}
|