Jump to content

Anyway to execute multiple player.additem codes on a single line?


ReMeDy

Recommended Posts

Posted

I hate doing this one item at a time. Is there any trick so I can create multiple item codes on a single line, maybe spacing them out with commas, or quotes?

Posted

I hate doing this one item at a time. Is there any trick so I can create multiple item codes on a single line, maybe spacing them out with commas, or quotes?

 

If you're adding the same items often enough that this is an issue, have you looked at using a bat file?

Posted

 

I hate doing this one item at a time. Is there any trick so I can create multiple item codes on a single line, maybe spacing them out with commas, or quotes?

 

If you're adding the same items often enough that this is an issue, have you looked at using a bat file?

 

 

No, I never knew you could do that. I'll look into it.

Posted

 

 

I hate doing this one item at a time. Is there any trick so I can create multiple item codes on a single line, maybe spacing them out with commas, or quotes?

 

If you're adding the same items often enough that this is an issue, have you looked at using a bat file?

 

 

No, I never knew you could do that. I'll look into it.

 

 

I was just going to suggest the batch file approach too.  This is pretty simple:

  1. Create a text file in your game ../installpath/Skyrim folder (not ../installpath/Skyrim/Data) - this goes where the TESV.exe is
  2. Edit with text editor, add your player.additem commands
    1. you can delimit/comment with a ;  i.e. player.additem 05003035 163 ; Iron Fittings
  3. Save file in current location
  4. In game, call console and execute: bat yourfilename  (no extension needed)

I attached an example file for building materials for hearthfire, for reference  this example, in console would be: bat materials

materials.txt

Posted

 

 

 

I hate doing this one item at a time. Is there any trick so I can create multiple item codes on a single line, maybe spacing them out with commas, or quotes?

 

If you're adding the same items often enough that this is an issue, have you looked at using a bat file?

 

 

No, I never knew you could do that. I'll look into it.

 

 

I was just going to suggest the batch file approach too.  This is pretty simple:

  1. Create a text file in your game ../installpath/Skyrim folder (not ../installpath/Skyrim/Data) - this goes where the TESV.exe is
  2. Edit with text editor, add your player.additem commands
    1. you can delimit/comment with a ;  i.e. player.additem 05003035 163 ; Iron Fittings
  3. Save file in current location
  4. In game, call console and execute: bat yourfilename  (no extension needed)

I attached an example file for building materials for hearthfire, for reference  this example, in console would be: bat materials

 

 

That is immensely helpful. Thank you!

 

Posted

side note

 

if you make and use a batch file something to remember is that if any item referenced by the batch file changes position in load order you will have to edit the batch file so that

the adjusted load order is referenced correctly.

 

example :

 

  your batch files adds a item from mod 27, you add a new mod (or remove one) and the item from mod 27 (which you still want) has the mod it comes from change to position 28

  you will have to edit the batch file so that is knows the item is now in mod 28 (where before it was in mod 27).

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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