PRC8_fork/nwn/nwnprc/trunk/scripts/poison_2d6_str.nss

25 lines
679 B
Plaintext
Raw Permalink Normal View History

//:://////////////////////////////////////////////
//:: Poison: 2d6 Strength damage
//:: poison_2d6_str
//:://////////////////////////////////////////////
/** @file
This is one of the scripts that implement causing
poison ability damage using the ApplyAbilityDamage()
wrapper.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 01.08.2005
//:://////////////////////////////////////////////
#include "inc_abil_damage"
void main()
{
object oTarget = OBJECT_SELF;
int nDamage = d6(2);
int nAbility = ABILITY_STRENGTH;
ApplyAbilityDamage(oTarget, nAbility, nDamage, DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
}