version 2 by Blaze5565
Section 3 - Selling Action
Selling it to is an action applying to two visible things.
Understand "Sell [something] to [person]" as selling it to.
If the player is not carrying the noun:
Say "You can't sell something you don't have.";
Stop the action.
Carry out selling a thing (called the sellitem) to a person (called the notplayerbuyer):
Now the notplayerbuyer holds the sellitem;
Now the currency of the player is the currency of the sellitem + the currency of the player;
Say "You hand over the [sellitem] to [notplayerbuyer]. He gives you [currency of the sellitem] in return."