Scriptname mkAxeBleedPerk extends activemagiceffect  

ImpactDataSet Property puddleofBlood auto
;Perk Property DevBlow

actor target

int bleedCounter = 0
int bleedRandom

EVENT onEffectStart(actor akTarget, actor akCaster)
	target = akTarget
	while bleedCounter < 10
		target.PlayImpactEffect(puddleofBlood, "NPC COM [COM]", 0, 0, -1, 256, true, true)
		;bleedRandom = Utility.RandomInt(0, 10)
		bleedCounter += 1
		utility.wait(1)
	endWhile

;	if target.isInKillMove() && Game.getPlayer().HasPerk(DevBlow) && caster.GetEquippedItemType(0) == 6
;	while bleedCounter < 10
;		target.PlayImpactEffect(puddleofBlood, "NPC Head [Head]", 0, 0, -1, 256, false, true)
;		;bleedRandom = Utility.RandomInt(0, 10)
;		bleedCounter += 1
;		utility.wait(1)
;	endWhile
;	endif
endEvent