Knockdown
Zephirius
Member Posts: 411
How do you remove EffectKnockdown() DURATION_TYPE_PERMANENT
Since it doesn't use EFFECT_TYPE, I can't use GetEffectType()
I know it's probably simple, but I'm at a loss.
Since it doesn't use EFFECT_TYPE, I can't use GetEffectType()
I know it's probably simple, but I'm at a loss.
object oPC = GetLastPerceived(); if (!GetIsPC(oPC)) return; if (!GetLastPerceptionSeen()) return; int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF)); if (DoOnce==TRUE) return; SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE); object oTarget; oTarget = OBJECT_SELF; /////////////////////////////// effect eEffect; eEffect = EffectKnockdown(); while (GetIsEffectValid(eEffect)) { if (GetEffectType(eEffect)==FEAT_KNOCKDOWN)RemoveEffect(oTarget, eEffect); eEffect = GetNextEffect(oTarget); string sSound = "c_dog_atk1"; DelayCommand(0.5, AssignCommand(oPC, PlaySound(sSound))); } AdjustReputation(oPC, oTarget, -100); SetIsTemporaryEnemy(oPC, oTarget); ActionAttack(oPC); DetermineCombatRound(oPC); }
0
Comments
And to remove it: