Aschbourne_PRC8/_module/nss/ww_inc_on_acq.nss

26 lines
792 B
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
void WWTool(object oPC)
{
object oItem=GetModuleItemAcquired();
string sTag=GetTag(oItem);
if(sTag=="controlshapetool")
{
int iCurse = GetLocalInt(oPC,"AFF_WEREWOLF");
if(iCurse == FALSE)
{
//SendMessageToPC(oPC,"DEBUG: I am cursed.");
SetCampaignInt("WWData","AFF_WEREWOLF",1,oPC);
SetLocalInt(oPC,"AFF_WEREWOLF",1);
SetCampaignInt("WWData","WOLF_PERM",0,oPC);
SetLocalInt(oPC,"WOLF_PERM",0);
//SetCampaignInt("WWData","WOLF_DAYS",0,oPC);
//SetLocalInt(oPC,"WOLF_DAYS",0);
SetCampaignInt("WWData","WWTOOL",1,oPC);
SetLocalInt(oPC,"WWTOOL",1);
}
if(!(GetIsPC(oPC)))
{
DestroyObject(oItem);
}
}
}