Alangara_PRC8/_module/nss/test_perc.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

16 lines
359 B
Plaintext

void main() {
object oPC = GetLastPerceived();
if (GetIsPC(oPC)) {
int currHP = GetCurrentHitPoints(oPC);
int maxHP = GetMaxHitPoints(oPC);
if(currHP < maxHP) {
ActionCastSpellAtObject(SPELL_HEAL, oPC, METAMAGIC_ANY, 0, 0, PROJECTILE_PATH_TYPE_DEFAULT, TRUE);
SpeakString("There you go! Hope you feel better!", 5);
}
}
}