Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
39
trunk/psionics/psi_power_spec.nss
Normal file
39
trunk/psionics/psi_power_spec.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Power Specialization spellscript
|
||||
//:: psi_power_spec
|
||||
//::///////////////////////////////////////////////
|
||||
/*
|
||||
Switches the feat Power Specialization on or off.
|
||||
When on, the creature gains a bonus to damage
|
||||
with ray and ranged touch attack powers equal
|
||||
to it's manifesting stat.
|
||||
When off, the bonus is 2.
|
||||
Using Power Specialization in the active way
|
||||
requires expending psionic focus during the
|
||||
power's manifestation.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Modified By: Ornedan
|
||||
//:: Modified On: 22.03.2005
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "prc_alterations"
|
||||
#include "prc_feat_const"
|
||||
#include "psi_inc_psifunc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
|
||||
// Can't activate too many feats
|
||||
if(!GetLocalInt(oPC, "PowerSpecializationActive") &&
|
||||
GetPsionicFocusUsingFeatsActive(oPC) >= GetPsionicFocusUsesPerExpenditure(oPC))
|
||||
{
|
||||
FloatingTextStringOnCreature(GetStringByStrRef(16826549/*You already have the maximum amount of psionic focus expending feats active.*/), oPC, FALSE);
|
||||
return;
|
||||
}
|
||||
|
||||
SetLocalInt(oPC, "PowerSpecializationActive", !GetLocalInt(oPC, "PowerSpecializationActive"));
|
||||
FloatingTextStringOnCreature(GetStringByStrRef(16826446) + " " + (GetLocalInt(oPC, "PowerSpecializationActive") ? GetStringByStrRef(63798/*Activated*/):GetStringByStrRef(63799/*Deactivated*/)), oPC, FALSE);
|
||||
}
|
Reference in New Issue
Block a user