I kind of see what you’re getting at here, but I’m not sure how to make it work. I am actually having an issue with this now. My game works fine if you type “give shiny rocks to [whoever]”, but if you type “give [number] shiny rocks to [whoever]”, the game says “You can’t use multiple objects with that verb.” This is causing problems for some testers who are specifying the amount to pay for items. Is there a simple way to patch this up such that typing “give 100 shiny rocks to Slunk” succeeds in giving shiny rocks to Slunk, but say “give 10 shiny rocks to Slunk” fails? I’m lost on this one.
[MONEY]
cash is a number that varies. cash is 0.
shiny rocks is a thing. The printed name is "[cash in words] shiny rock[if cash is greater than 1]s[end if]".
The description of shiny rocks is "Small rocks, polished to a shine. You have [cash in words] of them."
Understand "rocks" or "stones" or "money" or "cash" or "rock" as shiny rocks.
When play begins:
if cash is greater than 0:
now the player holds shiny rocks.
Every turn when cash is greater than 0:
now the player holds shiny rocks.
Every turn when cash <= 0:
remove shiny rocks from play.
moneypile is a number that varies.
Some discarded rocks is a thing. The description is "You see [moneypile in words] shiny rock[if moneypile is greater than 1]s[end if] here."
Understand "rock" or "stone" or "money" or "cash" or "shiny rocks" as discarded rocks.
Instead of dropping shiny rocks:
say "You drop your shiny rocks. This can't possibly be a bad idea.";
now moneypile is 0 + cash;
now cash is 0;
move discarded rocks to the location.
Instead of taking discarded rocks:
say "You take the shiny rocks. Maybe they're important?";
remove discarded rocks from play;
increase cash by moneypile;
if shiny rocks is off-stage:
now player carries shiny rocks.
Instead of giving shiny rocks to Slunk:
if Slunk is unpaid:
if cash is at least 100:
now cash is cash - 100;
say "Slunk pockets the shiny rocks and smiles. 'Oops,' he says as he drops his skeleton key on the floor.";
now Slunk is paid;
now the skeleton key is in Room 101;
otherwise:
say "You don't have 100 shiny rocks.";
otherwise:
say "You've already given Slunk enough."