Actually, what it should be is:
at the start of the game:
startscript {
set numeric <drinkamount; 1>
}
And your if should be:
if ( drinkamount < 1 ) then {
msg <You finish off the last drop and are left holding the empty mug.>
lose <mug of beer>
create object <empty mug; town1, inn1, room1>
give <empty mug>
}
else {
msg <You take a drink of beer from the mug.>
dec <drinkamount; 1>
}
This is the normal coding convention.. So that instead of specifying ONE value that you want a variable to be - find a whole RANGE of values, it shouldn't be...
If you get my drift.