mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 04:57:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
37
trunk/scripts/prc_spldnc_emp.nss
Normal file
37
trunk/scripts/prc_spldnc_emp.nss
Normal file
@@ -0,0 +1,37 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Select Empower 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_EMPOWER_SPELL, oPC))
|
||||
{
|
||||
FloatingTextStringOnCreature("You don't have Empower Spell, canceling", oPC, FALSE);
|
||||
return;
|
||||
}
|
||||
|
||||
int nDance = GetLocalInt(oPC, "SpelldanceEmpower");
|
||||
|
||||
if (nDance)
|
||||
{
|
||||
DeleteLocalInt(oPC, "SpelldanceEmpower");
|
||||
sMsg = "Spelldance Empower turned off";
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalInt(oPC, "SpelldanceEmpower", TRUE);
|
||||
sMsg = "Spelldance Empower turned on";
|
||||
}
|
||||
|
||||
FloatingTextStringOnCreature(sMsg, oPC, FALSE);
|
||||
}
|
||||
Reference in New Issue
Block a user