defvxtr Posted April 20, 2019 Share Posted April 20, 2019 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 More sharing options...
Recommended Posts