There is a function called creatable_amount that you can use with each type of the SHC drinks. This is a snippet of how I use it for characters with liver of steel.
int amount = creatable_amount(drink);
if(amount >= 5)
{
item drink = string_to_item( "Mon Tiki" );
boolean created =...