Scriptname mkBloodSprayChanceScript extends activemagiceffect  

ImpactDataSet Property BloodSprayImpactSetRed  Auto  
ImpactDataSet Property BloodSpraySmall Auto

actor target

int random
int random02
int bleed = 0

Event OnEffectStart(Actor akTarget, Actor akCaster)
	target = akTarget
	random = Utility.RandomInt(0, 10)
	random02 = Utility.RandomInt(0,10)
	target.PlayImpactEffect(BloodSprayImpactSetRed, "", 0, -20, 2, 512, true, false)
	if random >= 5
		target.PlayImpactEffect(BloodSpraySmall, "", 0, 0, -1, 256, true, true)
	endif

	if random02 >= 8
		while bleed < 10
			Utility.wait(1)
			target.PlayImpactEffect(bloodSpraySmall, "", 0, 0, -1, 512, true, false)
			bleed += 1
		endWhile
	endif
endevent




