If you still need help with this, I made a little demo where you can eat an apple or a pear, but not a boot. I purposely didn't name the apple 'apple,' so that you can see how the #@object# command would work.
' "Eating Test"
' Created with QDK 3.53
define game <Eating Test>
asl-version <350>
gametype singleplayer
start <Normal Room>
game author <>
game version <1.0>
game copyright <© 2006>
game info <Created with QDK 3.53 - UNREGISTERED EVALUATION VERSION.>
command <eat #@object#> if got <#object#> then {
if type <#object#; edible> then {
msg <You eat the #@object#.>
hide <#object#>
}
else msg <The #@object# is not edible.>
}
else msg <You don't have the #@object#.>
end define
define type <edible>
end define
define synonyms
end define
define room <Normal Room>
prefix <a>
define object <Apple1red>
alias <red apple>
alt <apple>
take
prefix <a>
article <it>
gender <it>
type <edible>
end define
define object <Pear1big>
alias <big pear>
alt <pear>
take
prefix <a>
article <it>
gender <it>
type <edible>
end define
define object <boot>
take
prefix <a>
article <it>
gender <it>
end define
end define
define text <intro>
end define
define text <win>
end define
define text <lose>
end define