Hi, I've been trying for a good while to make a mod that plays certain sounds when a player's needs advance, I found the player needs are applied with potions (magic>potions>HC_SleepEffect_Tired for example), so I figured I should use the Event OnItemEquipped since as far as I know it detects when a potion is consumed.
I made properties for the player, the sound descriptors and the potions, these seem to be working fine as the sounds play in the OnInit code and I made sure to set them.
But in game, when I wait and my needs advance, nothing plays, I get the notification that confirms the even is triggered but I also get "Equipped item not by player" notification which means the "if akReference == PlayerRef" is not working?
I have tried a lot of stuff but just can't get it to work, the sound descriptors, the quest and everything else seems to be fine.
This is also my first mod and my first time ever using papyrus or the creation kit for that matter.
I attached the text of the script
Script_SNS.txt