HiddenTradition_PRC8/_module/nss/ro_pixie_talk.nss
Jaysyn904 ea2dde8d5a PRC8 content update
PRC8 content update.  Full compile.  Updated release archive.
2024-12-27 00:46:22 -05:00

17 lines
475 B
Plaintext

void main() {
object oPC = GetPCSpeaker();
if (GetIsPC(oPC)) {
int currHP = GetCurrentHitPoints(oPC);
int maxHP = GetMaxHitPoints(oPC);
if(currHP < maxHP) {
ActionCastSpellAtObject(SPELL_GREATER_RESTORATION, oPC, METAMAGIC_ANY, TRUE, 0, PROJECTILE_PATH_TYPE_DEFAULT, TRUE);
SpeakString("There you go!", 5);
} else {
SpeakString("But, you don't need healing... I'm sorry. See me again when you need some healing.", 5);
}
}
}