Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
17
trunk/scripts/prc_zoa.nss
Normal file
17
trunk/scripts/prc_zoa.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "inc_newspellbook"
|
||||
#include "prc_inc_core"
|
||||
|
||||
void main()
|
||||
{
|
||||
if (!GetHasFeat(FEAT_TURN_UNDEAD, OBJECT_SELF))
|
||||
{
|
||||
SpeakStringByStrRef(40550);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF, "UsingZoneOfAnimation", TRUE);
|
||||
ActionCastSpell(SPELLABILITY_TURN_UNDEAD);
|
||||
DecrementRemainingFeatUses(OBJECT_SELF, FEAT_TURN_UNDEAD);
|
||||
DelayCommand(3.0, DeleteLocalInt(OBJECT_SELF, "UsingZoneOfAnimation"));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user