Ben Roller (Mescad) recently put a video on You Tube describing how to make a Merchant Store in Project Spark.
I had to pause it a lot and take a lot of screen shots to get the Kode (yes in Project Spark you spell code with a “k”).
I am posting it here for anyone else who needs it because this is a really advanced concept. Be sure to go to the video and click the thumbs up and also click the button to subscribe to his videos.
First we show the code for the Merchant:
Line #10 (below) is incomplete because Mescad never shows it fully:
When the Merchant starts it runs the Restock page shown below:
The following is the code for the player: