So a basic market system. you want to have one fsm with all the variables you want, so like "potion" you can put cost under a int value. and have one fsm that has all your player inventory items, so all you have to do is use a state like "get fsm int" "variable name "potion". That's a start.