Varialble not taking refrence

At least one can not see the variable getting set in this graph.
Simple way to do is is to drag the variable to the graph and then “set p_inv” and connect an input.
If you want to check if the variable is set you can add a breakpoint on the “load inventory” node (rightclick menu) and then hover over the input of that node when the break appears. Chances are it is still empty.