So what I am trying to do is that I am trying to apply a script to a alias to check if other aliases exist within the players inventory.
So I have no proper idea on how to go about doing this but what I thought it would look like is something like this:
Scriptname LPGLootPickup1 extends ReferenceAlias Event onContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)if akNewContainer == Game.GetPlayer()if akNewContainer == Alias_RuufgardLoot2.GetReference()if akNewContainer == Alias_RuufgardLoot3.GetReference()GetOwningQuest().SetStage(30)endifendifendifendEvent
But I'm guessing the "if akNewContainer == Alias_RuufgardLoot2.GetReference()" doesn't exactly work. But what I didn't expect was that it responded with an error:
e:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LPGLootPickup1.psc(5,23): variable Alias_RuufgardLoot2 is undefined
e:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LPGLootPickup1.psc(5,43): none is not a known user-defined type
e:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LPGLootPickup1.psc(6,23): variable Alias_RuufgardLoot3 is undefined
e:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LPGLootPickup1.psc(6,43): none is not a known user-defined type
e:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LPGLootPickup1.psc(5,43): none is not a known user-defined type
e:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LPGLootPickup1.psc(6,23): variable Alias_RuufgardLoot3 is undefined
e:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\LPGLootPickup1.psc(6,43): none is not a known user-defined type
So TL;DR question is basically: What sort of papyrus script do I need/use in order to check if an alias exists within the players inventory? Bear in mind that this script is applied to an alias. (basically 3 items checking if the other 2 are in the players inventory each time their containers get changed)
