SykelShiner Posted August 4, 2010 Share Posted August 4, 2010 I'm relatively new at modding, scripting especially. I'm trying to create a container with a set inventory that can be replenished manually by the player by use of an activator. Unfortunately, I was not able to find a script that does this, nor was I able to learn how to make one. :wallbash: Anyone care to give me some scripting advice? Link to comment Share on other sites More sharing options...
pkleiss Posted August 5, 2010 Share Posted August 5, 2010 Give your container an Editor ID, for example "MyContainer". The use this command in a script: MyContainer.additem [item] [Number of items to add] like this: MyContainer.additem Pencil 5 That would add 5 pencils to your container Link to comment Share on other sites More sharing options...
SykelShiner Posted August 5, 2010 Author Share Posted August 5, 2010 Give your container an Editor ID, for example "MyContainer". The use this command in a script: MyContainer.additem [item] [Number of items to add] like this: MyContainer.additem Pencil 5 That would add 5 pencils to your container Wow, it would be that easy, wouldn't it? Thanks for the help. :thumbsup: Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted August 5, 2010 Share Posted August 5, 2010 Make sure you have a way of stopping the script, or else it will add 5 pencils to your container continuously... Link to comment Share on other sites More sharing options...
Recommended Posts