PRC8/nwn/trunk/scripts/prc_lgdr_unmove.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

33 lines
838 B
Plaintext

//Unmovable
//prc_lgdr_unmove
//
/*
Causes the PC to become near immobile and
grants a 20+ Bonus to Discipline Checks.
*/
//
//
#include "prc_effect_inc"
void main()
{
object oPC = OBJECT_SELF;
if(!GetHasSpellEffect(SPELL_UNMOVABLE, oPC))
{
//Define Properties
effect eLink = EffectSkillIncrease(SKILL_DISCIPLINE, 20);
eLink = EffectLinkEffects(eLink, EffectMovementSpeedDecrease(99));
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oPC);
IncrementRemainingFeatUses(oPC, FEAT_UNMOVABLE_1);
FloatingTextStringOnCreature("Unmovable Activated", oPC, FALSE);
}
else
{
// The code to cancel the effects
PRCRemoveSpellEffects(SPELL_UNMOVABLE, oPC, oPC);
FloatingTextStringOnCreature("Unmovable Deactivated", oPC, FALSE);
}
}