Section - Buying the Bag
[ ==============================================]
[ handle 'give credit card to woman' ]
Instead of giving a currency that is plastic to the aged woman:
say "'I ain’t Harrod’s, dearie. Thirty p.'"
[ Check that giving credit card provides the appropriate response. ]
Test buy-credit with "give credit card to woman" in Broad Walk.
[ handle 'give twenty-dollar bill to woman' ]
Instead of giving a currency that is paper to the aged woman:
say "'I only take local currency, luv.'"
[ Check that giving twenty-dollar bill provides the appropriate response. ]
Test buy-bill with "give twenty-dollar bill to woman" in Broad Walk.
Test bad-buy with "buy bag with camera" in Broad Walk.
Test bad-seller with "buy bag from pigeons" in Broad Walk.
[ ==============================================]
[ handle 'buy bags with fifty pence' ]
[ redirects to buying the singular bag from the woman ]
Instead of buying some bags of crumbs with currency:
try buying the bag of bird crumbs from the aged woman.
Test buy-with-plural with "actions / buy bags with fifty pence" in Broad Walk.
[ handle 'buy bags from woman' ]
[ redirects to buying the singular bag from the woman ]
Instead of buying some bags of crumbs from the aged woman:
try buying the bag of bird crumbs from the aged woman.
Test buy-from-plural with "actions / buy bags from woman" in Broad Walk.
[ ==============================================]
[ handle 'buy bag with fifty pence' ]
[ redirects to buying the singular bag from the woman ]
Instead of buying the bag of bird crumbs with currency:
try buying the bag of bird crumbs from the aged woman.
Test buy-bag-with with "actions / buy bag with fifty pence" in Broad Walk.
[ ==============================================]
[ handle 'buy bag from woman' ]
[ buying actions are delegated to here ]
[ this redirects all actions to giving the woman a type of currency ]
Instead of buying the bag of bird crumbs from the aged woman:
if the player does not enclose a currency:
say "You don't have anything to pay her with.";
if the player encloses a currency that is a coin (called the item):
try giving the item to the aged woman instead;
if the player encloses a currency that is plastic (called the item):
try giving the item to the aged woman instead;
if the player encloses a currency that is paper (called the item):
try giving the item to the aged woman instead.
[ Check that when carrying no currency at all, the first condition above is operative. ]
Test no-currency-buy with "take all from pocket / drop all / north / buy bag from woman".
[ Check that when carrying no coin, the third condition above is operative. ]
[ This should fire off buying with the credit card. ]
Test no-coin-buy with "take fifty pence / drop it / north / buy bag from woman".
[ Check that when carrying only the twenty dollars, the fourth condition above is operative. ]
Test only-paper-buy with "take fifty pence and credit card / drop all / north / buy bag from woman".
[ Check that 'give coin to woman' disambiguates when both coins are in play. ]
Test proper-coin with "give coin to woman" in Broad Walk.
[ ==============================================]
[ handle 'give fifty pence to woman' ]
[ handles any attempt to give a coin to the woman ]
[ diffentiates which coin is being dealt with ]
Instead of giving a currency that is a coin (called the item) to the aged woman:
unless the item is the small coin:
now the item is off-stage;
now the aged woman is compensated;
now the aged woman is providing a paid for product;
say "'Bless yer,' coos the bird woman, taking [the item] with a practiced snatch. 'Twenty p’s the change.' She holds out a bag of crumbs and a small coin for you.";
otherwise:
say "'Thirty p, not a farthing less.'"
Test coin-buy with "give fifty pence to woman" in Broad Walk.
[ ==============================================]
[ handle when both coins are operative at the same time ]
[ will not ask about which coin when "give coin to woman" is used ]
[ will not ask about which coin when "take coin" is used and both are in play ]
[ but these suggest that maybe the small coin should not be in the game world until it is needed ]
Does the player mean giving the small coin to:
if the player encloses the seven-sided coin, it is very unlikely.
Does the player mean buying something with the small coin:
if the player encloses the seven-sided coin, it is very unlikely.
Does the player mean taking the small coin:
if the seven-sided coin is off-stage:
it is very likely;
otherwise:
it is very unlikely.
[ ==============================================]
[ handle 'take bags of crumbs' ]
Instead of taking some bags of crumbs:
try taking the bag of bird crumbs.
Test take-bags with "actions / take bags of crumbs" in Broad Walk.
[ handle 'take bag of crumbs' ]
[ taking the bag before purchase and after purchase are different conditions ]
Instead of taking the bag of bird crumbs:
[if the aged woman is compensated:]
if Giving the Bag has happened and Giving the Bag has not ended:
if the player does not enclose the bag of bird crumbs:
now the player carries the bag of bird crumbs;
say "You grab the bag of crumbs from the woman.";
otherwise:
say "The woman chuckles. 'It's one per purchase, dearie.'";
otherwise:
say "The woman slaps your hand away. 'No touchin['] the merchandise!'"
[ handle 'take small coin' ]
[ taking the small coin before purchase and after purchase are different conditions ]
Instead of taking the small coin:
[if the aged woman is compensated:]
if Giving the Bag has happened and Giving the Bag has not ended:
if the player does not enclose the small coin:
now the player carries the small coin;
say "You grab your change from the woman.";
otherwise:
say "The woman looks suspicously at you. 'I already gave your change. Best git to steppin['].'";
otherwise:
say "Trying to rob the woman would not be your best move."
[ handle 'give bag to woman' ]
[ we don't want the player to give back the purchase ]
Instead of giving the bag of bird crumbs to the aged woman:
say "The bird woman shakes her head. 'Keep it, dearie.'"
[ ==============================================]