Jump to content

Hello! OnHit +notification doesnt work at all


defvxtr

Recommended Posts

Hello all!

This is my script

Scriptname GiveShard extends activemagiceffect  

SPELL Property SpellToCheck  Auto  
SPELL Property TestCast  Auto  
MiscObject Property PianShard  Auto  
Message Property MPSN_AddPainShard  Auto  


Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
  	Debug.Notification("2")
	 if(akSource as Spell) 
		if(akSource == TestCast)
  	 		;SpellToCheck.Cast(Game.GetPlayer(), Game.GetPlayer()) 	
			If(Game.GetPlayer().GetItemCount(PianShard) < 5 )
				Game.GetPlayer().AddItem(PianShard, 1)
				Debug.Notification("1")
				Debug.Notification("some notification")
				MPSN_AddPainShard.Show()
			endif		
		endif
	;Debug.Notification("You don't have the items required to cast this spell")	
   endif
EndEvent 

and it woks fine,with only one exetion... notifications doesnt wor at all. How u can see i have a different method used for notifications in my scprt. And not a sigle one doesnt work. Any ideas? Thx for u ur help

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...