
This is simply just another event using the same property to remove the spell when the player unequipped it. Game.GetPlayer().AddSpell(Blizzard, true) It is important you extend it by ObjectReference in the Scriptname or else this will not compile properly saying it is "not a valid or non existent function". This is our ObjectReference.OnEquipped event. If not you will get an "Undefined variable" error. In order to use things like AddSpell and AddItem, you have to make a property for them in your script. This is the scriptname Scriptname tutGlovesofBlizzardScript extends ObjectReference Now we can simply just write out our script and save it. You will be greeted with a dialogue box.īecause it's an item, it must extend ObjectReference because OnEquipped is an ObjectReference Script. From Gameplay at the top select Papyrus Script Manager, right click on a script and select New. Now that the easy part is done, we will move on to the much more difficult part. The fields I edited are highlighted in red. Let's say our gloves are Elven Gauntlets of Thalmor origin just for fun. What I am going to do first is make our gloves.



This tutorial will go step-by-step to adding a simple script to an item- gloves that grant you the Blizzard spell while wearing them.įirst, load up skyrim in the CK. A lot of those people are running into errors because they don't understand exactly how Papyrus works with items. So there are a lot of people trying to do new and interesting things with papyrus scripts and items.
