Uh care to explain in more detail? I don't completely understand what your asking but if your using ASH scripts then this link seems to be what your asking for? http://wiki.kolmafia.us/?page_id=6
If your using CLI scripting then I'll let someone else answer this.
Oh wait... do you mean like with the "conditions add" command? In this case then I personally don't think there is a way to check inebriety using that. (I could be wrong, I haven't used "conditions" for a long time)