<when i pick up a coin and go to another room, item (cap) disappars. it’s apparently null. (photo 1,2) throes mistake (photo 3). all is managed by global autoload script, which, when item is collected, adds it’s scene to array and Inventory script supposed to load them from there. (all other photos)>
Wouldn’t this error happen when you click on an empty slot? You say the item disappears, but it only throws the error after you’re clicking. Are you trying to click on a slot where the cap was before you switched level?
yes. it throws error only when i click on it and trigger pickFromSlot method. those methods are for moving items. i could remove them and they’re not the problem, but they’re helpful in debug. inventory works perfectly fine unless i go to another room AND have a picked coin (???). coins are also managed in Global script but there’s just an array that keeps int indexes of picked up coins.
Try putting a print in cap.gd right after the Global.v.find(p)!=-1 statement in the _ready function. My guess is that it will free itself after the inventory initializes it when changing the room.