Lehcar Posted June 16, 2012 Share Posted June 16, 2012 Hi, I want to make my own script that will, quite simply, add some items to my inventory when I type it into the console. Nothing else. The items I want to add are custom ones that I made myself, not ones that ship with the game. However, every attempt so far has been a failure and I'm clueless as to how to write a working script. Can someone pretty please give me one that will do what I need it to do? :( Link to comment Share on other sites More sharing options...
Thandal Posted June 17, 2012 Share Posted June 17, 2012 Not sure how it works, but this mod adds to the inventory without even needing to invoke the console: Ancient Elven Boots Fix. (Now what it adds is a book. When "used", the book adds the item. I believe that's how the author got around the need for the console.) Hope that helps. :thumbsup: Link to comment Share on other sites More sharing options...
StevoSegalovic Posted June 20, 2012 Share Posted June 20, 2012 Hi, I want to make my own script that will, quite simply, add some items to my inventory when I type it into the console. Nothing else. The items I want to add are custom ones that I made myself, not ones that ship with the game. However, every attempt so far has been a failure and I'm clueless as to how to write a working script. Can someone pretty please give me one that will do what I need it to do? :( This should work: Create new script in your module. module and owner module should be your module name. I believe you have to set this script in module preferences after you create it.This is what script should contain. void main(){object oPC = GetHero(); // with this you are saying that player character will now be called oPC and that it is an objectCreateItemOnObject (R"replacethiswithnameofyouritem.uti", oPC); //here you say give this item to oPC. R stands for resource} Save script as replacethiswithsomename.nss (You will later type that name in console without .nss part) Link to comment Share on other sites More sharing options...
DraezenDirehand Posted September 29, 2019 Share Posted September 29, 2019 I've made a script but when I use it, despite it saying that a new item has been received, the custom item I'm trying to add just won't be there regardless. Link to comment Share on other sites More sharing options...
theskymoves Posted September 30, 2019 Share Posted September 30, 2019 Try the additem script from the toolset wiki. (It's foolproof, in my experience.) > Adding custom items to custom modules tutorial Link to comment Share on other sites More sharing options...
SerdnaOdraude Posted January 2, 2020 Share Posted January 2, 2020 Sorry I would like to create one where you don't add the weapons of the dlc at the start of the game to be prizes in some missions or sold ... that does not break the original plot of it ... Link to comment Share on other sites More sharing options...
Recommended Posts