NWNDS/nwnds_module/ps_tp_anchor.nss
Jaysyn904 de24f81734 Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
2021-07-12 21:24:46 -04:00

26 lines
678 B
Plaintext

/************************************
* Teleport Anchor *
* *
* Cost: 1 *
* Power Score: Wis +1 *
* *
*************************************/
#include "lib_psionic"
void main()
{
object oPC=OBJECT_SELF;
int nCost=1;
int nPowerScore=GetAbilityScore(oPC, ABILITY_WISDOM)+1;
location lLoc=GetLocation(oPC);
effect eVis=EffectVisualEffect(VFX_IMP_HEAD_FIRE);
if (!PowerCheck(oPC, nCost, nPowerScore, FEAT_PSIONIC_TELEPORT)) return;
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC);
SetTeleportAnchor(lLoc, oPC);
}