Trolls Pretty Lair is a room. "A dark place with the stench of death about it. Decorated with pink ribbons."
The troll is here. "You see a big nasty troll."
The troll holds the apple.
Instead of examining the troll:
say "The troll is so perplexed by your rude starring that he drops an apple!";
let the troll drop the apple. [or whatever it's supposed to say here]
You might want to put a logic check in there, to make sure the troll is carrying the apple. Otherwise, you’ll repeat the code even when the apple has fallen. Something like this, maybe (untested!)
Trolls Pretty Lair is a room. "A dark place with the stench of death about it. Decorated with pink ribbons."
The troll is here. "You see a big nasty troll."
The troll is carrying the apple. [changed this to "is carrying."]
Instead of examining the troll:
If the troll is carrying the apple:
say "The troll is so perplexed by your rude starring that he drops an apple!";
Now the apple is in the location of the troll;
Otherwise:
say "The troll squints back at you.";
Seconding this. The built in checks will make sure the troll is holding the apple, and any special rules about e.g. objects dropped in the Slide moving to the Dungeon will be considered.
“silently try…” works here as well. But as matt w said, it’s better to move the message to the dropping action, otherwise there’ll be problems if the action fails for some reason.