33 lines
666 B
Plaintext
33 lines
666 B
Plaintext
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 1.3
|
|
|
|
For download info, please visit:
|
|
http://www.lilacsoul.revility.com */
|
|
|
|
void main()
|
|
{
|
|
object oPC;
|
|
|
|
if (!GetIsPC(GetItemActivatedTarget())
|
|
){
|
|
|
|
SendMessageToPC(GetItemActivator(), "Improper use of item!");
|
|
return;}
|
|
|
|
oPC = GetItemActivator();
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAbilityIncrease(ABILITY_CONSTITUTION, 25), oTarget, 600.0f);
|
|
|
|
oTarget = oPC;
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAttackIncrease(10), oTarget, 300.0f);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE), oTarget);
|
|
|
|
|
|
}
|
|
|