Thats a toughy
Id try posting this in the newbie or DB area. Probably will get you more responses. Im learning how to do this, but as far as I can tell- it will probably be hard.
It will have a lot with defining the properties of a sprite in an array and when you click on a sprite you will have to call that data from the array. The hard part would be telling the mouse what its clicking on.
I think im going to do mine text based, like Potion, so I can use the commands to read text, and store data by names. That will probably be easier