Begin ScriptEffectStart KillActorEnd
Begin ScriptEffectStart KillActorEnd
Begin ScriptEffectStart KillActor playerEnd
Begin ScriptEffectStart KillActorEnd
scn PhalanxFoesSMBerserkerUnarmedSCRIPTref TargetBEGIN ScriptEffectStartset PhalanxFoesReworkedMisc.BerserkerHitCount to PhalanxFoesReworkedMisc.BerserkerHitCount + 1if PhalanxFoesReworkedMisc.BerserkerHitCount > 2 set PhalanxFoesReworkedMisc.BerserkerHitCount to 0 set Target to GetSelf if target == player target.addscriptpackage PhalanxFoesReworkedPlayerFallDown set PhalanxFoesReworkedMisc.PlayerFallDown to 1 imod PhalanxFoesReworkedMQ08FadeInFromWhiteISFX playsound AMBRDunwichVoice elseif target.getiscreaturetype 4 != 1 target.pushactoraway target -1 Target.scaonactor target.stopcombat endifendifEND
ScriptName PhalanxFoesSMBerserkerUnarmedSCRIPTref rSelffloat fFatigueBegin ScriptEffectStart set PhalanxFoesReworkedMisc.BerserkerHitCount to PhalanxFoesReworkedMisc.BerserkerHitCount + 1 if PhalanxFoesReworkedMisc.BerserkerHitCount > 2 set PhalanxFoesReworkedMisc.BerserkerHitCount to 0 if GetIsReference player ; This is more reliable than using "if GetSelf == player", and doesn't require use of GetSelf AddScriptPackage PhalanxFoesReworkedPlayerFallDown set PhalanxFoesReworkedMisc.PlayerFallDown to 1 ApplyImageSpaceModifier PhalanxFoesReworkedMQ08FadeInFromWhiteISFX PlaySound AMBRDunwichVoice elseif GetIsCreatureType 4 == 0 set rSelf to GetSelf if rSelf PushActorAway rSelf -1 else ; if rSelf == 0 set fFatigue to GetActorValue Fatigue DamageActorValue Fatigue fFatigue endif StopCombatAlarmOnActor StopCombat endif endifEnd