SykelShiner Posted August 4, 2010 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?
pkleiss Posted August 5, 2010 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
SykelShiner Posted August 5, 2010 Author 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:
Quetzlsacatanango Posted August 5, 2010 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...
Recommended Posts