skaybestrog Posted January 25, 2019 Share Posted January 25, 2019 I have a very simple beginner question, I know how to add abilities via Perks, how to make entry points, but I have absolutely no idea how to add an item via a Perk. would it be best via a script attached to the Perk, or is there another way? In short: Can someone please help me write a very basic script that puts an item in the player's inventory when he acquires a Perk. Link to comment Share on other sites More sharing options...
masternoxx Posted January 26, 2019 Share Posted January 26, 2019 (edited) There is a script area under "Perk" tab, but it doesn't fire unfortunately, also the script attached to spell, or magic effect do not fire either.Put it on a quest / the quest that starts the spell, spell starts the magic effect, magic effect starts the perk.But the script needs to be put on the quest to fire. first make the perk, then make the magic effect that starts the perk, then make the spell that starts the magic effect and attach them, then make a new quest that starts the spell, select quest stage 0 and add a log entry or the script wont work, then under papyrus fragment add, Game.GetPlayer().AddSpell(aaTEST_MySpellName, abVerbose = false) ;replace aaTEST_MySpellName with your spell nameDebug.Notification("(spellname quest begin.") ;comment this out later ;give 50 gold to playerGame.GetPlayer().AddItem(Gold001, 50, false) ;false will show a message on screen "recieved 50 gold" spells and objects have to be defined with the right click > properties on the script. There are many settings, if you have a problem look up the name of the tab on creationkit.com or google.For instance you're going to want to not set the magic effect as constant and many other things. -----------------------------But if the perk already exists I'm not sure how to do it, like I said the script on the perk tab doesn't fire (to my knowledge), which limits you greatly, and is the reason for the annoying workaround I used above recently with a custom perk. Edited January 26, 2019 by masternoxx Link to comment Share on other sites More sharing options...
Recommended Posts