A room has a number called the coin count. The coin count of a room is usually 0. A supporter has a number called the coin count. The coin count of a supporter is usually 0. A container has a number called the coin count. The coin count of a container is usually 0. A person has a number called the coin count. The coin count of a person is usually zero. Taking coins from it is an action applying to one number and one thing. Understand "take [number] coins from [thing]" as taking coins from it. Check taking coins from it: if the second noun is a closed container: say "You'll have to open [the second noun] in order to take coins from it."; if the number understood is 0: say "You can't take less than one coin."; stop the action; if the coin count of the second noun is 0: say "There are no coins [if the second noun is a supporter]on[otherwise]in[end if] [the second noun] to take."; stop the action; if the coin count of the second noun is less than the number understood: now the number understood is the coin count of the second noun; continue the action; Carry out taking coins from it: now the coin count of the second noun is the coin count of the second noun minus the number understood; now the coin count of the player is the coin count of the player plus the number understood; Report taking coins from: say "You take [the number understood] coins from [the second noun], leaving [if the coin count of the second noun is greater than 0][coin count of the second noun] remaining[otherwise]none[end if]."; Putting coins on it is an action applying to one number and one thing. Understand "put [number] coins on [supporter]" as putting coins on it. Check putting coins on it: if the coin count of the player is 0: say "You can't put down coins you don't have."; stop the action; if the number understood is 0: say "You can't put down less than one coin."; stop the action; if the coin count of the player is less than the number understood: now the number understood is the coin count of the player; continue the action; Carry out putting coins on it: now the coin count of the second noun is the coin count of the second noun plus the number understood; now the coin count of the player is the coin count of the player minus the number understood; Report putting coins on it: say "You set [the number understood] coins down on [the second noun][if the coin count of the second noun is greater than the number understood], making a total of [the coin count of the second noun][end if]."; Inserting coins into it is an action applying to one number and one thing. Understand "insert [number] coins into [container]" as inserting coins into it. Understand "put [number] coins in [container]" as inserting coins into it. Check inserting coins into it: if the coin count of the player is 0: say "You can't store coins you don't have."; stop the action; if the second noun is closed: say "You'll have to open [the second noun] in order to put coins into it."; stop the action; if the number understood is greater than the coin count of the player: now the number understood is the coin count of the player; continue the action; Carry out inserting coins into it: now the coin count of the second noun is the coin count of the second noun plus the number understood; now the coin count of the player is the coin count of the player minus the number understood; Report inserting coins into it: say "You store [the number understood] coins in [the second noun][if the coin count of the second noun is greater than the number understood], making a total of [the coin count of the second noun][end if]."; Dropping coins is an action applying to one number. Understand "drop [number] coins" as dropping coins. Check dropping coins: if the coin count of the player is 0: say "You can't drop coins you don't have."; stop the action; if the number understood is greater than the coin count of the player: now the number understood is the coin count of the player; continue the action; Carry out dropping coins: now the coin count of the location is the coin count of the location plus the number understood; now the coin count of the player is the coin count of the player minus the number understood; Report dropping coins: say "You drop [the number understood] coins on the ground[if the coin count of the location is greater than the number understood], making a total of [the coin count of the location][end if]."; [Report the player's number of coins.] After taking inventory: say "You currently have [the coin count of the player] coins."; [Report the number of coins on a supporter.] After examining a supporter: if the coin count of the noun is greater than 0: say "There are [coin count of the noun] coins on [the noun]."; [Report the number of coins in a container.] After examining a container: if the noun is open and the coin count of the noun is greater than 0: say "There are [coin count of the noun] coins in [the noun]."; [Report the number of coins in a room.] After looking: if the location is not dark and the player is not enclosed by an opaque container and the coin count of the location is greater than 0: say "There are [coin count of the location] coins lying here."; The Green Room is a room. The wooden table is a supporter in the Green Room. The coin count of the wooden table is 10. The treasure chest is a closed openable fixed in place container in the Green Room. The coin count of the treasure chest is 30.