WoR_PRC8/_module/nss/s_checkforhjnote.nss

31 lines
904 B
Plaintext
Raw Normal View History

2025-04-03 11:49:34 -04:00
//::///////////////////////////////////////////////
//:: FileName s_checkforhjnote
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 12/17/2004 1:18:18 PM
//:://////////////////////////////////////////////
#include "nw_i0_tool"
#include "x0_i0_campaign"
int StartingConditional()
{
// Make sure the PC speaker has these items in their inventory
if(HasItem(GetPCSpeaker(), "SHA_MARIN_NOTE_HJALMAR"))
{
//Must have been given and done Marin's quest.
if(GetCampaignDBInt(GetPCSpeaker(), "sha_marin_q1") == 100 && GetCampaignDBInt(GetPCSpeaker(), "sha_marin_q2") == 100 && GetCampaignDBInt(GetPCSpeaker(), "sha_hjalmar_q1") == 0)
{
return TRUE;
}
else
{
return FALSE;
}
}
else
{
return FALSE;
}
}