Hello, so, I want to make a script where, when the player activates a certain object, it checks to see if the player has in their inventory all the items on a formlist, and if they do, it will remove them all, and give them an item. So far I've got the script for removing the items and giving the item, but it will give the item regardless of whether it's removed anything or not. Because I haven't put any conditions in. You see I'm not quite sure how to do that. I know how to do a script that checks if the formlist 'hasform' with 'onitemadded', but not where the player has the items in their inventory. I know it's probably really similar and I feel a bit silly I can't figure it out, but I've been reading for ages on the creation kit wiki and it's just given me a headache :/ Hope someone can help me out with this
Here's my script I've got atm:
Scriptname HeroAmuletScript extends ObjectReference Event OnActivate (ObjectReference akActionRef)game.getplayer().removeitem(amulet1)game.getplayer().removeitem(amulet2)game.getplayer().removeitem(amulet3)game.getplayer().removeitem(amulet4)game.getplayer().removeitem(amulet5)game.getplayer().removeitem(amulet6)game.getplayer().removeitem(amulet7)game.getplayer().removeitem(amulet8)game.getplayer().additem(amulet9)EndEvent Armor Property amulet1 Auto Armor Property amulet2 AutoArmor Property amulet3 AutoArmor Property amulet4 AutoArmor Property amulet5 AutoArmor Property amulet6 AutoArmor Property amulet7 AutoArmor Property amulet8 AutoArmor Property amulet9 Auto