PRC8_fork/nwn/trunk/scripts/prc_spldnc_ext.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

37 lines
972 B
Plaintext

//::///////////////////////////////////////////////
//:: Select Extend Spell
//:: prc_spldnc_ext.nss
//::///////////////////////////////////////////////
/*
Used to select which metamagics to spelldance
*/
//:://////////////////////////////////////////////
//:: Created By: Stratovarius
//:: Created On: 27.2.2006
//:://////////////////////////////////////////////
void main()
{
object oPC = OBJECT_SELF;
string sMsg;
if (!GetHasFeat(FEAT_EXTEND_SPELL, oPC))
{
FloatingTextStringOnCreature("You don't have Extend Spell, canceling", oPC, FALSE);
return;
}
int nDance = GetLocalInt(oPC, "SpelldanceExtend");
if (nDance)
{
DeleteLocalInt(oPC, "SpelldanceExtend");
sMsg = "Spelldance Extend turned off";
}
else
{
SetLocalInt(oPC, "SpelldanceExtend", TRUE);
sMsg = "Spelldance Extend turned on";
}
FloatingTextStringOnCreature(sMsg, oPC, FALSE);
}