PRC8/trunk/scripts/prc_ft_dmeta_emp.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

30 lines
935 B
Plaintext

//::///////////////////////////////////////////////
//:: Divine Metamagic: Empower
//:: prc_ft_dmeta_emp.nss
//:://////////////////////////////////////////////
//:: Applies Empower to next spell cast.
//:: Removes 3 turn undead uses
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
if(GetLocalInt(oPC, "DivineMeta") & METAMAGIC_EMPOWER)
{
FloatingTextStringOnCreature("Divine Metamagic is already active.", oPC, FALSE);
return;
}
if(!CheckTurnUndeadUses(oPC, 3))
{
FloatingTextStringOnCreature("You don't have enough daily uses of Turn Undead to use this ability.", oPC, FALSE);
return;
}
int nMeta = GetLocalInt(oPC, "DivineMeta");
nMeta |= METAMAGIC_EMPOWER;
SetLocalInt(oPC, "DivineMeta", nMeta);
FloatingTextStringOnCreature("Divine Metamagic (Empower) Activated", oPC, FALSE);
}