PRC8/trunk/scripts/tmp_blooded_cry.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

25 lines
1.0 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name Blooded One War Cry script
//:: FileName tmp_blooded_cry
//::
//:://////////////////////////////////////////////
#include "prc_inc_template"
void main()
{
location lTarget = GetLocation(OBJECT_SELF);
// Declare the spell shape, size and the location. Capture the first target object in the shape.
// Cycle through the targets within the spell shape until an invalid object is captured.
object oTarget = MyFirstObjectInShape(SHAPE_SPHERE, FeetToMeters(30.0), lTarget, FALSE, OBJECT_TYPE_CREATURE);
while (GetIsObjectValid(oTarget))
{
if (GetHasTemplate(TEMPLATE_BLOODED_ONE, oTarget))
{
effect eLink = EffectLinkEffects(EffectDamageIncrease(DAMAGE_BONUS_1), EffectAttackIncrease(1));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, ExtraordinaryEffect(eLink), oTarget, RoundsToSeconds(d4(2)));
}
oTarget = MyNextObjectInShape(SHAPE_SPHERE, FeetToMeters(30.0), lTarget, FALSE, OBJECT_TYPE_CREATURE);
}
}