Scripting an item for Magic Effect

Post » Sat Nov 17, 2012 8:49 am

Hi guys,

Need your help again

I would like to script a MiscItem in order for the player to get the following Magic Effect AbResistFrost only when this item is in inventory...

What should I use as blocktype? not OnEquip / UnEquip Item? so which one should I use.

Thanks for your help
User avatar
barbara belmonte
 
Posts: 3528
Joined: Fri Apr 06, 2007 6:12 pm

Post » Sat Nov 17, 2012 11:13 am

Look through all the events:
http://www.creationkit.com/Category:Events

You will find onItemAdded and onItemRemoved
User avatar
Alister Scott
 
Posts: 3441
Joined: Sun Jul 29, 2007 2:56 am

Post » Sat Nov 17, 2012 5:55 am

thanks WillieSea,

Glad you're still around for Skyrim as you were one of the most helpful for Oblivion

thanks again
User avatar
BlackaneseB
 
Posts: 3431
Joined: Sat Sep 23, 2006 1:21 am

Post » Sat Nov 17, 2012 8:03 pm

Ok I did not understand much: first thing first. here is how it goes.

The player kills a creature. In this creature's inventory there is a MiscItem (I called it MATorque). when the players takes this MiscItem he gets a 70% resist Frost magic effect. but when this MiscItem is taken out of the player's inventory this Magic Effect disapear...

My question becomes: how do I do go about doing this?

should I use onItemadded and then what is the akSourceContainer? also what is the function that will add the Magic Effect is it the Active MagicAffect but then on the onItemremoved what I don't even find a function called Desactive MagicEffect...

In short I need your help...
User avatar
Katey Meyer
 
Posts: 3464
Joined: Sat Dec 30, 2006 10:14 pm

Post » Sat Nov 17, 2012 10:02 am

need help
User avatar
Siidney
 
Posts: 3378
Joined: Fri Mar 23, 2007 11:54 pm


Return to V - Skyrim