Wow, you nailed it. I'm still trying to get my head around your code. Could you explain exactly what events 19-21 do please? Your comment helps but I'm lost.
BTW, If I wanted to run this code on a separate layout and fall back to a previous layout during game play, are there any gotchas I should consider? My game has the player visiting a closet (calls another layout) where the items that will go in the bag actually reside and exiting the closet takes the player back to the previous layout.
Thanks again for all the great help BTW.