HoS_PRC8/_mod/_module/nss/rts_vampire.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

17 lines
444 B
Plaintext

void main()
{
object oPC=GetItemActivator();
object oTarget=GetItemActivatedTarget();
SetLocalObject(oPC,"oTarget",oTarget);
if (GetLocalInt(oPC,"nIsVampire")==TRUE)
{ // use it
AssignCommand(oPC,ClearAllActions(TRUE));
AssignCommand(oPC,ActionStartConversation(oPC,"vamp_tool",TRUE,FALSE));
} // use it
else
{
SendMessageToPC(oPC,"You are not a vampire!");
DestroyObject(GetItemActivated());
}
}