You don't need scripts for these...
>> Make a new Status Effect AND variable, and call them Drunk.
>> Make an item and call it Budweiser, or whatever Lol...
>> In the iem's usage, call script >> $game_variabales[ID] += 1 to the variable that you specified...
>> Then have a Common Event with a conditional branch stating that if the variable is 3 or more, then the status effect "Drunk" is afflicted...
>> Then make sure to set the variable back to zero...
>> Then you could always have another item called >> Advil or something which removes the status effect, Lol....