forked from Jaysyn/PRC8
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.
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Noble
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Inspire Greatness - +2d6 temp hp, +2 saves and +2 to attack for allies for 5 rounds.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Stratovarius
|
|
//:://////////////////////////////////////////////
|
|
#include "prc_alterations"
|
|
void main()
|
|
{
|
|
|
|
if (PRCGetHasEffect(EFFECT_TYPE_SILENCE, OBJECT_SELF))
|
|
{
|
|
FloatingTextStrRefOnCreature(85764,OBJECT_SELF); // not useable when silenced
|
|
return;
|
|
}
|
|
|
|
effect eAttack = EffectAttackIncrease(2);
|
|
effect eHP = EffectTemporaryHitpoints(d6(2));
|
|
effect eSaveFort = EffectSavingThrowIncrease(SAVING_THROW_ALL, 2, SAVING_THROW_TYPE_ALL);
|
|
|
|
effect eLink = EffectLinkEffects(eAttack, eHP);
|
|
eLink = EffectLinkEffects(eLink, eSaveFort);
|
|
|
|
effect eVis = EffectVisualEffect(VFX_IMP_MAGBLUE, FALSE);
|
|
|
|
object oTarget = GetFirstObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_COLOSSAL, GetLocation(OBJECT_SELF));
|
|
|
|
while(GetIsObjectValid(oTarget) )
|
|
{
|
|
// Does not gain benefit if silenced or deaf
|
|
if (!PRCGetHasEffect(EFFECT_TYPE_SILENCE, oTarget) && !PRCGetHasEffect(EFFECT_TYPE_DEAF, oTarget))
|
|
{
|
|
if(GetIsFriend(oTarget) )
|
|
{
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, RoundsToSeconds(5));
|
|
}
|
|
}
|
|
oTarget = GetNextObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_COLOSSAL, GetLocation(OBJECT_SELF));
|
|
}
|
|
} |