RoT2_PRC8/_module/nss/cb_yield_attack.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

38 lines
898 B
Plaintext

#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);
}