The problem is to transfer an amulet from one NPC to the next at the end of a scene.
Scriptname BenduToGilfre extends scene Hidden ReferenceAlias Property Bendu Auto ReferenceAlias Property Gilfre Auto ReferenceAlias Property Amulet Auto MiscObject property Gold001 auto Function MyFunction()Actor rBendu = Bendu.GetReference() as ActorActor rGilfre = Gilfre.GetReference() as ActorObjectReference rAmulet = Amulet.GetReference() as ObjectReference;rBendu.RemoveItem(rAmulet, 1, false, Gilfre) ideally give to Gilfre casted as ObjectReference (fails)rBendu.RemoveItem(rAmulet)rBendu.AddItem(Gold001, rAmulet.GetGoldValue() * 2)rGilfre.AddItem(rAmulet)EndFunction
The script functions insofar the amulet is removed, but it is not to be found on the recipient NPC.
This scene plays in a quest, and the amulet is a quest item.
However it is flagged as stolen in Bendu's inventory.