@timed_effect = EF_HITDARK; // set a PC variable with the effect to use
addtimer(500, strnpcinfo(NPC_NAME) + "::OnTimedEffect"); // set the trigger to 500ms in the future
end; // terminate execution
OnTimedEffect:
specialeffect(@timed_effect, AREA, playerattached()); // show the effect to everyone in the area, centered on the attached player
end;