i395 Posted August 1, 2013 Share Posted August 1, 2013 (edited) I would like a script that would add a soulgem if you get a critical hit using something like sparks. Instead of disentegrate it would just add the soulgem to your inventory or even the corpse. I have been looking through several scripts and have tried adding them to the magic effect but nothing seems to work. For example I added this script to the PerkDisintegrateConcAimed but it does not add the anything. Scriptname _Soul_Gem_test extends ObjectReference {Testing Soul gem give.}SoulGem Property SoulGemGrand autoFunction OnActivate(ObjectReference akActionRef)Game.GetPlayer().AddItem(SoulGemGrand, 2, false)endfunction Edited August 1, 2013 by i395 Link to comment Share on other sites More sharing options...
SeraphimKensai Posted August 3, 2013 Share Posted August 3, 2013 For your example script you have the game call a GetPlayer. Why not try changing it to remove game and get player and adding player.additem.... That should allow you to get the actual soul gem. However, once you get your script working I would suggest using conditional statements to control which soulgem you would get based off of what target it you hit. As a chicken or a rabbit would produce a petty soul gem and a human NPC would produce a black soulgem. Link to comment Share on other sites More sharing options...
Recommended Posts