Initial commit. Updated release archive.
This commit is contained in:
16
_module/nss/ro_pixie_talk.nss
Normal file
16
_module/nss/ro_pixie_talk.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
void main() {
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
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!", 5);
|
||||
} else {
|
||||
SpeakString("But, you don't need healing... I'm sorry. See me again when you need some healing.", 5);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user