godofbreadsticks Posted November 26, 2010 Share Posted November 26, 2010 I've been dabbling with the GECK for a while now, and Ive decided I would like to make a mod. The mod I want to make will give you special weapons as rewards, and I would like to make a special axe that whenever you kill someone with it, it spawns a head in their inventory. Ive already made the head an item, but I still need a script to make killing someone with it spawn a head. The current script I have is something like this: scn HeadHunterScript Begin OnDeathAddItem Head 1End And then from that script, I've made a spell. I'm not sure if that's even close to what I need. I could probably figure it out eventually, but when it doesn't work, Ill have no idea what the problem is, or if it's even possible. Any help would be greatly appreciated, thanks! Link to comment Share on other sites More sharing options...
godofbreadsticks Posted November 30, 2010 Author Share Posted November 30, 2010 (edited) I have figured out the problem. The new script is something along the lines scn HeadHunterScript Ref HeadHunterT Begin OnHit Set HeadHunterT to GetOwnerLastTarget HeadHunterT.GetItemCount HeadHuntedMale If HeadHunterT.GetItemCount HeadHuntedMale == 0 HeadHunterT.AddItem HeadHuntedMale 1 EndifEnd And then I put the script right on the weapon. Edited November 30, 2010 by godofbreadsticks Link to comment Share on other sites More sharing options...
Recommended Posts