EDIT: I have figured this out. My problem was using the 3-letter abbreviation DRO. If I use DROP instead, the problem is solved.
For the Year of Adventure I’m creating a game in Scott Adams format, using Mike Taylor’s compiler sac. I’m running into a problem with trying to display a custom message when dropping a specific object.
Here’s a short sample game source that illustrates the problem:
%start r1 %wordlen 3 %action Q %result game_over %valias Q QUI %action INV %result inventory %room r1 little room %exit e r2 %item ball Ball %getdrop BAL %room r2 big room %exit w r1 %item stick Stick %action GET STI here stick %result get stick msg I got it! %action DRO STI carried stick %result drop stick msg Dropped.
I compile the game with sac, and play it with Gargoyle.
Getting either object and dropping the stick all work fine, but when I try to DROP BALL I get the response, “I don’t understand your command.”
I was wondering if maybe this is just a limitation of the format, that you can’t give a custom response to a DROP command.
But Adventureland does it with several objects, and Voodoo Castle does it with the rabbit’s foot.
Is this a bug in sac?