To simplify that you could have an instance variable on 'item' and pick the item that matches the global variable, then set position to item.
Awesome thanks! I still need some advice on what I should do to add items to my inventory.
I'd like it to add an item to the inventory based on a dialogue function being called.