// 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)); } }