HoS_PRC8/_mod/_module/nss/rts_vampire.nss

17 lines
444 B
Plaintext
Raw Permalink Normal View History

2024-11-25 19:36:07 -05:00
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());
}
}