Jump to content

Need Help With Small Scripting Question


SykelShiner

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...