I am trying to replace an item that I drop with an activator. -Since the activator can't be picked up and placed in the player's inventory.
I managed to remove the activator when activating it, and placing the "dummy item" in the player's inventory. Now I just need to replace the item with the activator when the player drops the item. Obviously my script doesn't work.
Here's my script so far:
Scriptname BM_ReplaceCoalWithTrap extends ObjectReference{A script attached to the player, that replaces a certain item with an activator.}MiscObject Property BM_CoalReplaceItem Autoevent OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) Debug.Notification("Running!") ;This does not show.if (akBaseItem==BM_CoalReplaceItem && !akDestContainer) ;This is supposed to mean "if the item is dropped". Debug.Notification("Replace me, mf!") Game.GetPlayer().PlaceAtMe(Game.GetForm(0x0100FF80)) ;I later want to replace "Game.GetForm" with a variable. RemoveItem(akBaseItem, 1, true, none) ;This is me trying to remove the item that was dropped. Does not work.endifendeventSince no Debug.Notifications are showing I am guessing the event is wrong.
I created a quest, created a player-alias and attached this script to the player.
What I need:
1. I need the trigger to run, since it seems the event is wrong and nothing runs at all.
2. I need to remove the dropped item somehow.
3. I need to create the activator where the removed item was. (In front of the player.) -I am guessing that this works, if the trigger would run.
Thanks in advance.

