DynasuarezWrecks Posted August 3, 2022 Share Posted August 3, 2022 So I already know that you can use the console to add items to an NPC's inventory by clicking on them in the console and then using the "additem" command. What I can't figure out is how to add items to an NPC without clicking them first. I think I had seen it explained somewhere a long time ago, but my google-fu is failing me. For context, I'm a novice modder trying to do things that I have never done before. I know that I can just use FNVedit or the GECK to add items to the desired NPC's inventory directly, but that could conflict with other mods that edit NPCs, such as New Vegas Redesigned 2. I'm trying to avoid that. Specifically, I intend to write scripts that run on game start to add those items to NPCs so that it avoids conflict with direct edits altogether. I can't figure out the syntax to do that, though, and to be frank, I'm not even sure that I don't need to JIP LN NVSE to do it anyway. Link to comment Share on other sites More sharing options...
madmongo Posted August 5, 2022 Share Posted August 5, 2022 You don't need JIP LN NVSE. You do need to know the NPC's Reference ID. For example, let's add something to Veronica. Her Editor ID is Veronica, but that's not what you need. You need her Reference ID which is VeronicaREF. Create a new quest. Let's call it AddStuffToVeronicaQUEST. Make sure Start Game Enabled is checked. This quest doesn't really do anything other than hold our quest script, which is where all the fun happens. Now create a quest script. Something like this: ScriptName AddStuffToVeronicaSCRIPTint DoOnceBEGIN GameMode if (DoOnce == 0) VeronicaREF.additem TeddyBear01 1 set DoOnce to 1 endifEND Make sure to select Quest Script in the pull down menu for Script Type. Open your AddStuffToVeronicaQUEST quest up again and use the pull down menu for Script to select your AddStuffToVeronicaSCRIPT. Now when your game starts up, your quest will give a teddy bear to Veronica. Link to comment Share on other sites More sharing options...
Recommended Posts