What am I missing? SHOWME tells me that Cove of Plunder is being watched, but the shop employee isn’t in the store and all the items are free. I also tried a slightly worse method (imo) where the prices are created before you enter Cove of Plunder, but this also didn’t work.
Cove of Plunder is a room. Cove of Plunder can be watched or unwatched. Cove of Plunder is watched. The description of Cove of Plunder is "The local general store. The inside is crammed wall-to-wall with all sorts of pirating goods.".
The shop employee is a woman.
Oarinator 3000 is an object in Cove of Plunder. "BETA NOTE- PURLOIN THE [oarinator 3000] IF YOU WANT TO SEE THE ENDING. I'M NOT DONE WITH THIS PART". The description of the Oarinator 3000 is "The latest model of oar with a snazzy stripe design.".
The fishing pole is an object in Cove of Plunder. "THE [FISHING POLE] DOESN'T DO ANYTHING ATM"
The shovel is an object in Cove of Plunder. "A [shovel]." The description is "A little spade. You can use it to DIG."
The adhesive is an object in Cove of Plunder. "A little tube of liquid [adhesive]." The description is "An all-in-one adhesive for ATTACHing any one material to any other."
This is the security rule:
if Cove of Plunder is watched:
now the price of the Oarinator 3000 is $100;
now the price of the fishing pole is $10;
now the price of the shovel is $10;
now the price of the adhesive is $1;
now the shop employee is in Cove of Plunder;
if Cove of Plunder is unwatched:
now the price of the Oarinator is $0;
now the price of the fishing pole is $0;
now the price of the shovel is $0;
now the price of adhesive is $0;
now the shop employee is nowhere.
Also, here’s what I’ve got for my money system. I’m pretty happy with it; I’m including it because you need it for the above code to run.
Price is a kind of value. $1000 specifies a price. A thing has a price. The price of a thing is usually $0.
Definition: a thing is free if the price of it is $0.
Definition: a thing is for sale if it is not free.
After examining something for sale, say "It can be yours for [the price of the noun]."
Check taking something for sale:
if the noun is a doubloon:
continue the action;
otherwise:
say "You'll have to BUY that.";
stop the action.
Before buying something for sale when the money is not in the purse:
say "You're broke." instead.
Before buying something for sale when the money is free:
say "You're broke." instead.
Before buying something for sale when the price of the money is less than the price of the noun:
say "Your funds do not run to the price of [the noun]." instead.
Instead of buying something:
decrease the price of the money by the price of the noun;
say "You fork over [the price of the noun] for [the noun], leaving yourself with [the price of the money].";
now the price of the noun is $0;
now the player is carrying the noun.
The player carries a purse. The purse contains money. The price of the money is $0. The printed name of the money is "[price of the money]". The description of the purse is "A simple black drawstring coin purse."
Instead of taking the money:
say "Best to leave it alone until you need to buy something."
Instead of buying the money:
say "The money belongs to you; you buy things with it."
Instead of dropping the money:
say "You open your coin purse before you think better of the action."
A doubloon is a kind of thing. The price of a doubloon is $1.
Instead of taking a doubloon:
increase the price of the money by the price of the noun;
say "Taken.";
now the noun is nowhere.
Budding is an action applying to nothing. Understand "rosebud" and "kaching" as budding.
Carry out budding:
increase the price of the money by $1000;
say "Your purse suddenly becomes far heavier.".
Loding is an action applying to nothing. Understand "motherlode" as loding.
Carry out loding:
increase the price of the money by $5000;
say "You stagger under the weight of the coins that materialized at your hip.".
A thing can be examined or unexamined. A thing is usually unexamined.
Carry out examining something:
now the noun is examined;