Cairnsie1 Posted December 10, 2012 Share Posted December 10, 2012 I'm currently trying to work out how to add items in Wasteland defense by using the "player.additem" command but i cant get my head around how to use the loadout codes as im not sure what im doing wrong. I've tried multiples codes and none of them work yet i think im doing what people are saying to do. However I have seen many people say you can use FOMM to find out but i am very new to all this and have no idea how to go about doing this? Any help is appreciated. Link to comment Share on other sites More sharing options...
luthienanarion Posted December 10, 2012 Share Posted December 10, 2012 If you're using NVSE, just enter the following command in the console: GetModIndex "NameOfPlugin.esp" It will give you the first two hexadecimal digits to use for forms in that plugin. Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted December 11, 2012 Share Posted December 11, 2012 Proving you can always learn something new, I had never even thought of using that function in console. I always just use the load order index value given in FOMM, or load up the current mods in FNVEdit to get the index (and associated item codes I need). Both of which are valid methods of doing it. To provide an example, you want the number given by FOMM (or NMM) beside the modshttp://bennysbumperblog.files.wordpress.com/2010/01/fm01-fmm1.gif You take that number and plug it into the add function like so:player.additem XX000000 <number of items>Where XX is the mod index of the mod, and the 0s are replaced by the formID of the item you want. Another example. Say you want to add a Light Machine Gun. You look either in GECK, or with base items in you can find them on the wiki, such as in the link provided. Look for the Base ID value, which for the LMG is 000906df. The first 2 digits are the mod index (in the case of the base file, always 00), the rest of it is the formID of the item. So to add an LMG you would type:player.additem 000906df 1 If it was an item from a mod at say, index 13 (which in Hex is 0D) you would type:player.additem 0D0906DF 1. Link to comment Share on other sites More sharing options...
luthienanarion Posted December 11, 2012 Share Posted December 11, 2012 Proving you can always learn something new, I had never even thought of using that function in console. I spend a LOT of time in the console when I'm play-testing the crazy scripting ideas I come up with. SQV, ShowVars, ShowInventory, etc. It's faster than tabbing out to the GECK or FNVEdit to look up an index. Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted December 12, 2012 Share Posted December 12, 2012 The benefit of two monitors, I can have one with a program open with the data, and one with the game. I hate messing with quest vars though, I use globals for all my stuff that needs external setting or testing. Link to comment Share on other sites More sharing options...
Recommended Posts