PWE_PRC8/_module/nss/test_perc.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

16 lines
364 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("By the grace of God, you are now healed!", 5);
}
}
}