Dr Hannibal Lecter said he ate liver, fava beans, and Chianti, because those are all foods you can't eat when taking MAOI antidepressants, he was saying he wasn't taking his meds.
The zero escape series sounds exactly like what you're looking for. It's very central to the plot. It's more of a visual novel with puzzles than an RPG though.
Oops, fixed.