margotr Posted November 23, 2016 Share Posted November 23, 2016 (edited) [EDIT: Fixed it, turned out it was just my lack of a clean save file. Sorry for the stupidness, thanks to the replier :)] Hi there,I've recently starting on modding. I can program in Java & C++, so I can understand the basics of Papyrus.The first mod I'm working on is to recreate the 'Mojave Express Dropboxes' from Fallout NV. To those that don't know this: basically I want to transfer an item I put into one container to another container. I currently have two containers next to each other: WhiterunBox1 and WhiterunBox2. This piece of code here I attached to the first box. Scriptname AAAABox1 extends ObjectReference ObjectReference Property WhiterunBox2 Auto Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \ bool abBashAttack, bool abHitBlocked) RemoveAllItems(WhiterunBox2, true, false) EndEvent So, when I hit the box, it should remove all the items within the box, and transfer them to WhiterunBox2. I tested it in-game: I can store items, and they disappear when I hit the box. However they never end up in the second box. I'm probably not referring to it in the right way. You can see in the images I added my 'properties' where I created the reference to WhiterunBox2 and the window where I gave WhiterunBox2 its name. TL;DR: How can I add a reference to a different container correctly, so that I can transfer items to it? Edited November 23, 2016 by margotr Link to comment Share on other sites More sharing options...
lofgren Posted November 23, 2016 Share Posted November 23, 2016 Just to check the obvious stuff first, are you testing on a clean safe each time? Link to comment Share on other sites More sharing options...
margotr Posted November 23, 2016 Author Share Posted November 23, 2016 I have a 'mod-save' for testing out mods (been working with simple redecoration mods for quite a while). I'll start a new game and COC to the chests just to make sure now :) Link to comment Share on other sites More sharing options...
margotr Posted November 23, 2016 Author Share Posted November 23, 2016 Okay, turns out I'm pretty stupid indeed. Using a completely new game solved the problem.Thanks for making me double-check :D Link to comment Share on other sites More sharing options...
Recommended Posts