Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
//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);
}
}