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

20 lines
730 B
Plaintext

// rts_blood
void main()
{
object oPC=GetItemActivator();
int nBlood;
if (GetLocalInt(oPC,"nIsVampire")==TRUE)
{ // PC is a vampire
nBlood=GetLocalInt(oPC,"nBloodPool");
nBlood=nBlood+50;
SendMessageToPC(oPC,"The blood courses into your body and is invigorating giving you 50 blood points and bringing your current pool to "+IntToString(nBlood)+".");
SetLocalInt(oPC,"nBloodPool",50);
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY1,1.0,3.0));
} // PC is a vampire
else
{
SendMessageToPC(oPC,"You taste the blood and do not understand the attraction. You end up choking on some of it.");
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_LOOPING_SPASM,1.0,5.0));
}
}