EN6_PRC8/_module/nss/qst_quickstep.nss
Jaysyn904 a6f6db7303 Initial commit
Initial commit.  Updated release archive.
2024-06-13 15:08:33 -04:00

22 lines
440 B
Plaintext

#include "nw_i0_tool"
void main()
{
object oPC;
string sQuestCode;
string sTag;
oPC=GetPCSpeaker();
sTag=GetLocalString(oPC,"QuestItem");
sQuestCode=GetLocalString(oPC,"QuestScript");
if (GetLocalInt(oPC,"QuestHideItem") == 1 && HasItem(oPC,sTag))
{
object oItemToTake = GetItemPossessedBy(oPC, sTag);
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
}
ExecuteScript(sQuestCode,OBJECT_SELF);
}