I would like to take it a step further and start placing potions in specific markers but at present all my code does is identify the item as a potion.
Below is a fragment of code where I identify the potion as a potion.
Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)
if (akBaseItem as Potion)
; If the item being added is a Potion then check to see if there is room in on the shelf.
if ((aiItemCount + CurrentPotionAmount) <= MaxPotionsAllowed)
; There's room on the shelf, manage the Potion placement
AddPotions(akBaseItem, aiItemCount)
CurrentPotionAmount = CurrentPotionAmount + aiItemCount
else
After the akBaseItem is identified as a potion how do I find out its type and level?
