// Triggers "trap" when PC opens (unlocks) placeable - Virulent Poison + Ability Drain.
// Also applies soundfx & screen shake to 'try' and pass it off as having a "profound" effect

void main()
{
    object oPC = GetFirstPC();
    effect ePsn = EffectPoison(7);
    ApplyEffectToObject(DURATION_TYPE_PERMANENT, ePsn, oPC);

    object oTarget = GetObjectByTag("Rubble");
    effect eFx = EffectVisualEffect(1049);
    effect eFx2 = EffectVisualEffect(6002);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eFx, oTarget, 2.5);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eFx2, oTarget, 3.0);
}