machetemike911 Posted April 25, 2020 Share Posted April 25, 2020 So, OnItemRemoved will not get called on my script, all the body does is send a notification saying an item was removed. all other events work fine. Neither dropping objects or removing them from inventory works. I have tried everything to get OnItemRemoved to be called. I tried the script on a player referencealias and on a player constant magic effect spell. I tried clearing event filters and adding a filter. I tried having onitemremoved by itself with no other events. I read the wiki but there didn't seem to any special requirements for this to get called. :/ Link to comment Share on other sites More sharing options...
foamyesque Posted April 25, 2020 Share Posted April 25, 2020 (edited) There aren't (outside of the object being loaded, but if you can manipulate the inventory, it is), so you're doing something wrong. Could you please post your exact code? Edited April 25, 2020 by foamyesque Link to comment Share on other sites More sharing options...
machetemike911 Posted April 25, 2020 Author Share Posted April 25, 2020 scriptname PlayerMonitor extends ReferenceAlias event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) debug.notification("Item removed") endevent The script is on a alias force filled with the player reference. Quest is priority 0 but I tried it with priority 60. Start game is enabled and I tried it with run once both on and off. I started a new game each ESP change. Link to comment Share on other sites More sharing options...
foamyesque Posted April 25, 2020 Share Posted April 25, 2020 Okay, doesn't look like a typo in the event header, which is why I wanted to see the code. Have you checked that the quest is starting and the alias was filled correctly, via the console command sqv? Link to comment Share on other sites More sharing options...
machetemike911 Posted April 25, 2020 Author Share Posted April 25, 2020 I fixed it. I f*#@ed around with event stuff recently in a SKSE plugin and forgot to remove the code. It mustve messed up the removeitem event somehow. Link to comment Share on other sites More sharing options...
Recommended Posts