At that point, (1) the ingredients should be removed from the container (2) a new enchanted amulet should be added to the container and (3) the quest stage should be updated.
I used the http://pastebin.com/raw.php?i=YmUH7DYx as a base for the following custom script, which I've attached to a trigger box surrounding the container: http://pastebin.com/raw.php?i=ucww4Dj8
Spoiler
Everything else in the quest seems to be working except this trigger box. Nothing happens when I shout at it, regardless of whether the items have been inserted.Scriptname ST_DovahMirShoutTriggerScript extends ObjectReference {script to detect hit by Unrelenting Force}; spells that can trigger this (Unrelenting Force 1, 2 or 3)Spell property triggerSpell1 auto Spell property triggerSpell2 auto Spell property triggerSpell3 auto ;ContainerObjectReference Property MyChest Auto;Quest ST_DovahMir01 Quest Property MyQuest1 Auto;Amulet of TalosArmor Property AmuletofTalos Auto ;Aetherium PieceMiscObject Property Aetherium Auto ;Amulet of Dovah MirArmor Property DovahMir Auto;Quest ST_DovahMirRepeatableQuest Property myQuest2 Auto ;************************************auto State Waiting Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) Spell akSpell = akSource as Spell Debug.Notification("shout trigger event started") if akSpell if(MyChest.GetItemCount(AmuletofTalos) >= 1 && MyChest.GetItemCount(Aetherium) >= 1 ) Debug.Notification("Chest Has at least 1 Amulet of Talos & 1 Aetherium Piece") if (triggerSpell1 && akSpell == triggerSpell1) || (triggerSpell2 && akSpell == triggerSpell2) || (triggerSpell3 && akSpell == triggerSpell3) MyChest.RemoveItem(AmuletofTalos, 1) && MyChest.RemoveItem(Aetherium, 1) Debug.Notification("amulet and aetherium removed from chest") MyChest.AddItem(DovahMir, 1) Debug.Notification("dovah mir added to chest") if (MyQuest1.GetStage() > 40) Debug.Notification("DovahMir01 stage is greater than 40") MyQuest1.setstage(70) Debug.Notification("Shout trigger script set non-repeatable stage to 70") ; disable myself ;Disable() ;Debug.Notification("Trigger box disabled") endif if (MyQuest2.GetStage() > 20) Debug.Notification("DovahMirRepeatable stage is greater than 20") MyQuest2.SetStage(40) Debug.Notification("Shout trigger script set repeatable quest stage to 40") ; disable myself ;Disable() ;Debug.Notification("Trigger box disabled") endif endif endif endif endEventendState;************************************
Any suggestions for improving the script, or perhaps a better way to test this to figure out the problem?