Added PnP Dire Rat.
Added PnP Dire Rat.
This commit is contained in:
32
nwn_dark_sun/ps_ectoform.nss
Normal file
32
nwn_dark_sun/ps_ectoform.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
/************************************
|
||||
* Ectoplasmic Form *
|
||||
* *
|
||||
* Cost: 18 *
|
||||
* Power Score: Con -4 *
|
||||
* *
|
||||
*************************************/
|
||||
|
||||
#include "lib_psionic"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC=OBJECT_SELF;
|
||||
int nCost=18;
|
||||
int nPowerScore=GetAbilityScore(oPC, ABILITY_CONSTITUTION)-4;
|
||||
effect eVis=EffectVisualEffect(VFX_DUR_GHOST_SMOKE);
|
||||
effect eLink=EffectCutsceneGhost();
|
||||
eLink=EffectLinkEffects(eLink, EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE));
|
||||
eLink=EffectLinkEffects(eLink, EffectEthereal());
|
||||
eLink=EffectLinkEffects(eLink, eVis);
|
||||
eLink=ExtraordinaryEffect(eLink);
|
||||
int nLevel=GetEffectivePsionicLevel(oPC, FEAT_PSIONIC_ECTOPLASMIC_FORM);
|
||||
|
||||
if (!PowerCheck(oPC, nCost, nPowerScore, FEAT_PSIONIC_ECTOPLASMIC_FORM)) return;
|
||||
|
||||
SignalEvent(oPC, EventSpellCastAt(oPC, SPELL_PSIONIC_ECTOPLASMIC_FORM, FALSE));
|
||||
|
||||
int nDuration=GetEnhancedDuration(nLevel+5);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, RoundsToSeconds(nDuration));
|
||||
}
|
||||
|
Reference in New Issue
Block a user