#include "mn_i_pwfunctions" void main() { int index = 1; string questId = GetMarkerString(OBJECT_SELF, ExchangeVar(EXCHANGE_QUEST_ID, index), FALSE); int visualEffect = GetLocalInt(OBJECT_SELF, ExchangeVar( EXCHANGE_VISUALEFFECT, index ) ); // Display visual effect if (visualEffect != 0) { effect vfx = EffectVisualEffect(visualEffect); ApplyEffectToObject( DURATION_TYPE_INSTANT, vfx, GetPCSpeaker()); } int questStatus = GetQuestStatus( GetPCSpeaker(), questId ); if ( questStatus == QUEST_UNKNOWN) { SetQuestStatus(GetPCSpeaker(), questId, QUEST_BEGUN); } }