Alangara_PRC8/_module/nss/conv_q_begin01.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

24 lines
638 B
Plaintext

#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);
}
}