Jake_A_Reed 1 Posted July 12, 2015 Hi all, pretty new to modding kotor2, not really new to modding in general (neverwinter nights for example) or coding so I understand the basics. Trying to update the inventory in the security locker in peragus just as a way to practice modding. I found the utp file g_tresmillow010.utp however merely editing it and placing it in the override folder isn't what i'm looking for since that basic template is used in several other places. Is there any way to easily mod a placeable without extracting an entire rim file (I think thats what they're called) modifying the file and then repackaging it? Quote Share this post Link to post Share on other sites
Fair Strides 509 Posted July 12, 2015 In a way there is. If you know the location of the specific placeable (which you might need Darth 333's WhereAmI Armband for; SWK is down so try Filefront), you can use this to get the placeable: object oFootlocker = GetNearestObjectToLocation(OBJECT_TYPE_PLACEABLE, Location(Vector(, , ), 0.0)); And then you can add items to it with: CreateItemOnObject("", oFootlocker, ); for each of the items you want to add. This would all have to be in one script. Quote Share this post Link to post Share on other sites
Jake_A_Reed 1 Posted July 12, 2015 Makes sense... I guess I would need to find a script to hook into? One of the mods that adds a placable I use hooks into kreia's telepathic warning of the droids in the next room so something like that I guess. Thanks! Quote Share this post Link to post Share on other sites
Hassat Hunter 571 Posted July 12, 2015 I prefer just modifying the .utp than using TSLPatcher to place it in the proper location (see "Mission Vao Armband" for example). Alternatively, if there's only one of the type in the module and it has an unique tag you can simply skip the 'searching' part of Fair Strides post object oFootlocker = GetObjectByTag("[tag]", 0); CreateItemOnObject("<template resref of item>", oFootlocker, <how many of the item, defaults to 1.>) or if you want 1 new line; CreateItemOnObject("<template resref of item>", GetObjectByTag("[tag]", 0), <how many of the item, defaults to 1.>) Quote Share this post Link to post Share on other sites