Inebriety limit: Difference between revisions
Jump to navigation
Jump to search
imported>Zarqon corrected old info and added not logged in info |
imported>Zarqon m more links |
||
Line 8: | Line 8: | ||
[[void]] get_sneaky() { | [[void]] get_sneaky() { | ||
[[item]] FavoredDrink = $[[item]][grogtini]; | [[item]] FavoredDrink = $[[item]][grogtini]; | ||
while([[my_inebriety()]] < [[inebriety_limit()]]) { | while ([[my_inebriety()]] < [[inebriety_limit()]]) { | ||
[[overdrink]](1,FavoredDrink); | [[overdrink()|overdrink]](1,FavoredDrink); | ||
} | } | ||
int cirrosis = [[inebriety_limit()]] + 10 - [[my_inebriety()]]; | [[int]] cirrosis = [[inebriety_limit()]] + 10 - [[my_inebriety()]]; | ||
[[overdrink]](cirrosis,$item[green beer]); | [[overdrink()|overdrink]](cirrosis,$item[green beer]); | ||
if([[inebriety_limit()]] < 16) { | if ([[inebriety_limit()]] < 16) { | ||
print("Not ... drunk ... enough. Need ... ! ... potion"); | [[print()|print]]("Not ... drunk ... enough. Need ... ! ... potion"); | ||
} | } | ||
} | } |
Revision as of 06:38, 29 January 2009
This function returns the maximum safe drunkenness of a character before the character becomes falling-down drunk as an int. For characters without a Liver of Steel, this value is 14. For those characters with a Liver of Steel, this value is 19.
This example drinks you silly on St. Sneaky Pete's Day:
void get_sneaky() {
item FavoredDrink = $item[grogtini];
while (my_inebriety() < inebriety_limit()) {
overdrink(1,FavoredDrink);
}
int cirrosis = inebriety_limit() + 10 - my_inebriety();
overdrink(cirrosis,$item[green beer]);
if (inebriety_limit() < 16) {
print("Not ... drunk ... enough. Need ... ! ... potion");
}
}
When not logged in, this function returns 14.