Initial upload
Initial upload
This commit is contained in:
37
_module/nss/cb_yield_attack.nss
Normal file
37
_module/nss/cb_yield_attack.nss
Normal file
@@ -0,0 +1,37 @@
|
||||
#include "nw_i0_generic"
|
||||
void main()
|
||||
{
|
||||
int fullHP=GetMaxHitPoints(OBJECT_SELF)*3;
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectHeal(fullHP),OBJECT_SELF);
|
||||
ActionSpeakString("This time, you die!!!");
|
||||
SetIsTemporaryEnemy(GetPCSpeaker());
|
||||
ActionAttack(GetPCSpeaker());
|
||||
DetermineCombatRound();
|
||||
|
||||
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
object oTarget;
|
||||
oTarget = OBJECT_SELF;
|
||||
effect eEffect;
|
||||
eEffect = EffectAbilityIncrease(ABILITY_CONSTITUTION, 100);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget, 60.0f);
|
||||
|
||||
oTarget = OBJECT_SELF;
|
||||
eEffect = EffectAbilityIncrease(ABILITY_STRENGTH, 100);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
|
||||
|
||||
oTarget = OBJECT_SELF;
|
||||
eEffect = EffectACIncrease(40);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
|
||||
|
||||
oTarget = oPC;
|
||||
eEffect = EffectStunned();
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 300.0f);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user